@duckdb/duckdb-wasm-shell 1.29.1-dev60.0 → 1.29.1-dev68.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-dev60.0",
4
+ version: "1.29.1-dev68.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-dev60.0",
28
+ "@duckdb/duckdb-wasm": "^1.29.1-dev68.0",
29
29
  xterm: "^5.3.0",
30
30
  "xterm-addon-fit": "^0.8.0",
31
31
  "xterm-addon-web-links": "^0.9.0",
@@ -276,32 +276,6 @@ function __wbg_adapter_22(arg0, arg1, arg2) {
276
276
  function __wbg_adapter_25(arg0, arg1, arg2) {
277
277
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h355634d0f2bf5e5e(arg0, arg1, addHeapObject(arg2));
278
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;
297
- }
298
- function handleError(f, args) {
299
- try {
300
- return f.apply(this, args);
301
- } catch (e) {
302
- wasm.__wbindgen_exn_store(addHeapObject(e));
303
- }
304
- }
305
279
  function embed(elem, runtime, options) {
306
280
  try {
307
281
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -350,7 +324,33 @@ function configureDatabase(db) {
350
324
  const ret = wasm.configureDatabase(addHeapObject(db));
351
325
  return takeObject(ret);
352
326
  }
353
- function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
327
+ var cachedUint32Memory0 = null;
328
+ function getUint32Memory0() {
329
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
330
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
331
+ }
332
+ return cachedUint32Memory0;
333
+ }
334
+ function passArray32ToWasm0(arg, malloc) {
335
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
336
+ getUint32Memory0().set(arg, ptr / 4);
337
+ WASM_VECTOR_LEN = arg.length;
338
+ return ptr;
339
+ }
340
+ function passArray8ToWasm0(arg, malloc) {
341
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
342
+ getUint8Memory0().set(arg, ptr / 1);
343
+ WASM_VECTOR_LEN = arg.length;
344
+ return ptr;
345
+ }
346
+ function handleError(f, args) {
347
+ try {
348
+ return f.apply(this, args);
349
+ } catch (e) {
350
+ wasm.__wbindgen_exn_store(addHeapObject(e));
351
+ }
352
+ }
353
+ function __wbg_adapter_213(arg0, arg1, arg2, arg3) {
354
354
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h01f06911cee68199(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
355
355
  }
356
356
  var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
@@ -447,6 +447,12 @@ function __wbg_get_imports() {
447
447
  return addHeapObject(ret);
448
448
  }, arguments);
449
449
  };
450
+ imports.wbg.__wbg_registerOPFSFileName_8efb2b5d0df8d9a7 = function() {
451
+ return handleError(function(arg0, arg1, arg2) {
452
+ const ret = getObject(arg0).registerOPFSFileName(getStringFromWasm0(arg1, arg2));
453
+ return addHeapObject(ret);
454
+ }, arguments);
455
+ };
450
456
  imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
451
457
  return handleError(function(arg0, arg1, arg2) {
452
458
  const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
@@ -611,52 +617,57 @@ function __wbg_get_imports() {
611
617
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
612
618
  getObject(arg0).fit();
613
619
  };
614
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
615
- const ret = getObject(arg0).blockStats;
616
- return addHeapObject(ret);
620
+ imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
621
+ return handleError(function(arg0, arg1) {
622
+ const ret = getObject(arg0).disconnect(arg1 >>> 0);
623
+ return addHeapObject(ret);
624
+ }, arguments);
617
625
  };
618
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
619
- const ret = getObject(arg0).totalFileWrites;
620
- return addHeapObject(ret);
626
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
627
+ const obj = takeObject(arg0).original;
628
+ if (obj.cnt-- == 1) {
629
+ obj.a = 0;
630
+ return true;
631
+ }
632
+ const ret = false;
633
+ return ret;
621
634
  };
622
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
623
- const ret = getObject(arg0).totalFileReadsAhead;
624
- return addHeapObject(ret);
635
+ imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
636
+ getObject(arg0).rows = arg1 >>> 0;
625
637
  };
626
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
627
- const ret = getObject(arg0).totalFileReadsCold;
628
- return addHeapObject(ret);
638
+ imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
639
+ getObject(arg0).cursorBlink = arg1 !== 0;
629
640
  };
630
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
631
- const ret = getObject(arg0).totalFileReadsCached;
632
- return addHeapObject(ret);
641
+ imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
642
+ getObject(arg0).cursorWidth = arg1 >>> 0;
633
643
  };
634
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
635
- const ret = getObject(arg0).totalPageAccesses;
636
- return addHeapObject(ret);
644
+ imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
645
+ const ret = getObject(arg1).fontFamily;
646
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
647
+ const len1 = WASM_VECTOR_LEN;
648
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
649
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
637
650
  };
638
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
639
- const ret = getObject(arg0).totalPageLoads;
640
- return addHeapObject(ret);
651
+ imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
652
+ getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
641
653
  };
642
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
643
- const ret = getObject(arg0).blockSize;
644
- return addHeapObject(ret);
654
+ imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
655
+ getObject(arg0).fontSize = arg1 >>> 0;
645
656
  };
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);
657
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
658
+ getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
651
659
  };
652
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
653
- console.log(getStringFromWasm0(arg0, arg1));
660
+ imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
661
+ getObject(arg0).rightClickSelectsWord = arg1 !== 0;
654
662
  };
655
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
656
- console.error(getStringFromWasm0(arg0, arg1));
663
+ imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
664
+ getObject(arg0).allowProposedApi = arg1 !== 0;
657
665
  };
658
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
659
- console.warn(getStringFromWasm0(arg0, arg1));
666
+ imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
667
+ getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
668
+ };
669
+ imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
670
+ getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
660
671
  };
661
672
  imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
662
673
  const ret = getObject(arg1).backgroundColor;
@@ -665,12 +676,18 @@ function __wbg_get_imports() {
665
676
  getInt32Memory0()[arg0 / 4 + 1] = len1;
666
677
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
667
678
  };
668
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
669
- const ret = getObject(arg1).fontFamily;
670
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
671
- const len1 = WASM_VECTOR_LEN;
672
- getInt32Memory0()[arg0 / 4 + 1] = len1;
673
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
679
+ imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
680
+ getObject(arg0).background = getStringFromWasm0(arg1, arg2);
681
+ };
682
+ imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
683
+ getObject(arg0).theme = getObject(arg1);
684
+ };
685
+ imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
686
+ getObject(arg0).open(takeObject(arg1));
687
+ };
688
+ imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
689
+ const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
690
+ return addHeapObject(ret);
674
691
  };
675
692
  imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
676
693
  let result;
@@ -682,6 +699,13 @@ function __wbg_get_imports() {
682
699
  const ret = result;
683
700
  return ret;
684
701
  };
702
+ imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
703
+ getObject(arg0).loadAddon(takeObject(arg1));
704
+ };
705
+ imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
706
+ const ret = new WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
707
+ return addHeapObject(ret);
708
+ };
685
709
  imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
686
710
  let result;
687
711
  try {
@@ -700,15 +724,24 @@ function __wbg_get_imports() {
700
724
  getInt32Memory0()[arg0 / 4 + 1] = len1;
701
725
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
702
726
  };
703
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
704
- const ret = PACKAGE_VERSION2;
727
+ imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
728
+ console.log(getStringFromWasm0(arg0, arg1));
729
+ };
730
+ imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
731
+ console.error(getStringFromWasm0(arg0, arg1));
732
+ };
733
+ imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
734
+ console.warn(getStringFromWasm0(arg0, arg1));
735
+ };
736
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
737
+ const ret = PACKAGE_NAME2;
705
738
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
706
739
  const len1 = WASM_VECTOR_LEN;
707
740
  getInt32Memory0()[arg0 / 4 + 1] = len1;
708
741
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
709
742
  };
710
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
711
- const ret = PACKAGE_NAME2;
743
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
744
+ const ret = PACKAGE_VERSION2;
712
745
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
713
746
  const len1 = WASM_VECTOR_LEN;
714
747
  getInt32Memory0()[arg0 / 4 + 1] = len1;
@@ -718,63 +751,36 @@ function __wbg_get_imports() {
718
751
  const ret = new FitAddon();
719
752
  return addHeapObject(ret);
720
753
  };
721
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
722
- const obj = takeObject(arg0).original;
723
- if (obj.cnt-- == 1) {
724
- obj.a = 0;
725
- return true;
726
- }
727
- const ret = false;
728
- return ret;
729
- };
730
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
731
- getObject(arg0).allowProposedApi = arg1 !== 0;
732
- };
733
- imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
734
- getObject(arg0).cursorBlink = arg1 !== 0;
735
- };
736
- imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
737
- getObject(arg0).cursorWidth = arg1 >>> 0;
738
- };
739
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
740
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
741
- };
742
- imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
743
- getObject(arg0).fontSize = arg1 >>> 0;
744
- };
745
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
746
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
747
- };
748
- imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
749
- getObject(arg0).rightClickSelectsWord = arg1 !== 0;
750
- };
751
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
752
- getObject(arg0).rows = arg1 >>> 0;
753
- };
754
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
755
- getObject(arg0).theme = getObject(arg1);
754
+ imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
755
+ const ret = getObject(arg0).blockStats;
756
+ return addHeapObject(ret);
756
757
  };
757
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
758
- getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
758
+ imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
759
+ const ret = getObject(arg0).totalFileWrites;
760
+ return addHeapObject(ret);
759
761
  };
760
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
761
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
762
+ imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
763
+ const ret = getObject(arg0).totalFileReadsAhead;
764
+ return addHeapObject(ret);
762
765
  };
763
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
764
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
766
+ imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
767
+ const ret = getObject(arg0).totalFileReadsCold;
768
+ return addHeapObject(ret);
765
769
  };
766
- imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
767
- getObject(arg0).open(takeObject(arg1));
770
+ imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
771
+ const ret = getObject(arg0).totalFileReadsCached;
772
+ return addHeapObject(ret);
768
773
  };
769
- imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
770
- getObject(arg0).loadAddon(takeObject(arg1));
774
+ imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
775
+ const ret = getObject(arg0).totalPageAccesses;
776
+ return addHeapObject(ret);
771
777
  };
772
- imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
773
- const ret = new WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
778
+ imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
779
+ const ret = getObject(arg0).totalPageLoads;
774
780
  return addHeapObject(ret);
775
781
  };
776
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
777
- const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
782
+ imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
783
+ const ret = getObject(arg0).blockSize;
778
784
  return addHeapObject(ret);
779
785
  };
780
786
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
@@ -914,7 +920,7 @@ function __wbg_get_imports() {
914
920
  const a = state0.a;
915
921
  state0.a = 0;
916
922
  try {
917
- return __wbg_adapter_210(a, state0.b, arg02, arg12);
923
+ return __wbg_adapter_213(a, state0.b, arg02, arg12);
918
924
  } finally {
919
925
  state0.a = a;
920
926
  }
@@ -966,12 +972,12 @@ function __wbg_get_imports() {
966
972
  const ret = wasm.memory;
967
973
  return addHeapObject(ret);
968
974
  };
969
- imports.wbg.__wbindgen_closure_wrapper459 = function(arg0, arg1, arg2) {
970
- const ret = makeMutClosure(arg0, arg1, 132, __wbg_adapter_22);
975
+ imports.wbg.__wbindgen_closure_wrapper479 = function(arg0, arg1, arg2) {
976
+ const ret = makeMutClosure(arg0, arg1, 144, __wbg_adapter_22);
971
977
  return addHeapObject(ret);
972
978
  };
973
- imports.wbg.__wbindgen_closure_wrapper932 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_25);
979
+ imports.wbg.__wbindgen_closure_wrapper935 = function(arg0, arg1, arg2) {
980
+ const ret = makeMutClosure(arg0, arg1, 196, __wbg_adapter_25);
975
981
  return addHeapObject(ret);
976
982
  };
977
983
  return imports;