@next/swc-wasm-web 13.2.5-canary.8 → 13.3.0
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 +4 -2
- package/wasm.d.ts +16 -16
- package/wasm.js +32 -32
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-web",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"wasm_bg.wasm",
|
|
6
6
|
"wasm.js",
|
|
@@ -8,5 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"module": "wasm.js",
|
|
10
10
|
"types": "wasm.d.ts",
|
|
11
|
-
"sideEffects":
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"./snippets/*"
|
|
13
|
+
]
|
|
12
14
|
}
|
package/wasm.d.ts
CHANGED
|
@@ -7,6 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function browserslist(query: string, opts: any): any;
|
|
9
9
|
/**
|
|
10
|
+
* @param {string} value
|
|
11
|
+
* @param {any} opts
|
|
12
|
+
* @returns {any}
|
|
13
|
+
*/
|
|
14
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} value
|
|
17
|
+
* @param {any} opts
|
|
18
|
+
* @returns {Promise<any>}
|
|
19
|
+
*/
|
|
20
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
21
|
+
/**
|
|
10
22
|
* @param {string} s
|
|
11
23
|
* @param {any} opts
|
|
12
24
|
* @returns {any}
|
|
@@ -42,40 +54,28 @@ export function parseSync(s: string, opts: any): any;
|
|
|
42
54
|
* @returns {Promise<any>}
|
|
43
55
|
*/
|
|
44
56
|
export function parse(s: string, opts: any): Promise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} value
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {any}
|
|
49
|
-
*/
|
|
50
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
51
|
-
/**
|
|
52
|
-
* @param {string} value
|
|
53
|
-
* @param {any} opts
|
|
54
|
-
* @returns {Promise<any>}
|
|
55
|
-
*/
|
|
56
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
57
57
|
|
|
58
58
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
59
59
|
|
|
60
60
|
export interface InitOutput {
|
|
61
61
|
readonly memory: WebAssembly.Memory;
|
|
62
62
|
readonly browserslist: (a: number, b: number, c: number, d: number) => void;
|
|
63
|
+
readonly mdxCompileSync: (a: number, b: number, c: number) => void;
|
|
64
|
+
readonly mdxCompile: (a: number, b: number) => number;
|
|
63
65
|
readonly minifySync: (a: number, b: number, c: number) => void;
|
|
64
66
|
readonly minify: (a: number, b: number) => number;
|
|
65
67
|
readonly transformSync: (a: number, b: number, c: number) => void;
|
|
66
68
|
readonly transform: (a: number, b: number) => number;
|
|
67
69
|
readonly parseSync: (a: number, b: number, c: number) => void;
|
|
68
70
|
readonly parse: (a: number, b: number) => number;
|
|
69
|
-
readonly mdxCompileSync: (a: number, b: number, c: number) => void;
|
|
70
|
-
readonly mdxCompile: (a: number, b: number) => number;
|
|
71
71
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
72
72
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
73
73
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
74
|
-
readonly
|
|
74
|
+
readonly _dyn_core_e7bf91d7bc92fdf___ops__function__FnMut_______Output______as_wasm_bindgen_3c63829818789cc7___closure__WasmClosure___describe__invoke___wasm_bindgen_3c63829818789cc7___JsValue_____: (a: number, b: number, c: number) => void;
|
|
75
75
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
76
76
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
77
77
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
78
|
-
readonly
|
|
78
|
+
readonly wasm_bindgen_3c63829818789cc7___convert__closures__invoke2_mut___wasm_bindgen_3c63829818789cc7___JsValue__wasm_bindgen_3c63829818789cc7___JsValue_____: (a: number, b: number, c: number, d: number) => void;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/wasm.js
CHANGED
|
@@ -222,7 +222,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
222
222
|
return real;
|
|
223
223
|
}
|
|
224
224
|
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
225
|
-
wasm.
|
|
225
|
+
wasm._dyn_core_e7bf91d7bc92fdf___ops__function__FnMut_______Output______as_wasm_bindgen_3c63829818789cc7___closure__WasmClosure___describe__invoke___wasm_bindgen_3c63829818789cc7___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
@@ -264,18 +264,18 @@ function handleError(f, args) {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
|
|
267
|
-
wasm.
|
|
267
|
+
wasm.wasm_bindgen_3c63829818789cc7___convert__closures__invoke2_mut___wasm_bindgen_3c63829818789cc7___JsValue__wasm_bindgen_3c63829818789cc7___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* @param {string}
|
|
271
|
+
* @param {string} value
|
|
272
272
|
* @param {any} opts
|
|
273
273
|
* @returns {any}
|
|
274
274
|
*/
|
|
275
|
-
export function
|
|
275
|
+
export function mdxCompileSync(value, opts) {
|
|
276
276
|
try {
|
|
277
277
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
279
279
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
280
280
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
281
281
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -289,24 +289,24 @@ export function minifySync(s, opts) {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* @param {string}
|
|
292
|
+
* @param {string} value
|
|
293
293
|
* @param {any} opts
|
|
294
294
|
* @returns {Promise<any>}
|
|
295
295
|
*/
|
|
296
|
-
export function
|
|
297
|
-
const ret = wasm.
|
|
296
|
+
export function mdxCompile(value, opts) {
|
|
297
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
298
298
|
return takeObject(ret);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* @param {
|
|
302
|
+
* @param {string} s
|
|
303
303
|
* @param {any} opts
|
|
304
304
|
* @returns {any}
|
|
305
305
|
*/
|
|
306
|
-
export function
|
|
306
|
+
export function minifySync(s, opts) {
|
|
307
307
|
try {
|
|
308
308
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
|
-
wasm.
|
|
309
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
310
310
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
311
311
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
312
312
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -320,24 +320,24 @@ export function transformSync(s, opts) {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* @param {
|
|
323
|
+
* @param {string} s
|
|
324
324
|
* @param {any} opts
|
|
325
325
|
* @returns {Promise<any>}
|
|
326
326
|
*/
|
|
327
|
-
export function
|
|
328
|
-
const ret = wasm.
|
|
327
|
+
export function minify(s, opts) {
|
|
328
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
329
329
|
return takeObject(ret);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
|
-
* @param {
|
|
333
|
+
* @param {any} s
|
|
334
334
|
* @param {any} opts
|
|
335
335
|
* @returns {any}
|
|
336
336
|
*/
|
|
337
|
-
export function
|
|
337
|
+
export function transformSync(s, opts) {
|
|
338
338
|
try {
|
|
339
339
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
340
|
-
wasm.
|
|
340
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
341
341
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
342
342
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
343
343
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -351,24 +351,24 @@ export function parseSync(s, opts) {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* @param {
|
|
354
|
+
* @param {any} s
|
|
355
355
|
* @param {any} opts
|
|
356
356
|
* @returns {Promise<any>}
|
|
357
357
|
*/
|
|
358
|
-
export function
|
|
359
|
-
const ret = wasm.
|
|
358
|
+
export function transform(s, opts) {
|
|
359
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
360
360
|
return takeObject(ret);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
|
-
* @param {string}
|
|
364
|
+
* @param {string} s
|
|
365
365
|
* @param {any} opts
|
|
366
366
|
* @returns {any}
|
|
367
367
|
*/
|
|
368
|
-
export function
|
|
368
|
+
export function parseSync(s, opts) {
|
|
369
369
|
try {
|
|
370
370
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
371
|
-
wasm.
|
|
371
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
372
372
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
373
373
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
374
374
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -382,12 +382,12 @@ export function mdxCompileSync(value, opts) {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* @param {string}
|
|
385
|
+
* @param {string} s
|
|
386
386
|
* @param {any} opts
|
|
387
387
|
* @returns {Promise<any>}
|
|
388
388
|
*/
|
|
389
|
-
export function
|
|
390
|
-
const ret = wasm.
|
|
389
|
+
export function parse(s, opts) {
|
|
390
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
391
391
|
return takeObject(ret);
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -606,6 +606,10 @@ imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
|
|
|
606
606
|
const ret = result;
|
|
607
607
|
return ret;
|
|
608
608
|
};
|
|
609
|
+
imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
610
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
611
|
+
return addHeapObject(ret);
|
|
612
|
+
}, arguments) };
|
|
609
613
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
610
614
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
611
615
|
return ret;
|
|
@@ -618,10 +622,6 @@ imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
|
618
622
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
619
623
|
return addHeapObject(ret);
|
|
620
624
|
};
|
|
621
|
-
imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
622
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
623
|
-
return addHeapObject(ret);
|
|
624
|
-
}, arguments) };
|
|
625
625
|
imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
|
|
626
626
|
const ret = Array.isArray(getObject(arg0));
|
|
627
627
|
return ret;
|
|
@@ -709,8 +709,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
709
709
|
const ret = false;
|
|
710
710
|
return ret;
|
|
711
711
|
};
|
|
712
|
-
imports.wbg.
|
|
713
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
712
|
+
imports.wbg.__wbindgen_closure_wrapper23454 = function(arg0, arg1, arg2) {
|
|
713
|
+
const ret = makeMutClosure(arg0, arg1, 280, __wbg_adapter_46);
|
|
714
714
|
return addHeapObject(ret);
|
|
715
715
|
};
|
|
716
716
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|