strictjs-runtime 1.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/index.js +20 -0
- package/package.json +23 -0
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import init, {
|
|
2
|
+
get_memory,
|
|
3
|
+
HeapType,
|
|
4
|
+
StrictArray,
|
|
5
|
+
StrictForLoop,
|
|
6
|
+
StrictFunction,
|
|
7
|
+
StrictObject
|
|
8
|
+
} from "./pkg/strictjs_runtime.js";
|
|
9
|
+
|
|
10
|
+
export default async function strictInit() {
|
|
11
|
+
await init();
|
|
12
|
+
return {
|
|
13
|
+
get_memory,
|
|
14
|
+
HeapType,
|
|
15
|
+
StrictArray,
|
|
16
|
+
StrictForLoop,
|
|
17
|
+
StrictFunction,
|
|
18
|
+
StrictObject
|
|
19
|
+
};
|
|
20
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "strictjs-runtime",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A low-level runtime for StrictJS with WebAssembly support",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"pkg",
|
|
9
|
+
"index.js"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "echo 'Add your build script here, e.g., wasm-pack build'",
|
|
13
|
+
"test": "node test.js"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"strictjs",
|
|
17
|
+
"wasm",
|
|
18
|
+
"runtime",
|
|
19
|
+
"lowlevel"
|
|
20
|
+
],
|
|
21
|
+
"author": "Your Name",
|
|
22
|
+
"license": "MIT"
|
|
23
|
+
}
|