@next/swc-wasm-web 16.0.2-canary.2 → 16.0.2-canary.20
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 +4 -4
- package/wasm.js +39 -39
- 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.2-canary.2",
|
|
3
|
+
"version": "16.0.2-canary.20",
|
|
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 transformSync(s: any, opts: any): any;
|
|
3
4
|
export function parseSync(s: string, opts: any): any;
|
|
4
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
5
|
-
export function
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
6
7
|
export function parse(s: string, opts: any): Promise<any>;
|
|
7
8
|
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
9
|
export function transform(s: any, opts: any): Promise<any>;
|
|
10
|
-
export function mdxCompileSync(value: 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,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
|
@@ -219,12 +219,12 @@ function takeFromExternrefTable0(idx) {
|
|
|
219
219
|
return value;
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
* @param {
|
|
222
|
+
* @param {any} s
|
|
223
223
|
* @param {any} opts
|
|
224
224
|
* @returns {any}
|
|
225
225
|
*/
|
|
226
|
-
export function
|
|
227
|
-
const ret = wasm.
|
|
226
|
+
export function transformSync(s, opts) {
|
|
227
|
+
const ret = wasm.transformSync(s, opts);
|
|
228
228
|
if (ret[2]) {
|
|
229
229
|
throw takeFromExternrefTable0(ret[1]);
|
|
230
230
|
}
|
|
@@ -234,20 +234,10 @@ export function parseSync(s, opts) {
|
|
|
234
234
|
/**
|
|
235
235
|
* @param {string} s
|
|
236
236
|
* @param {any} opts
|
|
237
|
-
* @returns {Promise<any>}
|
|
238
|
-
*/
|
|
239
|
-
export function minify(s, opts) {
|
|
240
|
-
const ret = wasm.minify(s, opts);
|
|
241
|
-
return ret;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @param {any} s
|
|
246
|
-
* @param {any} opts
|
|
247
237
|
* @returns {any}
|
|
248
238
|
*/
|
|
249
|
-
export function
|
|
250
|
-
const ret = wasm.
|
|
239
|
+
export function parseSync(s, opts) {
|
|
240
|
+
const ret = wasm.parseSync(s, opts);
|
|
251
241
|
if (ret[2]) {
|
|
252
242
|
throw takeFromExternrefTable0(ret[1]);
|
|
253
243
|
}
|
|
@@ -259,24 +249,11 @@ export function transformSync(s, opts) {
|
|
|
259
249
|
* @param {any} opts
|
|
260
250
|
* @returns {Promise<any>}
|
|
261
251
|
*/
|
|
262
|
-
export function
|
|
263
|
-
const ret = wasm.
|
|
252
|
+
export function minify(s, opts) {
|
|
253
|
+
const ret = wasm.minify(s, opts);
|
|
264
254
|
return ret;
|
|
265
255
|
}
|
|
266
256
|
|
|
267
|
-
/**
|
|
268
|
-
* @param {string} s
|
|
269
|
-
* @param {any} opts
|
|
270
|
-
* @returns {any}
|
|
271
|
-
*/
|
|
272
|
-
export function minifySync(s, opts) {
|
|
273
|
-
const ret = wasm.minifySync(s, opts);
|
|
274
|
-
if (ret[2]) {
|
|
275
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
276
|
-
}
|
|
277
|
-
return takeFromExternrefTable0(ret[0]);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
257
|
function passArray8ToWasm0(arg, malloc) {
|
|
281
258
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
282
259
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -309,28 +286,38 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
309
286
|
}
|
|
310
287
|
|
|
311
288
|
/**
|
|
312
|
-
* @param {
|
|
289
|
+
* @param {string} s
|
|
313
290
|
* @param {any} opts
|
|
314
291
|
* @returns {Promise<any>}
|
|
315
292
|
*/
|
|
316
|
-
export function
|
|
317
|
-
const ret = wasm.
|
|
293
|
+
export function parse(s, opts) {
|
|
294
|
+
const ret = wasm.parse(s, opts);
|
|
318
295
|
return ret;
|
|
319
296
|
}
|
|
320
297
|
|
|
321
298
|
/**
|
|
322
|
-
* @param {string}
|
|
299
|
+
* @param {string} s
|
|
323
300
|
* @param {any} opts
|
|
324
301
|
* @returns {any}
|
|
325
302
|
*/
|
|
326
|
-
export function
|
|
327
|
-
const ret = wasm.
|
|
303
|
+
export function minifySync(s, opts) {
|
|
304
|
+
const ret = wasm.minifySync(s, opts);
|
|
328
305
|
if (ret[2]) {
|
|
329
306
|
throw takeFromExternrefTable0(ret[1]);
|
|
330
307
|
}
|
|
331
308
|
return takeFromExternrefTable0(ret[0]);
|
|
332
309
|
}
|
|
333
310
|
|
|
311
|
+
/**
|
|
312
|
+
* @param {any} s
|
|
313
|
+
* @param {any} opts
|
|
314
|
+
* @returns {Promise<any>}
|
|
315
|
+
*/
|
|
316
|
+
export function transform(s, opts) {
|
|
317
|
+
const ret = wasm.transform(s, opts);
|
|
318
|
+
return ret;
|
|
319
|
+
}
|
|
320
|
+
|
|
334
321
|
/**
|
|
335
322
|
* @param {string} value
|
|
336
323
|
* @param {any} opts
|
|
@@ -341,8 +328,21 @@ export function mdxCompile(value, opts) {
|
|
|
341
328
|
return ret;
|
|
342
329
|
}
|
|
343
330
|
|
|
331
|
+
/**
|
|
332
|
+
* @param {string} value
|
|
333
|
+
* @param {any} opts
|
|
334
|
+
* @returns {any}
|
|
335
|
+
*/
|
|
336
|
+
export function mdxCompileSync(value, opts) {
|
|
337
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
338
|
+
if (ret[2]) {
|
|
339
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
340
|
+
}
|
|
341
|
+
return takeFromExternrefTable0(ret[0]);
|
|
342
|
+
}
|
|
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_wrapper23889 = 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
|