@next/swc-wasm-web 16.0.2-canary.9 → 16.0.2
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 +6 -6
- package/wasm.js +49 -47
- 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",
|
|
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,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
4
|
-
export function transformSync(s: any, opts: any): any;
|
|
5
3
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
6
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
7
|
-
export function parseSync(s: string, opts: any): any;
|
|
8
4
|
export function minifySync(s: string, opts: any): any;
|
|
5
|
+
export function parseSync(s: string, opts: any): any;
|
|
6
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
7
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
9
8
|
export function parse(s: string, opts: any): Promise<any>;
|
|
10
|
-
export function
|
|
9
|
+
export function transformSync(s: any, opts: any): any;
|
|
11
10
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
|
+
export function mdxCompile(value: string, opts: any): Promise<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 closure1166_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,33 +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 minify(s, opts) {
|
|
221
|
-
const ret = wasm.minify(s, opts);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function takeFromExternrefTable0(idx) {
|
|
226
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
227
|
-
wasm.__externref_table_dealloc(idx);
|
|
228
|
-
return value;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* @param {any} s
|
|
232
|
-
* @param {any} opts
|
|
233
|
-
* @returns {any}
|
|
234
|
-
*/
|
|
235
|
-
export function transformSync(s, opts) {
|
|
236
|
-
const ret = wasm.transformSync(s, opts);
|
|
237
|
-
if (ret[2]) {
|
|
238
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
239
|
-
}
|
|
240
|
-
return takeFromExternrefTable0(ret[0]);
|
|
241
|
-
}
|
|
242
215
|
|
|
243
216
|
function passArray8ToWasm0(arg, malloc) {
|
|
244
217
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
@@ -246,6 +219,12 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
246
219
|
WASM_VECTOR_LEN = arg.length;
|
|
247
220
|
return ptr;
|
|
248
221
|
}
|
|
222
|
+
|
|
223
|
+
function takeFromExternrefTable0(idx) {
|
|
224
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
225
|
+
wasm.__externref_table_dealloc(idx);
|
|
226
|
+
return value;
|
|
227
|
+
}
|
|
249
228
|
/**
|
|
250
229
|
* @param {Uint8Array} content
|
|
251
230
|
* @param {string} template_path
|
|
@@ -272,13 +251,16 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
272
251
|
}
|
|
273
252
|
|
|
274
253
|
/**
|
|
275
|
-
* @param {
|
|
254
|
+
* @param {string} s
|
|
276
255
|
* @param {any} opts
|
|
277
|
-
* @returns {
|
|
256
|
+
* @returns {any}
|
|
278
257
|
*/
|
|
279
|
-
export function
|
|
280
|
-
const ret = wasm.
|
|
281
|
-
|
|
258
|
+
export function minifySync(s, opts) {
|
|
259
|
+
const ret = wasm.minifySync(s, opts);
|
|
260
|
+
if (ret[2]) {
|
|
261
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
262
|
+
}
|
|
263
|
+
return takeFromExternrefTable0(ret[0]);
|
|
282
264
|
}
|
|
283
265
|
|
|
284
266
|
/**
|
|
@@ -297,14 +279,21 @@ export function parseSync(s, opts) {
|
|
|
297
279
|
/**
|
|
298
280
|
* @param {string} s
|
|
299
281
|
* @param {any} opts
|
|
300
|
-
* @returns {any}
|
|
282
|
+
* @returns {Promise<any>}
|
|
301
283
|
*/
|
|
302
|
-
export function
|
|
303
|
-
const ret = wasm.
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
284
|
+
export function minify(s, opts) {
|
|
285
|
+
const ret = wasm.minify(s, opts);
|
|
286
|
+
return ret;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @param {any} s
|
|
291
|
+
* @param {any} opts
|
|
292
|
+
* @returns {Promise<any>}
|
|
293
|
+
*/
|
|
294
|
+
export function transform(s, opts) {
|
|
295
|
+
const ret = wasm.transform(s, opts);
|
|
296
|
+
return ret;
|
|
308
297
|
}
|
|
309
298
|
|
|
310
299
|
/**
|
|
@@ -318,13 +307,16 @@ export function parse(s, opts) {
|
|
|
318
307
|
}
|
|
319
308
|
|
|
320
309
|
/**
|
|
321
|
-
* @param {
|
|
310
|
+
* @param {any} s
|
|
322
311
|
* @param {any} opts
|
|
323
|
-
* @returns {
|
|
312
|
+
* @returns {any}
|
|
324
313
|
*/
|
|
325
|
-
export function
|
|
326
|
-
const ret = wasm.
|
|
327
|
-
|
|
314
|
+
export function transformSync(s, opts) {
|
|
315
|
+
const ret = wasm.transformSync(s, opts);
|
|
316
|
+
if (ret[2]) {
|
|
317
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
318
|
+
}
|
|
319
|
+
return takeFromExternrefTable0(ret[0]);
|
|
328
320
|
}
|
|
329
321
|
|
|
330
322
|
/**
|
|
@@ -340,8 +332,18 @@ export function mdxCompileSync(value, opts) {
|
|
|
340
332
|
return takeFromExternrefTable0(ret[0]);
|
|
341
333
|
}
|
|
342
334
|
|
|
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
|
+
|
|
343
345
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
|
-
wasm.
|
|
346
|
+
wasm.closure1166_externref_shim(arg0, arg1, arg2);
|
|
345
347
|
}
|
|
346
348
|
|
|
347
349
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -611,8 +613,8 @@ function __wbg_get_imports() {
|
|
|
611
613
|
const ret = false;
|
|
612
614
|
return ret;
|
|
613
615
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
616
|
+
imports.wbg.__wbindgen_closure_wrapper23882 = function(arg0, arg1, arg2) {
|
|
617
|
+
const ret = makeMutClosure(arg0, arg1, 1167, __wbg_adapter_50);
|
|
616
618
|
return ret;
|
|
617
619
|
};
|
|
618
620
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|