@next/swc-wasm-web 16.0.1-canary.4 → 16.0.1-canary.6
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 +8 -8
- package/wasm.js +32 -32
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
|
-
export function
|
|
5
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
4
|
+
export function minifySync(s: string, opts: any): any;
|
|
6
5
|
export function parseSync(s: string, opts: any): any;
|
|
6
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
7
7
|
export function transform(s: any, opts: any): Promise<any>;
|
|
8
8
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
-
export function
|
|
10
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
9
|
+
export function transformSync(s: any, opts: any): any;
|
|
11
10
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
12
12
|
|
|
13
13
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
14
14
|
|
|
15
15
|
export interface InitOutput {
|
|
16
16
|
readonly memory: WebAssembly.Memory;
|
|
17
17
|
readonly expandNextJsTemplate: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => [number, number, number, number];
|
|
18
|
-
readonly mdxCompile: (a: any, b: any) => any;
|
|
19
|
-
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
20
18
|
readonly minify: (a: any, b: any) => any;
|
|
21
19
|
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
22
20
|
readonly parse: (a: any, b: any) => any;
|
|
23
21
|
readonly parseSync: (a: any, b: any) => [number, number, number];
|
|
24
22
|
readonly transform: (a: any, b: any) => any;
|
|
25
23
|
readonly transformSync: (a: any, b: any) => [number, number, number];
|
|
24
|
+
readonly mdxCompile: (a: any, b: any) => any;
|
|
25
|
+
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
26
26
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
27
27
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
28
28
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -31,8 +31,8 @@ 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
|
|
35
|
-
readonly
|
|
34
|
+
readonly closure1166_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
|
+
readonly closure124_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
36
|
readonly __wbindgen_start: () => void;
|
|
37
37
|
}
|
|
38
38
|
|
package/wasm.js
CHANGED
|
@@ -251,28 +251,18 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
|
-
* @param {
|
|
254
|
+
* @param {string} s
|
|
255
255
|
* @param {any} opts
|
|
256
256
|
* @returns {any}
|
|
257
257
|
*/
|
|
258
|
-
export function
|
|
259
|
-
const ret = wasm.
|
|
258
|
+
export function minifySync(s, opts) {
|
|
259
|
+
const ret = wasm.minifySync(s, opts);
|
|
260
260
|
if (ret[2]) {
|
|
261
261
|
throw takeFromExternrefTable0(ret[1]);
|
|
262
262
|
}
|
|
263
263
|
return takeFromExternrefTable0(ret[0]);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
/**
|
|
267
|
-
* @param {string} s
|
|
268
|
-
* @param {any} opts
|
|
269
|
-
* @returns {Promise<any>}
|
|
270
|
-
*/
|
|
271
|
-
export function minify(s, opts) {
|
|
272
|
-
const ret = wasm.minify(s, opts);
|
|
273
|
-
return ret;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
266
|
/**
|
|
277
267
|
* @param {string} s
|
|
278
268
|
* @param {any} opts
|
|
@@ -286,6 +276,16 @@ export function parseSync(s, opts) {
|
|
|
286
276
|
return takeFromExternrefTable0(ret[0]);
|
|
287
277
|
}
|
|
288
278
|
|
|
279
|
+
/**
|
|
280
|
+
* @param {string} s
|
|
281
|
+
* @param {any} opts
|
|
282
|
+
* @returns {Promise<any>}
|
|
283
|
+
*/
|
|
284
|
+
export function minify(s, opts) {
|
|
285
|
+
const ret = wasm.minify(s, opts);
|
|
286
|
+
return ret;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
289
|
/**
|
|
290
290
|
* @param {any} s
|
|
291
291
|
* @param {any} opts
|
|
@@ -307,28 +307,18 @@ export function parse(s, opts) {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
|
-
* @param {
|
|
310
|
+
* @param {any} s
|
|
311
311
|
* @param {any} opts
|
|
312
312
|
* @returns {any}
|
|
313
313
|
*/
|
|
314
|
-
export function
|
|
315
|
-
const ret = wasm.
|
|
314
|
+
export function transformSync(s, opts) {
|
|
315
|
+
const ret = wasm.transformSync(s, opts);
|
|
316
316
|
if (ret[2]) {
|
|
317
317
|
throw takeFromExternrefTable0(ret[1]);
|
|
318
318
|
}
|
|
319
319
|
return takeFromExternrefTable0(ret[0]);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
/**
|
|
323
|
-
* @param {string} value
|
|
324
|
-
* @param {any} opts
|
|
325
|
-
* @returns {Promise<any>}
|
|
326
|
-
*/
|
|
327
|
-
export function mdxCompile(value, opts) {
|
|
328
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
329
|
-
return ret;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
322
|
/**
|
|
333
323
|
* @param {string} value
|
|
334
324
|
* @param {any} opts
|
|
@@ -342,12 +332,22 @@ export function mdxCompileSync(value, opts) {
|
|
|
342
332
|
return takeFromExternrefTable0(ret[0]);
|
|
343
333
|
}
|
|
344
334
|
|
|
335
|
+
/**
|
|
336
|
+
* @param {string} value
|
|
337
|
+
* @param {any} opts
|
|
338
|
+
* @returns {Promise<any>}
|
|
339
|
+
*/
|
|
340
|
+
export function mdxCompile(value, opts) {
|
|
341
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
342
|
+
return ret;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
345
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
346
|
-
wasm.
|
|
346
|
+
wasm.closure1166_externref_shim(arg0, arg1, arg2);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
function
|
|
350
|
-
wasm.
|
|
349
|
+
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
350
|
+
wasm.closure124_externref_shim(arg0, arg1, arg2, arg3);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
async function __wbg_load(module, imports) {
|
|
@@ -490,7 +490,7 @@ function __wbg_get_imports() {
|
|
|
490
490
|
const a = state0.a;
|
|
491
491
|
state0.a = 0;
|
|
492
492
|
try {
|
|
493
|
-
return
|
|
493
|
+
return __wbg_adapter_79(a, state0.b, arg0, arg1);
|
|
494
494
|
} finally {
|
|
495
495
|
state0.a = a;
|
|
496
496
|
}
|
|
@@ -613,8 +613,8 @@ function __wbg_get_imports() {
|
|
|
613
613
|
const ret = false;
|
|
614
614
|
return ret;
|
|
615
615
|
};
|
|
616
|
-
imports.wbg.
|
|
617
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
616
|
+
imports.wbg.__wbindgen_closure_wrapper23882 = function(arg0, arg1, arg2) {
|
|
617
|
+
const ret = makeMutClosure(arg0, arg1, 1167, __wbg_adapter_50);
|
|
618
618
|
return ret;
|
|
619
619
|
};
|
|
620
620
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|