@next/swc-wasm-nodejs 15.3.1-canary.9 → 15.3.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 +1 -1
- package/wasm.d.ts +12 -12
- package/wasm.js +64 -64
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} value
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {Promise<any>}
|
|
13
|
-
*/
|
|
14
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
4
|
* @param {string} s
|
|
17
5
|
* @param {any} opts
|
|
18
6
|
* @returns {any}
|
|
@@ -48,3 +36,15 @@ export function parseSync(s: string, opts: any): any;
|
|
|
48
36
|
* @returns {Promise<any>}
|
|
49
37
|
*/
|
|
50
38
|
export function parse(s: string, opts: any): Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} value
|
|
41
|
+
* @param {any} opts
|
|
42
|
+
* @returns {any}
|
|
43
|
+
*/
|
|
44
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param {string} value
|
|
47
|
+
* @param {any} opts
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
50
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -50,28 +50,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
50
50
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function isLikeNone(x) {
|
|
54
|
-
return x === undefined || x === null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
let cachedFloat64Memory0 = null;
|
|
58
|
-
|
|
59
|
-
function getFloat64Memory0() {
|
|
60
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
61
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
62
|
-
}
|
|
63
|
-
return cachedFloat64Memory0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
let cachedInt32Memory0 = null;
|
|
67
|
-
|
|
68
|
-
function getInt32Memory0() {
|
|
69
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
70
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
71
|
-
}
|
|
72
|
-
return cachedInt32Memory0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
53
|
let WASM_VECTOR_LEN = 0;
|
|
76
54
|
|
|
77
55
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -128,6 +106,28 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
128
106
|
return ptr;
|
|
129
107
|
}
|
|
130
108
|
|
|
109
|
+
function isLikeNone(x) {
|
|
110
|
+
return x === undefined || x === null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let cachedInt32Memory0 = null;
|
|
114
|
+
|
|
115
|
+
function getInt32Memory0() {
|
|
116
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
117
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
118
|
+
}
|
|
119
|
+
return cachedInt32Memory0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let cachedFloat64Memory0 = null;
|
|
123
|
+
|
|
124
|
+
function getFloat64Memory0() {
|
|
125
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
126
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
127
|
+
}
|
|
128
|
+
return cachedFloat64Memory0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
131
|
let cachedBigInt64Memory0 = null;
|
|
132
132
|
|
|
133
133
|
function getBigInt64Memory0() {
|
|
@@ -233,7 +233,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
233
233
|
return real;
|
|
234
234
|
}
|
|
235
235
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
236
|
-
wasm.
|
|
236
|
+
wasm._dyn_core_1179c76b4fb746ac___ops__function__FnMut_______Output______as_wasm_bindgen_89e0906eab2faa98___closure__WasmClosure___describe__invoke___wasm_bindgen_89e0906eab2faa98___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -252,18 +252,18 @@ function handleError(f, args) {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
function __wbg_adapter_113(arg0, arg1, arg2, arg3) {
|
|
255
|
-
wasm.
|
|
255
|
+
wasm.wasm_bindgen_89e0906eab2faa98___convert__closures__invoke2_mut___wasm_bindgen_89e0906eab2faa98___JsValue__wasm_bindgen_89e0906eab2faa98___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
|
-
* @param {string}
|
|
259
|
+
* @param {string} s
|
|
260
260
|
* @param {any} opts
|
|
261
261
|
* @returns {any}
|
|
262
262
|
*/
|
|
263
|
-
module.exports.
|
|
263
|
+
module.exports.minifySync = function(s, opts) {
|
|
264
264
|
try {
|
|
265
265
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
266
|
-
wasm.
|
|
266
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
267
267
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
268
268
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
269
269
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -277,24 +277,24 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
277
277
|
};
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* @param {string}
|
|
280
|
+
* @param {string} s
|
|
281
281
|
* @param {any} opts
|
|
282
282
|
* @returns {Promise<any>}
|
|
283
283
|
*/
|
|
284
|
-
module.exports.
|
|
285
|
-
const ret = wasm.
|
|
284
|
+
module.exports.minify = function(s, opts) {
|
|
285
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
286
286
|
return takeObject(ret);
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @param {
|
|
290
|
+
* @param {any} s
|
|
291
291
|
* @param {any} opts
|
|
292
292
|
* @returns {any}
|
|
293
293
|
*/
|
|
294
|
-
module.exports.
|
|
294
|
+
module.exports.transformSync = function(s, opts) {
|
|
295
295
|
try {
|
|
296
296
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
297
|
-
wasm.
|
|
297
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
298
298
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
299
299
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
300
300
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -308,24 +308,24 @@ module.exports.minifySync = function(s, opts) {
|
|
|
308
308
|
};
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* @param {
|
|
311
|
+
* @param {any} s
|
|
312
312
|
* @param {any} opts
|
|
313
313
|
* @returns {Promise<any>}
|
|
314
314
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
315
|
+
module.exports.transform = function(s, opts) {
|
|
316
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
317
317
|
return takeObject(ret);
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
* @param {
|
|
321
|
+
* @param {string} s
|
|
322
322
|
* @param {any} opts
|
|
323
323
|
* @returns {any}
|
|
324
324
|
*/
|
|
325
|
-
module.exports.
|
|
325
|
+
module.exports.parseSync = function(s, opts) {
|
|
326
326
|
try {
|
|
327
327
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
wasm.
|
|
328
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
329
329
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
330
330
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
331
331
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -339,24 +339,24 @@ module.exports.transformSync = function(s, opts) {
|
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* @param {
|
|
342
|
+
* @param {string} s
|
|
343
343
|
* @param {any} opts
|
|
344
344
|
* @returns {Promise<any>}
|
|
345
345
|
*/
|
|
346
|
-
module.exports.
|
|
347
|
-
const ret = wasm.
|
|
346
|
+
module.exports.parse = function(s, opts) {
|
|
347
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
348
348
|
return takeObject(ret);
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* @param {string}
|
|
352
|
+
* @param {string} value
|
|
353
353
|
* @param {any} opts
|
|
354
354
|
* @returns {any}
|
|
355
355
|
*/
|
|
356
|
-
module.exports.
|
|
356
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
357
357
|
try {
|
|
358
358
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
359
|
-
wasm.
|
|
359
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
360
360
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
361
361
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
362
362
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -370,12 +370,12 @@ module.exports.parseSync = function(s, opts) {
|
|
|
370
370
|
};
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
|
-
* @param {string}
|
|
373
|
+
* @param {string} value
|
|
374
374
|
* @param {any} opts
|
|
375
375
|
* @returns {Promise<any>}
|
|
376
376
|
*/
|
|
377
|
-
module.exports.
|
|
378
|
-
const ret = wasm.
|
|
377
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
378
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
379
379
|
return takeObject(ret);
|
|
380
380
|
};
|
|
381
381
|
|
|
@@ -383,6 +383,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
383
383
|
takeObject(arg0);
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
+
module.exports.__wbg_new0_7a6141101f2206da = function() {
|
|
387
|
+
const ret = new Date();
|
|
388
|
+
return addHeapObject(ret);
|
|
389
|
+
};
|
|
390
|
+
|
|
386
391
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
387
392
|
const ret = arg0;
|
|
388
393
|
return addHeapObject(ret);
|
|
@@ -435,11 +440,6 @@ module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
|
|
|
435
440
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
436
441
|
};
|
|
437
442
|
|
|
438
|
-
module.exports.__wbg_new0_7a6141101f2206da = function() {
|
|
439
|
-
const ret = new Date();
|
|
440
|
-
return addHeapObject(ret);
|
|
441
|
-
};
|
|
442
|
-
|
|
443
443
|
module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
|
|
444
444
|
const ret = getObject(arg0).getTime();
|
|
445
445
|
return ret;
|
|
@@ -586,6 +586,15 @@ module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
|
|
|
586
586
|
return addHeapObject(ret);
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
590
|
+
const obj = getObject(arg1);
|
|
591
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
592
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
|
+
var len1 = WASM_VECTOR_LEN;
|
|
594
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
595
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
596
|
+
};
|
|
597
|
+
|
|
589
598
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
590
599
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
591
600
|
return addHeapObject(ret);
|
|
@@ -609,15 +618,6 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
609
618
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
610
619
|
};
|
|
611
620
|
|
|
612
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
613
|
-
const obj = getObject(arg1);
|
|
614
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
615
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
-
var len1 = WASM_VECTOR_LEN;
|
|
617
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
618
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
619
|
-
};
|
|
620
|
-
|
|
621
621
|
module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
|
|
622
622
|
let result;
|
|
623
623
|
try {
|
|
@@ -795,8 +795,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
795
795
|
return ret;
|
|
796
796
|
};
|
|
797
797
|
|
|
798
|
-
module.exports.
|
|
799
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
798
|
+
module.exports.__wbindgen_closure_wrapper25104 = function(arg0, arg1, arg2) {
|
|
799
|
+
const ret = makeMutClosure(arg0, arg1, 1277, __wbg_adapter_48);
|
|
800
800
|
return addHeapObject(ret);
|
|
801
801
|
};
|
|
802
802
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|