@next/swc-wasm-nodejs 15.2.2 → 15.3.0-canary.0
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 +43 -43
- 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
|
@@ -256,14 +256,14 @@ function __wbg_adapter_113(arg0, arg1, arg2, 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,12 +370,12 @@ 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
|
|
|
@@ -717,24 +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
|
-
module.exports.__wbg_new_75208e29bddfd88c = function() {
|
|
730
|
-
const ret = new Array();
|
|
731
|
-
return addHeapObject(ret);
|
|
732
|
-
};
|
|
733
|
-
|
|
734
|
-
module.exports.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
|
|
735
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
736
|
-
};
|
|
737
|
-
|
|
738
720
|
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
739
721
|
try {
|
|
740
722
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -754,6 +736,24 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
754
736
|
}
|
|
755
737
|
};
|
|
756
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
|
+
module.exports.__wbg_new_75208e29bddfd88c = function() {
|
|
749
|
+
const ret = new Array();
|
|
750
|
+
return addHeapObject(ret);
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
module.exports.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
|
|
754
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
755
|
+
};
|
|
756
|
+
|
|
757
757
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
758
758
|
const ret = debugString(getObject(arg1));
|
|
759
759
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -795,7 +795,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
795
795
|
return ret;
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
module.exports.
|
|
798
|
+
module.exports.__wbindgen_closure_wrapper23922 = function(arg0, arg1, arg2) {
|
|
799
799
|
const ret = makeMutClosure(arg0, arg1, 1277, __wbg_adapter_48);
|
|
800
800
|
return addHeapObject(ret);
|
|
801
801
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|