@swc/wasm-web 1.2.244 → 1.2.247
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/wasm-web.d.ts +6 -6
- package/wasm-web.js +27 -27
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -2838,14 +2838,14 @@ export interface InitOutput {
|
|
|
2838
2838
|
readonly transform: (a: number, b: number, c: number) => number;
|
|
2839
2839
|
readonly printSync: (a: number, b: number, c: number) => void;
|
|
2840
2840
|
readonly print: (a: number, b: number) => number;
|
|
2841
|
-
readonly
|
|
2842
|
-
readonly
|
|
2841
|
+
readonly __wbindgen_export_0: (a: number) => number;
|
|
2842
|
+
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
|
|
2843
2843
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
2844
|
-
readonly
|
|
2844
|
+
readonly __wbindgen_export_3: (a: number, b: number, c: number) => void;
|
|
2845
2845
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
2846
|
-
readonly
|
|
2847
|
-
readonly
|
|
2848
|
-
readonly
|
|
2846
|
+
readonly __wbindgen_export_4: (a: number, b: number) => void;
|
|
2847
|
+
readonly __wbindgen_export_5: (a: number) => void;
|
|
2848
|
+
readonly __wbindgen_export_6: (a: number, b: number, c: number, d: number) => void;
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
package/wasm-web.js
CHANGED
|
@@ -85,6 +85,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
85
85
|
return ptr;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
function isLikeNone(x) {
|
|
89
|
+
return x === undefined || x === null;
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
let cachedInt32Memory0 = new Int32Array();
|
|
89
93
|
|
|
90
94
|
function getInt32Memory0() {
|
|
@@ -94,10 +98,6 @@ function getInt32Memory0() {
|
|
|
94
98
|
return cachedInt32Memory0;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
function isLikeNone(x) {
|
|
98
|
-
return x === undefined || x === null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
101
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
102
102
|
|
|
103
103
|
cachedTextDecoder.decode();
|
|
@@ -140,7 +140,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
140
140
|
return real;
|
|
141
141
|
}
|
|
142
142
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
143
|
-
wasm.
|
|
143
|
+
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
@@ -281,11 +281,11 @@ function handleError(f, args) {
|
|
|
281
281
|
try {
|
|
282
282
|
return f.apply(this, args);
|
|
283
283
|
} catch (e) {
|
|
284
|
-
wasm.
|
|
284
|
+
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
|
|
288
|
-
wasm.
|
|
288
|
+
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
async function load(module, imports) {
|
|
@@ -325,6 +325,10 @@ function getImports() {
|
|
|
325
325
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
326
326
|
takeObject(arg0);
|
|
327
327
|
};
|
|
328
|
+
imports.wbg.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
329
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
330
|
+
return addHeapObject(ret);
|
|
331
|
+
}, arguments) };
|
|
328
332
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
329
333
|
const ret = getObject(arg0) === null;
|
|
330
334
|
return ret;
|
|
@@ -333,34 +337,30 @@ function getImports() {
|
|
|
333
337
|
const ret = getObject(arg0) === undefined;
|
|
334
338
|
return ret;
|
|
335
339
|
};
|
|
336
|
-
imports.wbg.
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
340
|
-
const len0 = WASM_VECTOR_LEN;
|
|
341
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
342
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
340
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
341
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
342
|
+
return ret;
|
|
343
343
|
};
|
|
344
344
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
345
345
|
const obj = getObject(arg1);
|
|
346
346
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
347
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
347
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
348
348
|
var len0 = WASM_VECTOR_LEN;
|
|
349
349
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
350
350
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
351
351
|
};
|
|
352
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
353
|
+
const obj = getObject(arg1);
|
|
354
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
355
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
357
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
358
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
359
|
+
};
|
|
352
360
|
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
353
361
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
354
362
|
return addHeapObject(ret);
|
|
355
363
|
};
|
|
356
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
357
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
358
|
-
return ret;
|
|
359
|
-
};
|
|
360
|
-
imports.wbg.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
361
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
362
|
-
return addHeapObject(ret);
|
|
363
|
-
}, arguments) };
|
|
364
364
|
imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
365
365
|
try {
|
|
366
366
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -401,14 +401,14 @@ function getImports() {
|
|
|
401
401
|
};
|
|
402
402
|
imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
403
403
|
const ret = getObject(arg1).stack;
|
|
404
|
-
const ptr0 = passStringToWasm0(ret, wasm.
|
|
404
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
405
405
|
const len0 = WASM_VECTOR_LEN;
|
|
406
406
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
407
407
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
408
408
|
};
|
|
409
409
|
imports.wbg.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
410
410
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
411
|
-
if (arg0 !== 0) { wasm.
|
|
411
|
+
if (arg0 !== 0) { wasm.__wbindgen_export_4(arg0, arg1); }
|
|
412
412
|
console.error(v0);
|
|
413
413
|
};
|
|
414
414
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
@@ -431,8 +431,8 @@ imports.wbg.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
|
|
|
431
431
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
432
432
|
return addHeapObject(ret);
|
|
433
433
|
};
|
|
434
|
-
imports.wbg.
|
|
435
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
434
|
+
imports.wbg.__wbindgen_closure_wrapper14777 = function(arg0, arg1, arg2) {
|
|
435
|
+
const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_22);
|
|
436
436
|
return addHeapObject(ret);
|
|
437
437
|
};
|
|
438
438
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|