@duckdb/duckdb-wasm-shell 1.28.1-dev99.0 → 1.29.1-dev113.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-dev113.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-dev113.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__h9314410c6b7d39d7(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__hc0eb04714d123abb(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_213(arg0, arg1, arg2, arg3) {
354
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h5790724ce0bebff1(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" });
@@ -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));
@@ -481,6 +487,36 @@ function __wbg_get_imports() {
481
487
  return addHeapObject(ret);
482
488
  }, arguments);
483
489
  };
490
+ imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
491
+ return handleError(function() {
492
+ const ret = getPlatformFeatures();
493
+ return addHeapObject(ret);
494
+ }, arguments);
495
+ };
496
+ imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
497
+ const ret = getObject(arg0).bigInt64Array;
498
+ return ret;
499
+ };
500
+ imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
501
+ const ret = getObject(arg0).crossOriginIsolated;
502
+ return ret;
503
+ };
504
+ imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
505
+ const ret = getObject(arg0).wasmThreads;
506
+ return ret;
507
+ };
508
+ imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
509
+ const ret = getObject(arg0).wasmSIMD;
510
+ return ret;
511
+ };
512
+ imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
513
+ const ret = getObject(arg0).wasmBulkMemory;
514
+ return ret;
515
+ };
516
+ imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
517
+ const ret = getObject(arg0).wasmExceptions;
518
+ return ret;
519
+ };
484
520
  imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
485
521
  return handleError(function(arg0, arg1, arg2) {
486
522
  const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
@@ -505,18 +541,6 @@ function __wbg_get_imports() {
505
541
  return addHeapObject(ret);
506
542
  }, arguments);
507
543
  };
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
544
  imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
521
545
  return handleError(function(arg0, arg1) {
522
546
  const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
@@ -543,35 +567,17 @@ function __wbg_get_imports() {
543
567
  return addHeapObject(ret);
544
568
  }, arguments);
545
569
  };
546
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
547
- return handleError(function() {
548
- const ret = getPlatformFeatures();
570
+ imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
571
+ return handleError(function(arg0, arg1, arg2) {
572
+ const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
549
573
  return addHeapObject(ret);
550
574
  }, arguments);
551
575
  };
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;
571
- };
572
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
573
- const ret = getObject(arg0).wasmExceptions;
574
- return ret;
576
+ imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
577
+ return handleError(function(arg0) {
578
+ const ret = getObject(arg0).pickFiles();
579
+ return addHeapObject(ret);
580
+ }, arguments);
575
581
  };
576
582
  imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
577
583
  return handleError(function(arg0, arg1, arg2, arg3) {
@@ -611,40 +617,11 @@ function __wbg_get_imports() {
611
617
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
612
618
  getObject(arg0).fit();
613
619
  };
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
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
641
- const obj = takeObject(arg0).original;
642
- if (obj.cnt-- == 1) {
643
- obj.a = 0;
644
- return true;
645
- }
646
- const ret = false;
647
- return 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);
648
625
  };
649
626
  imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
650
627
  getObject(arg0).rows = arg1 >>> 0;
@@ -730,11 +707,17 @@ function __wbg_get_imports() {
730
707
  const ret = result;
731
708
  return ret;
732
709
  };
733
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
734
- return handleError(function(arg0, arg1) {
735
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
736
- return addHeapObject(ret);
737
- }, arguments);
710
+ imports.wbg.__wbg_new_79cc836771d68198 = function() {
711
+ const ret = new FitAddon();
712
+ return addHeapObject(ret);
713
+ };
714
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
715
+ const obj = getObject(arg1);
716
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
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;
738
721
  };
739
722
  imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
740
723
  console.log(getStringFromWasm0(arg0, arg1));
@@ -745,6 +728,20 @@ function __wbg_get_imports() {
745
728
  imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
746
729
  console.warn(getStringFromWasm0(arg0, arg1));
747
730
  };
731
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
732
+ const ret = PACKAGE_NAME2;
733
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
734
+ const len1 = WASM_VECTOR_LEN;
735
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
736
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
737
+ };
738
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
739
+ const ret = PACKAGE_VERSION2;
740
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
741
+ const len1 = WASM_VECTOR_LEN;
742
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
743
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
744
+ };
748
745
  imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
749
746
  const ret = getObject(arg0).blockStats;
750
747
  return addHeapObject(ret);
@@ -813,17 +810,6 @@ function __wbg_get_imports() {
813
810
  const ret = getObject(arg0).performance;
814
811
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
815
812
  };
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
813
  imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
828
814
  const ret = getObject(arg0).ctrlKey;
829
815
  return ret;
@@ -839,6 +825,26 @@ function __wbg_get_imports() {
839
825
  getInt32Memory0()[arg0 / 4 + 1] = len1;
840
826
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
841
827
  };
828
+ imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
829
+ const ret = getObject(arg1).type;
830
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
831
+ const len1 = WASM_VECTOR_LEN;
832
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
833
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
834
+ };
835
+ imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
836
+ const ret = getObject(arg0).now();
837
+ return ret;
838
+ };
839
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
840
+ const obj = takeObject(arg0).original;
841
+ if (obj.cnt-- == 1) {
842
+ obj.a = 0;
843
+ return true;
844
+ }
845
+ const ret = false;
846
+ return ret;
847
+ };
842
848
  imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
843
849
  const ret = getObject(arg0)[arg1 >>> 0];
844
850
  return addHeapObject(ret);
@@ -907,14 +913,6 @@ function __wbg_get_imports() {
907
913
  return addHeapObject(ret);
908
914
  }, arguments);
909
915
  };
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
916
  imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
919
917
  try {
920
918
  var state0 = { a: arg0, b: arg1 };
@@ -922,7 +920,7 @@ function __wbg_get_imports() {
922
920
  const a = state0.a;
923
921
  state0.a = 0;
924
922
  try {
925
- return __wbg_adapter_214(a, state0.b, arg02, arg12);
923
+ return __wbg_adapter_213(a, state0.b, arg02, arg12);
926
924
  } finally {
927
925
  state0.a = a;
928
926
  }
@@ -974,12 +972,12 @@ function __wbg_get_imports() {
974
972
  const ret = wasm.memory;
975
973
  return addHeapObject(ret);
976
974
  };
977
- imports.wbg.__wbindgen_closure_wrapper369 = function(arg0, arg1, arg2) {
978
- const ret = makeMutClosure(arg0, arg1, 119, __wbg_adapter_22);
975
+ imports.wbg.__wbindgen_closure_wrapper549 = function(arg0, arg1, arg2) {
976
+ const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_22);
979
977
  return addHeapObject(ret);
980
978
  };
981
- imports.wbg.__wbindgen_closure_wrapper967 = function(arg0, arg1, arg2) {
982
- const ret = makeMutClosure(arg0, arg1, 202, __wbg_adapter_25);
979
+ imports.wbg.__wbindgen_closure_wrapper897 = function(arg0, arg1, arg2) {
980
+ const ret = makeMutClosure(arg0, arg1, 185, __wbg_adapter_25);
983
981
  return addHeapObject(ret);
984
982
  };
985
983
  return imports;