@next/swc-wasm-web 16.1.1-canary.15 → 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 +5 -5
- package/wasm.js +28 -29
- 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.15",
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
3
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
5
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
5
6
|
export function parse(s: string, opts: any): Promise<any>;
|
|
6
|
-
export function
|
|
7
|
+
export function transformSync(s: any, opts: any): any;
|
|
7
8
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
8
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
9
9
|
export function minifySync(s: string, opts: any): any;
|
|
10
|
-
export function
|
|
10
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
11
11
|
export function parseSync(s: string, opts: any): any;
|
|
12
12
|
|
|
13
13
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -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
|
@@ -212,6 +212,15 @@ 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
|
+
}
|
|
215
224
|
|
|
216
225
|
function takeFromExternrefTable0(idx) {
|
|
217
226
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -232,12 +241,12 @@ export function mdxCompileSync(value, opts) {
|
|
|
232
241
|
}
|
|
233
242
|
|
|
234
243
|
/**
|
|
235
|
-
* @param {
|
|
244
|
+
* @param {any} s
|
|
236
245
|
* @param {any} opts
|
|
237
246
|
* @returns {Promise<any>}
|
|
238
247
|
*/
|
|
239
|
-
export function
|
|
240
|
-
const ret = wasm.
|
|
248
|
+
export function transform(s, opts) {
|
|
249
|
+
const ret = wasm.transform(s, opts);
|
|
241
250
|
return ret;
|
|
242
251
|
}
|
|
243
252
|
|
|
@@ -252,13 +261,16 @@ export function parse(s, opts) {
|
|
|
252
261
|
}
|
|
253
262
|
|
|
254
263
|
/**
|
|
255
|
-
* @param {
|
|
264
|
+
* @param {any} s
|
|
256
265
|
* @param {any} opts
|
|
257
|
-
* @returns {
|
|
266
|
+
* @returns {any}
|
|
258
267
|
*/
|
|
259
|
-
export function
|
|
260
|
-
const ret = wasm.
|
|
261
|
-
|
|
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]);
|
|
262
274
|
}
|
|
263
275
|
|
|
264
276
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -292,16 +304,6 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
292
304
|
return v4;
|
|
293
305
|
}
|
|
294
306
|
|
|
295
|
-
/**
|
|
296
|
-
* @param {any} s
|
|
297
|
-
* @param {any} opts
|
|
298
|
-
* @returns {Promise<any>}
|
|
299
|
-
*/
|
|
300
|
-
export function transform(s, opts) {
|
|
301
|
-
const ret = wasm.transform(s, opts);
|
|
302
|
-
return ret;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
307
|
/**
|
|
306
308
|
* @param {string} s
|
|
307
309
|
* @param {any} opts
|
|
@@ -316,16 +318,13 @@ export function minifySync(s, opts) {
|
|
|
316
318
|
}
|
|
317
319
|
|
|
318
320
|
/**
|
|
319
|
-
* @param {
|
|
321
|
+
* @param {string} s
|
|
320
322
|
* @param {any} opts
|
|
321
|
-
* @returns {any}
|
|
323
|
+
* @returns {Promise<any>}
|
|
322
324
|
*/
|
|
323
|
-
export function
|
|
324
|
-
const ret = wasm.
|
|
325
|
-
|
|
326
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
327
|
-
}
|
|
328
|
-
return takeFromExternrefTable0(ret[0]);
|
|
325
|
+
export function minify(s, opts) {
|
|
326
|
+
const ret = wasm.minify(s, opts);
|
|
327
|
+
return ret;
|
|
329
328
|
}
|
|
330
329
|
|
|
331
330
|
/**
|
|
@@ -342,7 +341,7 @@ export function parseSync(s, opts) {
|
|
|
342
341
|
}
|
|
343
342
|
|
|
344
343
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
345
|
-
wasm.
|
|
344
|
+
wasm.closure1308_externref_shim(arg0, arg1, arg2);
|
|
346
345
|
}
|
|
347
346
|
|
|
348
347
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -612,8 +611,8 @@ function __wbg_get_imports() {
|
|
|
612
611
|
const ret = false;
|
|
613
612
|
return ret;
|
|
614
613
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
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);
|
|
617
616
|
return ret;
|
|
618
617
|
};
|
|
619
618
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|