toilscript 0.1.0 → 0.1.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/README.md +2 -2
- package/bin/asinit.js +6 -6
- package/dist/asc.generated.d.ts +7 -2
- package/dist/asc.js +18 -1
- package/dist/asc.js.map +2 -2
- package/dist/importmap.json +2 -2
- package/dist/toilscript.generated.d.ts +7 -2
- package/dist/toilscript.js +24 -24
- package/dist/toilscript.js.map +3 -3
- package/dist/web.js +3 -3
- package/package.json +3 -3
- package/std/assembly/index.d.ts +1 -0
- package/std/assembly/toilscript.ts +16 -0
package/dist/web.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var ASSEMBLYSCRIPT_VERSION = "0.1.
|
|
1
|
+
var ASSEMBLYSCRIPT_VERSION = "0.1.1";
|
|
2
2
|
var ASSEMBLYSCRIPT_IMPORTMAP = {
|
|
3
3
|
"imports": {
|
|
4
|
-
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
5
|
-
"toilscript/asc": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
4
|
+
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.1/dist/toilscript.js",
|
|
5
|
+
"toilscript/asc": "https://cdn.jsdelivr.net/npm/toilscript@0.1.1/dist/asc.js",
|
|
6
6
|
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
|
|
7
7
|
"long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"toilscript",
|
|
9
9
|
"wasm"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.1.
|
|
11
|
+
"version": "0.1.1",
|
|
12
12
|
"author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"homepage": "https://github.com/dacely-cloud/toilscript",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"bin": {
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"toilscript": "./bin/asc.js",
|
|
72
|
+
"toilinit": "./bin/asinit.js"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"check": "npm run check:config && npm run check:import && npm run lint",
|
package/std/assembly/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ToilScript-native declarations.
|
|
3
|
+
*
|
|
4
|
+
* Compiler-level natives available everywhere with no import. `@main` is handled
|
|
5
|
+
* directly by the ToilScript compiler — it exports the decorated top-level
|
|
6
|
+
* function as the module's `main` entry — so this declaration exists only so
|
|
7
|
+
* editors and type-checking recognize the decorator. Future zero-import toil
|
|
8
|
+
* natives (globals/decorators) belong here too.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Marks a single top-level function as the module entry point. The compiler
|
|
13
|
+
* exports it as the WebAssembly export `main` — no `export` keyword needed.
|
|
14
|
+
* Exactly one `@main` is allowed per module.
|
|
15
|
+
*/
|
|
16
|
+
declare function main(...args: any[]): any;
|