@duckdb/duckdb-wasm-shell 1.29.1-dev3.0 → 1.29.1-dev42.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/dist/shell.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@duckdb/duckdb-wasm-shell",
4
- version: "1.29.1-dev3.0",
4
+ version: "1.29.1-dev42.0",
5
5
  description: "",
6
6
  author: "Andre Kohn <kohn.a@outlook.com>",
7
7
  license: "MIT",
@@ -25,7 +25,7 @@ var package_default = {
25
25
  "csv"
26
26
  ],
27
27
  dependencies: {
28
- "@duckdb/duckdb-wasm": "^1.29.1-dev3.0",
28
+ "@duckdb/duckdb-wasm": "^1.29.1-dev42.0",
29
29
  xterm: "^5.3.0",
30
30
  "xterm-addon-fit": "^0.8.0",
31
31
  "xterm-addon-web-links": "^0.9.0",
@@ -270,11 +270,30 @@ function makeMutClosure(arg0, arg1, dtor, f) {
270
270
  return real;
271
271
  }
272
272
  function __wbg_adapter_22(arg0, arg1, arg2) {
273
- const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he8ffd72d0b49a87b(arg0, arg1, addHeapObject(arg2));
273
+ const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hddb5167cc04b5326(arg0, arg1, addHeapObject(arg2));
274
274
  return ret !== 0;
275
275
  }
276
276
  function __wbg_adapter_25(arg0, arg1, arg2) {
277
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h77eb2de66eb57381(arg0, arg1, addHeapObject(arg2));
277
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21e86434f3007437(arg0, arg1, addHeapObject(arg2));
278
+ }
279
+ var cachedUint32Memory0 = null;
280
+ function getUint32Memory0() {
281
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
282
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
283
+ }
284
+ return cachedUint32Memory0;
285
+ }
286
+ function passArray32ToWasm0(arg, malloc) {
287
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
288
+ getUint32Memory0().set(arg, ptr / 4);
289
+ WASM_VECTOR_LEN = arg.length;
290
+ return ptr;
291
+ }
292
+ function passArray8ToWasm0(arg, malloc) {
293
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
294
+ getUint8Memory0().set(arg, ptr / 1);
295
+ WASM_VECTOR_LEN = arg.length;
296
+ return ptr;
278
297
  }
279
298
  function embed(elem, runtime, options) {
280
299
  try {
@@ -331,27 +350,8 @@ function handleError(f, args) {
331
350
  wasm.__wbindgen_exn_store(addHeapObject(e));
332
351
  }
333
352
  }
334
- var cachedUint32Memory0 = null;
335
- function getUint32Memory0() {
336
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
337
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
338
- }
339
- return cachedUint32Memory0;
340
- }
341
- function passArray32ToWasm0(arg, malloc) {
342
- const ptr = malloc(arg.length * 4, 4) >>> 0;
343
- getUint32Memory0().set(arg, ptr / 4);
344
- WASM_VECTOR_LEN = arg.length;
345
- return ptr;
346
- }
347
- function passArray8ToWasm0(arg, malloc) {
348
- const ptr = malloc(arg.length * 1, 1) >>> 0;
349
- getUint8Memory0().set(arg, ptr / 1);
350
- WASM_VECTOR_LEN = arg.length;
351
- return ptr;
352
- }
353
353
  function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h31501dd44c1f2ebd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
354
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h6ec9b37957db5671(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
355
355
  }
356
356
  var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
357
357
  var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
@@ -611,17 +611,66 @@ function __wbg_get_imports() {
611
611
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
612
612
  getObject(arg0).fit();
613
613
  };
614
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
615
- const obj = takeObject(arg0).original;
616
- if (obj.cnt-- == 1) {
617
- obj.a = 0;
618
- return true;
614
+ imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
615
+ const ret = getObject(arg0).blockStats;
616
+ return addHeapObject(ret);
617
+ };
618
+ imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
619
+ const ret = getObject(arg0).totalFileWrites;
620
+ return addHeapObject(ret);
621
+ };
622
+ imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
623
+ const ret = getObject(arg0).totalFileReadsAhead;
624
+ return addHeapObject(ret);
625
+ };
626
+ imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
627
+ const ret = getObject(arg0).totalFileReadsCold;
628
+ return addHeapObject(ret);
629
+ };
630
+ imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
631
+ const ret = getObject(arg0).totalFileReadsCached;
632
+ return addHeapObject(ret);
633
+ };
634
+ imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
635
+ const ret = getObject(arg0).totalPageAccesses;
636
+ return addHeapObject(ret);
637
+ };
638
+ imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
639
+ const ret = getObject(arg0).totalPageLoads;
640
+ return addHeapObject(ret);
641
+ };
642
+ imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
643
+ const ret = getObject(arg0).blockSize;
644
+ return addHeapObject(ret);
645
+ };
646
+ imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
647
+ return handleError(function(arg0, arg1) {
648
+ const ret = getObject(arg0).disconnect(arg1 >>> 0);
649
+ return addHeapObject(ret);
650
+ }, arguments);
651
+ };
652
+ imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
653
+ let result;
654
+ try {
655
+ result = getObject(arg0) instanceof WebLinksAddon;
656
+ } catch (e) {
657
+ result = false;
619
658
  }
620
- const ret = false;
659
+ const ret = result;
621
660
  return ret;
622
661
  };
623
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
624
- getObject(arg0).rows = arg1 >>> 0;
662
+ imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
663
+ let result;
664
+ try {
665
+ result = getObject(arg0) instanceof WebglAddon;
666
+ } catch (e) {
667
+ result = false;
668
+ }
669
+ const ret = result;
670
+ return ret;
671
+ };
672
+ imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
673
+ getObject(arg0).allowProposedApi = arg1 !== 0;
625
674
  };
626
675
  imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
627
676
  getObject(arg0).cursorBlink = arg1 !== 0;
@@ -629,34 +678,33 @@ function __wbg_get_imports() {
629
678
  imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
630
679
  getObject(arg0).cursorWidth = arg1 >>> 0;
631
680
  };
632
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
633
- const ret = getObject(arg1).fontFamily;
634
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
635
- const len1 = WASM_VECTOR_LEN;
636
- getInt32Memory0()[arg0 / 4 + 1] = len1;
637
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
638
- };
639
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
640
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
681
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
682
+ getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
641
683
  };
642
684
  imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
643
685
  getObject(arg0).fontSize = arg1 >>> 0;
644
686
  };
645
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
646
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
687
+ imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
688
+ getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
647
689
  };
648
690
  imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
649
691
  getObject(arg0).rightClickSelectsWord = arg1 !== 0;
650
692
  };
651
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
652
- getObject(arg0).allowProposedApi = arg1 !== 0;
693
+ imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
694
+ getObject(arg0).rows = arg1 >>> 0;
653
695
  };
654
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
655
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
696
+ imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
697
+ getObject(arg0).theme = getObject(arg1);
656
698
  };
657
699
  imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
658
700
  getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
659
701
  };
702
+ imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
703
+ getObject(arg0).background = getStringFromWasm0(arg1, arg2);
704
+ };
705
+ imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
706
+ getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
707
+ };
660
708
  imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
661
709
  const ret = getObject(arg1).backgroundColor;
662
710
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -664,29 +712,16 @@ function __wbg_get_imports() {
664
712
  getInt32Memory0()[arg0 / 4 + 1] = len1;
665
713
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
666
714
  };
667
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
668
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
669
- };
670
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
671
- getObject(arg0).theme = getObject(arg1);
715
+ imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
716
+ const ret = getObject(arg1).fontFamily;
717
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
718
+ const len1 = WASM_VECTOR_LEN;
719
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
720
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
672
721
  };
673
722
  imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
674
723
  getObject(arg0).open(takeObject(arg1));
675
724
  };
676
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
677
- const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
678
- return addHeapObject(ret);
679
- };
680
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
681
- let result;
682
- try {
683
- result = getObject(arg0) instanceof WebglAddon;
684
- } catch (e) {
685
- result = false;
686
- }
687
- const ret = result;
688
- return ret;
689
- };
690
725
  imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
691
726
  getObject(arg0).loadAddon(takeObject(arg1));
692
727
  };
@@ -694,21 +729,9 @@ function __wbg_get_imports() {
694
729
  const ret = new WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
695
730
  return addHeapObject(ret);
696
731
  };
697
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
698
- let result;
699
- try {
700
- result = getObject(arg0) instanceof WebLinksAddon;
701
- } catch (e) {
702
- result = false;
703
- }
704
- const ret = result;
705
- return ret;
706
- };
707
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
708
- return handleError(function(arg0, arg1) {
709
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
710
- return addHeapObject(ret);
711
- }, arguments);
732
+ imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
733
+ const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
734
+ return addHeapObject(ret);
712
735
  };
713
736
  imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
714
737
  console.log(getStringFromWasm0(arg0, arg1));
@@ -719,13 +742,18 @@ function __wbg_get_imports() {
719
742
  imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
720
743
  console.warn(getStringFromWasm0(arg0, arg1));
721
744
  };
722
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
723
- const obj = getObject(arg1);
724
- const ret = JSON.stringify(obj === void 0 ? null : obj);
725
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
726
- const len1 = WASM_VECTOR_LEN;
727
- getInt32Memory0()[arg0 / 4 + 1] = len1;
728
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
745
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
746
+ const obj = takeObject(arg0).original;
747
+ if (obj.cnt-- == 1) {
748
+ obj.a = 0;
749
+ return true;
750
+ }
751
+ const ret = false;
752
+ return ret;
753
+ };
754
+ imports.wbg.__wbg_new_79cc836771d68198 = function() {
755
+ const ret = new FitAddon();
756
+ return addHeapObject(ret);
729
757
  };
730
758
  imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
731
759
  const ret = PACKAGE_NAME2;
@@ -734,10 +762,6 @@ function __wbg_get_imports() {
734
762
  getInt32Memory0()[arg0 / 4 + 1] = len1;
735
763
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
736
764
  };
737
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
738
- const ret = new FitAddon();
739
- return addHeapObject(ret);
740
- };
741
765
  imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
742
766
  const ret = PACKAGE_VERSION2;
743
767
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -745,37 +769,13 @@ function __wbg_get_imports() {
745
769
  getInt32Memory0()[arg0 / 4 + 1] = len1;
746
770
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
747
771
  };
748
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
749
- const ret = getObject(arg0).blockStats;
750
- return addHeapObject(ret);
751
- };
752
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
753
- const ret = getObject(arg0).totalFileWrites;
754
- return addHeapObject(ret);
755
- };
756
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
757
- const ret = getObject(arg0).totalFileReadsAhead;
758
- return addHeapObject(ret);
759
- };
760
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
761
- const ret = getObject(arg0).totalFileReadsCold;
762
- return addHeapObject(ret);
763
- };
764
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
765
- const ret = getObject(arg0).totalFileReadsCached;
766
- return addHeapObject(ret);
767
- };
768
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
769
- const ret = getObject(arg0).totalPageAccesses;
770
- return addHeapObject(ret);
771
- };
772
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
773
- const ret = getObject(arg0).totalPageLoads;
774
- return addHeapObject(ret);
775
- };
776
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
777
- const ret = getObject(arg0).blockSize;
778
- return addHeapObject(ret);
772
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
773
+ const obj = getObject(arg1);
774
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
775
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
776
+ const len1 = WASM_VECTOR_LEN;
777
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
778
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
779
779
  };
780
780
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
781
781
  const ret = new Error();
@@ -828,10 +828,6 @@ function __wbg_get_imports() {
828
828
  getInt32Memory0()[arg0 / 4 + 1] = len1;
829
829
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
830
830
  };
831
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
832
- const ret = getObject(arg0).now();
833
- return ret;
834
- };
835
831
  imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
836
832
  const ret = getObject(arg1).type;
837
833
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -839,6 +835,10 @@ function __wbg_get_imports() {
839
835
  getInt32Memory0()[arg0 / 4 + 1] = len1;
840
836
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
841
837
  };
838
+ imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
839
+ const ret = getObject(arg0).now();
840
+ return ret;
841
+ };
842
842
  imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
843
843
  const ret = getObject(arg0)[arg1 >>> 0];
844
844
  return addHeapObject(ret);
@@ -966,12 +966,12 @@ function __wbg_get_imports() {
966
966
  const ret = wasm.memory;
967
967
  return addHeapObject(ret);
968
968
  };
969
- imports.wbg.__wbindgen_closure_wrapper538 = function(arg0, arg1, arg2) {
970
- const ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_22);
969
+ imports.wbg.__wbindgen_closure_wrapper551 = function(arg0, arg1, arg2) {
970
+ const ret = makeMutClosure(arg0, arg1, 154, __wbg_adapter_22);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper912 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 184, __wbg_adapter_25);
973
+ imports.wbg.__wbindgen_closure_wrapper907 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 185, __wbg_adapter_25);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;