@swc/wasm 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.js +46 -46
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -104,10 +104,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
104
104
|
return ptr;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
function isLikeNone(x) {
|
|
108
|
-
return x === undefined || x === null;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
107
|
let cachedInt32Memory0 = new Int32Array();
|
|
112
108
|
|
|
113
109
|
function getInt32Memory0() {
|
|
@@ -117,6 +113,10 @@ function getInt32Memory0() {
|
|
|
117
113
|
return cachedInt32Memory0;
|
|
118
114
|
}
|
|
119
115
|
|
|
116
|
+
function isLikeNone(x) {
|
|
117
|
+
return x === undefined || x === null;
|
|
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__h2a066990b442725f(arg0, arg1, addHeapObject(arg2));
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -210,12 +210,13 @@ module.exports.parse = function(s, opts) {
|
|
|
210
210
|
/**
|
|
211
211
|
* @param {any} s
|
|
212
212
|
* @param {any} opts
|
|
213
|
+
* @param {any} experimental_plugin_bytes_resolver
|
|
213
214
|
* @returns {any}
|
|
214
215
|
*/
|
|
215
|
-
module.exports.
|
|
216
|
+
module.exports.transformSync = function(s, opts, experimental_plugin_bytes_resolver) {
|
|
216
217
|
try {
|
|
217
218
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
218
|
-
wasm.
|
|
219
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts), addHeapObject(experimental_plugin_bytes_resolver));
|
|
219
220
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
220
221
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
221
222
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -231,23 +232,23 @@ module.exports.printSync = function(s, opts) {
|
|
|
231
232
|
/**
|
|
232
233
|
* @param {any} s
|
|
233
234
|
* @param {any} opts
|
|
235
|
+
* @param {any} experimental_plugin_bytes_resolver
|
|
234
236
|
* @returns {Promise<any>}
|
|
235
237
|
*/
|
|
236
|
-
module.exports.
|
|
237
|
-
const ret = wasm.
|
|
238
|
+
module.exports.transform = function(s, opts, experimental_plugin_bytes_resolver) {
|
|
239
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts), addHeapObject(experimental_plugin_bytes_resolver));
|
|
238
240
|
return takeObject(ret);
|
|
239
241
|
};
|
|
240
242
|
|
|
241
243
|
/**
|
|
242
244
|
* @param {any} s
|
|
243
245
|
* @param {any} opts
|
|
244
|
-
* @param {any} experimental_plugin_bytes_resolver
|
|
245
246
|
* @returns {any}
|
|
246
247
|
*/
|
|
247
|
-
module.exports.
|
|
248
|
+
module.exports.printSync = function(s, opts) {
|
|
248
249
|
try {
|
|
249
250
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
250
|
-
wasm.
|
|
251
|
+
wasm.printSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
251
252
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
252
253
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
253
254
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -263,11 +264,10 @@ module.exports.transformSync = function(s, opts, experimental_plugin_bytes_resol
|
|
|
263
264
|
/**
|
|
264
265
|
* @param {any} s
|
|
265
266
|
* @param {any} opts
|
|
266
|
-
* @param {any} experimental_plugin_bytes_resolver
|
|
267
267
|
* @returns {Promise<any>}
|
|
268
268
|
*/
|
|
269
|
-
module.exports.
|
|
270
|
-
const ret = wasm.
|
|
269
|
+
module.exports.print = function(s, opts) {
|
|
270
|
+
const ret = wasm.print(addHeapObject(s), addHeapObject(opts));
|
|
271
271
|
return takeObject(ret);
|
|
272
272
|
};
|
|
273
273
|
|
|
@@ -287,16 +287,26 @@ 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__h48d92760bcda3ab6(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
|
+
|
|
293
298
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
294
299
|
takeObject(arg0);
|
|
295
300
|
};
|
|
296
301
|
|
|
297
|
-
module.exports.
|
|
298
|
-
const ret =
|
|
299
|
-
return
|
|
302
|
+
module.exports.__wbindgen_is_null = function(arg0) {
|
|
303
|
+
const ret = getObject(arg0) === null;
|
|
304
|
+
return ret;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
308
|
+
const ret = getObject(arg0) === undefined;
|
|
309
|
+
return ret;
|
|
300
310
|
};
|
|
301
311
|
|
|
302
312
|
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
@@ -318,19 +328,18 @@ module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
|
318
328
|
}
|
|
319
329
|
};
|
|
320
330
|
|
|
321
|
-
module.exports.
|
|
322
|
-
const ret =
|
|
323
|
-
return ret;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
327
|
-
const ret = getObject(arg0) === undefined;
|
|
328
|
-
return ret;
|
|
331
|
+
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
332
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
333
|
+
return addHeapObject(ret);
|
|
329
334
|
};
|
|
330
335
|
|
|
331
|
-
module.exports.
|
|
332
|
-
const
|
|
333
|
-
|
|
336
|
+
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
337
|
+
const obj = getObject(arg1);
|
|
338
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
339
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
340
|
+
const len0 = WASM_VECTOR_LEN;
|
|
341
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
342
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
334
343
|
};
|
|
335
344
|
|
|
336
345
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -342,22 +351,13 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
342
351
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
343
352
|
};
|
|
344
353
|
|
|
345
|
-
module.exports.
|
|
346
|
-
const ret = getObject(arg0)
|
|
347
|
-
return
|
|
348
|
-
}, arguments) };
|
|
349
|
-
|
|
350
|
-
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
351
|
-
const obj = getObject(arg1);
|
|
352
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
353
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
354
|
-
const len0 = WASM_VECTOR_LEN;
|
|
355
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
356
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
354
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
355
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
356
|
+
return ret;
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
module.exports.
|
|
360
|
-
const ret =
|
|
359
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
360
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
361
361
|
return addHeapObject(ret);
|
|
362
362
|
};
|
|
363
363
|
|
|
@@ -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_wrapper14517 = function(arg0, arg1, arg2) {
|
|
423
|
+
const ret = makeMutClosure(arg0, arg1, 148, __wbg_adapter_22);
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
|
426
426
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|