@next/swc-wasm-web 16.0.2-canary.9 → 16.0.3
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 +32 -31
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
4
3
|
export function transformSync(s: any, 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
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
7
4
|
export function parseSync(s: string, opts: any): any;
|
|
8
|
-
export function
|
|
5
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
9
7
|
export function parse(s: string, opts: any): Promise<any>;
|
|
8
|
+
export function minifySync(s: string, opts: any): any;
|
|
9
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
10
10
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
11
11
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
12
12
|
|
|
@@ -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 closure1163_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
35
|
readonly closure124_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
36
|
readonly __wbindgen_start: () => void;
|
|
37
37
|
}
|
package/wasm.js
CHANGED
|
@@ -212,15 +212,6 @@ function debugString(val) {
|
|
|
212
212
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
213
213
|
return className;
|
|
214
214
|
}
|
|
215
|
-
/**
|
|
216
|
-
* @param {string} s
|
|
217
|
-
* @param {any} opts
|
|
218
|
-
* @returns {Promise<any>}
|
|
219
|
-
*/
|
|
220
|
-
export function minify(s, opts) {
|
|
221
|
-
const ret = wasm.minify(s, opts);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
215
|
|
|
225
216
|
function takeFromExternrefTable0(idx) {
|
|
226
217
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -240,6 +231,29 @@ export function transformSync(s, opts) {
|
|
|
240
231
|
return takeFromExternrefTable0(ret[0]);
|
|
241
232
|
}
|
|
242
233
|
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} s
|
|
236
|
+
* @param {any} opts
|
|
237
|
+
* @returns {any}
|
|
238
|
+
*/
|
|
239
|
+
export function parseSync(s, opts) {
|
|
240
|
+
const ret = wasm.parseSync(s, opts);
|
|
241
|
+
if (ret[2]) {
|
|
242
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
243
|
+
}
|
|
244
|
+
return takeFromExternrefTable0(ret[0]);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {string} s
|
|
249
|
+
* @param {any} opts
|
|
250
|
+
* @returns {Promise<any>}
|
|
251
|
+
*/
|
|
252
|
+
export function minify(s, opts) {
|
|
253
|
+
const ret = wasm.minify(s, opts);
|
|
254
|
+
return ret;
|
|
255
|
+
}
|
|
256
|
+
|
|
243
257
|
function passArray8ToWasm0(arg, malloc) {
|
|
244
258
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
245
259
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -272,28 +286,15 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
272
286
|
}
|
|
273
287
|
|
|
274
288
|
/**
|
|
275
|
-
* @param {
|
|
289
|
+
* @param {string} s
|
|
276
290
|
* @param {any} opts
|
|
277
291
|
* @returns {Promise<any>}
|
|
278
292
|
*/
|
|
279
|
-
export function
|
|
280
|
-
const ret = wasm.
|
|
293
|
+
export function parse(s, opts) {
|
|
294
|
+
const ret = wasm.parse(s, opts);
|
|
281
295
|
return ret;
|
|
282
296
|
}
|
|
283
297
|
|
|
284
|
-
/**
|
|
285
|
-
* @param {string} s
|
|
286
|
-
* @param {any} opts
|
|
287
|
-
* @returns {any}
|
|
288
|
-
*/
|
|
289
|
-
export function parseSync(s, opts) {
|
|
290
|
-
const ret = wasm.parseSync(s, opts);
|
|
291
|
-
if (ret[2]) {
|
|
292
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
293
|
-
}
|
|
294
|
-
return takeFromExternrefTable0(ret[0]);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
298
|
/**
|
|
298
299
|
* @param {string} s
|
|
299
300
|
* @param {any} opts
|
|
@@ -308,12 +309,12 @@ export function minifySync(s, opts) {
|
|
|
308
309
|
}
|
|
309
310
|
|
|
310
311
|
/**
|
|
311
|
-
* @param {
|
|
312
|
+
* @param {any} s
|
|
312
313
|
* @param {any} opts
|
|
313
314
|
* @returns {Promise<any>}
|
|
314
315
|
*/
|
|
315
|
-
export function
|
|
316
|
-
const ret = wasm.
|
|
316
|
+
export function transform(s, opts) {
|
|
317
|
+
const ret = wasm.transform(s, opts);
|
|
317
318
|
return ret;
|
|
318
319
|
}
|
|
319
320
|
|
|
@@ -341,7 +342,7 @@ export function mdxCompileSync(value, opts) {
|
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
|
-
wasm.
|
|
345
|
+
wasm.closure1163_externref_shim(arg0, arg1, arg2);
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -611,8 +612,8 @@ function __wbg_get_imports() {
|
|
|
611
612
|
const ret = false;
|
|
612
613
|
return ret;
|
|
613
614
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
615
|
+
imports.wbg.__wbindgen_closure_wrapper23888 = function(arg0, arg1, arg2) {
|
|
616
|
+
const ret = makeMutClosure(arg0, arg1, 1164, __wbg_adapter_50);
|
|
616
617
|
return ret;
|
|
617
618
|
};
|
|
618
619
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|