@next/swc-wasm-nodejs 14.2.0-canary.44 → 14.2.0-canary.45
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,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
|
@@ -237,14 +237,14 @@ function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
|
-
* @param {string}
|
|
240
|
+
* @param {string} s
|
|
241
241
|
* @param {any} opts
|
|
242
242
|
* @returns {any}
|
|
243
243
|
*/
|
|
244
|
-
module.exports.
|
|
244
|
+
module.exports.minifySync = function(s, opts) {
|
|
245
245
|
try {
|
|
246
246
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
247
|
-
wasm.
|
|
247
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
248
248
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
249
249
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
250
250
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -258,24 +258,24 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
|
-
* @param {string}
|
|
261
|
+
* @param {string} s
|
|
262
262
|
* @param {any} opts
|
|
263
263
|
* @returns {Promise<any>}
|
|
264
264
|
*/
|
|
265
|
-
module.exports.
|
|
266
|
-
const ret = wasm.
|
|
265
|
+
module.exports.minify = function(s, opts) {
|
|
266
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
267
267
|
return takeObject(ret);
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* @param {
|
|
271
|
+
* @param {any} s
|
|
272
272
|
* @param {any} opts
|
|
273
273
|
* @returns {any}
|
|
274
274
|
*/
|
|
275
|
-
module.exports.
|
|
275
|
+
module.exports.transformSync = function(s, opts) {
|
|
276
276
|
try {
|
|
277
277
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
279
279
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
280
280
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
281
281
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -289,24 +289,24 @@ module.exports.minifySync = function(s, opts) {
|
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* @param {
|
|
292
|
+
* @param {any} s
|
|
293
293
|
* @param {any} opts
|
|
294
294
|
* @returns {Promise<any>}
|
|
295
295
|
*/
|
|
296
|
-
module.exports.
|
|
297
|
-
const ret = wasm.
|
|
296
|
+
module.exports.transform = function(s, opts) {
|
|
297
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
298
298
|
return takeObject(ret);
|
|
299
299
|
};
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* @param {
|
|
302
|
+
* @param {string} s
|
|
303
303
|
* @param {any} opts
|
|
304
304
|
* @returns {any}
|
|
305
305
|
*/
|
|
306
|
-
module.exports.
|
|
306
|
+
module.exports.parseSync = function(s, opts) {
|
|
307
307
|
try {
|
|
308
308
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
|
-
wasm.
|
|
309
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
310
310
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
311
311
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
312
312
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -320,24 +320,24 @@ module.exports.transformSync = function(s, opts) {
|
|
|
320
320
|
};
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* @param {
|
|
323
|
+
* @param {string} s
|
|
324
324
|
* @param {any} opts
|
|
325
325
|
* @returns {Promise<any>}
|
|
326
326
|
*/
|
|
327
|
-
module.exports.
|
|
328
|
-
const ret = wasm.
|
|
327
|
+
module.exports.parse = function(s, opts) {
|
|
328
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
329
329
|
return takeObject(ret);
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
|
-
* @param {string}
|
|
333
|
+
* @param {string} value
|
|
334
334
|
* @param {any} opts
|
|
335
335
|
* @returns {any}
|
|
336
336
|
*/
|
|
337
|
-
module.exports.
|
|
337
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
338
338
|
try {
|
|
339
339
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
340
|
-
wasm.
|
|
340
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
341
341
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
342
342
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
343
343
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -351,12 +351,12 @@ module.exports.parseSync = function(s, opts) {
|
|
|
351
351
|
};
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* @param {string}
|
|
354
|
+
* @param {string} value
|
|
355
355
|
* @param {any} opts
|
|
356
356
|
* @returns {Promise<any>}
|
|
357
357
|
*/
|
|
358
|
-
module.exports.
|
|
359
|
-
const ret = wasm.
|
|
358
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
359
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
360
360
|
return takeObject(ret);
|
|
361
361
|
};
|
|
362
362
|
|
|
@@ -786,7 +786,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
786
786
|
return addHeapObject(ret);
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
module.exports.
|
|
789
|
+
module.exports.__wbindgen_closure_wrapper15478 = function(arg0, arg1, arg2) {
|
|
790
790
|
const ret = makeMutClosure(arg0, arg1, 3558, __wbg_adapter_48);
|
|
791
791
|
return addHeapObject(ret);
|
|
792
792
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|