@next/swc-wasm-web 16.1.0-canary.12 → 16.1.0-canary.14
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 +5 -5
- package/wasm.js +30 -30
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
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 minify(s: string, opts: any): Promise<any>;
|
|
6
5
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
7
|
-
export function parseSync(s: string, opts: any): any;
|
|
8
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
10
6
|
export function minifySync(s: string, opts: any): any;
|
|
11
7
|
export function transformSync(s: any, opts: any): any;
|
|
8
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
9
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
10
|
+
export function parseSync(s: string, opts: any): any;
|
|
11
|
+
export function minify(s: string, opts: any): Promise<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
|
|
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
|
@@ -240,16 +240,6 @@ export function mdxCompileSync(value, opts) {
|
|
|
240
240
|
return takeFromExternrefTable0(ret[0]);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
/**
|
|
244
|
-
* @param {string} s
|
|
245
|
-
* @param {any} opts
|
|
246
|
-
* @returns {Promise<any>}
|
|
247
|
-
*/
|
|
248
|
-
export function minify(s, opts) {
|
|
249
|
-
const ret = wasm.minify(s, opts);
|
|
250
|
-
return ret;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
243
|
function passArray8ToWasm0(arg, malloc) {
|
|
254
244
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
255
245
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -286,8 +276,8 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
286
276
|
* @param {any} opts
|
|
287
277
|
* @returns {any}
|
|
288
278
|
*/
|
|
289
|
-
export function
|
|
290
|
-
const ret = wasm.
|
|
279
|
+
export function minifySync(s, opts) {
|
|
280
|
+
const ret = wasm.minifySync(s, opts);
|
|
291
281
|
if (ret[2]) {
|
|
292
282
|
throw takeFromExternrefTable0(ret[1]);
|
|
293
283
|
}
|
|
@@ -295,13 +285,16 @@ export function parseSync(s, opts) {
|
|
|
295
285
|
}
|
|
296
286
|
|
|
297
287
|
/**
|
|
298
|
-
* @param {
|
|
288
|
+
* @param {any} s
|
|
299
289
|
* @param {any} opts
|
|
300
|
-
* @returns {
|
|
290
|
+
* @returns {any}
|
|
301
291
|
*/
|
|
302
|
-
export function
|
|
303
|
-
const ret = wasm.
|
|
304
|
-
|
|
292
|
+
export function transformSync(s, opts) {
|
|
293
|
+
const ret = wasm.transformSync(s, opts);
|
|
294
|
+
if (ret[2]) {
|
|
295
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
296
|
+
}
|
|
297
|
+
return takeFromExternrefTable0(ret[0]);
|
|
305
298
|
}
|
|
306
299
|
|
|
307
300
|
/**
|
|
@@ -317,31 +310,38 @@ export function transform(s, opts) {
|
|
|
317
310
|
/**
|
|
318
311
|
* @param {string} s
|
|
319
312
|
* @param {any} opts
|
|
320
|
-
* @returns {any}
|
|
313
|
+
* @returns {Promise<any>}
|
|
321
314
|
*/
|
|
322
|
-
export function
|
|
323
|
-
const ret = wasm.
|
|
324
|
-
|
|
325
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
326
|
-
}
|
|
327
|
-
return takeFromExternrefTable0(ret[0]);
|
|
315
|
+
export function parse(s, opts) {
|
|
316
|
+
const ret = wasm.parse(s, opts);
|
|
317
|
+
return ret;
|
|
328
318
|
}
|
|
329
319
|
|
|
330
320
|
/**
|
|
331
|
-
* @param {
|
|
321
|
+
* @param {string} s
|
|
332
322
|
* @param {any} opts
|
|
333
323
|
* @returns {any}
|
|
334
324
|
*/
|
|
335
|
-
export function
|
|
336
|
-
const ret = wasm.
|
|
325
|
+
export function parseSync(s, opts) {
|
|
326
|
+
const ret = wasm.parseSync(s, opts);
|
|
337
327
|
if (ret[2]) {
|
|
338
328
|
throw takeFromExternrefTable0(ret[1]);
|
|
339
329
|
}
|
|
340
330
|
return takeFromExternrefTable0(ret[0]);
|
|
341
331
|
}
|
|
342
332
|
|
|
333
|
+
/**
|
|
334
|
+
* @param {string} s
|
|
335
|
+
* @param {any} opts
|
|
336
|
+
* @returns {Promise<any>}
|
|
337
|
+
*/
|
|
338
|
+
export function minify(s, opts) {
|
|
339
|
+
const ret = wasm.minify(s, opts);
|
|
340
|
+
return ret;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
343
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
|
-
wasm.
|
|
344
|
+
wasm.closure1159_externref_shim(arg0, arg1, arg2);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -611,8 +611,8 @@ function __wbg_get_imports() {
|
|
|
611
611
|
const ret = false;
|
|
612
612
|
return ret;
|
|
613
613
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
614
|
+
imports.wbg.__wbindgen_closure_wrapper23601 = function(arg0, arg1, arg2) {
|
|
615
|
+
const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
|
|
616
616
|
return ret;
|
|
617
617
|
};
|
|
618
618
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|