@next/swc-wasm-nodejs 16.1.0-canary.8 → 16.1.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 +4 -4
- package/wasm.js +41 -41
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
4
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
5
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
6
|
-
export function transformSync(s: any, opts: any): any;
|
|
7
5
|
export function parse(s: string, opts: any): Promise<any>;
|
|
8
|
-
export function
|
|
9
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
6
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
10
7
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
8
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
11
9
|
export function minifySync(s: string, opts: any): any;
|
|
10
|
+
export function transformSync(s: any, opts: any): any;
|
|
11
|
+
export function parseSync(s: string, opts: any): any;
|
package/wasm.js
CHANGED
|
@@ -245,29 +245,6 @@ module.exports.mdxCompile = function(value, opts) {
|
|
|
245
245
|
return ret;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
/**
|
|
249
|
-
* @param {string} s
|
|
250
|
-
* @param {any} opts
|
|
251
|
-
* @returns {Promise<any>}
|
|
252
|
-
*/
|
|
253
|
-
module.exports.minify = function(s, opts) {
|
|
254
|
-
const ret = wasm.minify(s, opts);
|
|
255
|
-
return ret;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @param {any} s
|
|
260
|
-
* @param {any} opts
|
|
261
|
-
* @returns {any}
|
|
262
|
-
*/
|
|
263
|
-
module.exports.transformSync = function(s, opts) {
|
|
264
|
-
const ret = wasm.transformSync(s, opts);
|
|
265
|
-
if (ret[2]) {
|
|
266
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
267
|
-
}
|
|
268
|
-
return takeFromExternrefTable0(ret[0]);
|
|
269
|
-
};
|
|
270
|
-
|
|
271
248
|
/**
|
|
272
249
|
* @param {string} s
|
|
273
250
|
* @param {any} opts
|
|
@@ -281,23 +258,10 @@ module.exports.parse = function(s, opts) {
|
|
|
281
258
|
/**
|
|
282
259
|
* @param {string} s
|
|
283
260
|
* @param {any} opts
|
|
284
|
-
* @returns {any}
|
|
285
|
-
*/
|
|
286
|
-
module.exports.parseSync = function(s, opts) {
|
|
287
|
-
const ret = wasm.parseSync(s, opts);
|
|
288
|
-
if (ret[2]) {
|
|
289
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
290
|
-
}
|
|
291
|
-
return takeFromExternrefTable0(ret[0]);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* @param {any} s
|
|
296
|
-
* @param {any} opts
|
|
297
261
|
* @returns {Promise<any>}
|
|
298
262
|
*/
|
|
299
|
-
module.exports.
|
|
300
|
-
const ret = wasm.
|
|
263
|
+
module.exports.minify = function(s, opts) {
|
|
264
|
+
const ret = wasm.minify(s, opts);
|
|
301
265
|
return ret;
|
|
302
266
|
};
|
|
303
267
|
|
|
@@ -332,6 +296,16 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
332
296
|
return v4;
|
|
333
297
|
};
|
|
334
298
|
|
|
299
|
+
/**
|
|
300
|
+
* @param {any} s
|
|
301
|
+
* @param {any} opts
|
|
302
|
+
* @returns {Promise<any>}
|
|
303
|
+
*/
|
|
304
|
+
module.exports.transform = function(s, opts) {
|
|
305
|
+
const ret = wasm.transform(s, opts);
|
|
306
|
+
return ret;
|
|
307
|
+
};
|
|
308
|
+
|
|
335
309
|
/**
|
|
336
310
|
* @param {string} s
|
|
337
311
|
* @param {any} opts
|
|
@@ -345,8 +319,34 @@ module.exports.minifySync = function(s, opts) {
|
|
|
345
319
|
return takeFromExternrefTable0(ret[0]);
|
|
346
320
|
};
|
|
347
321
|
|
|
322
|
+
/**
|
|
323
|
+
* @param {any} s
|
|
324
|
+
* @param {any} opts
|
|
325
|
+
* @returns {any}
|
|
326
|
+
*/
|
|
327
|
+
module.exports.transformSync = function(s, opts) {
|
|
328
|
+
const ret = wasm.transformSync(s, opts);
|
|
329
|
+
if (ret[2]) {
|
|
330
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
331
|
+
}
|
|
332
|
+
return takeFromExternrefTable0(ret[0]);
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @param {string} s
|
|
337
|
+
* @param {any} opts
|
|
338
|
+
* @returns {any}
|
|
339
|
+
*/
|
|
340
|
+
module.exports.parseSync = function(s, opts) {
|
|
341
|
+
const ret = wasm.parseSync(s, opts);
|
|
342
|
+
if (ret[2]) {
|
|
343
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
344
|
+
}
|
|
345
|
+
return takeFromExternrefTable0(ret[0]);
|
|
346
|
+
};
|
|
347
|
+
|
|
348
348
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
349
|
-
wasm.
|
|
349
|
+
wasm.closure1159_externref_shim(arg0, arg1, arg2);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -630,8 +630,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
630
630
|
return ret;
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
module.exports.
|
|
634
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
633
|
+
module.exports.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
|
|
635
635
|
return ret;
|
|
636
636
|
};
|
|
637
637
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|