@next/swc-wasm-nodejs 14.1.1-canary.37 → 14.1.1-canary.39
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 +25 -25
- 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
|
@@ -248,14 +248,14 @@ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
|
-
* @param {string}
|
|
251
|
+
* @param {string} value
|
|
252
252
|
* @param {any} opts
|
|
253
253
|
* @returns {any}
|
|
254
254
|
*/
|
|
255
|
-
module.exports.
|
|
255
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
256
256
|
try {
|
|
257
257
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
258
|
-
wasm.
|
|
258
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
259
259
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
260
260
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
261
261
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -269,24 +269,24 @@ module.exports.minifySync = function(s, opts) {
|
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
* @param {string}
|
|
272
|
+
* @param {string} value
|
|
273
273
|
* @param {any} opts
|
|
274
274
|
* @returns {Promise<any>}
|
|
275
275
|
*/
|
|
276
|
-
module.exports.
|
|
277
|
-
const ret = wasm.
|
|
276
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
277
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
278
278
|
return takeObject(ret);
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
|
-
* @param {
|
|
282
|
+
* @param {string} s
|
|
283
283
|
* @param {any} opts
|
|
284
284
|
* @returns {any}
|
|
285
285
|
*/
|
|
286
|
-
module.exports.
|
|
286
|
+
module.exports.minifySync = function(s, opts) {
|
|
287
287
|
try {
|
|
288
288
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
289
|
-
wasm.
|
|
289
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
290
290
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
291
291
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
292
292
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -300,24 +300,24 @@ module.exports.transformSync = function(s, opts) {
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
|
-
* @param {
|
|
303
|
+
* @param {string} s
|
|
304
304
|
* @param {any} opts
|
|
305
305
|
* @returns {Promise<any>}
|
|
306
306
|
*/
|
|
307
|
-
module.exports.
|
|
308
|
-
const ret = wasm.
|
|
307
|
+
module.exports.minify = function(s, opts) {
|
|
308
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
309
309
|
return takeObject(ret);
|
|
310
310
|
};
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
|
-
* @param {
|
|
313
|
+
* @param {any} s
|
|
314
314
|
* @param {any} opts
|
|
315
315
|
* @returns {any}
|
|
316
316
|
*/
|
|
317
|
-
module.exports.
|
|
317
|
+
module.exports.transformSync = function(s, opts) {
|
|
318
318
|
try {
|
|
319
319
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
320
|
-
wasm.
|
|
320
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
321
321
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
322
322
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
323
323
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -331,24 +331,24 @@ module.exports.parseSync = function(s, opts) {
|
|
|
331
331
|
};
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
* @param {
|
|
334
|
+
* @param {any} s
|
|
335
335
|
* @param {any} opts
|
|
336
336
|
* @returns {Promise<any>}
|
|
337
337
|
*/
|
|
338
|
-
module.exports.
|
|
339
|
-
const ret = wasm.
|
|
338
|
+
module.exports.transform = function(s, opts) {
|
|
339
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
340
340
|
return takeObject(ret);
|
|
341
341
|
};
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
* @param {string}
|
|
344
|
+
* @param {string} s
|
|
345
345
|
* @param {any} opts
|
|
346
346
|
* @returns {any}
|
|
347
347
|
*/
|
|
348
|
-
module.exports.
|
|
348
|
+
module.exports.parseSync = function(s, opts) {
|
|
349
349
|
try {
|
|
350
350
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
351
|
-
wasm.
|
|
351
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
352
352
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
353
353
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
354
354
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -362,12 +362,12 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
|
-
* @param {string}
|
|
365
|
+
* @param {string} s
|
|
366
366
|
* @param {any} opts
|
|
367
367
|
* @returns {Promise<any>}
|
|
368
368
|
*/
|
|
369
|
-
module.exports.
|
|
370
|
-
const ret = wasm.
|
|
369
|
+
module.exports.parse = function(s, opts) {
|
|
370
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
371
371
|
return takeObject(ret);
|
|
372
372
|
};
|
|
373
373
|
|
|
@@ -769,7 +769,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
769
769
|
return ret;
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
-
module.exports.
|
|
772
|
+
module.exports.__wbindgen_closure_wrapper24383 = function(arg0, arg1, arg2) {
|
|
773
773
|
const ret = makeMutClosure(arg0, arg1, 391, __wbg_adapter_48);
|
|
774
774
|
return addHeapObject(ret);
|
|
775
775
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|