@next/swc-wasm-web 16.1.1-canary.16 → 16.1.1-canary.17
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 +3 -3
- package/wasm.js +42 -42
- 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.1.1-canary.16",
|
|
3
|
+
"version": "16.1.1-canary.17",
|
|
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
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
4
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
-
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
6
5
|
export function transform(s: any, opts: any): Promise<any>;
|
|
7
|
-
export function parseSync(s: string, opts: any): any;
|
|
8
6
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
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;
|
|
10
9
|
export function minifySync(s: string, opts: any): any;
|
|
11
10
|
export function minify(s: string, opts: any): Promise<any>;
|
|
11
|
+
export function parseSync(s: string, opts: any): 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 closure1308_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
|
@@ -240,6 +240,39 @@ export function mdxCompileSync(value, opts) {
|
|
|
240
240
|
return takeFromExternrefTable0(ret[0]);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
+
/**
|
|
244
|
+
* @param {any} s
|
|
245
|
+
* @param {any} opts
|
|
246
|
+
* @returns {Promise<any>}
|
|
247
|
+
*/
|
|
248
|
+
export function transform(s, opts) {
|
|
249
|
+
const ret = wasm.transform(s, opts);
|
|
250
|
+
return ret;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @param {string} s
|
|
255
|
+
* @param {any} opts
|
|
256
|
+
* @returns {Promise<any>}
|
|
257
|
+
*/
|
|
258
|
+
export function parse(s, opts) {
|
|
259
|
+
const ret = wasm.parse(s, opts);
|
|
260
|
+
return ret;
|
|
261
|
+
}
|
|
262
|
+
|
|
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
|
+
|
|
243
276
|
function passArray8ToWasm0(arg, malloc) {
|
|
244
277
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
245
278
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -271,23 +304,13 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
271
304
|
return v4;
|
|
272
305
|
}
|
|
273
306
|
|
|
274
|
-
/**
|
|
275
|
-
* @param {any} s
|
|
276
|
-
* @param {any} opts
|
|
277
|
-
* @returns {Promise<any>}
|
|
278
|
-
*/
|
|
279
|
-
export function transform(s, opts) {
|
|
280
|
-
const ret = wasm.transform(s, opts);
|
|
281
|
-
return ret;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
307
|
/**
|
|
285
308
|
* @param {string} s
|
|
286
309
|
* @param {any} opts
|
|
287
310
|
* @returns {any}
|
|
288
311
|
*/
|
|
289
|
-
export function
|
|
290
|
-
const ret = wasm.
|
|
312
|
+
export function minifySync(s, opts) {
|
|
313
|
+
const ret = wasm.minifySync(s, opts);
|
|
291
314
|
if (ret[2]) {
|
|
292
315
|
throw takeFromExternrefTable0(ret[1]);
|
|
293
316
|
}
|
|
@@ -299,49 +322,26 @@ export function parseSync(s, opts) {
|
|
|
299
322
|
* @param {any} opts
|
|
300
323
|
* @returns {Promise<any>}
|
|
301
324
|
*/
|
|
302
|
-
export function
|
|
303
|
-
const ret = wasm.
|
|
325
|
+
export function minify(s, opts) {
|
|
326
|
+
const ret = wasm.minify(s, opts);
|
|
304
327
|
return ret;
|
|
305
328
|
}
|
|
306
329
|
|
|
307
|
-
/**
|
|
308
|
-
* @param {any} s
|
|
309
|
-
* @param {any} opts
|
|
310
|
-
* @returns {any}
|
|
311
|
-
*/
|
|
312
|
-
export function transformSync(s, opts) {
|
|
313
|
-
const ret = wasm.transformSync(s, opts);
|
|
314
|
-
if (ret[2]) {
|
|
315
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
316
|
-
}
|
|
317
|
-
return takeFromExternrefTable0(ret[0]);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
330
|
/**
|
|
321
331
|
* @param {string} s
|
|
322
332
|
* @param {any} opts
|
|
323
333
|
* @returns {any}
|
|
324
334
|
*/
|
|
325
|
-
export function
|
|
326
|
-
const ret = wasm.
|
|
335
|
+
export function parseSync(s, opts) {
|
|
336
|
+
const ret = wasm.parseSync(s, opts);
|
|
327
337
|
if (ret[2]) {
|
|
328
338
|
throw takeFromExternrefTable0(ret[1]);
|
|
329
339
|
}
|
|
330
340
|
return takeFromExternrefTable0(ret[0]);
|
|
331
341
|
}
|
|
332
342
|
|
|
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
|
-
|
|
343
343
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
|
-
wasm.
|
|
344
|
+
wasm.closure1308_externref_shim(arg0, arg1, arg2);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -611,8 +611,8 @@ function __wbg_get_imports() {
|
|
|
611
611
|
const ret = false;
|
|
612
612
|
return ret;
|
|
613
613
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
614
|
+
imports.wbg.__wbindgen_closure_wrapper25035 = function(arg0, arg1, arg2) {
|
|
615
|
+
const ret = makeMutClosure(arg0, arg1, 1309, __wbg_adapter_50);
|
|
616
616
|
return ret;
|
|
617
617
|
};
|
|
618
618
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|