@next/swc-wasm-web 16.0.2-canary.0 → 16.0.2-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 +3 -2
- package/wasm.d.ts +5 -5
- package/wasm.js +50 -50
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-web",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "16.0.2-canary.10",
|
|
4
5
|
"files": [
|
|
5
6
|
"wasm_bg.wasm",
|
|
6
7
|
"wasm.js",
|
|
7
8
|
"wasm.d.ts"
|
|
8
9
|
],
|
|
9
|
-
"
|
|
10
|
+
"main": "wasm.js",
|
|
10
11
|
"types": "wasm.d.ts",
|
|
11
12
|
"sideEffects": [
|
|
12
13
|
"./snippets/*"
|
package/wasm.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
4
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
4
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
7
|
+
export function parseSync(s: string, opts: any): any;
|
|
5
8
|
export function transformSync(s: any, opts: any): any;
|
|
6
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
7
9
|
export function minifySync(s: string, opts: any): any;
|
|
8
|
-
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
9
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
10
10
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
11
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
12
12
|
|
|
@@ -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 closure1163_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
35
|
readonly closure124_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
36
|
readonly __wbindgen_start: () => void;
|
|
37
37
|
}
|
package/wasm.js
CHANGED
|
@@ -212,69 +212,34 @@ 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
|
-
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} s
|
|
223
|
-
* @param {any} opts
|
|
224
|
-
* @returns {any}
|
|
225
|
-
*/
|
|
226
|
-
export function parseSync(s, opts) {
|
|
227
|
-
const ret = wasm.parseSync(s, opts);
|
|
228
|
-
if (ret[2]) {
|
|
229
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
230
|
-
}
|
|
231
|
-
return takeFromExternrefTable0(ret[0]);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
215
|
/**
|
|
235
216
|
* @param {string} s
|
|
236
217
|
* @param {any} opts
|
|
237
218
|
* @returns {Promise<any>}
|
|
238
219
|
*/
|
|
239
|
-
export function
|
|
240
|
-
const ret = wasm.
|
|
220
|
+
export function parse(s, opts) {
|
|
221
|
+
const ret = wasm.parse(s, opts);
|
|
241
222
|
return ret;
|
|
242
223
|
}
|
|
243
224
|
|
|
244
225
|
/**
|
|
245
226
|
* @param {any} s
|
|
246
227
|
* @param {any} opts
|
|
247
|
-
* @returns {any}
|
|
248
|
-
*/
|
|
249
|
-
export function transformSync(s, opts) {
|
|
250
|
-
const ret = wasm.transformSync(s, opts);
|
|
251
|
-
if (ret[2]) {
|
|
252
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
253
|
-
}
|
|
254
|
-
return takeFromExternrefTable0(ret[0]);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @param {string} s
|
|
259
|
-
* @param {any} opts
|
|
260
228
|
* @returns {Promise<any>}
|
|
261
229
|
*/
|
|
262
|
-
export function
|
|
263
|
-
const ret = wasm.
|
|
230
|
+
export function transform(s, opts) {
|
|
231
|
+
const ret = wasm.transform(s, opts);
|
|
264
232
|
return ret;
|
|
265
233
|
}
|
|
266
234
|
|
|
267
235
|
/**
|
|
268
236
|
* @param {string} s
|
|
269
237
|
* @param {any} opts
|
|
270
|
-
* @returns {any}
|
|
238
|
+
* @returns {Promise<any>}
|
|
271
239
|
*/
|
|
272
|
-
export function
|
|
273
|
-
const ret = wasm.
|
|
274
|
-
|
|
275
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
276
|
-
}
|
|
277
|
-
return takeFromExternrefTable0(ret[0]);
|
|
240
|
+
export function minify(s, opts) {
|
|
241
|
+
const ret = wasm.minify(s, opts);
|
|
242
|
+
return ret;
|
|
278
243
|
}
|
|
279
244
|
|
|
280
245
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -283,6 +248,12 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
283
248
|
WASM_VECTOR_LEN = arg.length;
|
|
284
249
|
return ptr;
|
|
285
250
|
}
|
|
251
|
+
|
|
252
|
+
function takeFromExternrefTable0(idx) {
|
|
253
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
254
|
+
wasm.__externref_table_dealloc(idx);
|
|
255
|
+
return value;
|
|
256
|
+
}
|
|
286
257
|
/**
|
|
287
258
|
* @param {Uint8Array} content
|
|
288
259
|
* @param {string} template_path
|
|
@@ -308,14 +279,43 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
308
279
|
return v4;
|
|
309
280
|
}
|
|
310
281
|
|
|
282
|
+
/**
|
|
283
|
+
* @param {string} s
|
|
284
|
+
* @param {any} opts
|
|
285
|
+
* @returns {any}
|
|
286
|
+
*/
|
|
287
|
+
export function parseSync(s, opts) {
|
|
288
|
+
const ret = wasm.parseSync(s, opts);
|
|
289
|
+
if (ret[2]) {
|
|
290
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
291
|
+
}
|
|
292
|
+
return takeFromExternrefTable0(ret[0]);
|
|
293
|
+
}
|
|
294
|
+
|
|
311
295
|
/**
|
|
312
296
|
* @param {any} s
|
|
313
297
|
* @param {any} opts
|
|
314
|
-
* @returns {
|
|
298
|
+
* @returns {any}
|
|
315
299
|
*/
|
|
316
|
-
export function
|
|
317
|
-
const ret = wasm.
|
|
318
|
-
|
|
300
|
+
export function transformSync(s, opts) {
|
|
301
|
+
const ret = wasm.transformSync(s, opts);
|
|
302
|
+
if (ret[2]) {
|
|
303
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
304
|
+
}
|
|
305
|
+
return takeFromExternrefTable0(ret[0]);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @param {string} s
|
|
310
|
+
* @param {any} opts
|
|
311
|
+
* @returns {any}
|
|
312
|
+
*/
|
|
313
|
+
export function minifySync(s, opts) {
|
|
314
|
+
const ret = wasm.minifySync(s, opts);
|
|
315
|
+
if (ret[2]) {
|
|
316
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
317
|
+
}
|
|
318
|
+
return takeFromExternrefTable0(ret[0]);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
/**
|
|
@@ -342,7 +342,7 @@ export function mdxCompile(value, opts) {
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
345
|
-
wasm.
|
|
345
|
+
wasm.closure1163_externref_shim(arg0, arg1, arg2);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -612,8 +612,8 @@ function __wbg_get_imports() {
|
|
|
612
612
|
const ret = false;
|
|
613
613
|
return ret;
|
|
614
614
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
615
|
+
imports.wbg.__wbindgen_closure_wrapper23888 = function(arg0, arg1, arg2) {
|
|
616
|
+
const ret = makeMutClosure(arg0, arg1, 1164, __wbg_adapter_50);
|
|
617
617
|
return ret;
|
|
618
618
|
};
|
|
619
619
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|