@next/swc-wasm-web 16.1.1-canary.17 → 16.1.1-canary.18
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 +7 -7
- package/wasm.js +57 -56
- 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 mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
3
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
-
export function
|
|
6
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
7
|
-
export function transformSync(s: any, opts: any): any;
|
|
8
|
-
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
9
5
|
export function minifySync(s: string, opts: any): any;
|
|
10
6
|
export function minify(s: string, opts: any): Promise<any>;
|
|
7
|
+
export function transformSync(s: any, opts: any): any;
|
|
8
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
11
9
|
export function parseSync(s: string, opts: any): any;
|
|
10
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
11
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
12
12
|
|
|
13
13
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
14
14
|
|
|
@@ -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 closure1211_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
|
@@ -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} 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
|
-
}
|
|
224
215
|
|
|
225
216
|
function takeFromExternrefTable0(idx) {
|
|
226
217
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -241,22 +232,35 @@ export function mdxCompileSync(value, opts) {
|
|
|
241
232
|
}
|
|
242
233
|
|
|
243
234
|
/**
|
|
244
|
-
* @param {
|
|
235
|
+
* @param {string} value
|
|
245
236
|
* @param {any} opts
|
|
246
237
|
* @returns {Promise<any>}
|
|
247
238
|
*/
|
|
248
|
-
export function
|
|
249
|
-
const ret = wasm.
|
|
239
|
+
export function mdxCompile(value, opts) {
|
|
240
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
250
241
|
return ret;
|
|
251
242
|
}
|
|
252
243
|
|
|
244
|
+
/**
|
|
245
|
+
* @param {string} s
|
|
246
|
+
* @param {any} opts
|
|
247
|
+
* @returns {any}
|
|
248
|
+
*/
|
|
249
|
+
export function minifySync(s, opts) {
|
|
250
|
+
const ret = wasm.minifySync(s, opts);
|
|
251
|
+
if (ret[2]) {
|
|
252
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
253
|
+
}
|
|
254
|
+
return takeFromExternrefTable0(ret[0]);
|
|
255
|
+
}
|
|
256
|
+
|
|
253
257
|
/**
|
|
254
258
|
* @param {string} s
|
|
255
259
|
* @param {any} opts
|
|
256
260
|
* @returns {Promise<any>}
|
|
257
261
|
*/
|
|
258
|
-
export function
|
|
259
|
-
const ret = wasm.
|
|
262
|
+
export function minify(s, opts) {
|
|
263
|
+
const ret = wasm.minify(s, opts);
|
|
260
264
|
return ret;
|
|
261
265
|
}
|
|
262
266
|
|
|
@@ -273,6 +277,39 @@ export function transformSync(s, opts) {
|
|
|
273
277
|
return takeFromExternrefTable0(ret[0]);
|
|
274
278
|
}
|
|
275
279
|
|
|
280
|
+
/**
|
|
281
|
+
* @param {any} s
|
|
282
|
+
* @param {any} opts
|
|
283
|
+
* @returns {Promise<any>}
|
|
284
|
+
*/
|
|
285
|
+
export function transform(s, opts) {
|
|
286
|
+
const ret = wasm.transform(s, opts);
|
|
287
|
+
return ret;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param {string} s
|
|
292
|
+
* @param {any} opts
|
|
293
|
+
* @returns {any}
|
|
294
|
+
*/
|
|
295
|
+
export function parseSync(s, opts) {
|
|
296
|
+
const ret = wasm.parseSync(s, opts);
|
|
297
|
+
if (ret[2]) {
|
|
298
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
299
|
+
}
|
|
300
|
+
return takeFromExternrefTable0(ret[0]);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @param {string} s
|
|
305
|
+
* @param {any} opts
|
|
306
|
+
* @returns {Promise<any>}
|
|
307
|
+
*/
|
|
308
|
+
export function parse(s, opts) {
|
|
309
|
+
const ret = wasm.parse(s, opts);
|
|
310
|
+
return ret;
|
|
311
|
+
}
|
|
312
|
+
|
|
276
313
|
function passArray8ToWasm0(arg, malloc) {
|
|
277
314
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
278
315
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -304,48 +341,12 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
304
341
|
return v4;
|
|
305
342
|
}
|
|
306
343
|
|
|
307
|
-
/**
|
|
308
|
-
* @param {string} s
|
|
309
|
-
* @param {any} opts
|
|
310
|
-
* @returns {any}
|
|
311
|
-
*/
|
|
312
|
-
export function minifySync(s, opts) {
|
|
313
|
-
const ret = wasm.minifySync(s, opts);
|
|
314
|
-
if (ret[2]) {
|
|
315
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
316
|
-
}
|
|
317
|
-
return takeFromExternrefTable0(ret[0]);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* @param {string} s
|
|
322
|
-
* @param {any} opts
|
|
323
|
-
* @returns {Promise<any>}
|
|
324
|
-
*/
|
|
325
|
-
export function minify(s, opts) {
|
|
326
|
-
const ret = wasm.minify(s, opts);
|
|
327
|
-
return ret;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* @param {string} s
|
|
332
|
-
* @param {any} opts
|
|
333
|
-
* @returns {any}
|
|
334
|
-
*/
|
|
335
|
-
export function parseSync(s, opts) {
|
|
336
|
-
const ret = wasm.parseSync(s, opts);
|
|
337
|
-
if (ret[2]) {
|
|
338
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
339
|
-
}
|
|
340
|
-
return takeFromExternrefTable0(ret[0]);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
|
-
wasm.
|
|
345
|
+
wasm.closure1211_externref_shim(arg0, arg1, arg2);
|
|
345
346
|
}
|
|
346
347
|
|
|
347
|
-
function
|
|
348
|
-
wasm.
|
|
348
|
+
function __wbg_adapter_89(arg0, arg1, arg2, arg3) {
|
|
349
|
+
wasm.closure124_externref_shim(arg0, arg1, arg2, arg3);
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
async function __wbg_load(module, imports) {
|
|
@@ -488,7 +489,7 @@ function __wbg_get_imports() {
|
|
|
488
489
|
const a = state0.a;
|
|
489
490
|
state0.a = 0;
|
|
490
491
|
try {
|
|
491
|
-
return
|
|
492
|
+
return __wbg_adapter_89(a, state0.b, arg0, arg1);
|
|
492
493
|
} finally {
|
|
493
494
|
state0.a = a;
|
|
494
495
|
}
|
|
@@ -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_wrapper25315 = function(arg0, arg1, arg2) {
|
|
616
|
+
const ret = makeMutClosure(arg0, arg1, 1212, __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
|