@duckdb/duckdb-wasm-shell 1.28.1-dev246.0 → 1.28.1-dev249.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.cjs CHANGED
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(src_exports);
43
43
  // package.json
44
44
  var package_default = {
45
45
  name: "@duckdb/duckdb-wasm-shell",
46
- version: "1.28.1-dev246.0",
46
+ version: "1.28.1-dev249.0",
47
47
  description: "",
48
48
  author: "Andre Kohn <kohn.a@outlook.com>",
49
49
  license: "MIT",
@@ -67,7 +67,7 @@ var package_default = {
67
67
  "csv"
68
68
  ],
69
69
  dependencies: {
70
- "@duckdb/duckdb-wasm": "^1.28.1-dev246.0",
70
+ "@duckdb/duckdb-wasm": "^1.28.1-dev249.0",
71
71
  xterm: "^5.3.0",
72
72
  "xterm-addon-fit": "^0.8.0",
73
73
  "xterm-addon-web-links": "^0.9.0",
@@ -313,37 +313,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
313
313
  return real;
314
314
  }
315
315
  function __wbg_adapter_22(arg0, arg1, arg2) {
316
- const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4400ee7f20335204(arg0, arg1, addHeapObject(arg2));
316
+ const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he23567b868571ad4(arg0, arg1, addHeapObject(arg2));
317
317
  return ret !== 0;
318
318
  }
319
319
  function __wbg_adapter_25(arg0, arg1, arg2) {
320
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h13e980583567b7ea(arg0, arg1, addHeapObject(arg2));
321
- }
322
- var cachedUint32Memory0 = null;
323
- function getUint32Memory0() {
324
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
325
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
326
- }
327
- return cachedUint32Memory0;
328
- }
329
- function passArray32ToWasm0(arg, malloc) {
330
- const ptr = malloc(arg.length * 4, 4) >>> 0;
331
- getUint32Memory0().set(arg, ptr / 4);
332
- WASM_VECTOR_LEN = arg.length;
333
- return ptr;
334
- }
335
- function passArray8ToWasm0(arg, malloc) {
336
- const ptr = malloc(arg.length * 1, 1) >>> 0;
337
- getUint8Memory0().set(arg, ptr / 1);
338
- WASM_VECTOR_LEN = arg.length;
339
- return ptr;
340
- }
341
- function handleError(f, args) {
342
- try {
343
- return f.apply(this, args);
344
- } catch (e) {
345
- wasm.__wbindgen_exn_store(addHeapObject(e));
346
- }
320
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd53b6e4442644896(arg0, arg1, addHeapObject(arg2));
347
321
  }
348
322
  function embed(elem, runtime, options) {
349
323
  try {
@@ -393,8 +367,34 @@ function configureDatabase(db) {
393
367
  const ret = wasm.configureDatabase(addHeapObject(db));
394
368
  return takeObject(ret);
395
369
  }
370
+ function handleError(f, args) {
371
+ try {
372
+ return f.apply(this, args);
373
+ } catch (e) {
374
+ wasm.__wbindgen_exn_store(addHeapObject(e));
375
+ }
376
+ }
377
+ var cachedUint32Memory0 = null;
378
+ function getUint32Memory0() {
379
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
380
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
381
+ }
382
+ return cachedUint32Memory0;
383
+ }
384
+ function passArray32ToWasm0(arg, malloc) {
385
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
386
+ getUint32Memory0().set(arg, ptr / 4);
387
+ WASM_VECTOR_LEN = arg.length;
388
+ return ptr;
389
+ }
390
+ function passArray8ToWasm0(arg, malloc) {
391
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
392
+ getUint8Memory0().set(arg, ptr / 1);
393
+ WASM_VECTOR_LEN = arg.length;
394
+ return ptr;
395
+ }
396
396
  function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
397
- wasm.wasm_bindgen__convert__closures__invoke2_mut__he5d7ec2e0dd69a11(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
397
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h040411d80f04923c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
398
398
  }
399
399
  var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
400
400
  var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
@@ -654,28 +654,16 @@ function __wbg_get_imports() {
654
654
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
655
655
  getObject(arg0).fit();
656
656
  };
657
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
658
- let result;
659
- try {
660
- result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
661
- } catch (e) {
662
- result = false;
663
- }
664
- const ret = result;
665
- return ret;
666
- };
667
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
668
- let result;
669
- try {
670
- result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
671
- } catch (e) {
672
- result = false;
673
- }
674
- const ret = result;
675
- return ret;
657
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
658
+ const obj = getObject(arg1);
659
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
660
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
661
+ const len1 = WASM_VECTOR_LEN;
662
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
663
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
676
664
  };
677
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
678
- getObject(arg0).allowProposedApi = arg1 !== 0;
665
+ imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
666
+ getObject(arg0).rows = arg1 >>> 0;
679
667
  };
680
668
  imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
681
669
  getObject(arg0).cursorBlink = arg1 !== 0;
@@ -683,46 +671,33 @@ function __wbg_get_imports() {
683
671
  imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
684
672
  getObject(arg0).cursorWidth = arg1 >>> 0;
685
673
  };
686
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
687
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
674
+ imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
675
+ const ret = getObject(arg1).fontFamily;
676
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
677
+ const len1 = WASM_VECTOR_LEN;
678
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
679
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
680
+ };
681
+ imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
682
+ getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
688
683
  };
689
684
  imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
690
685
  getObject(arg0).fontSize = arg1 >>> 0;
691
686
  };
692
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
693
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
687
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
688
+ getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
694
689
  };
695
690
  imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
696
691
  getObject(arg0).rightClickSelectsWord = arg1 !== 0;
697
692
  };
698
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
699
- getObject(arg0).rows = arg1 >>> 0;
700
- };
701
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
702
- getObject(arg0).theme = getObject(arg1);
703
- };
704
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
705
- getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
706
- };
707
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
708
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
693
+ imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
694
+ getObject(arg0).allowProposedApi = arg1 !== 0;
709
695
  };
710
696
  imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
711
697
  getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
712
698
  };
713
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
714
- const ret = import_duckdb_wasm.PACKAGE_NAME;
715
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
716
- const len1 = WASM_VECTOR_LEN;
717
- getInt32Memory0()[arg0 / 4 + 1] = len1;
718
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
719
- };
720
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
721
- const ret = import_duckdb_wasm.PACKAGE_VERSION;
722
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
723
- const len1 = WASM_VECTOR_LEN;
724
- getInt32Memory0()[arg0 / 4 + 1] = len1;
725
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
699
+ imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
700
+ getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
726
701
  };
727
702
  imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
728
703
  const ret = getObject(arg1).backgroundColor;
@@ -731,16 +706,29 @@ function __wbg_get_imports() {
731
706
  getInt32Memory0()[arg0 / 4 + 1] = len1;
732
707
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
733
708
  };
734
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
735
- const ret = getObject(arg1).fontFamily;
736
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
737
- const len1 = WASM_VECTOR_LEN;
738
- getInt32Memory0()[arg0 / 4 + 1] = len1;
739
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
709
+ imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
710
+ getObject(arg0).background = getStringFromWasm0(arg1, arg2);
711
+ };
712
+ imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
713
+ getObject(arg0).theme = getObject(arg1);
740
714
  };
741
715
  imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
742
716
  getObject(arg0).open(takeObject(arg1));
743
717
  };
718
+ imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
719
+ const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
720
+ return addHeapObject(ret);
721
+ };
722
+ imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
723
+ let result;
724
+ try {
725
+ result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
726
+ } catch (e) {
727
+ result = false;
728
+ }
729
+ const ret = result;
730
+ return ret;
731
+ };
744
732
  imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
745
733
  getObject(arg0).loadAddon(takeObject(arg1));
746
734
  };
@@ -748,9 +736,15 @@ function __wbg_get_imports() {
748
736
  const ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
749
737
  return addHeapObject(ret);
750
738
  };
751
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
752
- const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
753
- return addHeapObject(ret);
739
+ imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
740
+ let result;
741
+ try {
742
+ result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
743
+ } catch (e) {
744
+ result = false;
745
+ }
746
+ const ret = result;
747
+ return ret;
754
748
  };
755
749
  imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
756
750
  return handleError(function(arg0, arg1) {
@@ -758,15 +752,6 @@ function __wbg_get_imports() {
758
752
  return addHeapObject(ret);
759
753
  }, arguments);
760
754
  };
761
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
762
- const obj = takeObject(arg0).original;
763
- if (obj.cnt-- == 1) {
764
- obj.a = 0;
765
- return true;
766
- }
767
- const ret = false;
768
- return ret;
769
- };
770
755
  imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
771
756
  console.log(getStringFromWasm0(arg0, arg1));
772
757
  };
@@ -780,6 +765,29 @@ function __wbg_get_imports() {
780
765
  const ret = new import_xterm_addon_fit.FitAddon();
781
766
  return addHeapObject(ret);
782
767
  };
768
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
769
+ const ret = import_duckdb_wasm.PACKAGE_VERSION;
770
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
771
+ const len1 = WASM_VECTOR_LEN;
772
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
773
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
774
+ };
775
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
776
+ const ret = import_duckdb_wasm.PACKAGE_NAME;
777
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
778
+ const len1 = WASM_VECTOR_LEN;
779
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
780
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
781
+ };
782
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
783
+ const obj = takeObject(arg0).original;
784
+ if (obj.cnt-- == 1) {
785
+ obj.a = 0;
786
+ return true;
787
+ }
788
+ const ret = false;
789
+ return ret;
790
+ };
783
791
  imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
784
792
  const ret = getObject(arg0).blockStats;
785
793
  return addHeapObject(ret);
@@ -812,14 +820,6 @@ function __wbg_get_imports() {
812
820
  const ret = getObject(arg0).blockSize;
813
821
  return addHeapObject(ret);
814
822
  };
815
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
816
- const obj = getObject(arg1);
817
- const ret = JSON.stringify(obj === void 0 ? null : obj);
818
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
819
- const len1 = WASM_VECTOR_LEN;
820
- getInt32Memory0()[arg0 / 4 + 1] = len1;
821
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
822
- };
823
823
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
824
824
  const ret = new Error();
825
825
  return addHeapObject(ret);
@@ -1009,12 +1009,12 @@ function __wbg_get_imports() {
1009
1009
  const ret = wasm.memory;
1010
1010
  return addHeapObject(ret);
1011
1011
  };
1012
- imports.wbg.__wbindgen_closure_wrapper423 = function(arg0, arg1, arg2) {
1013
- const ret = makeMutClosure(arg0, arg1, 126, __wbg_adapter_22);
1012
+ imports.wbg.__wbindgen_closure_wrapper616 = function(arg0, arg1, arg2) {
1013
+ const ret = makeMutClosure(arg0, arg1, 158, __wbg_adapter_22);
1014
1014
  return addHeapObject(ret);
1015
1015
  };
1016
- imports.wbg.__wbindgen_closure_wrapper935 = function(arg0, arg1, arg2) {
1017
- const ret = makeMutClosure(arg0, arg1, 207, __wbg_adapter_25);
1016
+ imports.wbg.__wbindgen_closure_wrapper921 = function(arg0, arg1, arg2) {
1017
+ const ret = makeMutClosure(arg0, arg1, 188, __wbg_adapter_25);
1018
1018
  return addHeapObject(ret);
1019
1019
  };
1020
1020
  return imports;