@swc/wasm 1.3.20 → 1.3.21

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.3.20",
7
+ "version": "1.3.21",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * @param {string} query
5
+ * @param {any} opts
6
+ * @returns {any}
7
+ */
8
+ export function browserslist(query: string, opts: any): any;
3
9
 
4
10
  export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
5
11
  export function minifySync(code: string, opts?: JsMinifyOptions): Output;
package/wasm.js CHANGED
@@ -354,6 +354,29 @@ module.exports.transform = function(s, opts, experimental_plugin_bytes_resolver)
354
354
  return takeObject(ret);
355
355
  };
356
356
 
357
+ /**
358
+ * @param {string} query
359
+ * @param {any} opts
360
+ * @returns {any}
361
+ */
362
+ module.exports.browserslist = function(query, opts) {
363
+ try {
364
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
365
+ const ptr0 = passStringToWasm0(query, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
366
+ const len0 = WASM_VECTOR_LEN;
367
+ wasm.browserslist(retptr, ptr0, len0, addHeapObject(opts));
368
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
369
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
370
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
371
+ if (r2) {
372
+ throw takeObject(r1);
373
+ }
374
+ return takeObject(r0);
375
+ } finally {
376
+ wasm.__wbindgen_add_to_stack_pointer(16);
377
+ }
378
+ };
379
+
357
380
  function getCachedStringFromWasm0(ptr, len) {
358
381
  if (ptr === 0) {
359
382
  return getObject(len);
@@ -369,7 +392,7 @@ function handleError(f, args) {
369
392
  wasm.__wbindgen_export_5(addHeapObject(e));
370
393
  }
371
394
  }
372
- function __wbg_adapter_107(arg0, arg1, arg2, arg3) {
395
+ function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
373
396
  wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
374
397
  }
375
398
 
@@ -562,7 +585,7 @@ module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
562
585
  const a = state0.a;
563
586
  state0.a = 0;
564
587
  try {
565
- return __wbg_adapter_107(a, state0.b, arg0, arg1);
588
+ return __wbg_adapter_110(a, state0.b, arg0, arg1);
566
589
  } finally {
567
590
  state0.a = a;
568
591
  }
@@ -584,6 +607,47 @@ module.exports.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
584
607
  return ret;
585
608
  };
586
609
 
610
+ module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
611
+ const ret = self.self;
612
+ return addHeapObject(ret);
613
+ }, arguments) };
614
+
615
+ module.exports.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
616
+ const ret = window.window;
617
+ return addHeapObject(ret);
618
+ }, arguments) };
619
+
620
+ module.exports.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
621
+ const ret = globalThis.globalThis;
622
+ return addHeapObject(ret);
623
+ }, arguments) };
624
+
625
+ module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
626
+ const ret = global.global;
627
+ return addHeapObject(ret);
628
+ }, arguments) };
629
+
630
+ module.exports.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {
631
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
632
+ const ret = new Function(v0);
633
+ return addHeapObject(ret);
634
+ };
635
+
636
+ module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
637
+ const ret = getObject(arg0).call(getObject(arg1));
638
+ return addHeapObject(ret);
639
+ }, arguments) };
640
+
641
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
642
+ const ret = getObject(arg0);
643
+ return addHeapObject(ret);
644
+ };
645
+
646
+ module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
647
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
648
+ return addHeapObject(ret);
649
+ }, arguments) };
650
+
587
651
  module.exports.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
588
652
  const ret = getObject(arg0).getTime();
589
653
  return ret;
@@ -608,21 +672,11 @@ if (arg0 !== 0) { wasm.__wbindgen_export_4(arg0, arg1); }
608
672
  console.error(v0);
609
673
  };
610
674
 
611
- module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
612
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
613
- return addHeapObject(ret);
614
- }, arguments) };
615
-
616
675
  module.exports.__wbindgen_is_function = function(arg0) {
617
676
  const ret = typeof(getObject(arg0)) === 'function';
618
677
  return ret;
619
678
  };
620
679
 
621
- module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
622
- const ret = getObject(arg0).call(getObject(arg1));
623
- return addHeapObject(ret);
624
- }, arguments) };
625
-
626
680
  module.exports.__wbg_next_579e583d33566a86 = function(arg0) {
627
681
  const ret = getObject(arg0).next;
628
682
  return addHeapObject(ret);
@@ -682,11 +736,6 @@ module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
682
736
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
683
737
  };
684
738
 
685
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
686
- const ret = getObject(arg0);
687
- return addHeapObject(ret);
688
- };
689
-
690
739
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
691
740
  const ret = debugString(getObject(arg1));
692
741
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -719,8 +768,8 @@ module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
719
768
  return addHeapObject(ret);
720
769
  };
721
770
 
722
- module.exports.__wbindgen_closure_wrapper18940 = function(arg0, arg1, arg2) {
723
- const ret = makeMutClosure(arg0, arg1, 226, __wbg_adapter_50);
771
+ module.exports.__wbindgen_closure_wrapper18977 = function(arg0, arg1, arg2) {
772
+ const ret = makeMutClosure(arg0, arg1, 228, __wbg_adapter_50);
724
773
  return addHeapObject(ret);
725
774
  };
726
775
 
package/wasm_bg.wasm CHANGED
Binary file