@next/swc-wasm-web 16.1.1-canary.15 → 16.1.1-canary.16
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 +6 -6
- package/wasm.js +36 -37
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
3
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
5
|
-
export function
|
|
6
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
4
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
7
5
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
8
6
|
export function transform(s: any, opts: any): Promise<any>;
|
|
9
|
-
export function minifySync(s: string, opts: any): any;
|
|
10
|
-
export function transformSync(s: any, opts: any): any;
|
|
11
7
|
export function parseSync(s: string, opts: any): any;
|
|
8
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
+
export function transformSync(s: any, opts: any): any;
|
|
10
|
+
export function minifySync(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 closure1162_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
|
@@ -212,6 +212,15 @@ 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} value
|
|
217
|
+
* @param {any} opts
|
|
218
|
+
* @returns {Promise<any>}
|
|
219
|
+
*/
|
|
220
|
+
export function mdxCompile(value, opts) {
|
|
221
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
222
|
+
return ret;
|
|
223
|
+
}
|
|
215
224
|
|
|
216
225
|
function takeFromExternrefTable0(idx) {
|
|
217
226
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -231,36 +240,6 @@ export function mdxCompileSync(value, opts) {
|
|
|
231
240
|
return takeFromExternrefTable0(ret[0]);
|
|
232
241
|
}
|
|
233
242
|
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} value
|
|
236
|
-
* @param {any} opts
|
|
237
|
-
* @returns {Promise<any>}
|
|
238
|
-
*/
|
|
239
|
-
export function mdxCompile(value, opts) {
|
|
240
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
241
|
-
return ret;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @param {string} s
|
|
246
|
-
* @param {any} opts
|
|
247
|
-
* @returns {Promise<any>}
|
|
248
|
-
*/
|
|
249
|
-
export function parse(s, opts) {
|
|
250
|
-
const ret = wasm.parse(s, opts);
|
|
251
|
-
return ret;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @param {string} s
|
|
256
|
-
* @param {any} opts
|
|
257
|
-
* @returns {Promise<any>}
|
|
258
|
-
*/
|
|
259
|
-
export function minify(s, opts) {
|
|
260
|
-
const ret = wasm.minify(s, opts);
|
|
261
|
-
return ret;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
243
|
function passArray8ToWasm0(arg, malloc) {
|
|
265
244
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
266
245
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -307,14 +286,24 @@ export function transform(s, opts) {
|
|
|
307
286
|
* @param {any} opts
|
|
308
287
|
* @returns {any}
|
|
309
288
|
*/
|
|
310
|
-
export function
|
|
311
|
-
const ret = wasm.
|
|
289
|
+
export function parseSync(s, opts) {
|
|
290
|
+
const ret = wasm.parseSync(s, opts);
|
|
312
291
|
if (ret[2]) {
|
|
313
292
|
throw takeFromExternrefTable0(ret[1]);
|
|
314
293
|
}
|
|
315
294
|
return takeFromExternrefTable0(ret[0]);
|
|
316
295
|
}
|
|
317
296
|
|
|
297
|
+
/**
|
|
298
|
+
* @param {string} s
|
|
299
|
+
* @param {any} opts
|
|
300
|
+
* @returns {Promise<any>}
|
|
301
|
+
*/
|
|
302
|
+
export function parse(s, opts) {
|
|
303
|
+
const ret = wasm.parse(s, opts);
|
|
304
|
+
return ret;
|
|
305
|
+
}
|
|
306
|
+
|
|
318
307
|
/**
|
|
319
308
|
* @param {any} s
|
|
320
309
|
* @param {any} opts
|
|
@@ -333,16 +322,26 @@ export function transformSync(s, opts) {
|
|
|
333
322
|
* @param {any} opts
|
|
334
323
|
* @returns {any}
|
|
335
324
|
*/
|
|
336
|
-
export function
|
|
337
|
-
const ret = wasm.
|
|
325
|
+
export function minifySync(s, opts) {
|
|
326
|
+
const ret = wasm.minifySync(s, opts);
|
|
338
327
|
if (ret[2]) {
|
|
339
328
|
throw takeFromExternrefTable0(ret[1]);
|
|
340
329
|
}
|
|
341
330
|
return takeFromExternrefTable0(ret[0]);
|
|
342
331
|
}
|
|
343
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
|
+
|
|
344
343
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
345
|
-
wasm.
|
|
344
|
+
wasm.closure1162_externref_shim(arg0, arg1, arg2);
|
|
346
345
|
}
|
|
347
346
|
|
|
348
347
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -612,8 +611,8 @@ function __wbg_get_imports() {
|
|
|
612
611
|
const ret = false;
|
|
613
612
|
return ret;
|
|
614
613
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
614
|
+
imports.wbg.__wbindgen_closure_wrapper23447 = function(arg0, arg1, arg2) {
|
|
615
|
+
const ret = makeMutClosure(arg0, arg1, 1163, __wbg_adapter_50);
|
|
617
616
|
return ret;
|
|
618
617
|
};
|
|
619
618
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|