wasm-image-optimization 2.0.5 → 2.0.7
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/dummy.d.ts +8 -0
- package/dist/dummy.js +8 -0
- package/package.json +6 -3
package/dist/dummy.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OptimizeParams, OptimizeResult } from "./core";
|
|
2
|
+
export type { OptimizeParams, OptimizeResult };
|
|
3
|
+
export declare const optimizeImage: (_params: OptimizeParams) => OptimizeResult;
|
|
4
|
+
export declare const setLimit: (_limit: number) => void;
|
|
5
|
+
export declare const close: () => void;
|
|
6
|
+
export declare const waitAll: () => Promise<void>;
|
|
7
|
+
export declare const waitReady: (_retryTime?: number) => Promise<void>;
|
|
8
|
+
export declare const launchWorker: () => Promise<void>;
|
package/dist/dummy.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const optimizeImage = (_params) => {
|
|
2
|
+
return undefined;
|
|
3
|
+
};
|
|
4
|
+
export const setLimit = (_limit) => { };
|
|
5
|
+
export const close = () => { };
|
|
6
|
+
export const waitAll = () => Promise.resolve();
|
|
7
|
+
export const waitReady = (_retryTime) => Promise.resolve();
|
|
8
|
+
export const launchWorker = () => Promise.resolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wasm-image-optimization",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Optimize images with wasm on edge runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,10 @@
|
|
|
35
35
|
},
|
|
36
36
|
"./workers": {
|
|
37
37
|
"types": "./dist/workers.d.ts",
|
|
38
|
-
"
|
|
38
|
+
"workerd": "./dist/dummy.js",
|
|
39
|
+
"node": "./dist/workers.js",
|
|
40
|
+
"browser": "./dist/workers.js",
|
|
41
|
+
"default": "./dist/dummy.js"
|
|
39
42
|
},
|
|
40
43
|
"./single": {
|
|
41
44
|
"types": "./dist/single.d.ts",
|
|
@@ -92,5 +95,5 @@
|
|
|
92
95
|
"worker-lib": "2.2.0"
|
|
93
96
|
},
|
|
94
97
|
"repository": "https://github.com/node-libraries/wasm-image-optimization",
|
|
95
|
-
"homepage": "https://github.com/node-libraries/wasm-image-optimization/packages/core#readme"
|
|
98
|
+
"homepage": "https://github.com/node-libraries/wasm-image-optimization/tree/master/packages/core#readme"
|
|
96
99
|
}
|