@swc/wasm-web 1.2.224 → 1.2.227
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 +4 -4
- package/wasm-web.js +44 -44
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -2834,18 +2834,18 @@ export interface InitOutput {
|
|
|
2834
2834
|
readonly minify: (a: number, b: number) => number;
|
|
2835
2835
|
readonly parseSync: (a: number, b: number, c: number) => void;
|
|
2836
2836
|
readonly parse: (a: number, b: number) => number;
|
|
2837
|
-
readonly printSync: (a: number, b: number, c: number) => void;
|
|
2838
|
-
readonly print: (a: number, b: number) => number;
|
|
2839
2837
|
readonly transformSync: (a: number, b: number, c: number, d: number) => void;
|
|
2840
2838
|
readonly transform: (a: number, b: number, c: number) => number;
|
|
2839
|
+
readonly printSync: (a: number, b: number, c: number) => void;
|
|
2840
|
+
readonly print: (a: number, b: number) => number;
|
|
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__h2a066990b442725f: (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__h48d92760bcda3ab6: (a: number, b: number, c: number, d: number) => void;
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
package/wasm-web.js
CHANGED
|
@@ -102,10 +102,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
102
102
|
return ptr;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function isLikeNone(x) {
|
|
106
|
-
return x === undefined || x === null;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
105
|
let cachedInt32Memory0 = new Int32Array();
|
|
110
106
|
|
|
111
107
|
function getInt32Memory0() {
|
|
@@ -115,6 +111,10 @@ function getInt32Memory0() {
|
|
|
115
111
|
return cachedInt32Memory0;
|
|
116
112
|
}
|
|
117
113
|
|
|
114
|
+
function isLikeNone(x) {
|
|
115
|
+
return x === undefined || x === null;
|
|
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__h2a066990b442725f(arg0, arg1, addHeapObject(arg2));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
@@ -208,12 +208,13 @@ export function parse(s, opts) {
|
|
|
208
208
|
/**
|
|
209
209
|
* @param {any} s
|
|
210
210
|
* @param {any} opts
|
|
211
|
+
* @param {any} experimental_plugin_bytes_resolver
|
|
211
212
|
* @returns {any}
|
|
212
213
|
*/
|
|
213
|
-
export function
|
|
214
|
+
export function transformSync(s, opts, experimental_plugin_bytes_resolver) {
|
|
214
215
|
try {
|
|
215
216
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
216
|
-
wasm.
|
|
217
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts), addHeapObject(experimental_plugin_bytes_resolver));
|
|
217
218
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
218
219
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
219
220
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -229,23 +230,23 @@ export function printSync(s, opts) {
|
|
|
229
230
|
/**
|
|
230
231
|
* @param {any} s
|
|
231
232
|
* @param {any} opts
|
|
233
|
+
* @param {any} experimental_plugin_bytes_resolver
|
|
232
234
|
* @returns {Promise<any>}
|
|
233
235
|
*/
|
|
234
|
-
export function
|
|
235
|
-
const ret = wasm.
|
|
236
|
+
export function transform(s, opts, experimental_plugin_bytes_resolver) {
|
|
237
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts), addHeapObject(experimental_plugin_bytes_resolver));
|
|
236
238
|
return takeObject(ret);
|
|
237
239
|
}
|
|
238
240
|
|
|
239
241
|
/**
|
|
240
242
|
* @param {any} s
|
|
241
243
|
* @param {any} opts
|
|
242
|
-
* @param {any} experimental_plugin_bytes_resolver
|
|
243
244
|
* @returns {any}
|
|
244
245
|
*/
|
|
245
|
-
export function
|
|
246
|
+
export function printSync(s, opts) {
|
|
246
247
|
try {
|
|
247
248
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
248
|
-
wasm.
|
|
249
|
+
wasm.printSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
249
250
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
250
251
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
251
252
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -261,11 +262,10 @@ export function transformSync(s, opts, experimental_plugin_bytes_resolver) {
|
|
|
261
262
|
/**
|
|
262
263
|
* @param {any} s
|
|
263
264
|
* @param {any} opts
|
|
264
|
-
* @param {any} experimental_plugin_bytes_resolver
|
|
265
265
|
* @returns {Promise<any>}
|
|
266
266
|
*/
|
|
267
|
-
export function
|
|
268
|
-
const ret = wasm.
|
|
267
|
+
export function print(s, opts) {
|
|
268
|
+
const ret = wasm.print(addHeapObject(s), addHeapObject(opts));
|
|
269
269
|
return takeObject(ret);
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -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__h48d92760bcda3ab6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
async function load(module, imports) {
|
|
@@ -322,12 +322,20 @@ 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) };
|
|
325
329
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
326
330
|
takeObject(arg0);
|
|
327
331
|
};
|
|
328
|
-
imports.wbg.
|
|
329
|
-
const ret =
|
|
330
|
-
return
|
|
332
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
333
|
+
const ret = getObject(arg0) === null;
|
|
334
|
+
return ret;
|
|
335
|
+
};
|
|
336
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
337
|
+
const ret = getObject(arg0) === undefined;
|
|
338
|
+
return ret;
|
|
331
339
|
};
|
|
332
340
|
imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
333
341
|
try {
|
|
@@ -347,17 +355,17 @@ function getImports() {
|
|
|
347
355
|
state0.a = state0.b = 0;
|
|
348
356
|
}
|
|
349
357
|
};
|
|
350
|
-
imports.wbg.
|
|
351
|
-
const ret =
|
|
352
|
-
return ret;
|
|
353
|
-
};
|
|
354
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
355
|
-
const ret = getObject(arg0) === undefined;
|
|
356
|
-
return ret;
|
|
358
|
+
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
359
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
360
|
+
return addHeapObject(ret);
|
|
357
361
|
};
|
|
358
|
-
imports.wbg.
|
|
359
|
-
const
|
|
360
|
-
|
|
362
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
363
|
+
const obj = getObject(arg1);
|
|
364
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
365
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
366
|
+
const len0 = WASM_VECTOR_LEN;
|
|
367
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
368
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
361
369
|
};
|
|
362
370
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
363
371
|
const obj = getObject(arg1);
|
|
@@ -367,20 +375,12 @@ function getImports() {
|
|
|
367
375
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
368
376
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
369
377
|
};
|
|
370
|
-
imports.wbg.
|
|
371
|
-
const ret = getObject(arg0)
|
|
372
|
-
return
|
|
373
|
-
}, arguments) };
|
|
374
|
-
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
375
|
-
const obj = getObject(arg1);
|
|
376
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
377
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
378
|
-
const len0 = WASM_VECTOR_LEN;
|
|
379
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
380
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
378
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
379
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
380
|
+
return ret;
|
|
381
381
|
};
|
|
382
|
-
imports.wbg.
|
|
383
|
-
const ret =
|
|
382
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
383
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
384
384
|
return addHeapObject(ret);
|
|
385
385
|
};
|
|
386
386
|
imports.wbg.__wbg_new0_adda2d4bcb124f0a = function() {
|
|
@@ -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_wrapper14517 = function(arg0, arg1, arg2) {
|
|
435
|
+
const ret = makeMutClosure(arg0, arg1, 148, __wbg_adapter_22);
|
|
436
436
|
return addHeapObject(ret);
|
|
437
437
|
};
|
|
438
438
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|