@next/swc-wasm-nodejs 15.4.0 → 15.4.1
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 +2 -2
- package/wasm.js +36 -81
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
3
5
|
export function minifySync(s: string, opts: any): any;
|
|
4
6
|
export function minify(s: string, opts: any): Promise<any>;
|
|
5
7
|
export function transformSync(s: any, opts: any): any;
|
|
6
8
|
export function transform(s: any, opts: any): Promise<any>;
|
|
7
9
|
export function parseSync(s: string, opts: any): any;
|
|
8
10
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
10
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
imports['env'] = require('env');
|
|
5
4
|
let wasm;
|
|
6
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
7
6
|
|
|
@@ -48,6 +47,11 @@ function getCachedStringFromWasm0(ptr, len) {
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
51
|
+
ptr = ptr >>> 0;
|
|
52
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
let WASM_VECTOR_LEN = 0;
|
|
52
56
|
|
|
53
57
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -218,6 +222,29 @@ function takeFromExternrefTable0(idx) {
|
|
|
218
222
|
wasm.__externref_table_dealloc(idx);
|
|
219
223
|
return value;
|
|
220
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* @param {string} value
|
|
227
|
+
* @param {any} opts
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
231
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
232
|
+
if (ret[2]) {
|
|
233
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
234
|
+
}
|
|
235
|
+
return takeFromExternrefTable0(ret[0]);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @param {string} value
|
|
240
|
+
* @param {any} opts
|
|
241
|
+
* @returns {Promise<any>}
|
|
242
|
+
*/
|
|
243
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
244
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
245
|
+
return ret;
|
|
246
|
+
};
|
|
247
|
+
|
|
221
248
|
/**
|
|
222
249
|
* @param {string} s
|
|
223
250
|
* @param {any} opts
|
|
@@ -287,35 +314,12 @@ module.exports.parse = function(s, opts) {
|
|
|
287
314
|
return ret;
|
|
288
315
|
};
|
|
289
316
|
|
|
290
|
-
/**
|
|
291
|
-
* @param {string} value
|
|
292
|
-
* @param {any} opts
|
|
293
|
-
* @returns {any}
|
|
294
|
-
*/
|
|
295
|
-
module.exports.mdxCompileSync = function(value, opts) {
|
|
296
|
-
const ret = wasm.mdxCompileSync(value, opts);
|
|
297
|
-
if (ret[2]) {
|
|
298
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
299
|
-
}
|
|
300
|
-
return takeFromExternrefTable0(ret[0]);
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* @param {string} value
|
|
305
|
-
* @param {any} opts
|
|
306
|
-
* @returns {Promise<any>}
|
|
307
|
-
*/
|
|
308
|
-
module.exports.mdxCompile = function(value, opts) {
|
|
309
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
310
|
-
return ret;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
317
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
314
|
-
wasm.
|
|
318
|
+
wasm.closure1071_externref_shim(arg0, arg1, arg2);
|
|
315
319
|
}
|
|
316
320
|
|
|
317
|
-
function
|
|
318
|
-
wasm.
|
|
321
|
+
function __wbg_adapter_101(arg0, arg1, arg2, arg3) {
|
|
322
|
+
wasm.closure123_externref_shim(arg0, arg1, arg2, arg3);
|
|
319
323
|
}
|
|
320
324
|
|
|
321
325
|
module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
@@ -333,11 +337,6 @@ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(fun
|
|
|
333
337
|
return ret;
|
|
334
338
|
}, arguments) };
|
|
335
339
|
|
|
336
|
-
module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
337
|
-
const ret = arg0.crypto;
|
|
338
|
-
return ret;
|
|
339
|
-
};
|
|
340
|
-
|
|
341
340
|
module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
342
341
|
const ret = arg0.done;
|
|
343
342
|
return ret;
|
|
@@ -354,8 +353,8 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
354
353
|
console.error(v0);
|
|
355
354
|
};
|
|
356
355
|
|
|
357
|
-
module.exports.
|
|
358
|
-
|
|
356
|
+
module.exports.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
357
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
359
358
|
}, arguments) };
|
|
360
359
|
|
|
361
360
|
module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
@@ -430,11 +429,6 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
|
430
429
|
return ret;
|
|
431
430
|
};
|
|
432
431
|
|
|
433
|
-
module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
434
|
-
const ret = arg0.msCrypto;
|
|
435
|
-
return ret;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
432
|
module.exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
439
433
|
const ret = new Date();
|
|
440
434
|
return ret;
|
|
@@ -447,7 +441,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
447
441
|
const a = state0.a;
|
|
448
442
|
state0.a = 0;
|
|
449
443
|
try {
|
|
450
|
-
return
|
|
444
|
+
return __wbg_adapter_101(a, state0.b, arg0, arg1);
|
|
451
445
|
} finally {
|
|
452
446
|
state0.a = a;
|
|
453
447
|
}
|
|
@@ -490,16 +484,6 @@ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
|
490
484
|
return ret;
|
|
491
485
|
};
|
|
492
486
|
|
|
493
|
-
module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
494
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
495
|
-
return ret;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
499
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
500
|
-
return ret;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
487
|
module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
504
488
|
const ret = arg0.next;
|
|
505
489
|
return ret;
|
|
@@ -510,16 +494,6 @@ module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(fun
|
|
|
510
494
|
return ret;
|
|
511
495
|
}, arguments) };
|
|
512
496
|
|
|
513
|
-
module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
514
|
-
const ret = arg0.node;
|
|
515
|
-
return ret;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
519
|
-
const ret = arg0.process;
|
|
520
|
-
return ret;
|
|
521
|
-
};
|
|
522
|
-
|
|
523
497
|
module.exports.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
|
|
524
498
|
const ret = arg0.queueMicrotask;
|
|
525
499
|
return ret;
|
|
@@ -529,15 +503,6 @@ module.exports.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
|
|
|
529
503
|
queueMicrotask(arg0);
|
|
530
504
|
};
|
|
531
505
|
|
|
532
|
-
module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
|
|
533
|
-
arg0.randomFillSync(arg1);
|
|
534
|
-
}, arguments) };
|
|
535
|
-
|
|
536
|
-
module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
|
|
537
|
-
const ret = module.require;
|
|
538
|
-
return ret;
|
|
539
|
-
}, arguments) };
|
|
540
|
-
|
|
541
506
|
module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
542
507
|
const ret = Promise.resolve(arg0);
|
|
543
508
|
return ret;
|
|
@@ -583,11 +548,6 @@ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
|
583
548
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
584
549
|
};
|
|
585
550
|
|
|
586
|
-
module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
587
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
588
|
-
return ret;
|
|
589
|
-
};
|
|
590
|
-
|
|
591
551
|
module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
592
552
|
const ret = arg0.then(arg1);
|
|
593
553
|
return ret;
|
|
@@ -598,11 +558,6 @@ module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
|
598
558
|
return ret;
|
|
599
559
|
};
|
|
600
560
|
|
|
601
|
-
module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
602
|
-
const ret = arg0.versions;
|
|
603
|
-
return ret;
|
|
604
|
-
};
|
|
605
|
-
|
|
606
561
|
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
607
562
|
const ret = arg0;
|
|
608
563
|
return ret;
|
|
@@ -636,8 +591,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
636
591
|
return ret;
|
|
637
592
|
};
|
|
638
593
|
|
|
639
|
-
module.exports.
|
|
640
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
594
|
+
module.exports.__wbindgen_closure_wrapper23993 = function(arg0, arg1, arg2) {
|
|
595
|
+
const ret = makeMutClosure(arg0, arg1, 1072, __wbg_adapter_50);
|
|
641
596
|
return ret;
|
|
642
597
|
};
|
|
643
598
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|