wasm-image-optimization 1.2.9 → 1.2.10
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.
|
@@ -4,9 +4,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
4
4
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/worker-lib@2.0.
|
|
7
|
+
// node_modules/.pnpm/worker-lib@2.0.3/node_modules/worker-lib/dist/cjs/node.js
|
|
8
8
|
var require_node = __commonJS({
|
|
9
|
-
"node_modules/.pnpm/worker-lib@2.0.
|
|
9
|
+
"node_modules/.pnpm/worker-lib@2.0.3/node_modules/worker-lib/dist/cjs/node.js"(exports2) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12
12
|
exports2.initWorker = exports2.createWorker = void 0;
|
|
@@ -85,6 +85,7 @@ var require_node = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
const setLimit = (limit2) => {
|
|
88
|
+
workers.forEach((w) => w.worker?.terminate());
|
|
88
89
|
workers = Array(limit2).fill(void 0).map(() => ({}));
|
|
89
90
|
};
|
|
90
91
|
return { execute, waitAll, close, setLimit };
|
|
@@ -3926,7 +3926,7 @@ var init_libImage = __esm({
|
|
|
3926
3926
|
}
|
|
3927
3927
|
});
|
|
3928
3928
|
|
|
3929
|
-
// node_modules/.pnpm/worker-lib@2.0.
|
|
3929
|
+
// node_modules/.pnpm/worker-lib@2.0.3/node_modules/worker-lib/dist/esm/index.js
|
|
3930
3930
|
var initWorker = (WorkerProc) => {
|
|
3931
3931
|
const worker = self;
|
|
3932
3932
|
worker.addEventListener("message", async (e) => {
|
|
@@ -3940,7 +3940,7 @@
|
|
|
3940
3940
|
}
|
|
3941
3941
|
});
|
|
3942
3942
|
|
|
3943
|
-
// node_modules/.pnpm/worker-lib@2.0.
|
|
3943
|
+
// node_modules/.pnpm/worker-lib@2.0.3/node_modules/worker-lib/dist/esm/index.js
|
|
3944
3944
|
var initWorker = (WorkerProc) => {
|
|
3945
3945
|
const worker = self;
|
|
3946
3946
|
worker.addEventListener("message", async (e) => {
|
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.2.
|
|
4
|
+
"version": "1.2.10",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "yarn ts-node test",
|
|
7
7
|
"lint:fix": "eslint --fix src/ && prettier -w src",
|
|
@@ -94,25 +94,25 @@
|
|
|
94
94
|
},
|
|
95
95
|
"license": "MIT",
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"worker-lib": "2.0.
|
|
97
|
+
"worker-lib": "2.0.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@eslint/js": "9.21.0",
|
|
101
101
|
"@types/node": "22.13.5",
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
103
|
-
"@typescript-eslint/parser": "^8.
|
|
102
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
103
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
104
104
|
"cpy-cli": "^5.0.0",
|
|
105
105
|
"esbuild": "0.25.0",
|
|
106
106
|
"eslint": "9.21.0",
|
|
107
|
-
"eslint-config-prettier": "^10.0.
|
|
107
|
+
"eslint-config-prettier": "^10.0.2",
|
|
108
108
|
"eslint-import-resolver-typescript": "^3.8.3",
|
|
109
109
|
"eslint-plugin-import": "^2.31.0",
|
|
110
110
|
"prettier": "^3.5.2",
|
|
111
111
|
"ts-node": "^10.9.2",
|
|
112
112
|
"tsx": "4.19.3",
|
|
113
113
|
"typescript": "^5.7.3",
|
|
114
|
-
"typescript-eslint": "^8.
|
|
115
|
-
"vite": "6.
|
|
114
|
+
"typescript-eslint": "^8.25.0",
|
|
115
|
+
"vite": "6.2.0"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|