@next/swc-wasm-web 12.3.2-canary.7 → 12.3.2
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 +35 -35
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -21,9 +21,7 @@ function takeObject(idx) {
|
|
|
21
21
|
return ret;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
cachedTextDecoder.decode();
|
|
24
|
+
let WASM_VECTOR_LEN = 0;
|
|
27
25
|
|
|
28
26
|
let cachedUint8Memory0 = new Uint8Array();
|
|
29
27
|
|
|
@@ -34,21 +32,6 @@ function getUint8Memory0() {
|
|
|
34
32
|
return cachedUint8Memory0;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
function getStringFromWasm0(ptr, len) {
|
|
38
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function addHeapObject(obj) {
|
|
42
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
43
|
-
const idx = heap_next;
|
|
44
|
-
heap_next = heap[idx];
|
|
45
|
-
|
|
46
|
-
heap[idx] = obj;
|
|
47
|
-
return idx;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
let WASM_VECTOR_LEN = 0;
|
|
51
|
-
|
|
52
35
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
53
36
|
|
|
54
37
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -115,6 +98,23 @@ function isLikeNone(x) {
|
|
|
115
98
|
return x === undefined || x === null;
|
|
116
99
|
}
|
|
117
100
|
|
|
101
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
102
|
+
|
|
103
|
+
cachedTextDecoder.decode();
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
113
|
+
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
118
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
119
119
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
120
120
|
const real = (...args) => {
|
|
@@ -320,6 +320,22 @@ function getImports() {
|
|
|
320
320
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
|
|
321
321
|
console.error(v0);
|
|
322
322
|
};
|
|
323
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
324
|
+
const obj = getObject(arg1);
|
|
325
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
326
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
327
|
+
const len0 = WASM_VECTOR_LEN;
|
|
328
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
329
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
330
|
+
};
|
|
331
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
332
|
+
const obj = getObject(arg1);
|
|
333
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
334
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
335
|
+
var len0 = WASM_VECTOR_LEN;
|
|
336
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
337
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
338
|
+
};
|
|
323
339
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
324
340
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
325
341
|
return addHeapObject(ret);
|
|
@@ -350,22 +366,6 @@ imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
|
350
366
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
351
367
|
return addHeapObject(ret);
|
|
352
368
|
};
|
|
353
|
-
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
354
|
-
const obj = getObject(arg1);
|
|
355
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
356
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
357
|
-
const len0 = WASM_VECTOR_LEN;
|
|
358
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
359
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
360
|
-
};
|
|
361
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
362
|
-
const obj = getObject(arg1);
|
|
363
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
364
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
365
|
-
var len0 = WASM_VECTOR_LEN;
|
|
366
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
367
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
368
|
-
};
|
|
369
369
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
370
370
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
371
371
|
return ret;
|
|
@@ -390,7 +390,7 @@ imports.wbg.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
|
|
|
390
390
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
391
391
|
return addHeapObject(ret);
|
|
392
392
|
};
|
|
393
|
-
imports.wbg.
|
|
393
|
+
imports.wbg.__wbindgen_closure_wrapper16577 = function(arg0, arg1, arg2) {
|
|
394
394
|
const ret = makeMutClosure(arg0, arg1, 168, __wbg_adapter_18);
|
|
395
395
|
return addHeapObject(ret);
|
|
396
396
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|