@swc/wasm-web 1.2.227 → 1.2.230
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 +2 -2
- package/wasm-web.js +48 -48
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -2841,11 +2841,11 @@ export interface InitOutput {
|
|
|
2841
2841
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
2842
2842
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
2843
2843
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
2844
|
-
readonly
|
|
2844
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h474a5d2341fab4ae: (a: number, b: number, c: number) => void;
|
|
2845
2845
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
2846
2846
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
2847
2847
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
2848
|
-
readonly
|
|
2848
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h941e0353bb9b8983: (a: number, b: number, c: number, d: number) => void;
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
package/wasm-web.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) => {
|
|
@@ -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._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h474a5d2341fab4ae(arg0, arg1, addHeapObject(arg2));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
@@ -285,7 +285,7 @@ function handleError(f, args) {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
|
|
288
|
-
wasm.
|
|
288
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h941e0353bb9b8983(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
async function load(module, imports) {
|
|
@@ -322,10 +322,6 @@ async function load(module, imports) {
|
|
|
322
322
|
function getImports() {
|
|
323
323
|
const imports = {};
|
|
324
324
|
imports.wbg = {};
|
|
325
|
-
imports.wbg.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
326
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
327
|
-
return addHeapObject(ret);
|
|
328
|
-
}, arguments) };
|
|
329
325
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
330
326
|
takeObject(arg0);
|
|
331
327
|
};
|
|
@@ -337,28 +333,6 @@ function getImports() {
|
|
|
337
333
|
const ret = getObject(arg0) === undefined;
|
|
338
334
|
return ret;
|
|
339
335
|
};
|
|
340
|
-
imports.wbg.__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
|
-
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
359
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
360
|
-
return addHeapObject(ret);
|
|
361
|
-
};
|
|
362
336
|
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
363
337
|
const obj = getObject(arg1);
|
|
364
338
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -375,10 +349,36 @@ function getImports() {
|
|
|
375
349
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
376
350
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
377
351
|
};
|
|
352
|
+
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
353
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
354
|
+
return addHeapObject(ret);
|
|
355
|
+
};
|
|
378
356
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
379
357
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
380
358
|
return ret;
|
|
381
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
|
+
imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
365
|
+
try {
|
|
366
|
+
var state0 = {a: arg0, b: arg1};
|
|
367
|
+
var cb0 = (arg0, arg1) => {
|
|
368
|
+
const a = state0.a;
|
|
369
|
+
state0.a = 0;
|
|
370
|
+
try {
|
|
371
|
+
return __wbg_adapter_45(a, state0.b, arg0, arg1);
|
|
372
|
+
} finally {
|
|
373
|
+
state0.a = a;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
const ret = new Promise(cb0);
|
|
377
|
+
return addHeapObject(ret);
|
|
378
|
+
} finally {
|
|
379
|
+
state0.a = state0.b = 0;
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
382
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
383
383
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
384
384
|
return addHeapObject(ret);
|
|
@@ -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_wrapper14545 = function(arg0, arg1, arg2) {
|
|
435
|
+
const ret = makeMutClosure(arg0, arg1, 153, __wbg_adapter_22);
|
|
436
436
|
return addHeapObject(ret);
|
|
437
437
|
};
|
|
438
438
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|