@next/swc-wasm-web 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 CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
- "version": "16.1.0-canary.8",
3
+ "type": "module",
4
+ "version": "16.1.0",
4
5
  "files": [
5
6
  "wasm_bg.wasm",
6
7
  "wasm.js",
7
8
  "wasm.d.ts"
8
9
  ],
9
- "module": "wasm.js",
10
+ "main": "wasm.js",
10
11
  "types": "wasm.d.ts",
11
12
  "sideEffects": [
12
13
  "./snippets/*"
package/wasm.d.ts CHANGED
@@ -2,13 +2,13 @@
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 parseSync(s: string, opts: any): any;
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;
12
12
 
13
13
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
14
14
 
@@ -31,7 +31,7 @@ export interface InitOutput {
31
31
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
32
32
  readonly __wbindgen_export_6: WebAssembly.Table;
33
33
  readonly __externref_table_dealloc: (a: number) => void;
34
- readonly closure1165_externref_shim: (a: number, b: number, c: any) => void;
34
+ readonly closure1159_externref_shim: (a: number, b: number, c: any) => void;
35
35
  readonly closure126_externref_shim: (a: number, b: number, c: any, d: any) => void;
36
36
  readonly __wbindgen_start: () => void;
37
37
  }
package/wasm.js CHANGED
@@ -241,29 +241,6 @@ export function mdxCompile(value, opts) {
241
241
  return ret;
242
242
  }
243
243
 
244
- /**
245
- * @param {string} s
246
- * @param {any} opts
247
- * @returns {Promise<any>}
248
- */
249
- export function minify(s, opts) {
250
- const ret = wasm.minify(s, opts);
251
- return ret;
252
- }
253
-
254
- /**
255
- * @param {any} s
256
- * @param {any} opts
257
- * @returns {any}
258
- */
259
- export function transformSync(s, opts) {
260
- const ret = wasm.transformSync(s, opts);
261
- if (ret[2]) {
262
- throw takeFromExternrefTable0(ret[1]);
263
- }
264
- return takeFromExternrefTable0(ret[0]);
265
- }
266
-
267
244
  /**
268
245
  * @param {string} s
269
246
  * @param {any} opts
@@ -277,23 +254,10 @@ export function parse(s, opts) {
277
254
  /**
278
255
  * @param {string} s
279
256
  * @param {any} opts
280
- * @returns {any}
281
- */
282
- export function parseSync(s, opts) {
283
- const ret = wasm.parseSync(s, opts);
284
- if (ret[2]) {
285
- throw takeFromExternrefTable0(ret[1]);
286
- }
287
- return takeFromExternrefTable0(ret[0]);
288
- }
289
-
290
- /**
291
- * @param {any} s
292
- * @param {any} opts
293
257
  * @returns {Promise<any>}
294
258
  */
295
- export function transform(s, opts) {
296
- const ret = wasm.transform(s, opts);
259
+ export function minify(s, opts) {
260
+ const ret = wasm.minify(s, opts);
297
261
  return ret;
298
262
  }
299
263
 
@@ -328,6 +292,16 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
328
292
  return v4;
329
293
  }
330
294
 
295
+ /**
296
+ * @param {any} s
297
+ * @param {any} opts
298
+ * @returns {Promise<any>}
299
+ */
300
+ export function transform(s, opts) {
301
+ const ret = wasm.transform(s, opts);
302
+ return ret;
303
+ }
304
+
331
305
  /**
332
306
  * @param {string} s
333
307
  * @param {any} opts
@@ -341,8 +315,34 @@ export function minifySync(s, opts) {
341
315
  return takeFromExternrefTable0(ret[0]);
342
316
  }
343
317
 
318
+ /**
319
+ * @param {any} s
320
+ * @param {any} opts
321
+ * @returns {any}
322
+ */
323
+ export function transformSync(s, opts) {
324
+ const ret = wasm.transformSync(s, opts);
325
+ if (ret[2]) {
326
+ throw takeFromExternrefTable0(ret[1]);
327
+ }
328
+ return takeFromExternrefTable0(ret[0]);
329
+ }
330
+
331
+ /**
332
+ * @param {string} s
333
+ * @param {any} opts
334
+ * @returns {any}
335
+ */
336
+ export function parseSync(s, opts) {
337
+ const ret = wasm.parseSync(s, opts);
338
+ if (ret[2]) {
339
+ throw takeFromExternrefTable0(ret[1]);
340
+ }
341
+ return takeFromExternrefTable0(ret[0]);
342
+ }
343
+
344
344
  function __wbg_adapter_50(arg0, arg1, arg2) {
345
- wasm.closure1165_externref_shim(arg0, arg1, arg2);
345
+ wasm.closure1159_externref_shim(arg0, arg1, arg2);
346
346
  }
347
347
 
348
348
  function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
@@ -612,8 +612,8 @@ function __wbg_get_imports() {
612
612
  const ret = false;
613
613
  return ret;
614
614
  };
615
- imports.wbg.__wbindgen_closure_wrapper23621 = function(arg0, arg1, arg2) {
616
- const ret = makeMutClosure(arg0, arg1, 1166, __wbg_adapter_50);
615
+ imports.wbg.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
616
+ const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
617
617
  return ret;
618
618
  };
619
619
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/wasm_bg.wasm CHANGED
Binary file