@monumental-archive/lab-wasm 0.13.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/lab_wasm.d.ts +7 -0
- package/lab_wasm.js +9 -0
- package/lab_wasm_bg.js +22 -0
- package/lab_wasm_bg.wasm +0 -0
- package/package.json +19 -0
package/lab_wasm.d.ts
ADDED
package/lab_wasm.js
ADDED
package/lab_wasm_bg.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one thing the package exists to do, callable from JS.
|
|
3
|
+
* @returns {number}
|
|
4
|
+
*/
|
|
5
|
+
export function answer() {
|
|
6
|
+
const ret = wasm.answer();
|
|
7
|
+
return ret >>> 0;
|
|
8
|
+
}
|
|
9
|
+
export function __wbindgen_init_externref_table() {
|
|
10
|
+
const table = wasm.__wbindgen_externrefs;
|
|
11
|
+
const offset = table.grow(4);
|
|
12
|
+
table.set(0, undefined);
|
|
13
|
+
table.set(offset + 0, undefined);
|
|
14
|
+
table.set(offset + 1, null);
|
|
15
|
+
table.set(offset + 2, true);
|
|
16
|
+
table.set(offset + 3, false);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
let wasm;
|
|
20
|
+
export function __wbg_set_wasm(val) {
|
|
21
|
+
wasm = val;
|
|
22
|
+
}
|
package/lab_wasm_bg.wasm
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monumental-archive/lab-wasm",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"description": "Dummy wasm crate for release-pipeline testing",
|
|
5
|
+
"version": "0.13.1",
|
|
6
|
+
"license": "MIT OR Apache-2.0",
|
|
7
|
+
"files": [
|
|
8
|
+
"lab_wasm_bg.wasm",
|
|
9
|
+
"lab_wasm.js",
|
|
10
|
+
"lab_wasm_bg.js",
|
|
11
|
+
"lab_wasm.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"main": "lab_wasm.js",
|
|
14
|
+
"types": "lab_wasm.d.ts",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"./lab_wasm.js",
|
|
17
|
+
"./snippets/*"
|
|
18
|
+
]
|
|
19
|
+
}
|