@duckdb/duckdb-wasm-shell 1.29.1-dev47.0 → 1.29.1-dev51.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-dev47.0",
4
+ version: "1.29.1-dev51.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-dev47.0",
28
+ "@duckdb/duckdb-wasm": "^1.29.1-dev51.0",
29
29
  xterm: "^5.3.0",
30
30
  "xterm-addon-fit": "^0.8.0",
31
31
  "xterm-addon-web-links": "^0.9.0",
@@ -86,7 +86,7 @@ var PACKAGE_VERSION_PATCH = VERSION_PARTS[2];
86
86
  import * as duckdb2 from "@duckdb/duckdb-wasm";
87
87
 
88
88
  // crate/pkg/shell.js
89
- import { getPlatformFeatures, PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2 } from "@duckdb/duckdb-wasm";
89
+ import { PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2, getPlatformFeatures } from "@duckdb/duckdb-wasm";
90
90
  import { Terminal } from "xterm";
91
91
  import { FitAddon } from "xterm-addon-fit";
92
92
  import { WebLinksAddon } from "xterm-addon-web-links";
@@ -270,11 +270,11 @@ 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__hddb5167cc04b5326(arg0, arg1, addHeapObject(arg2));
273
+ const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfe5acbd254c0f09b(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__h21e86434f3007437(arg0, arg1, addHeapObject(arg2));
277
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3a884ad021545540(arg0, arg1, addHeapObject(arg2));
278
278
  }
279
279
  var cachedUint32Memory0 = null;
280
280
  function getUint32Memory0() {
@@ -295,6 +295,13 @@ function passArray8ToWasm0(arg, malloc) {
295
295
  WASM_VECTOR_LEN = arg.length;
296
296
  return ptr;
297
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
+ }
298
305
  function embed(elem, runtime, options) {
299
306
  try {
300
307
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -343,15 +350,8 @@ function configureDatabase(db) {
343
350
  const ret = wasm.configureDatabase(addHeapObject(db));
344
351
  return takeObject(ret);
345
352
  }
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
353
  function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h6ec9b37957db5671(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
354
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h0119d15922301e47(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" });
@@ -529,6 +529,12 @@ function __wbg_get_imports() {
529
529
  return addHeapObject(ret);
530
530
  }, arguments);
531
531
  };
532
+ imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
533
+ return handleError(function(arg0, arg1, arg2, arg3) {
534
+ const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
535
+ return addHeapObject(ret);
536
+ }, arguments);
537
+ };
532
538
  imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
533
539
  return handleError(function(arg0, arg1) {
534
540
  const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
@@ -555,12 +561,6 @@ function __wbg_get_imports() {
555
561
  return addHeapObject(ret);
556
562
  }, arguments);
557
563
  };
558
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
559
- return handleError(function(arg0, arg1, arg2, arg3) {
560
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
561
- return addHeapObject(ret);
562
- }, arguments);
563
- };
564
564
  imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
565
565
  return handleError(function(arg0, arg1, arg2) {
566
566
  const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
@@ -649,6 +649,15 @@ function __wbg_get_imports() {
649
649
  return addHeapObject(ret);
650
650
  }, arguments);
651
651
  };
652
+ imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
653
+ console.log(getStringFromWasm0(arg0, arg1));
654
+ };
655
+ imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
656
+ console.error(getStringFromWasm0(arg0, arg1));
657
+ };
658
+ imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
659
+ console.warn(getStringFromWasm0(arg0, arg1));
660
+ };
652
661
  imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
653
662
  let result;
654
663
  try {
@@ -669,6 +678,41 @@ function __wbg_get_imports() {
669
678
  const ret = result;
670
679
  return ret;
671
680
  };
681
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
682
+ const obj = getObject(arg1);
683
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
684
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
685
+ const len1 = WASM_VECTOR_LEN;
686
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
687
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
688
+ };
689
+ imports.wbg.__wbg_new_79cc836771d68198 = function() {
690
+ const ret = new FitAddon();
691
+ return addHeapObject(ret);
692
+ };
693
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
694
+ const ret = PACKAGE_VERSION2;
695
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
696
+ const len1 = WASM_VECTOR_LEN;
697
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
698
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
699
+ };
700
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
701
+ const ret = PACKAGE_NAME2;
702
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
703
+ const len1 = WASM_VECTOR_LEN;
704
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
705
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
706
+ };
707
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
708
+ const obj = takeObject(arg0).original;
709
+ if (obj.cnt-- == 1) {
710
+ obj.a = 0;
711
+ return true;
712
+ }
713
+ const ret = false;
714
+ return ret;
715
+ };
672
716
  imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
673
717
  getObject(arg0).allowProposedApi = arg1 !== 0;
674
718
  };
@@ -705,20 +749,6 @@ function __wbg_get_imports() {
705
749
  imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
706
750
  getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
707
751
  };
708
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
709
- const ret = getObject(arg1).backgroundColor;
710
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
711
- const len1 = WASM_VECTOR_LEN;
712
- getInt32Memory0()[arg0 / 4 + 1] = len1;
713
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
714
- };
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;
721
- };
722
752
  imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
723
753
  getObject(arg0).open(takeObject(arg1));
724
754
  };
@@ -733,45 +763,15 @@ function __wbg_get_imports() {
733
763
  const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
734
764
  return addHeapObject(ret);
735
765
  };
736
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
737
- console.log(getStringFromWasm0(arg0, arg1));
738
- };
739
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
740
- console.error(getStringFromWasm0(arg0, arg1));
741
- };
742
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
743
- console.warn(getStringFromWasm0(arg0, arg1));
744
- };
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);
757
- };
758
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
759
- const ret = PACKAGE_NAME2;
760
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
761
- const len1 = WASM_VECTOR_LEN;
762
- getInt32Memory0()[arg0 / 4 + 1] = len1;
763
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
764
- };
765
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
766
- const ret = PACKAGE_VERSION2;
766
+ imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
767
+ const ret = getObject(arg1).fontFamily;
767
768
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
768
769
  const len1 = WASM_VECTOR_LEN;
769
770
  getInt32Memory0()[arg0 / 4 + 1] = len1;
770
771
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
771
772
  };
772
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
773
- const obj = getObject(arg1);
774
- const ret = JSON.stringify(obj === void 0 ? null : obj);
773
+ imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
774
+ const ret = getObject(arg1).backgroundColor;
775
775
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
776
776
  const len1 = WASM_VECTOR_LEN;
777
777
  getInt32Memory0()[arg0 / 4 + 1] = len1;
@@ -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_wrapper551 = function(arg0, arg1, arg2) {
970
- const ret = makeMutClosure(arg0, arg1, 154, __wbg_adapter_22);
969
+ imports.wbg.__wbindgen_closure_wrapper461 = function(arg0, arg1, arg2) {
970
+ const ret = makeMutClosure(arg0, arg1, 132, __wbg_adapter_22);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper907 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 185, __wbg_adapter_25);
973
+ imports.wbg.__wbindgen_closure_wrapper932 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_25);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;