@next/swc-wasm-nodejs 16.1.1-canary.16 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-nodejs",
3
- "version": "16.1.1-canary.16",
3
+ "version": "16.1.1-canary.17",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  export function mdxCompile(value: string, opts: any): Promise<any>;
4
4
  export function mdxCompileSync(value: string, opts: any): any;
5
- export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
6
5
  export function transform(s: any, opts: any): Promise<any>;
7
- export function parseSync(s: string, opts: any): any;
8
6
  export function parse(s: string, opts: any): Promise<any>;
9
7
  export function transformSync(s: any, opts: any): any;
8
+ export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
10
9
  export function minifySync(s: string, opts: any): any;
11
10
  export function minify(s: string, opts: any): Promise<any>;
11
+ export function parseSync(s: string, opts: any): any;
package/wasm.js CHANGED
@@ -244,6 +244,39 @@ module.exports.mdxCompileSync = function(value, opts) {
244
244
  return takeFromExternrefTable0(ret[0]);
245
245
  };
246
246
 
247
+ /**
248
+ * @param {any} s
249
+ * @param {any} opts
250
+ * @returns {Promise<any>}
251
+ */
252
+ module.exports.transform = function(s, opts) {
253
+ const ret = wasm.transform(s, opts);
254
+ return ret;
255
+ };
256
+
257
+ /**
258
+ * @param {string} s
259
+ * @param {any} opts
260
+ * @returns {Promise<any>}
261
+ */
262
+ module.exports.parse = function(s, opts) {
263
+ const ret = wasm.parse(s, opts);
264
+ return ret;
265
+ };
266
+
267
+ /**
268
+ * @param {any} s
269
+ * @param {any} opts
270
+ * @returns {any}
271
+ */
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]);
278
+ };
279
+
247
280
  function passArray8ToWasm0(arg, malloc) {
248
281
  const ptr = malloc(arg.length * 1, 1) >>> 0;
249
282
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -275,23 +308,13 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
275
308
  return v4;
276
309
  };
277
310
 
278
- /**
279
- * @param {any} s
280
- * @param {any} opts
281
- * @returns {Promise<any>}
282
- */
283
- module.exports.transform = function(s, opts) {
284
- const ret = wasm.transform(s, opts);
285
- return ret;
286
- };
287
-
288
311
  /**
289
312
  * @param {string} s
290
313
  * @param {any} opts
291
314
  * @returns {any}
292
315
  */
293
- module.exports.parseSync = function(s, opts) {
294
- const ret = wasm.parseSync(s, opts);
316
+ module.exports.minifySync = function(s, opts) {
317
+ const ret = wasm.minifySync(s, opts);
295
318
  if (ret[2]) {
296
319
  throw takeFromExternrefTable0(ret[1]);
297
320
  }
@@ -303,49 +326,26 @@ module.exports.parseSync = function(s, opts) {
303
326
  * @param {any} opts
304
327
  * @returns {Promise<any>}
305
328
  */
306
- module.exports.parse = function(s, opts) {
307
- const ret = wasm.parse(s, opts);
329
+ module.exports.minify = function(s, opts) {
330
+ const ret = wasm.minify(s, opts);
308
331
  return ret;
309
332
  };
310
333
 
311
- /**
312
- * @param {any} s
313
- * @param {any} opts
314
- * @returns {any}
315
- */
316
- module.exports.transformSync = function(s, opts) {
317
- const ret = wasm.transformSync(s, opts);
318
- if (ret[2]) {
319
- throw takeFromExternrefTable0(ret[1]);
320
- }
321
- return takeFromExternrefTable0(ret[0]);
322
- };
323
-
324
334
  /**
325
335
  * @param {string} s
326
336
  * @param {any} opts
327
337
  * @returns {any}
328
338
  */
329
- module.exports.minifySync = function(s, opts) {
330
- const ret = wasm.minifySync(s, opts);
339
+ module.exports.parseSync = function(s, opts) {
340
+ const ret = wasm.parseSync(s, opts);
331
341
  if (ret[2]) {
332
342
  throw takeFromExternrefTable0(ret[1]);
333
343
  }
334
344
  return takeFromExternrefTable0(ret[0]);
335
345
  };
336
346
 
337
- /**
338
- * @param {string} s
339
- * @param {any} opts
340
- * @returns {Promise<any>}
341
- */
342
- module.exports.minify = function(s, opts) {
343
- const ret = wasm.minify(s, opts);
344
- return ret;
345
- };
346
-
347
347
  function __wbg_adapter_50(arg0, arg1, arg2) {
348
- wasm.closure1162_externref_shim(arg0, arg1, arg2);
348
+ wasm.closure1308_externref_shim(arg0, arg1, arg2);
349
349
  }
350
350
 
351
351
  function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
@@ -629,8 +629,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
629
629
  return ret;
630
630
  };
631
631
 
632
- module.exports.__wbindgen_closure_wrapper23447 = function(arg0, arg1, arg2) {
633
- const ret = makeMutClosure(arg0, arg1, 1163, __wbg_adapter_50);
632
+ module.exports.__wbindgen_closure_wrapper25035 = function(arg0, arg1, arg2) {
633
+ const ret = makeMutClosure(arg0, arg1, 1309, __wbg_adapter_50);
634
634
  return ret;
635
635
  };
636
636
 
package/wasm_bg.wasm CHANGED
Binary file