@swc/wasm 1.3.0 → 1.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/wasm.js +27 -27
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -87,6 +87,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
87
87
|
return ptr;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
function isLikeNone(x) {
|
|
91
|
+
return x === undefined || x === null;
|
|
92
|
+
}
|
|
93
|
+
|
|
90
94
|
let cachedInt32Memory0 = new Int32Array();
|
|
91
95
|
|
|
92
96
|
function getInt32Memory0() {
|
|
@@ -96,10 +100,6 @@ function getInt32Memory0() {
|
|
|
96
100
|
return cachedInt32Memory0;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
|
-
function isLikeNone(x) {
|
|
100
|
-
return x === undefined || x === null;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
103
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
104
|
|
|
105
105
|
cachedTextDecoder.decode();
|
|
@@ -294,7 +294,7 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
294
294
|
takeObject(arg0);
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
module.exports.
|
|
297
|
+
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
298
298
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
299
299
|
return addHeapObject(ret);
|
|
300
300
|
}, arguments) };
|
|
@@ -309,13 +309,9 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
309
309
|
return ret;
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
module.exports.
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
316
|
-
const len0 = WASM_VECTOR_LEN;
|
|
317
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
318
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
312
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
313
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
314
|
+
return ret;
|
|
319
315
|
};
|
|
320
316
|
|
|
321
317
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -327,17 +323,21 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
327
323
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
328
324
|
};
|
|
329
325
|
|
|
326
|
+
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
327
|
+
const obj = getObject(arg1);
|
|
328
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
329
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
332
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
333
|
+
};
|
|
334
|
+
|
|
330
335
|
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
331
336
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
332
337
|
return addHeapObject(ret);
|
|
333
338
|
};
|
|
334
339
|
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
337
|
-
return ret;
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
340
|
+
module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
341
341
|
try {
|
|
342
342
|
var state0 = {a: arg0, b: arg1};
|
|
343
343
|
var cb0 = (arg0, arg1) => {
|
|
@@ -361,27 +361,27 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
361
361
|
return addHeapObject(ret);
|
|
362
362
|
};
|
|
363
363
|
|
|
364
|
-
module.exports.
|
|
364
|
+
module.exports.__wbg_new0_a57059d72c5b7aee = function() {
|
|
365
365
|
const ret = new Date();
|
|
366
366
|
return addHeapObject(ret);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
module.exports.
|
|
369
|
+
module.exports.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
|
|
370
370
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
371
371
|
return ret;
|
|
372
372
|
};
|
|
373
373
|
|
|
374
|
-
module.exports.
|
|
374
|
+
module.exports.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
|
|
375
375
|
const ret = getObject(arg0).getTime();
|
|
376
376
|
return ret;
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
module.exports.
|
|
379
|
+
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
380
380
|
const ret = new Error();
|
|
381
381
|
return addHeapObject(ret);
|
|
382
382
|
};
|
|
383
383
|
|
|
384
|
-
module.exports.
|
|
384
|
+
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
385
385
|
const ret = getObject(arg1).stack;
|
|
386
386
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
387
387
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -389,7 +389,7 @@ module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
|
389
389
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
module.exports.
|
|
392
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
393
393
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
394
394
|
if (arg0 !== 0) { wasm.__wbindgen_export_4(arg0, arg1); }
|
|
395
395
|
console.error(v0);
|
|
@@ -399,7 +399,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
399
399
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
module.exports.
|
|
402
|
+
module.exports.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
403
403
|
const ret = Promise.resolve(getObject(arg0));
|
|
404
404
|
return addHeapObject(ret);
|
|
405
405
|
};
|
|
@@ -414,12 +414,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
414
414
|
return ret;
|
|
415
415
|
};
|
|
416
416
|
|
|
417
|
-
module.exports.
|
|
417
|
+
module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
418
418
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
419
419
|
return addHeapObject(ret);
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
module.exports.
|
|
422
|
+
module.exports.__wbindgen_closure_wrapper19930 = function(arg0, arg1, arg2) {
|
|
423
423
|
const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_22);
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|