@next/swc-wasm-nodejs 16.1.1-canary.15 → 16.1.1-canary.17
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 +28 -29
- 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 mdxCompileSync(value: string, opts: any): any;
|
|
4
3
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
5
6
|
export function parse(s: string, opts: any): Promise<any>;
|
|
6
|
-
export function
|
|
7
|
+
export function transformSync(s: any, opts: any): any;
|
|
7
8
|
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>;
|
|
9
9
|
export function minifySync(s: string, opts: any): any;
|
|
10
|
-
export function
|
|
10
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
11
11
|
export function parseSync(s: string, opts: any): any;
|
package/wasm.js
CHANGED
|
@@ -216,6 +216,15 @@ 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
|
+
};
|
|
219
228
|
|
|
220
229
|
function takeFromExternrefTable0(idx) {
|
|
221
230
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -236,12 +245,12 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
236
245
|
};
|
|
237
246
|
|
|
238
247
|
/**
|
|
239
|
-
* @param {
|
|
248
|
+
* @param {any} s
|
|
240
249
|
* @param {any} opts
|
|
241
250
|
* @returns {Promise<any>}
|
|
242
251
|
*/
|
|
243
|
-
module.exports.
|
|
244
|
-
const ret = wasm.
|
|
252
|
+
module.exports.transform = function(s, opts) {
|
|
253
|
+
const ret = wasm.transform(s, opts);
|
|
245
254
|
return ret;
|
|
246
255
|
};
|
|
247
256
|
|
|
@@ -256,13 +265,16 @@ module.exports.parse = function(s, opts) {
|
|
|
256
265
|
};
|
|
257
266
|
|
|
258
267
|
/**
|
|
259
|
-
* @param {
|
|
268
|
+
* @param {any} s
|
|
260
269
|
* @param {any} opts
|
|
261
|
-
* @returns {
|
|
270
|
+
* @returns {any}
|
|
262
271
|
*/
|
|
263
|
-
module.exports.
|
|
264
|
-
const ret = wasm.
|
|
265
|
-
|
|
272
|
+
module.exports.transformSync = function(s, opts) {
|
|
273
|
+
const ret = wasm.transformSync(s, opts);
|
|
274
|
+
if (ret[2]) {
|
|
275
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
276
|
+
}
|
|
277
|
+
return takeFromExternrefTable0(ret[0]);
|
|
266
278
|
};
|
|
267
279
|
|
|
268
280
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -296,16 +308,6 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
296
308
|
return v4;
|
|
297
309
|
};
|
|
298
310
|
|
|
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
|
-
|
|
309
311
|
/**
|
|
310
312
|
* @param {string} s
|
|
311
313
|
* @param {any} opts
|
|
@@ -320,16 +322,13 @@ module.exports.minifySync = function(s, opts) {
|
|
|
320
322
|
};
|
|
321
323
|
|
|
322
324
|
/**
|
|
323
|
-
* @param {
|
|
325
|
+
* @param {string} s
|
|
324
326
|
* @param {any} opts
|
|
325
|
-
* @returns {any}
|
|
327
|
+
* @returns {Promise<any>}
|
|
326
328
|
*/
|
|
327
|
-
module.exports.
|
|
328
|
-
const ret = wasm.
|
|
329
|
-
|
|
330
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
331
|
-
}
|
|
332
|
-
return takeFromExternrefTable0(ret[0]);
|
|
329
|
+
module.exports.minify = function(s, opts) {
|
|
330
|
+
const ret = wasm.minify(s, opts);
|
|
331
|
+
return ret;
|
|
333
332
|
};
|
|
334
333
|
|
|
335
334
|
/**
|
|
@@ -346,7 +345,7 @@ module.exports.parseSync = function(s, opts) {
|
|
|
346
345
|
};
|
|
347
346
|
|
|
348
347
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
349
|
-
wasm.
|
|
348
|
+
wasm.closure1308_externref_shim(arg0, arg1, arg2);
|
|
350
349
|
}
|
|
351
350
|
|
|
352
351
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -630,8 +629,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
630
629
|
return ret;
|
|
631
630
|
};
|
|
632
631
|
|
|
633
|
-
module.exports.
|
|
634
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
632
|
+
module.exports.__wbindgen_closure_wrapper25035 = function(arg0, arg1, arg2) {
|
|
633
|
+
const ret = makeMutClosure(arg0, arg1, 1309, __wbg_adapter_50);
|
|
635
634
|
return ret;
|
|
636
635
|
};
|
|
637
636
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|