@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 ADDED
@@ -0,0 +1,7 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /**
5
+ * The one thing the package exists to do, callable from JS.
6
+ */
7
+ export function answer(): number;
package/lab_wasm.js ADDED
@@ -0,0 +1,9 @@
1
+ /* @ts-self-types="./lab_wasm.d.ts" */
2
+ import * as wasm from "./lab_wasm_bg.wasm";
3
+ import { __wbg_set_wasm } from "./lab_wasm_bg.js";
4
+
5
+ __wbg_set_wasm(wasm);
6
+ wasm.__wbindgen_start();
7
+ export {
8
+ answer
9
+ } from "./lab_wasm_bg.js";
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
+ }
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
+ }