@duckdb/duckdb-wasm-shell 1.28.1-dev99.0 → 1.29.1-dev3.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.28.1-dev99.0",
4
+ version: "1.29.1-dev3.0",
5
5
  description: "",
6
6
  author: "Andre Kohn <kohn.a@outlook.com>",
7
7
  license: "MIT",
@@ -25,22 +25,22 @@ var package_default = {
25
25
  "csv"
26
26
  ],
27
27
  dependencies: {
28
- "@duckdb/duckdb-wasm": "^1.28.1-dev99.0",
28
+ "@duckdb/duckdb-wasm": "^1.29.1-dev3.0",
29
29
  xterm: "^5.3.0",
30
30
  "xterm-addon-fit": "^0.8.0",
31
31
  "xterm-addon-web-links": "^0.9.0",
32
32
  "xterm-addon-webgl": "^0.16.0"
33
33
  },
34
34
  devDependencies: {
35
- esbuild: "^0.19.10",
36
- eslint: "^8.56.0",
35
+ esbuild: "^0.20.2",
36
+ eslint: "^8.57.0",
37
37
  "eslint-plugin-jasmine": "^4.1.3",
38
- "eslint-plugin-react": "^7.33.2",
38
+ "eslint-plugin-react": "^7.34.0",
39
39
  jasmine: "^5.1.0",
40
- "jasmine-core": "^5.1.1",
40
+ "jasmine-core": "^5.1.2",
41
41
  "jasmine-spec-reporter": "^7.0.0",
42
42
  "make-dir": "^4.0.0",
43
- prettier: "^3.2.2",
43
+ prettier: "^3.2.5",
44
44
  rimraf: "^5.0.5",
45
45
  "wasm-pack": "^0.12.1"
46
46
  },
@@ -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 { PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2, getPlatformFeatures } from "@duckdb/duckdb-wasm";
89
+ import { getPlatformFeatures, PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2 } 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,37 +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.wasm_bindgen__convert__closures__invoke1_mut__h7e625be7026adc7c(arg0, arg1, addHeapObject(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));
274
274
  return ret !== 0;
275
275
  }
276
276
  function __wbg_adapter_25(arg0, arg1, arg2) {
277
- wasm.wasm_bindgen__convert__closures__invoke1_mut__hc13282646fd8976d(arg0, arg1, addHeapObject(arg2));
278
- }
279
- function handleError(f, args) {
280
- try {
281
- return f.apply(this, args);
282
- } catch (e) {
283
- wasm.__wbindgen_exn_store(addHeapObject(e));
284
- }
285
- }
286
- var cachedUint32Memory0 = null;
287
- function getUint32Memory0() {
288
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
289
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
290
- }
291
- return cachedUint32Memory0;
292
- }
293
- function passArray32ToWasm0(arg, malloc) {
294
- const ptr = malloc(arg.length * 4, 4) >>> 0;
295
- getUint32Memory0().set(arg, ptr / 4);
296
- WASM_VECTOR_LEN = arg.length;
297
- return ptr;
298
- }
299
- function passArray8ToWasm0(arg, malloc) {
300
- const ptr = malloc(arg.length * 1, 1) >>> 0;
301
- getUint8Memory0().set(arg, ptr / 1);
302
- WASM_VECTOR_LEN = arg.length;
303
- return ptr;
277
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h77eb2de66eb57381(arg0, arg1, addHeapObject(arg2));
304
278
  }
305
279
  function embed(elem, runtime, options) {
306
280
  try {
@@ -350,8 +324,34 @@ function configureDatabase(db) {
350
324
  const ret = wasm.configureDatabase(addHeapObject(db));
351
325
  return takeObject(ret);
352
326
  }
353
- function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h085319ab0941bbff(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
327
+ function handleError(f, args) {
328
+ try {
329
+ return f.apply(this, args);
330
+ } catch (e) {
331
+ wasm.__wbindgen_exn_store(addHeapObject(e));
332
+ }
333
+ }
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
+ function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
354
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h31501dd44c1f2ebd(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" });
@@ -481,6 +481,36 @@ function __wbg_get_imports() {
481
481
  return addHeapObject(ret);
482
482
  }, arguments);
483
483
  };
484
+ imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
485
+ return handleError(function() {
486
+ const ret = getPlatformFeatures();
487
+ return addHeapObject(ret);
488
+ }, arguments);
489
+ };
490
+ imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
491
+ const ret = getObject(arg0).bigInt64Array;
492
+ return ret;
493
+ };
494
+ imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
495
+ const ret = getObject(arg0).crossOriginIsolated;
496
+ return ret;
497
+ };
498
+ imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
499
+ const ret = getObject(arg0).wasmThreads;
500
+ return ret;
501
+ };
502
+ imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
503
+ const ret = getObject(arg0).wasmSIMD;
504
+ return ret;
505
+ };
506
+ imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
507
+ const ret = getObject(arg0).wasmBulkMemory;
508
+ return ret;
509
+ };
510
+ imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
511
+ const ret = getObject(arg0).wasmExceptions;
512
+ return ret;
513
+ };
484
514
  imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
485
515
  return handleError(function(arg0, arg1, arg2) {
486
516
  const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
@@ -499,24 +529,6 @@ function __wbg_get_imports() {
499
529
  return addHeapObject(ret);
500
530
  }, arguments);
501
531
  };
502
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
503
- return handleError(function(arg0, arg1, arg2, arg3) {
504
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
505
- return addHeapObject(ret);
506
- }, arguments);
507
- };
508
- imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
509
- return handleError(function(arg0, arg1, arg2) {
510
- const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
511
- return addHeapObject(ret);
512
- }, arguments);
513
- };
514
- imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
515
- return handleError(function(arg0) {
516
- const ret = getObject(arg0).pickFiles();
517
- return addHeapObject(ret);
518
- }, arguments);
519
- };
520
532
  imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
521
533
  return handleError(function(arg0, arg1) {
522
534
  const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
@@ -543,35 +555,23 @@ function __wbg_get_imports() {
543
555
  return addHeapObject(ret);
544
556
  }, arguments);
545
557
  };
546
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
547
- return handleError(function() {
548
- const ret = getPlatformFeatures();
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));
549
561
  return addHeapObject(ret);
550
562
  }, arguments);
551
563
  };
552
- imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
553
- const ret = getObject(arg0).bigInt64Array;
554
- return ret;
555
- };
556
- imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
557
- const ret = getObject(arg0).crossOriginIsolated;
558
- return ret;
559
- };
560
- imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
561
- const ret = getObject(arg0).wasmThreads;
562
- return ret;
563
- };
564
- imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
565
- const ret = getObject(arg0).wasmSIMD;
566
- return ret;
567
- };
568
- imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
569
- const ret = getObject(arg0).wasmBulkMemory;
570
- return ret;
564
+ imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
565
+ return handleError(function(arg0, arg1, arg2) {
566
+ const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
567
+ return addHeapObject(ret);
568
+ }, arguments);
571
569
  };
572
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
573
- const ret = getObject(arg0).wasmExceptions;
574
- return ret;
570
+ imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
571
+ return handleError(function(arg0) {
572
+ const ret = getObject(arg0).pickFiles();
573
+ return addHeapObject(ret);
574
+ }, arguments);
575
575
  };
576
576
  imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
577
577
  return handleError(function(arg0, arg1, arg2, arg3) {
@@ -611,32 +611,6 @@ function __wbg_get_imports() {
611
611
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
612
612
  getObject(arg0).fit();
613
613
  };
614
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
615
- const obj = getObject(arg1);
616
- const ret = JSON.stringify(obj === void 0 ? null : obj);
617
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
618
- const len1 = WASM_VECTOR_LEN;
619
- getInt32Memory0()[arg0 / 4 + 1] = len1;
620
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
621
- };
622
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
623
- const ret = new FitAddon();
624
- return addHeapObject(ret);
625
- };
626
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
627
- const ret = PACKAGE_VERSION2;
628
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
629
- const len1 = WASM_VECTOR_LEN;
630
- getInt32Memory0()[arg0 / 4 + 1] = len1;
631
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
632
- };
633
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
634
- const ret = PACKAGE_NAME2;
635
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
636
- const len1 = WASM_VECTOR_LEN;
637
- getInt32Memory0()[arg0 / 4 + 1] = len1;
638
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
639
- };
640
614
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
641
615
  const obj = takeObject(arg0).original;
642
616
  if (obj.cnt-- == 1) {
@@ -745,6 +719,32 @@ function __wbg_get_imports() {
745
719
  imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
746
720
  console.warn(getStringFromWasm0(arg0, arg1));
747
721
  };
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;
729
+ };
730
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
731
+ const ret = PACKAGE_NAME2;
732
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
733
+ const len1 = WASM_VECTOR_LEN;
734
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
735
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
736
+ };
737
+ imports.wbg.__wbg_new_79cc836771d68198 = function() {
738
+ const ret = new FitAddon();
739
+ return addHeapObject(ret);
740
+ };
741
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
742
+ const ret = PACKAGE_VERSION2;
743
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
744
+ const len1 = WASM_VECTOR_LEN;
745
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
746
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
747
+ };
748
748
  imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
749
749
  const ret = getObject(arg0).blockStats;
750
750
  return addHeapObject(ret);
@@ -813,17 +813,6 @@ function __wbg_get_imports() {
813
813
  const ret = getObject(arg0).performance;
814
814
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
815
815
  };
816
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
817
- const ret = getObject(arg1).type;
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
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
824
- const ret = getObject(arg0).now();
825
- return ret;
826
- };
827
816
  imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
828
817
  const ret = getObject(arg0).ctrlKey;
829
818
  return ret;
@@ -839,6 +828,17 @@ function __wbg_get_imports() {
839
828
  getInt32Memory0()[arg0 / 4 + 1] = len1;
840
829
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
841
830
  };
831
+ imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
832
+ const ret = getObject(arg0).now();
833
+ return ret;
834
+ };
835
+ imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
836
+ const ret = getObject(arg1).type;
837
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
838
+ const len1 = WASM_VECTOR_LEN;
839
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
840
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
841
+ };
842
842
  imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
843
843
  const ret = getObject(arg0)[arg1 >>> 0];
844
844
  return addHeapObject(ret);
@@ -907,14 +907,6 @@ function __wbg_get_imports() {
907
907
  return addHeapObject(ret);
908
908
  }, arguments);
909
909
  };
910
- imports.wbg.__wbg_getTimezoneOffset_8aee3445f323973e = function(arg0) {
911
- const ret = getObject(arg0).getTimezoneOffset();
912
- return ret;
913
- };
914
- imports.wbg.__wbg_newwithyearmonthdayhrminsec_b540984d0081e7ed = function(arg0, arg1, arg2, arg3, arg4, arg5) {
915
- const ret = new Date(arg0 >>> 0, arg1, arg2, arg3, arg4, arg5);
916
- return addHeapObject(ret);
917
- };
918
910
  imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
919
911
  try {
920
912
  var state0 = { a: arg0, b: arg1 };
@@ -922,7 +914,7 @@ function __wbg_get_imports() {
922
914
  const a = state0.a;
923
915
  state0.a = 0;
924
916
  try {
925
- return __wbg_adapter_214(a, state0.b, arg02, arg12);
917
+ return __wbg_adapter_210(a, state0.b, arg02, arg12);
926
918
  } finally {
927
919
  state0.a = a;
928
920
  }
@@ -974,12 +966,12 @@ function __wbg_get_imports() {
974
966
  const ret = wasm.memory;
975
967
  return addHeapObject(ret);
976
968
  };
977
- imports.wbg.__wbindgen_closure_wrapper369 = function(arg0, arg1, arg2) {
978
- const ret = makeMutClosure(arg0, arg1, 119, __wbg_adapter_22);
969
+ imports.wbg.__wbindgen_closure_wrapper538 = function(arg0, arg1, arg2) {
970
+ const ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_22);
979
971
  return addHeapObject(ret);
980
972
  };
981
- imports.wbg.__wbindgen_closure_wrapper967 = function(arg0, arg1, arg2) {
982
- const ret = makeMutClosure(arg0, arg1, 202, __wbg_adapter_25);
973
+ imports.wbg.__wbindgen_closure_wrapper912 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 184, __wbg_adapter_25);
983
975
  return addHeapObject(ret);
984
976
  };
985
977
  return imports;