Skip to content

Commit febba57

Browse files
committed
chore: ⬆️ update dependencies
#16
1 parent f28218b commit febba57

File tree

4 files changed

+2786
-1516
lines changed

4 files changed

+2786
-1516
lines changed

babel.config.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
}
3131
],
3232
[
33-
"@babel/plugin-syntax-module-attributes",
34-
{
35-
"version": "may-2020"
36-
}
33+
"@babel/plugin-syntax-import-assertions"
3734
]
3835
],
3936
"presets": [

package.json

+38-36
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,61 @@
11
{
2-
"name": "@howt/vtf",
2+
"name": "@howt/data-file-vtf",
33
"version": "0.1.0",
44
"main": "dist/node/index.js",
55
"module": "dist/index.js",
66
"browser": "dist/browser/index.js",
77
"license": "MIT",
88
"type": "module",
99
"dependencies": {
10-
"@howt/compression-bc": "^0.9.2",
11-
"@saschazar/wasm-webp": "^1.3.1",
12-
"@sindresorhus/is": "^2.1.1",
10+
"@howt/data-compressed-bc": "^0.10.1",
11+
"@saschazar/wasm-webp": "^2.0.0",
12+
"@sindresorhus/is": "^4.0.0",
13+
"browser-or-node": "^1.3.0",
14+
"canvas": "^2.6.1",
1315
"chalk": "^4.0.0",
1416
"decode-dxt": "^1.0.1",
1517
"dxt-js": "^0.0.3",
16-
"file-type": "^14.5.0",
17-
"jimp": "^0.13.0",
18-
"ow": "^0.17.0",
19-
"sharp": "^0.25.3",
20-
"squish-rs": "https://github.com/jansol/squish-rs.git",
21-
"tga": "^1.0.3"
18+
"file-type": "^16.0.1",
19+
"jimp": "^0.16.1",
20+
"jsdom": "^16.4.0",
21+
"ow": "^0.19.0",
22+
"sharp": "^0.26.2",
23+
"tga": "^1.0.4"
2224
},
2325
"devDependencies": {
24-
"@babel/cli": "^7.10.1",
25-
"@babel/core": "^7.10.1",
26-
"@babel/plugin-proposal-class-properties": "^7.8.3",
27-
"@babel/plugin-proposal-export-default-from": "^7.10.1",
28-
"@babel/plugin-proposal-logical-assignment-operators": "^7.10.1",
29-
"@babel/plugin-proposal-numeric-separator": "^7.10.1",
30-
"@babel/plugin-proposal-partial-application": "^7.10.1",
31-
"@babel/plugin-proposal-pipeline-operator": "^7.10.1",
32-
"@babel/plugin-proposal-private-methods": "^7.10.1",
33-
"@babel/plugin-proposal-private-property-in-object": "^7.10.1",
34-
"@babel/plugin-proposal-throw-expressions": "^7.10.1",
35-
"@babel/plugin-syntax-module-attributes": "^7.10.2",
36-
"@babel/plugin-transform-runtime": "^7.9.6",
37-
"@babel/preset-env": "^7.9.6",
38-
"@pumpn/eslint-config": "^4.0.0",
39-
"@rollup/plugin-babel": "^5.0.3",
40-
"@rollup/plugin-commonjs": "^13.0.0",
26+
"@babel/cli": "^7.12.1",
27+
"@babel/core": "^7.12.3",
28+
"@babel/plugin-proposal-class-properties": "^7.12.1",
29+
"@babel/plugin-proposal-export-default-from": "^7.12.1",
30+
"@babel/plugin-proposal-logical-assignment-operators": "^7.12.1",
31+
"@babel/plugin-proposal-numeric-separator": "^7.12.5",
32+
"@babel/plugin-proposal-partial-application": "^7.12.1",
33+
"@babel/plugin-proposal-pipeline-operator": "^7.12.1",
34+
"@babel/plugin-proposal-private-methods": "^7.12.1",
35+
"@babel/plugin-proposal-private-property-in-object": "^7.12.1",
36+
"@babel/plugin-proposal-throw-expressions": "^7.12.1",
37+
"@babel/plugin-syntax-import-assertions": "^7.12.1",
38+
"@babel/plugin-transform-runtime": "^7.12.1",
39+
"@babel/preset-env": "^7.12.1",
40+
"@pumpn/eslint-config": "^6.0.0",
41+
"@rollup/plugin-babel": "^5.2.1",
42+
"@rollup/plugin-commonjs": "^16.0.0",
4143
"@rollup/plugin-json": "^4.1.0",
42-
"@rollup/plugin-node-resolve": "^8.0.1",
43-
"concurrently": "^5.2.0",
44-
"documentation": "^13.0.1",
45-
"eslint": "^7.1.0",
46-
"jsdoc": "^3.6.4",
44+
"@rollup/plugin-node-resolve": "^10.0.0",
45+
"concurrently": "^5.3.0",
46+
"documentation": "^13.1.0",
47+
"eslint": "^7.12.1",
48+
"jsdoc": "^3.6.6",
4749
"jsdoc-babel": "^0.5.0",
48-
"rollup": "^2.15.0",
50+
"rollup": "^2.33.1",
4951
"rollup-plugin-clear": "^2.0.7",
50-
"rollup-plugin-filesize": "^9.0.0",
52+
"rollup-plugin-filesize": "^9.0.2",
5153
"rollup-plugin-node-globals": "^1.4.0",
5254
"rollup-plugin-node-polyfills": "^0.2.1",
5355
"rollup-plugin-notify": "^1.1.0",
5456
"rollup-plugin-progress": "^1.1.2",
55-
"rollup-plugin-terser": "^6.1.0",
56-
"rollup-plugin-visualizer": "^4.0.4"
57+
"rollup-plugin-terser": "^7.0.2",
58+
"rollup-plugin-visualizer": "^4.2.0"
5759
},
5860
"scripts": {
5961
"start": "yarn build:module && node ./dist/index.js",

src/classes/image-file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ImageFile {
9696
lossless: 1
9797
};
9898

99-
const result = webpModule.encode(rgbaToRgb(buffer), width, height, options); // encode image data and return a new Uint8Array
99+
const result = webpModule.encode(buffer, width, height, 4, options); // encode image data and return a new Uint8Array
100100

101101
await fs.writeFile(this.outputPath, result);
102102

0 commit comments

Comments
 (0)