@next/swc-wasm-nodejs 15.0.0-canary.121 → 15.0.0-canary.122
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.d.ts +12 -12
- package/wasm.js +54 -54
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* @param {string} value
|
|
5
|
+
* @param {any} opts
|
|
6
|
+
* @returns {any}
|
|
7
|
+
*/
|
|
8
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} value
|
|
11
|
+
* @param {any} opts
|
|
12
|
+
* @returns {Promise<any>}
|
|
13
|
+
*/
|
|
14
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
+
/**
|
|
4
16
|
* @param {string} s
|
|
5
17
|
* @param {any} opts
|
|
6
18
|
* @returns {any}
|
|
@@ -36,15 +48,3 @@ export function parseSync(s: string, opts: any): any;
|
|
|
36
48
|
* @returns {Promise<any>}
|
|
37
49
|
*/
|
|
38
50
|
export function parse(s: string, opts: any): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} value
|
|
41
|
-
* @param {any} opts
|
|
42
|
-
* @returns {any}
|
|
43
|
-
*/
|
|
44
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} value
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {Promise<any>}
|
|
49
|
-
*/
|
|
50
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -233,7 +233,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
233
233
|
return real;
|
|
234
234
|
}
|
|
235
235
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
236
|
-
wasm.
|
|
236
|
+
wasm._dyn_core_b87cc866e879cbcf___ops__function__FnMut_______Output______as_wasm_bindgen_29bbf21a0ebc1aba___closure__WasmClosure___describe__invoke___wasm_bindgen_29bbf21a0ebc1aba___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -252,18 +252,18 @@ function handleError(f, args) {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
255
|
-
wasm.
|
|
255
|
+
wasm.wasm_bindgen_29bbf21a0ebc1aba___convert__closures__invoke2_mut___wasm_bindgen_29bbf21a0ebc1aba___JsValue__wasm_bindgen_29bbf21a0ebc1aba___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* @param {string}
|
|
259
|
+
* @param {string} value
|
|
260
260
|
* @param {any} opts
|
|
261
261
|
* @returns {any}
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
264
264
|
try {
|
|
265
265
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
266
|
-
wasm.
|
|
266
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
267
267
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
268
268
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
269
269
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -277,24 +277,24 @@ module.exports.minifySync = function(s, opts) {
|
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* @param {string}
|
|
280
|
+
* @param {string} value
|
|
281
281
|
* @param {any} opts
|
|
282
282
|
* @returns {Promise<any>}
|
|
283
283
|
*/
|
|
284
|
-
module.exports.
|
|
285
|
-
const ret = wasm.
|
|
284
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
285
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
286
286
|
return takeObject(ret);
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @param {
|
|
290
|
+
* @param {string} s
|
|
291
291
|
* @param {any} opts
|
|
292
292
|
* @returns {any}
|
|
293
293
|
*/
|
|
294
|
-
module.exports.
|
|
294
|
+
module.exports.minifySync = function(s, opts) {
|
|
295
295
|
try {
|
|
296
296
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
297
|
-
wasm.
|
|
297
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
298
298
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
299
299
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
300
300
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -308,24 +308,24 @@ module.exports.transformSync = function(s, opts) {
|
|
|
308
308
|
};
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* @param {
|
|
311
|
+
* @param {string} s
|
|
312
312
|
* @param {any} opts
|
|
313
313
|
* @returns {Promise<any>}
|
|
314
314
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
315
|
+
module.exports.minify = function(s, opts) {
|
|
316
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
317
317
|
return takeObject(ret);
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
* @param {
|
|
321
|
+
* @param {any} s
|
|
322
322
|
* @param {any} opts
|
|
323
323
|
* @returns {any}
|
|
324
324
|
*/
|
|
325
|
-
module.exports.
|
|
325
|
+
module.exports.transformSync = function(s, opts) {
|
|
326
326
|
try {
|
|
327
327
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
wasm.
|
|
328
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
329
329
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
330
330
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
331
331
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -339,24 +339,24 @@ module.exports.parseSync = function(s, opts) {
|
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* @param {
|
|
342
|
+
* @param {any} s
|
|
343
343
|
* @param {any} opts
|
|
344
344
|
* @returns {Promise<any>}
|
|
345
345
|
*/
|
|
346
|
-
module.exports.
|
|
347
|
-
const ret = wasm.
|
|
346
|
+
module.exports.transform = function(s, opts) {
|
|
347
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
348
348
|
return takeObject(ret);
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* @param {string}
|
|
352
|
+
* @param {string} s
|
|
353
353
|
* @param {any} opts
|
|
354
354
|
* @returns {any}
|
|
355
355
|
*/
|
|
356
|
-
module.exports.
|
|
356
|
+
module.exports.parseSync = function(s, opts) {
|
|
357
357
|
try {
|
|
358
358
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
359
|
-
wasm.
|
|
359
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
360
360
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
361
361
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
362
362
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -370,24 +370,24 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
370
370
|
};
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
|
-
* @param {string}
|
|
373
|
+
* @param {string} s
|
|
374
374
|
* @param {any} opts
|
|
375
375
|
* @returns {Promise<any>}
|
|
376
376
|
*/
|
|
377
|
-
module.exports.
|
|
378
|
-
const ret = wasm.
|
|
377
|
+
module.exports.parse = function(s, opts) {
|
|
378
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
379
379
|
return takeObject(ret);
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
383
|
+
takeObject(arg0);
|
|
384
|
+
};
|
|
385
|
+
|
|
382
386
|
module.exports.__wbg_new0_7a6141101f2206da = function() {
|
|
383
387
|
const ret = new Date();
|
|
384
388
|
return addHeapObject(ret);
|
|
385
389
|
};
|
|
386
390
|
|
|
387
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
388
|
-
takeObject(arg0);
|
|
389
|
-
};
|
|
390
|
-
|
|
391
391
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
392
392
|
const ret = arg0;
|
|
393
393
|
return addHeapObject(ret);
|
|
@@ -432,7 +432,7 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
432
432
|
return addHeapObject(ret);
|
|
433
433
|
};
|
|
434
434
|
|
|
435
|
-
module.exports.
|
|
435
|
+
module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
436
436
|
const ret = getObject(arg0).crypto;
|
|
437
437
|
return addHeapObject(ret);
|
|
438
438
|
};
|
|
@@ -443,17 +443,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
443
443
|
return ret;
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
module.exports.
|
|
446
|
+
module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
447
447
|
const ret = getObject(arg0).process;
|
|
448
448
|
return addHeapObject(ret);
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
module.exports.
|
|
451
|
+
module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
452
452
|
const ret = getObject(arg0).versions;
|
|
453
453
|
return addHeapObject(ret);
|
|
454
454
|
};
|
|
455
455
|
|
|
456
|
-
module.exports.
|
|
456
|
+
module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
457
457
|
const ret = getObject(arg0).node;
|
|
458
458
|
return addHeapObject(ret);
|
|
459
459
|
};
|
|
@@ -463,7 +463,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
463
463
|
return ret;
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
module.exports.
|
|
466
|
+
module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
467
467
|
const ret = module.require;
|
|
468
468
|
return addHeapObject(ret);
|
|
469
469
|
}, arguments) };
|
|
@@ -483,7 +483,7 @@ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(fun
|
|
|
483
483
|
return addHeapObject(ret);
|
|
484
484
|
}, arguments) };
|
|
485
485
|
|
|
486
|
-
module.exports.
|
|
486
|
+
module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
487
487
|
const ret = getObject(arg0).msCrypto;
|
|
488
488
|
return addHeapObject(ret);
|
|
489
489
|
};
|
|
@@ -508,7 +508,7 @@ module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0
|
|
|
508
508
|
return addHeapObject(ret);
|
|
509
509
|
};
|
|
510
510
|
|
|
511
|
-
module.exports.
|
|
511
|
+
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
512
512
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
513
513
|
}, arguments) };
|
|
514
514
|
|
|
@@ -517,7 +517,7 @@ module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
|
517
517
|
return addHeapObject(ret);
|
|
518
518
|
};
|
|
519
519
|
|
|
520
|
-
module.exports.
|
|
520
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
521
521
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
522
522
|
}, arguments) };
|
|
523
523
|
|
|
@@ -640,11 +640,6 @@ module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
640
640
|
return ret;
|
|
641
641
|
};
|
|
642
642
|
|
|
643
|
-
module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
644
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
645
|
-
return addHeapObject(ret);
|
|
646
|
-
};
|
|
647
|
-
|
|
648
643
|
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
649
644
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
650
645
|
return ret;
|
|
@@ -692,6 +687,11 @@ module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
|
692
687
|
return ret;
|
|
693
688
|
};
|
|
694
689
|
|
|
690
|
+
module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
691
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
692
|
+
return addHeapObject(ret);
|
|
693
|
+
};
|
|
694
|
+
|
|
695
695
|
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
696
696
|
const ret = getObject(arg0).next();
|
|
697
697
|
return addHeapObject(ret);
|
|
@@ -717,15 +717,6 @@ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
|
717
717
|
return addHeapObject(ret);
|
|
718
718
|
};
|
|
719
719
|
|
|
720
|
-
module.exports.__wbg_new_632630b5cec17f21 = function() {
|
|
721
|
-
const ret = new Object();
|
|
722
|
-
return addHeapObject(ret);
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
726
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
727
|
-
};
|
|
728
|
-
|
|
729
720
|
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
730
721
|
try {
|
|
731
722
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -745,6 +736,15 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
745
736
|
}
|
|
746
737
|
};
|
|
747
738
|
|
|
739
|
+
module.exports.__wbg_new_632630b5cec17f21 = function() {
|
|
740
|
+
const ret = new Object();
|
|
741
|
+
return addHeapObject(ret);
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
745
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
746
|
+
};
|
|
747
|
+
|
|
748
748
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
749
749
|
const ret = debugString(getObject(arg1));
|
|
750
750
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -786,8 +786,8 @@ module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
|
|
|
786
786
|
queueMicrotask(getObject(arg0));
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
module.exports.
|
|
790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
789
|
+
module.exports.__wbindgen_closure_wrapper24181 = function(arg0, arg1, arg2) {
|
|
790
|
+
const ret = makeMutClosure(arg0, arg1, 1811, __wbg_adapter_48);
|
|
791
791
|
return addHeapObject(ret);
|
|
792
792
|
};
|
|
793
793
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|