heic-to 1.1.12 → 1.1.13
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/README.md +2 -1
- package/dist/csp/heic-to.js +1 -1
- package/dist/csp/heic-to.min.js +1 -1
- package/dist/heic-to.js +1 -1
- package/dist/heic-to.min.js +1 -1
- package/dist/iife/heic-to.js +10 -7
- package/esbuild.mjs +5 -5
- package/package.json +6 -6
- package/src/lib/libheif-without-unsafe-eval.js +20 -20
- package/src/lib/libheif.js +20 -20
package/esbuild.mjs
CHANGED
|
@@ -25,7 +25,7 @@ await esbuild.build({
|
|
|
25
25
|
target: 'es6',
|
|
26
26
|
platform: 'browser',
|
|
27
27
|
outfile: 'tmp/worker.js',
|
|
28
|
-
external: ['fs', 'path']
|
|
28
|
+
external: ['fs', 'path', 'crypto']
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
const workerFileContent = fs.readFileSync('tmp/worker.js', 'utf8')
|
|
@@ -58,7 +58,7 @@ await esbuild.build({
|
|
|
58
58
|
target: 'es6',
|
|
59
59
|
platform: 'browser',
|
|
60
60
|
outfile: 'tmp/worker.min.js',
|
|
61
|
-
external: ['fs', 'path']
|
|
61
|
+
external: ['fs', 'path', 'crypto']
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
const workerFileMinifyContent = fs.readFileSync('tmp/worker.min.js', 'utf8')
|
|
@@ -91,7 +91,7 @@ await esbuild.build({
|
|
|
91
91
|
target: 'es6',
|
|
92
92
|
platform: 'browser',
|
|
93
93
|
outfile: 'tmp/csp/worker.js',
|
|
94
|
-
external: ['fs', 'path'],
|
|
94
|
+
external: ['fs', 'path', 'crypto'],
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
const cspWorkerFileContent = fs.readFileSync('tmp/csp/worker.js', 'utf8')
|
|
@@ -124,7 +124,7 @@ await esbuild.build({
|
|
|
124
124
|
target: 'es6',
|
|
125
125
|
platform: 'browser',
|
|
126
126
|
outfile: 'tmp/csp/worker.min.js',
|
|
127
|
-
external: ['fs', 'path']
|
|
127
|
+
external: ['fs', 'path', 'crypto']
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
const cspWorkerFileMinifyContent = fs.readFileSync('tmp/csp/worker.min.js', 'utf8')
|
|
@@ -157,7 +157,7 @@ await esbuild.build({
|
|
|
157
157
|
target: 'es6',
|
|
158
158
|
platform: 'browser',
|
|
159
159
|
outfile: 'tmp/iife/worker.js',
|
|
160
|
-
external: ['fs', 'path']
|
|
160
|
+
external: ['fs', 'path', 'crypto']
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
const iifeWorkerFileMinifyContent = fs.readFileSync('tmp/iife/worker.js', 'utf8')
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heic-to",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Converting HEIF/HEIF image formats to PNG/JPEG in the browser",
|
|
5
5
|
"main": "dist/heic-to.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
+
"types": "./dist/heic-to.d.ts",
|
|
8
9
|
"import": "./dist/heic-to.js",
|
|
9
|
-
"require": "./dist/heic-to.js"
|
|
10
|
-
"types": "./dist/heic-to.d.ts"
|
|
10
|
+
"require": "./dist/heic-to.js"
|
|
11
11
|
},
|
|
12
12
|
"./csp": {
|
|
13
|
+
"types": "./dist/csp/heic-to.d.ts",
|
|
13
14
|
"import": "./dist/csp/heic-to.js",
|
|
14
|
-
"require": "./dist/csp/heic-to.js"
|
|
15
|
-
"types": "./dist/csp/heic-to.d.ts"
|
|
15
|
+
"require": "./dist/csp/heic-to.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"license": "LGPL-3.0",
|
|
40
40
|
"homepage": "https://github.com/hoppergee/heic-to",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"esbuild": "0.
|
|
42
|
+
"esbuild": "^0.25.4",
|
|
43
43
|
"http-server": "^14.1.1"
|
|
44
44
|
}
|
|
45
45
|
}
|