@rrule-rust/lib-wasm32-wasi 3.0.0-next.9 → 3.0.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rrule-rust/lib-wasm32-wasi",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"main": "rrule-rust.wasi.cjs",
|
|
5
5
|
"files": [
|
|
6
6
|
"rrule-rust.wasm32-wasi.wasm",
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
"wasi-worker.mjs",
|
|
10
10
|
"wasi-worker-browser.mjs"
|
|
11
11
|
],
|
|
12
|
-
"description": "RRule implementation for Node.js written in Rust",
|
|
12
|
+
"description": "RRule implementation for browsers and Node.js written in Rust",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"rrule",
|
|
15
15
|
"icalendar",
|
|
16
16
|
"rust",
|
|
17
|
+
"wasm",
|
|
17
18
|
"rs"
|
|
18
19
|
],
|
|
19
20
|
"author": {
|
|
@@ -26,11 +27,12 @@
|
|
|
26
27
|
"node": ">=14.0.0"
|
|
27
28
|
},
|
|
28
29
|
"repository": "lsndr/rrule-rust",
|
|
29
|
-
"browser": "rrule-rust.wasi-browser.js",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@napi-rs/wasm-runtime": "^1.0.3"
|
|
32
|
-
},
|
|
33
30
|
"publishConfig": {
|
|
31
|
+
"registry": "https://registry.npmjs.org/",
|
|
34
32
|
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"browser": "rrule-rust.wasi-browser.js",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@napi-rs/wasm-runtime": "^1.0.7"
|
|
35
37
|
}
|
|
36
38
|
}
|
package/rrule-rust.wasi.cjs
CHANGED
|
@@ -34,17 +34,11 @@ const __sharedMemory = new WebAssembly.Memory({
|
|
|
34
34
|
|
|
35
35
|
let __wasmFilePath = __nodePath.join(__dirname, 'rrule-rust.wasm32-wasi.wasm')
|
|
36
36
|
const __wasmDebugFilePath = __nodePath.join(__dirname, 'rrule-rust.wasm32-wasi.debug.wasm')
|
|
37
|
-
const __wasmPackageFilePath = __nodePath.resolve('node_modules/@rrule-rust/lib-wasm32-wasi/rrule-rust.wasm32-wasi.wasm')
|
|
38
|
-
const __wasmPackageDebugFilePath = __nodePath.resolve('node_modules/@rrule-rust/lib-wasm32-wasi/rrule-rust.wasm32-wasi.debug.wasm')
|
|
39
37
|
|
|
40
38
|
if (__nodeFs.existsSync(__wasmDebugFilePath)) {
|
|
41
39
|
__wasmFilePath = __wasmDebugFilePath
|
|
42
|
-
} else if (__nodeFs.existsSync(__wasmFilePath)) {
|
|
43
|
-
|
|
44
|
-
} else if (__nodeFs.existsSync(__wasmPackageDebugFilePath)) {
|
|
45
|
-
__wasmFilePath = __wasmPackageDebugFilePath
|
|
46
|
-
} else if (__nodeFs.existsSync(__wasmPackageFilePath)) {
|
|
47
|
-
__wasmFilePath = __wasmPackageFilePath
|
|
40
|
+
} else if (!__nodeFs.existsSync(__wasmFilePath)) {
|
|
41
|
+
__wasmFilePath = __nodePath.resolve('node_modules/@rrule-rust/lib-wasm32-wasi/rrule-rust.wasm32-wasi.debug.wasm')
|
|
48
42
|
}
|
|
49
43
|
|
|
50
44
|
const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule } = __emnapiInstantiateNapiModuleSync(__nodeFs.readFileSync(__wasmFilePath), {
|
|
Binary file
|