@swc/wasm 1.2.227 → 1.2.228
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 +52 -52
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
5
5
|
|
|
6
6
|
const heap = new Array(32).fill(undefined);
|
|
7
7
|
|
|
@@ -23,9 +23,7 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
cachedTextDecoder.decode();
|
|
26
|
+
let WASM_VECTOR_LEN = 0;
|
|
29
27
|
|
|
30
28
|
let cachedUint8Memory0 = new Uint8Array();
|
|
31
29
|
|
|
@@ -36,21 +34,6 @@ function getUint8Memory0() {
|
|
|
36
34
|
return cachedUint8Memory0;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
function getStringFromWasm0(ptr, len) {
|
|
40
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let WASM_VECTOR_LEN = 0;
|
|
53
|
-
|
|
54
37
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
38
|
|
|
56
39
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -117,6 +100,23 @@ function isLikeNone(x) {
|
|
|
117
100
|
return x === undefined || x === null;
|
|
118
101
|
}
|
|
119
102
|
|
|
103
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
|
+
|
|
105
|
+
cachedTextDecoder.decode();
|
|
106
|
+
|
|
107
|
+
function getStringFromWasm0(ptr, len) {
|
|
108
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function addHeapObject(obj) {
|
|
112
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
113
|
+
const idx = heap_next;
|
|
114
|
+
heap_next = heap[idx];
|
|
115
|
+
|
|
116
|
+
heap[idx] = obj;
|
|
117
|
+
return idx;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
120
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
121
121
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
122
122
|
const real = (...args) => {
|
|
@@ -142,7 +142,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
142
142
|
return real;
|
|
143
143
|
}
|
|
144
144
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
145
|
-
wasm.
|
|
145
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h474a5d2341fab4ae(arg0, arg1, addHeapObject(arg2));
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -287,14 +287,9 @@ function handleError(f, args) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
|
|
290
|
-
wasm.
|
|
290
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h941e0353bb9b8983(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
module.exports.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
294
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
295
|
-
return addHeapObject(ret);
|
|
296
|
-
}, arguments) };
|
|
297
|
-
|
|
298
293
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
299
294
|
takeObject(arg0);
|
|
300
295
|
};
|
|
@@ -309,30 +304,6 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
309
304
|
return ret;
|
|
310
305
|
};
|
|
311
306
|
|
|
312
|
-
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
313
|
-
try {
|
|
314
|
-
var state0 = {a: arg0, b: arg1};
|
|
315
|
-
var cb0 = (arg0, arg1) => {
|
|
316
|
-
const a = state0.a;
|
|
317
|
-
state0.a = 0;
|
|
318
|
-
try {
|
|
319
|
-
return __wbg_adapter_45(a, state0.b, arg0, arg1);
|
|
320
|
-
} finally {
|
|
321
|
-
state0.a = a;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
const ret = new Promise(cb0);
|
|
325
|
-
return addHeapObject(ret);
|
|
326
|
-
} finally {
|
|
327
|
-
state0.a = state0.b = 0;
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
332
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
333
|
-
return addHeapObject(ret);
|
|
334
|
-
};
|
|
335
|
-
|
|
336
307
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
337
308
|
const obj = getObject(arg1);
|
|
338
309
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -351,11 +322,40 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
351
322
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
352
323
|
};
|
|
353
324
|
|
|
325
|
+
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
326
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
327
|
+
return addHeapObject(ret);
|
|
328
|
+
};
|
|
329
|
+
|
|
354
330
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
355
331
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
356
332
|
return ret;
|
|
357
333
|
};
|
|
358
334
|
|
|
335
|
+
module.exports.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
336
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
337
|
+
return addHeapObject(ret);
|
|
338
|
+
}, arguments) };
|
|
339
|
+
|
|
340
|
+
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
341
|
+
try {
|
|
342
|
+
var state0 = {a: arg0, b: arg1};
|
|
343
|
+
var cb0 = (arg0, arg1) => {
|
|
344
|
+
const a = state0.a;
|
|
345
|
+
state0.a = 0;
|
|
346
|
+
try {
|
|
347
|
+
return __wbg_adapter_45(a, state0.b, arg0, arg1);
|
|
348
|
+
} finally {
|
|
349
|
+
state0.a = a;
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
const ret = new Promise(cb0);
|
|
353
|
+
return addHeapObject(ret);
|
|
354
|
+
} finally {
|
|
355
|
+
state0.a = state0.b = 0;
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
|
|
359
359
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
360
360
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
361
361
|
return addHeapObject(ret);
|
|
@@ -419,8 +419,8 @@ module.exports.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
|
|
|
419
419
|
return addHeapObject(ret);
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
module.exports.
|
|
423
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
422
|
+
module.exports.__wbindgen_closure_wrapper14543 = function(arg0, arg1, arg2) {
|
|
423
|
+
const ret = makeMutClosure(arg0, arg1, 153, __wbg_adapter_22);
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
|
426
426
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|