@next/swc-wasm-nodejs 16.1.0-canary.0 → 16.1.0-canary.10
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 +6 -6
- package/wasm.js +53 -55
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
3
6
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
5
|
-
export function transformSync(s: any, opts: any): any;
|
|
6
7
|
export function parseSync(s: string, opts: any): any;
|
|
7
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
8
|
-
export function minifySync(s: string, opts: any): any;
|
|
9
8
|
export function parse(s: string, opts: any): Promise<any>;
|
|
10
|
-
export function
|
|
11
|
-
export function
|
|
9
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
10
|
+
export function minifySync(s: string, opts: any): any;
|
|
11
|
+
export function transformSync(s: any, opts: any): any;
|
package/wasm.js
CHANGED
|
@@ -216,6 +216,43 @@ function debugString(val) {
|
|
|
216
216
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
217
217
|
return className;
|
|
218
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* @param {string} value
|
|
221
|
+
* @param {any} opts
|
|
222
|
+
* @returns {Promise<any>}
|
|
223
|
+
*/
|
|
224
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
225
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
226
|
+
return ret;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
function takeFromExternrefTable0(idx) {
|
|
230
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
231
|
+
wasm.__externref_table_dealloc(idx);
|
|
232
|
+
return value;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} value
|
|
236
|
+
* @param {any} opts
|
|
237
|
+
* @returns {any}
|
|
238
|
+
*/
|
|
239
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
240
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
241
|
+
if (ret[2]) {
|
|
242
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
243
|
+
}
|
|
244
|
+
return takeFromExternrefTable0(ret[0]);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {string} s
|
|
249
|
+
* @param {any} opts
|
|
250
|
+
* @returns {Promise<any>}
|
|
251
|
+
*/
|
|
252
|
+
module.exports.minify = function(s, opts) {
|
|
253
|
+
const ret = wasm.minify(s, opts);
|
|
254
|
+
return ret;
|
|
255
|
+
};
|
|
219
256
|
|
|
220
257
|
function passArray8ToWasm0(arg, malloc) {
|
|
221
258
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
@@ -223,12 +260,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
223
260
|
WASM_VECTOR_LEN = arg.length;
|
|
224
261
|
return ptr;
|
|
225
262
|
}
|
|
226
|
-
|
|
227
|
-
function takeFromExternrefTable0(idx) {
|
|
228
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
229
|
-
wasm.__externref_table_dealloc(idx);
|
|
230
|
-
return value;
|
|
231
|
-
}
|
|
232
263
|
/**
|
|
233
264
|
* @param {Uint8Array} content
|
|
234
265
|
* @param {string} template_path
|
|
@@ -255,22 +286,12 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
255
286
|
};
|
|
256
287
|
|
|
257
288
|
/**
|
|
258
|
-
* @param {
|
|
259
|
-
* @param {any} opts
|
|
260
|
-
* @returns {Promise<any>}
|
|
261
|
-
*/
|
|
262
|
-
module.exports.transform = function(s, opts) {
|
|
263
|
-
const ret = wasm.transform(s, opts);
|
|
264
|
-
return ret;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* @param {any} s
|
|
289
|
+
* @param {string} s
|
|
269
290
|
* @param {any} opts
|
|
270
291
|
* @returns {any}
|
|
271
292
|
*/
|
|
272
|
-
module.exports.
|
|
273
|
-
const ret = wasm.
|
|
293
|
+
module.exports.parseSync = function(s, opts) {
|
|
294
|
+
const ret = wasm.parseSync(s, opts);
|
|
274
295
|
if (ret[2]) {
|
|
275
296
|
throw takeFromExternrefTable0(ret[1]);
|
|
276
297
|
}
|
|
@@ -280,23 +301,20 @@ module.exports.transformSync = function(s, opts) {
|
|
|
280
301
|
/**
|
|
281
302
|
* @param {string} s
|
|
282
303
|
* @param {any} opts
|
|
283
|
-
* @returns {any}
|
|
304
|
+
* @returns {Promise<any>}
|
|
284
305
|
*/
|
|
285
|
-
module.exports.
|
|
286
|
-
const ret = wasm.
|
|
287
|
-
|
|
288
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
289
|
-
}
|
|
290
|
-
return takeFromExternrefTable0(ret[0]);
|
|
306
|
+
module.exports.parse = function(s, opts) {
|
|
307
|
+
const ret = wasm.parse(s, opts);
|
|
308
|
+
return ret;
|
|
291
309
|
};
|
|
292
310
|
|
|
293
311
|
/**
|
|
294
|
-
* @param {
|
|
312
|
+
* @param {any} s
|
|
295
313
|
* @param {any} opts
|
|
296
314
|
* @returns {Promise<any>}
|
|
297
315
|
*/
|
|
298
|
-
module.exports.
|
|
299
|
-
const ret = wasm.
|
|
316
|
+
module.exports.transform = function(s, opts) {
|
|
317
|
+
const ret = wasm.transform(s, opts);
|
|
300
318
|
return ret;
|
|
301
319
|
};
|
|
302
320
|
|
|
@@ -314,40 +332,20 @@ module.exports.minifySync = function(s, opts) {
|
|
|
314
332
|
};
|
|
315
333
|
|
|
316
334
|
/**
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {any} opts
|
|
319
|
-
* @returns {Promise<any>}
|
|
320
|
-
*/
|
|
321
|
-
module.exports.parse = function(s, opts) {
|
|
322
|
-
const ret = wasm.parse(s, opts);
|
|
323
|
-
return ret;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @param {string} value
|
|
335
|
+
* @param {any} s
|
|
328
336
|
* @param {any} opts
|
|
329
337
|
* @returns {any}
|
|
330
338
|
*/
|
|
331
|
-
module.exports.
|
|
332
|
-
const ret = wasm.
|
|
339
|
+
module.exports.transformSync = function(s, opts) {
|
|
340
|
+
const ret = wasm.transformSync(s, opts);
|
|
333
341
|
if (ret[2]) {
|
|
334
342
|
throw takeFromExternrefTable0(ret[1]);
|
|
335
343
|
}
|
|
336
344
|
return takeFromExternrefTable0(ret[0]);
|
|
337
345
|
};
|
|
338
346
|
|
|
339
|
-
/**
|
|
340
|
-
* @param {string} value
|
|
341
|
-
* @param {any} opts
|
|
342
|
-
* @returns {Promise<any>}
|
|
343
|
-
*/
|
|
344
|
-
module.exports.mdxCompile = function(value, opts) {
|
|
345
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
346
|
-
return ret;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
347
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
350
|
-
wasm.
|
|
348
|
+
wasm.closure1164_externref_shim(arg0, arg1, arg2);
|
|
351
349
|
}
|
|
352
350
|
|
|
353
351
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -631,8 +629,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
631
629
|
return ret;
|
|
632
630
|
};
|
|
633
631
|
|
|
634
|
-
module.exports.
|
|
635
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
632
|
+
module.exports.__wbindgen_closure_wrapper23625 = function(arg0, arg1, arg2) {
|
|
633
|
+
const ret = makeMutClosure(arg0, arg1, 1165, __wbg_adapter_50);
|
|
636
634
|
return ret;
|
|
637
635
|
};
|
|
638
636
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|