@next/swc-wasm-web 16.0.0-canary.8 → 16.0.0
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 +2 -3
- package/wasm.d.ts +6 -6
- package/wasm.js +39 -38
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-web",
|
|
3
|
-
"
|
|
4
|
-
"version": "16.0.0-canary.8",
|
|
3
|
+
"version": "16.0.0",
|
|
5
4
|
"files": [
|
|
6
5
|
"wasm_bg.wasm",
|
|
7
6
|
"wasm.js",
|
|
8
7
|
"wasm.d.ts"
|
|
9
8
|
],
|
|
10
|
-
"
|
|
9
|
+
"module": "wasm.js",
|
|
11
10
|
"types": "wasm.d.ts",
|
|
12
11
|
"sideEffects": [
|
|
13
12
|
"./snippets/*"
|
package/wasm.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
4
3
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
5
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
6
4
|
export function transformSync(s: any, opts: any): any;
|
|
7
|
-
export function minifySync(s: string, opts: any): any;
|
|
8
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
9
6
|
export function parseSync(s: string, opts: any): any;
|
|
10
|
-
export function
|
|
7
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
8
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
+
export function minifySync(s: string, opts: any): any;
|
|
11
10
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
11
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
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 closure1150_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
|
+
readonly closure123_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} s
|
|
217
|
-
* @param {any} opts
|
|
218
|
-
* @returns {Promise<any>}
|
|
219
|
-
*/
|
|
220
|
-
export function parse(s, opts) {
|
|
221
|
-
const ret = wasm.parse(s, opts);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
215
|
|
|
225
216
|
function passArray8ToWasm0(arg, malloc) {
|
|
226
217
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
@@ -259,16 +250,6 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
259
250
|
return v4;
|
|
260
251
|
}
|
|
261
252
|
|
|
262
|
-
/**
|
|
263
|
-
* @param {any} s
|
|
264
|
-
* @param {any} opts
|
|
265
|
-
* @returns {Promise<any>}
|
|
266
|
-
*/
|
|
267
|
-
export function transform(s, opts) {
|
|
268
|
-
const ret = wasm.transform(s, opts);
|
|
269
|
-
return ret;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
253
|
/**
|
|
273
254
|
* @param {any} s
|
|
274
255
|
* @param {any} opts
|
|
@@ -282,13 +263,23 @@ export function transformSync(s, opts) {
|
|
|
282
263
|
return takeFromExternrefTable0(ret[0]);
|
|
283
264
|
}
|
|
284
265
|
|
|
266
|
+
/**
|
|
267
|
+
* @param {string} s
|
|
268
|
+
* @param {any} opts
|
|
269
|
+
* @returns {Promise<any>}
|
|
270
|
+
*/
|
|
271
|
+
export function minify(s, opts) {
|
|
272
|
+
const ret = wasm.minify(s, opts);
|
|
273
|
+
return ret;
|
|
274
|
+
}
|
|
275
|
+
|
|
285
276
|
/**
|
|
286
277
|
* @param {string} s
|
|
287
278
|
* @param {any} opts
|
|
288
279
|
* @returns {any}
|
|
289
280
|
*/
|
|
290
|
-
export function
|
|
291
|
-
const ret = wasm.
|
|
281
|
+
export function parseSync(s, opts) {
|
|
282
|
+
const ret = wasm.parseSync(s, opts);
|
|
292
283
|
if (ret[2]) {
|
|
293
284
|
throw takeFromExternrefTable0(ret[1]);
|
|
294
285
|
}
|
|
@@ -296,35 +287,32 @@ export function minifySync(s, opts) {
|
|
|
296
287
|
}
|
|
297
288
|
|
|
298
289
|
/**
|
|
299
|
-
* @param {
|
|
290
|
+
* @param {any} s
|
|
300
291
|
* @param {any} opts
|
|
301
292
|
* @returns {Promise<any>}
|
|
302
293
|
*/
|
|
303
|
-
export function
|
|
304
|
-
const ret = wasm.
|
|
294
|
+
export function transform(s, opts) {
|
|
295
|
+
const ret = wasm.transform(s, opts);
|
|
305
296
|
return ret;
|
|
306
297
|
}
|
|
307
298
|
|
|
308
299
|
/**
|
|
309
300
|
* @param {string} s
|
|
310
301
|
* @param {any} opts
|
|
311
|
-
* @returns {any}
|
|
302
|
+
* @returns {Promise<any>}
|
|
312
303
|
*/
|
|
313
|
-
export function
|
|
314
|
-
const ret = wasm.
|
|
315
|
-
|
|
316
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
317
|
-
}
|
|
318
|
-
return takeFromExternrefTable0(ret[0]);
|
|
304
|
+
export function parse(s, opts) {
|
|
305
|
+
const ret = wasm.parse(s, opts);
|
|
306
|
+
return ret;
|
|
319
307
|
}
|
|
320
308
|
|
|
321
309
|
/**
|
|
322
|
-
* @param {string}
|
|
310
|
+
* @param {string} s
|
|
323
311
|
* @param {any} opts
|
|
324
312
|
* @returns {any}
|
|
325
313
|
*/
|
|
326
|
-
export function
|
|
327
|
-
const ret = wasm.
|
|
314
|
+
export function minifySync(s, opts) {
|
|
315
|
+
const ret = wasm.minifySync(s, opts);
|
|
328
316
|
if (ret[2]) {
|
|
329
317
|
throw takeFromExternrefTable0(ret[1]);
|
|
330
318
|
}
|
|
@@ -341,12 +329,25 @@ export function mdxCompile(value, opts) {
|
|
|
341
329
|
return ret;
|
|
342
330
|
}
|
|
343
331
|
|
|
332
|
+
/**
|
|
333
|
+
* @param {string} value
|
|
334
|
+
* @param {any} opts
|
|
335
|
+
* @returns {any}
|
|
336
|
+
*/
|
|
337
|
+
export function mdxCompileSync(value, opts) {
|
|
338
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
339
|
+
if (ret[2]) {
|
|
340
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
341
|
+
}
|
|
342
|
+
return takeFromExternrefTable0(ret[0]);
|
|
343
|
+
}
|
|
344
|
+
|
|
344
345
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
345
|
-
wasm.
|
|
346
|
+
wasm.closure1150_externref_shim(arg0, arg1, arg2);
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
function __wbg_adapter_81(arg0, arg1, arg2, arg3) {
|
|
349
|
-
wasm.
|
|
350
|
+
wasm.closure123_externref_shim(arg0, arg1, arg2, arg3);
|
|
350
351
|
}
|
|
351
352
|
|
|
352
353
|
async function __wbg_load(module, imports) {
|
|
@@ -612,8 +613,8 @@ function __wbg_get_imports() {
|
|
|
612
613
|
const ret = false;
|
|
613
614
|
return ret;
|
|
614
615
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
616
|
+
imports.wbg.__wbindgen_closure_wrapper24044 = function(arg0, arg1, arg2) {
|
|
617
|
+
const ret = makeMutClosure(arg0, arg1, 1151, __wbg_adapter_50);
|
|
617
618
|
return ret;
|
|
618
619
|
};
|
|
619
620
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|