wasm-image-optimization 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/libImage.js +1 -1
- package/dist/cjs/libImage.wasm +0 -0
- package/dist/cjs/node/cjs-worker.d.ts +1 -1
- package/dist/cjs/node/node-worker.js +358 -137
- package/dist/esm/libImage.js +0 -0
- package/dist/esm/web-worker.js +231 -96
- package/dist/web-worker/index.d.ts +1 -1
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OptimizeParams, OptimizeResult } from "../types/index.js";
|
|
2
2
|
export type { OptimizeParams, OptimizeResult };
|
|
3
|
-
declare const setLimit: (
|
|
3
|
+
declare const setLimit: (newLimit: number) => void, close: () => void, waitAll: () => Promise<void>, waitReady: (retryTime?: number) => Promise<void>, launchWorker: () => Promise<void[]>;
|
|
4
4
|
export declare const optimizeImage: (params: OptimizeParams) => Promise<Uint8Array<ArrayBuffer> | undefined>;
|
|
5
5
|
export declare const optimizeImageExt: (params: OptimizeParams) => Promise<{
|
|
6
6
|
data: Uint8Array<ArrayBuffer>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wasm-image-optimization",
|
|
3
3
|
"description": "Optimize images with wasm on edge runtime",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "yarn ts-node test",
|
|
7
7
|
"lint:fix": "eslint --fix src/ && prettier -w src",
|
|
@@ -80,24 +80,24 @@
|
|
|
80
80
|
"license": "MIT",
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"mkdirp": "3.0.1",
|
|
83
|
-
"worker-lib": "2.0
|
|
83
|
+
"worker-lib": "2.2.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@eslint/js": "
|
|
87
|
-
"@types/node": "25.0
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
89
|
-
"@typescript-eslint/parser": "^8.
|
|
90
|
-
"cpy-cli": "^
|
|
91
|
-
"esbuild": "0.27.
|
|
92
|
-
"eslint": "
|
|
86
|
+
"@eslint/js": "10.0.1",
|
|
87
|
+
"@types/node": "25.3.0",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
89
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
90
|
+
"cpy-cli": "^7.0.0",
|
|
91
|
+
"esbuild": "0.27.3",
|
|
92
|
+
"eslint": "10.0.1",
|
|
93
93
|
"eslint-config-prettier": "^10.1.8",
|
|
94
94
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
95
95
|
"eslint-plugin-import": "^2.32.0",
|
|
96
|
-
"prettier": "^3.8.
|
|
96
|
+
"prettier": "^3.8.1",
|
|
97
97
|
"ts-node": "^10.9.2",
|
|
98
98
|
"tsx": "4.21.0",
|
|
99
99
|
"typescript": "^5.9.3",
|
|
100
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"typescript-eslint": "^8.56.0",
|
|
101
101
|
"vite": "7.3.1"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|