@raviqqe/stak 0.2.20 → 0.2.22

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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@raviqqe/stak",
3
+ "type": "module",
3
4
  "description": "Stak Scheme VM in WebAssembly",
4
- "version": "0.2.20",
5
+ "version": "0.2.22",
5
6
  "license": "SEE LICENSE IN ../LICENSE",
6
7
  "repository": {
7
8
  "type": "git",
@@ -12,7 +13,7 @@
12
13
  "stak_wasm.js",
13
14
  "stak_wasm.d.ts"
14
15
  ],
15
- "module": "stak_wasm.js",
16
+ "main": "stak_wasm.js",
16
17
  "types": "stak_wasm.d.ts",
17
18
  "sideEffects": [
18
19
  "./snippets/*"
package/stak_wasm.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
+ * Compiles a source code.
4
5
  * @param {string} source
5
6
  * @returns {Uint8Array}
6
7
  */
7
8
  export function compile(source: string): Uint8Array;
8
9
  /**
10
+ * Interprets bytecodes with a standard input and returns its standard output.
9
11
  * @param {Uint8Array} bytecodes
10
12
  * @param {Uint8Array} input
11
13
  * @param {number} heap_size
@@ -13,6 +15,7 @@ export function compile(source: string): Uint8Array;
13
15
  */
14
16
  export function interpret(bytecodes: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
15
17
  /**
18
+ * Decodes bytecodes into its Markdown format.
16
19
  * @param {Uint8Array} bytecodes
17
20
  * @returns {string}
18
21
  */
package/stak_wasm.js CHANGED
@@ -117,6 +117,7 @@ function getArrayU8FromWasm0(ptr, len) {
117
117
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
118
118
  }
119
119
  /**
120
+ * Compiles a source code.
120
121
  * @param {string} source
121
122
  * @returns {Uint8Array}
122
123
  */
@@ -148,6 +149,7 @@ function passArray8ToWasm0(arg, malloc) {
148
149
  return ptr;
149
150
  }
150
151
  /**
152
+ * Interprets bytecodes with a standard input and returns its standard output.
151
153
  * @param {Uint8Array} bytecodes
152
154
  * @param {Uint8Array} input
153
155
  * @param {number} heap_size
@@ -177,6 +179,7 @@ export function interpret(bytecodes, input, heap_size) {
177
179
  }
178
180
 
179
181
  /**
182
+ * Decodes bytecodes into its Markdown format.
180
183
  * @param {Uint8Array} bytecodes
181
184
  * @returns {string}
182
185
  */
package/stak_wasm_bg.wasm CHANGED
Binary file