@napi-rs/tar-wasm32-wasi 1.0.1 → 1.1.1
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/package.json +4 -2
- package/tar.wasi-browser.js +2 -0
- package/tar.wasi.cjs +2 -1
- package/tar.wasm32-wasi.wasm +0 -0
- package/wasi-worker-browser.mjs +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/tar-wasm32-wasi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"cpu": [
|
|
5
5
|
"wasm32"
|
|
6
6
|
],
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"browser": "tar.wasi-browser.js",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@napi-rs/wasm-runtime": "^1.
|
|
35
|
+
"@napi-rs/wasm-runtime": "^1.1.6",
|
|
36
|
+
"@emnapi/core": "1.11.2",
|
|
37
|
+
"@emnapi/runtime": "1.11.2"
|
|
36
38
|
}
|
|
37
39
|
}
|
package/tar.wasi-browser.js
CHANGED
|
@@ -36,6 +36,7 @@ const {
|
|
|
36
36
|
type: 'module',
|
|
37
37
|
})
|
|
38
38
|
|
|
39
|
+
|
|
39
40
|
return worker
|
|
40
41
|
},
|
|
41
42
|
overwriteImports(importObject) {
|
|
@@ -57,6 +58,7 @@ const {
|
|
|
57
58
|
})
|
|
58
59
|
export default __napiModule.exports
|
|
59
60
|
export const Archive = __napiModule.exports.Archive
|
|
61
|
+
export const Builder = __napiModule.exports.Builder
|
|
60
62
|
export const Entries = __napiModule.exports.Entries
|
|
61
63
|
export const Entry = __napiModule.exports.Entry
|
|
62
64
|
export const Header = __napiModule.exports.Header
|
package/tar.wasi.cjs
CHANGED
|
@@ -39,7 +39,7 @@ if (__nodeFs.existsSync(__wasmDebugFilePath)) {
|
|
|
39
39
|
__wasmFilePath = __wasmDebugFilePath
|
|
40
40
|
} else if (!__nodeFs.existsSync(__wasmFilePath)) {
|
|
41
41
|
try {
|
|
42
|
-
__wasmFilePath =
|
|
42
|
+
__wasmFilePath = require.resolve('@napi-rs/tar-wasm32-wasi/tar.wasm32-wasi.wasm')
|
|
43
43
|
} catch {
|
|
44
44
|
throw new Error('Cannot find tar.wasm32-wasi.wasm file, and @napi-rs/tar-wasm32-wasi package is not installed.')
|
|
45
45
|
}
|
|
@@ -109,6 +109,7 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
|
|
|
109
109
|
})
|
|
110
110
|
module.exports = __napiModule.exports
|
|
111
111
|
module.exports.Archive = __napiModule.exports.Archive
|
|
112
|
+
module.exports.Builder = __napiModule.exports.Builder
|
|
112
113
|
module.exports.Entries = __napiModule.exports.Entries
|
|
113
114
|
module.exports.Entry = __napiModule.exports.Entry
|
|
114
115
|
module.exports.Header = __napiModule.exports.Header
|
package/tar.wasm32-wasi.wasm
CHANGED
|
Binary file
|
package/wasi-worker-browser.mjs
CHANGED
|
@@ -10,6 +10,7 @@ const handler = new MessageHandler({
|
|
|
10
10
|
printErr: function() {
|
|
11
11
|
// eslint-disable-next-line no-console
|
|
12
12
|
console.error.apply(console, arguments)
|
|
13
|
+
|
|
13
14
|
},
|
|
14
15
|
})
|
|
15
16
|
return instantiateNapiModuleSync(wasmModule, {
|
|
@@ -25,6 +26,7 @@ const handler = new MessageHandler({
|
|
|
25
26
|
},
|
|
26
27
|
})
|
|
27
28
|
},
|
|
29
|
+
|
|
28
30
|
})
|
|
29
31
|
|
|
30
32
|
globalThis.onmessage = function (e) {
|