@raviqqe/stak 0.2.49 → 0.3.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/package.json +1 -1
- package/stak_wasm.d.ts +0 -7
- package/stak_wasm.js +0 -26
- package/stak_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/stak_wasm.d.ts
CHANGED
|
@@ -14,12 +14,6 @@ export function compile(source: string): Uint8Array;
|
|
|
14
14
|
* @returns {Uint8Array}
|
|
15
15
|
*/
|
|
16
16
|
export function interpret(bytecodes: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
|
|
17
|
-
/**
|
|
18
|
-
* Decodes bytecodes into its Markdown format.
|
|
19
|
-
* @param {Uint8Array} bytecodes
|
|
20
|
-
* @returns {string}
|
|
21
|
-
*/
|
|
22
|
-
export function decode(bytecodes: Uint8Array): string;
|
|
23
17
|
|
|
24
18
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
25
19
|
|
|
@@ -27,7 +21,6 @@ export interface InitOutput {
|
|
|
27
21
|
readonly memory: WebAssembly.Memory;
|
|
28
22
|
readonly compile: (a: number, b: number) => Array;
|
|
29
23
|
readonly interpret: (a: number, b: number, c: number, d: number, e: number) => Array;
|
|
30
|
-
readonly decode: (a: number, b: number) => Array;
|
|
31
24
|
readonly __wbindgen_export_0: WebAssembly.Table;
|
|
32
25
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
33
26
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/stak_wasm.js
CHANGED
|
@@ -128,32 +128,6 @@ export function interpret(bytecodes, input, heap_size) {
|
|
|
128
128
|
return v3;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
/**
|
|
132
|
-
* Decodes bytecodes into its Markdown format.
|
|
133
|
-
* @param {Uint8Array} bytecodes
|
|
134
|
-
* @returns {string}
|
|
135
|
-
*/
|
|
136
|
-
export function decode(bytecodes) {
|
|
137
|
-
let deferred3_0;
|
|
138
|
-
let deferred3_1;
|
|
139
|
-
try {
|
|
140
|
-
const ptr0 = passArray8ToWasm0(bytecodes, wasm.__wbindgen_malloc);
|
|
141
|
-
const len0 = WASM_VECTOR_LEN;
|
|
142
|
-
const ret = wasm.decode(ptr0, len0);
|
|
143
|
-
var ptr2 = ret[0];
|
|
144
|
-
var len2 = ret[1];
|
|
145
|
-
if (ret[3]) {
|
|
146
|
-
ptr2 = 0; len2 = 0;
|
|
147
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
148
|
-
}
|
|
149
|
-
deferred3_0 = ptr2;
|
|
150
|
-
deferred3_1 = len2;
|
|
151
|
-
return getStringFromWasm0(ptr2, len2);
|
|
152
|
-
} finally {
|
|
153
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
131
|
async function __wbg_load(module, imports) {
|
|
158
132
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
159
133
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
package/stak_wasm_bg.wasm
CHANGED
|
Binary file
|