@next/swc-wasm-web 16.1.0-canary.1 → 16.1.0-canary.10
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 +8 -8
- package/wasm.js +53 -55
- 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 mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
3
6
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
5
|
-
export function transformSync(s: any, opts: any): any;
|
|
6
7
|
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
8
|
export function parse(s: string, opts: any): Promise<any>;
|
|
10
|
-
export function
|
|
11
|
-
export function
|
|
9
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
10
|
+
export function minifySync(s: string, opts: any): any;
|
|
11
|
+
export function transformSync(s: any, opts: any): 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 closure1164_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,12 +212,14 @@ 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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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;
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
function takeFromExternrefTable0(idx) {
|
|
@@ -225,6 +227,35 @@ function takeFromExternrefTable0(idx) {
|
|
|
225
227
|
wasm.__externref_table_dealloc(idx);
|
|
226
228
|
return value;
|
|
227
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @param {string} value
|
|
232
|
+
* @param {any} opts
|
|
233
|
+
* @returns {any}
|
|
234
|
+
*/
|
|
235
|
+
export function mdxCompileSync(value, opts) {
|
|
236
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
237
|
+
if (ret[2]) {
|
|
238
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
239
|
+
}
|
|
240
|
+
return takeFromExternrefTable0(ret[0]);
|
|
241
|
+
}
|
|
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
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
254
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
255
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
256
|
+
WASM_VECTOR_LEN = arg.length;
|
|
257
|
+
return ptr;
|
|
258
|
+
}
|
|
228
259
|
/**
|
|
229
260
|
* @param {Uint8Array} content
|
|
230
261
|
* @param {string} template_path
|
|
@@ -251,22 +282,12 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
251
282
|
}
|
|
252
283
|
|
|
253
284
|
/**
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {any} opts
|
|
256
|
-
* @returns {Promise<any>}
|
|
257
|
-
*/
|
|
258
|
-
export function transform(s, opts) {
|
|
259
|
-
const ret = wasm.transform(s, opts);
|
|
260
|
-
return ret;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @param {any} s
|
|
285
|
+
* @param {string} s
|
|
265
286
|
* @param {any} opts
|
|
266
287
|
* @returns {any}
|
|
267
288
|
*/
|
|
268
|
-
export function
|
|
269
|
-
const ret = wasm.
|
|
289
|
+
export function parseSync(s, opts) {
|
|
290
|
+
const ret = wasm.parseSync(s, opts);
|
|
270
291
|
if (ret[2]) {
|
|
271
292
|
throw takeFromExternrefTable0(ret[1]);
|
|
272
293
|
}
|
|
@@ -276,23 +297,20 @@ export function transformSync(s, opts) {
|
|
|
276
297
|
/**
|
|
277
298
|
* @param {string} s
|
|
278
299
|
* @param {any} opts
|
|
279
|
-
* @returns {any}
|
|
300
|
+
* @returns {Promise<any>}
|
|
280
301
|
*/
|
|
281
|
-
export function
|
|
282
|
-
const ret = wasm.
|
|
283
|
-
|
|
284
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
285
|
-
}
|
|
286
|
-
return takeFromExternrefTable0(ret[0]);
|
|
302
|
+
export function parse(s, opts) {
|
|
303
|
+
const ret = wasm.parse(s, opts);
|
|
304
|
+
return ret;
|
|
287
305
|
}
|
|
288
306
|
|
|
289
307
|
/**
|
|
290
|
-
* @param {
|
|
308
|
+
* @param {any} s
|
|
291
309
|
* @param {any} opts
|
|
292
310
|
* @returns {Promise<any>}
|
|
293
311
|
*/
|
|
294
|
-
export function
|
|
295
|
-
const ret = wasm.
|
|
312
|
+
export function transform(s, opts) {
|
|
313
|
+
const ret = wasm.transform(s, opts);
|
|
296
314
|
return ret;
|
|
297
315
|
}
|
|
298
316
|
|
|
@@ -310,40 +328,20 @@ export function minifySync(s, opts) {
|
|
|
310
328
|
}
|
|
311
329
|
|
|
312
330
|
/**
|
|
313
|
-
* @param {
|
|
314
|
-
* @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
|
|
331
|
+
* @param {any} s
|
|
324
332
|
* @param {any} opts
|
|
325
333
|
* @returns {any}
|
|
326
334
|
*/
|
|
327
|
-
export function
|
|
328
|
-
const ret = wasm.
|
|
335
|
+
export function transformSync(s, opts) {
|
|
336
|
+
const ret = wasm.transformSync(s, opts);
|
|
329
337
|
if (ret[2]) {
|
|
330
338
|
throw takeFromExternrefTable0(ret[1]);
|
|
331
339
|
}
|
|
332
340
|
return takeFromExternrefTable0(ret[0]);
|
|
333
341
|
}
|
|
334
342
|
|
|
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
343
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
346
|
-
wasm.
|
|
344
|
+
wasm.closure1164_externref_shim(arg0, arg1, arg2);
|
|
347
345
|
}
|
|
348
346
|
|
|
349
347
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -613,8 +611,8 @@ function __wbg_get_imports() {
|
|
|
613
611
|
const ret = false;
|
|
614
612
|
return ret;
|
|
615
613
|
};
|
|
616
|
-
imports.wbg.
|
|
617
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
614
|
+
imports.wbg.__wbindgen_closure_wrapper23625 = function(arg0, arg1, arg2) {
|
|
615
|
+
const ret = makeMutClosure(arg0, arg1, 1165, __wbg_adapter_50);
|
|
618
616
|
return ret;
|
|
619
617
|
};
|
|
620
618
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|