@next/swc-wasm-web 16.1.0-canary.2 → 16.1.0-canary.20
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 +58 -59
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
5
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
6
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
3
7
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
8
|
export function transform(s: any, opts: any): Promise<any>;
|
|
9
|
+
export function minifySync(s: string, opts: any): any;
|
|
5
10
|
export function transformSync(s: any, opts: any): any;
|
|
6
11
|
export function parseSync(s: string, opts: any): any;
|
|
7
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
8
|
-
export function minifySync(s: string, opts: any): any;
|
|
9
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
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
|
-
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
17
|
readonly mdxCompile: (a: any, b: any) => any;
|
|
19
18
|
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
19
|
+
readonly expandNextJsTemplate: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => [number, number, number, number];
|
|
20
20
|
readonly minify: (a: any, b: any) => any;
|
|
21
21
|
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
22
22
|
readonly parse: (a: any, b: any) => any;
|
|
@@ -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
|
@@ -213,18 +213,60 @@ function debugString(val) {
|
|
|
213
213
|
return className;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
function takeFromExternrefTable0(idx) {
|
|
217
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
218
|
+
wasm.__externref_table_dealloc(idx);
|
|
219
|
+
return value;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} value
|
|
223
|
+
* @param {any} opts
|
|
224
|
+
* @returns {any}
|
|
225
|
+
*/
|
|
226
|
+
export function mdxCompileSync(value, opts) {
|
|
227
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
228
|
+
if (ret[2]) {
|
|
229
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
230
|
+
}
|
|
231
|
+
return takeFromExternrefTable0(ret[0]);
|
|
232
|
+
}
|
|
233
|
+
|
|
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
|
+
|
|
216
264
|
function passArray8ToWasm0(arg, malloc) {
|
|
217
265
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
218
266
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
219
267
|
WASM_VECTOR_LEN = arg.length;
|
|
220
268
|
return ptr;
|
|
221
269
|
}
|
|
222
|
-
|
|
223
|
-
function takeFromExternrefTable0(idx) {
|
|
224
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
225
|
-
wasm.__externref_table_dealloc(idx);
|
|
226
|
-
return value;
|
|
227
|
-
}
|
|
228
270
|
/**
|
|
229
271
|
* @param {Uint8Array} content
|
|
230
272
|
* @param {string} template_path
|
|
@@ -260,26 +302,13 @@ export function transform(s, opts) {
|
|
|
260
302
|
return ret;
|
|
261
303
|
}
|
|
262
304
|
|
|
263
|
-
/**
|
|
264
|
-
* @param {any} s
|
|
265
|
-
* @param {any} opts
|
|
266
|
-
* @returns {any}
|
|
267
|
-
*/
|
|
268
|
-
export function transformSync(s, opts) {
|
|
269
|
-
const ret = wasm.transformSync(s, opts);
|
|
270
|
-
if (ret[2]) {
|
|
271
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
272
|
-
}
|
|
273
|
-
return takeFromExternrefTable0(ret[0]);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
305
|
/**
|
|
277
306
|
* @param {string} s
|
|
278
307
|
* @param {any} opts
|
|
279
308
|
* @returns {any}
|
|
280
309
|
*/
|
|
281
|
-
export function
|
|
282
|
-
const ret = wasm.
|
|
310
|
+
export function minifySync(s, opts) {
|
|
311
|
+
const ret = wasm.minifySync(s, opts);
|
|
283
312
|
if (ret[2]) {
|
|
284
313
|
throw takeFromExternrefTable0(ret[1]);
|
|
285
314
|
}
|
|
@@ -287,22 +316,12 @@ export function parseSync(s, opts) {
|
|
|
287
316
|
}
|
|
288
317
|
|
|
289
318
|
/**
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {any} opts
|
|
292
|
-
* @returns {Promise<any>}
|
|
293
|
-
*/
|
|
294
|
-
export function minify(s, opts) {
|
|
295
|
-
const ret = wasm.minify(s, opts);
|
|
296
|
-
return ret;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* @param {string} s
|
|
319
|
+
* @param {any} s
|
|
301
320
|
* @param {any} opts
|
|
302
321
|
* @returns {any}
|
|
303
322
|
*/
|
|
304
|
-
export function
|
|
305
|
-
const ret = wasm.
|
|
323
|
+
export function transformSync(s, opts) {
|
|
324
|
+
const ret = wasm.transformSync(s, opts);
|
|
306
325
|
if (ret[2]) {
|
|
307
326
|
throw takeFromExternrefTable0(ret[1]);
|
|
308
327
|
}
|
|
@@ -312,38 +331,18 @@ export function minifySync(s, opts) {
|
|
|
312
331
|
/**
|
|
313
332
|
* @param {string} s
|
|
314
333
|
* @param {any} opts
|
|
315
|
-
* @returns {Promise<any>}
|
|
316
|
-
*/
|
|
317
|
-
export function parse(s, opts) {
|
|
318
|
-
const ret = wasm.parse(s, opts);
|
|
319
|
-
return ret;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* @param {string} value
|
|
324
|
-
* @param {any} opts
|
|
325
334
|
* @returns {any}
|
|
326
335
|
*/
|
|
327
|
-
export function
|
|
328
|
-
const ret = wasm.
|
|
336
|
+
export function parseSync(s, opts) {
|
|
337
|
+
const ret = wasm.parseSync(s, opts);
|
|
329
338
|
if (ret[2]) {
|
|
330
339
|
throw takeFromExternrefTable0(ret[1]);
|
|
331
340
|
}
|
|
332
341
|
return takeFromExternrefTable0(ret[0]);
|
|
333
342
|
}
|
|
334
343
|
|
|
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
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
346
|
-
wasm.
|
|
345
|
+
wasm.closure1159_externref_shim(arg0, arg1, arg2);
|
|
347
346
|
}
|
|
348
347
|
|
|
349
348
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -613,8 +612,8 @@ function __wbg_get_imports() {
|
|
|
613
612
|
const ret = false;
|
|
614
613
|
return ret;
|
|
615
614
|
};
|
|
616
|
-
imports.wbg.
|
|
617
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
615
|
+
imports.wbg.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
|
|
616
|
+
const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
|
|
618
617
|
return ret;
|
|
619
618
|
};
|
|
620
619
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|