@dacely/toilscript-loader 0.0.0 → 0.1.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/README.md +3 -3
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ToilScript Loader
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@dacely/toilscript-loader` — a tiny module loader that makes working with ToilScript modules as convenient as it gets without sacrificing efficiency. It about mirrors the relevant parts of the WebAssembly API while also providing utility to allocate and read strings, arrays and classes.
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**NOTE:** This mirrors the original AssemblyScript loader (which upstream deprecated in 0.20 in favor of [static bindings](https://www.assemblyscript.org/compiler.html#host-bindings)). It is provided for ToilScript modules that still use the loader pattern.
|
|
6
6
|
|
|
7
7
|
## Example
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -9,20 +9,23 @@
|
|
|
9
9
|
"webassembly",
|
|
10
10
|
"wasm"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.1.0",
|
|
13
13
|
"author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
|
|
14
14
|
"contributors": [
|
|
15
15
|
"MaxGraey <maxgraey@gmail.com>"
|
|
16
16
|
],
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
|
-
"homepage": "https://
|
|
18
|
+
"homepage": "https://github.com/dacely-cloud/toilscript",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/dacely-cloud/toilscript.git",
|
|
22
22
|
"directory": "lib/loader"
|
|
23
23
|
},
|
|
24
24
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "https://github.com/dacely-cloud/toilscript/issues"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
26
29
|
},
|
|
27
30
|
"type": "module",
|
|
28
31
|
"main": "./umd/index.js",
|