@next/swc-wasm-nodejs 15.1.1-canary.7 → 15.1.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.d.ts +12 -12
- package/wasm.js +52 -52
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
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
|
-
/**
|
|
16
4
|
* @param {string} s
|
|
17
5
|
* @param {any} opts
|
|
18
6
|
* @returns {any}
|
|
@@ -48,3 +36,15 @@ export function parseSync(s: string, opts: any): any;
|
|
|
48
36
|
* @returns {Promise<any>}
|
|
49
37
|
*/
|
|
50
38
|
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_575a3b57185f9003___ops__function__FnMut_______Output______as_wasm_bindgen_9ae5c17cf8bb59fd___closure__WasmClosure___describe__invoke___wasm_bindgen_9ae5c17cf8bb59fd___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_9ae5c17cf8bb59fd___convert__closures__invoke2_mut___wasm_bindgen_9ae5c17cf8bb59fd___JsValue__wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* @param {string}
|
|
259
|
+
* @param {string} s
|
|
260
260
|
* @param {any} opts
|
|
261
261
|
* @returns {any}
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.minifySync = function(s, opts) {
|
|
264
264
|
try {
|
|
265
265
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
266
|
-
wasm.
|
|
266
|
+
wasm.minifySync(retptr, addHeapObject(s), 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.mdxCompileSync = function(value, opts) {
|
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* @param {string}
|
|
280
|
+
* @param {string} s
|
|
281
281
|
* @param {any} opts
|
|
282
282
|
* @returns {Promise<any>}
|
|
283
283
|
*/
|
|
284
|
-
module.exports.
|
|
285
|
-
const ret = wasm.
|
|
284
|
+
module.exports.minify = function(s, opts) {
|
|
285
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
286
286
|
return takeObject(ret);
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @param {
|
|
290
|
+
* @param {any} s
|
|
291
291
|
* @param {any} opts
|
|
292
292
|
* @returns {any}
|
|
293
293
|
*/
|
|
294
|
-
module.exports.
|
|
294
|
+
module.exports.transformSync = function(s, opts) {
|
|
295
295
|
try {
|
|
296
296
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
297
|
-
wasm.
|
|
297
|
+
wasm.transformSync(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.minifySync = function(s, opts) {
|
|
|
308
308
|
};
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* @param {
|
|
311
|
+
* @param {any} s
|
|
312
312
|
* @param {any} opts
|
|
313
313
|
* @returns {Promise<any>}
|
|
314
314
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
315
|
+
module.exports.transform = function(s, opts) {
|
|
316
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
317
317
|
return takeObject(ret);
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
* @param {
|
|
321
|
+
* @param {string} s
|
|
322
322
|
* @param {any} opts
|
|
323
323
|
* @returns {any}
|
|
324
324
|
*/
|
|
325
|
-
module.exports.
|
|
325
|
+
module.exports.parseSync = function(s, opts) {
|
|
326
326
|
try {
|
|
327
327
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
wasm.
|
|
328
|
+
wasm.parseSync(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.transformSync = function(s, opts) {
|
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* @param {
|
|
342
|
+
* @param {string} s
|
|
343
343
|
* @param {any} opts
|
|
344
344
|
* @returns {Promise<any>}
|
|
345
345
|
*/
|
|
346
|
-
module.exports.
|
|
347
|
-
const ret = wasm.
|
|
346
|
+
module.exports.parse = function(s, opts) {
|
|
347
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
348
348
|
return takeObject(ret);
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* @param {string}
|
|
352
|
+
* @param {string} value
|
|
353
353
|
* @param {any} opts
|
|
354
354
|
* @returns {any}
|
|
355
355
|
*/
|
|
356
|
-
module.exports.
|
|
356
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
357
357
|
try {
|
|
358
358
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
359
|
-
wasm.
|
|
359
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), 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,12 +370,12 @@ module.exports.parseSync = function(s, opts) {
|
|
|
370
370
|
};
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
|
-
* @param {string}
|
|
373
|
+
* @param {string} value
|
|
374
374
|
* @param {any} opts
|
|
375
375
|
* @returns {Promise<any>}
|
|
376
376
|
*/
|
|
377
|
-
module.exports.
|
|
378
|
-
const ret = wasm.
|
|
377
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
378
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
379
379
|
return takeObject(ret);
|
|
380
380
|
};
|
|
381
381
|
|
|
@@ -640,20 +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
|
-
module.exports.__wbg_new_632630b5cec17f21 = function() {
|
|
649
|
-
const ret = new Object();
|
|
650
|
-
return addHeapObject(ret);
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
654
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
655
|
-
};
|
|
656
|
-
|
|
657
643
|
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
658
644
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
659
645
|
return ret;
|
|
@@ -664,11 +650,6 @@ module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
|
664
650
|
return ret;
|
|
665
651
|
};
|
|
666
652
|
|
|
667
|
-
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
668
|
-
const ret = getObject(arg0).length;
|
|
669
|
-
return ret;
|
|
670
|
-
};
|
|
671
|
-
|
|
672
653
|
module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
673
654
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
674
655
|
return ret;
|
|
@@ -679,11 +660,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
679
660
|
return ret;
|
|
680
661
|
};
|
|
681
662
|
|
|
682
|
-
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
683
|
-
const ret = Object.entries(getObject(arg0));
|
|
684
|
-
return addHeapObject(ret);
|
|
685
|
-
};
|
|
686
|
-
|
|
687
663
|
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
688
664
|
const v = getObject(arg1);
|
|
689
665
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -706,6 +682,16 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
706
682
|
return addHeapObject(ret);
|
|
707
683
|
};
|
|
708
684
|
|
|
685
|
+
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
686
|
+
const ret = getObject(arg0).length;
|
|
687
|
+
return ret;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
691
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
692
|
+
return addHeapObject(ret);
|
|
693
|
+
};
|
|
694
|
+
|
|
709
695
|
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
710
696
|
const ret = getObject(arg0).next();
|
|
711
697
|
return addHeapObject(ret);
|
|
@@ -721,6 +707,11 @@ module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
|
721
707
|
return addHeapObject(ret);
|
|
722
708
|
};
|
|
723
709
|
|
|
710
|
+
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
711
|
+
const ret = Object.entries(getObject(arg0));
|
|
712
|
+
return addHeapObject(ret);
|
|
713
|
+
};
|
|
714
|
+
|
|
724
715
|
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
725
716
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
726
717
|
return addHeapObject(ret);
|
|
@@ -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.__wbindgen_cb_drop = function(arg0) {
|
|
|
786
786
|
return ret;
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
module.exports.
|
|
790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
789
|
+
module.exports.__wbindgen_closure_wrapper21571 = function(arg0, arg1, arg2) {
|
|
790
|
+
const ret = makeMutClosure(arg0, arg1, 1816, __wbg_adapter_48);
|
|
791
791
|
return addHeapObject(ret);
|
|
792
792
|
};
|
|
793
793
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|