@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 +110 -110
- package/dist/shell.cjs.map +2 -2
- package/dist/shell.js +110 -110
- package/dist/shell.js.map +2 -2
- package/dist/shell.mjs +110 -110
- package/dist/shell.mjs.map +3 -3
- package/dist/shell_bg.wasm +0 -0
- package/package.json +2 -2
package/dist/shell.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
// package.json
|
|
34
34
|
var package_default = {
|
|
35
35
|
name: "@duckdb/duckdb-wasm-shell",
|
|
36
|
-
version: "1.28.1-
|
|
36
|
+
version: "1.28.1-dev249.0",
|
|
37
37
|
description: "",
|
|
38
38
|
author: "Andre Kohn <kohn.a@outlook.com>",
|
|
39
39
|
license: "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"csv"
|
|
58
58
|
],
|
|
59
59
|
dependencies: {
|
|
60
|
-
"@duckdb/duckdb-wasm": "^1.28.1-
|
|
60
|
+
"@duckdb/duckdb-wasm": "^1.28.1-dev249.0",
|
|
61
61
|
xterm: "^5.3.0",
|
|
62
62
|
"xterm-addon-fit": "^0.8.0",
|
|
63
63
|
"xterm-addon-web-links": "^0.9.0",
|
|
@@ -303,37 +303,11 @@
|
|
|
303
303
|
return real;
|
|
304
304
|
}
|
|
305
305
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
306
|
-
const ret = wasm.
|
|
306
|
+
const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he23567b868571ad4(arg0, arg1, addHeapObject(arg2));
|
|
307
307
|
return ret !== 0;
|
|
308
308
|
}
|
|
309
309
|
function __wbg_adapter_25(arg0, arg1, arg2) {
|
|
310
|
-
wasm.
|
|
311
|
-
}
|
|
312
|
-
var cachedUint32Memory0 = null;
|
|
313
|
-
function getUint32Memory0() {
|
|
314
|
-
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
315
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
316
|
-
}
|
|
317
|
-
return cachedUint32Memory0;
|
|
318
|
-
}
|
|
319
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
320
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
321
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
322
|
-
WASM_VECTOR_LEN = arg.length;
|
|
323
|
-
return ptr;
|
|
324
|
-
}
|
|
325
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
326
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
327
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
328
|
-
WASM_VECTOR_LEN = arg.length;
|
|
329
|
-
return ptr;
|
|
330
|
-
}
|
|
331
|
-
function handleError(f, args) {
|
|
332
|
-
try {
|
|
333
|
-
return f.apply(this, args);
|
|
334
|
-
} catch (e) {
|
|
335
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
336
|
-
}
|
|
310
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd53b6e4442644896(arg0, arg1, addHeapObject(arg2));
|
|
337
311
|
}
|
|
338
312
|
function embed(elem, runtime, options) {
|
|
339
313
|
try {
|
|
@@ -383,8 +357,34 @@
|
|
|
383
357
|
const ret = wasm.configureDatabase(addHeapObject(db));
|
|
384
358
|
return takeObject(ret);
|
|
385
359
|
}
|
|
360
|
+
function handleError(f, args) {
|
|
361
|
+
try {
|
|
362
|
+
return f.apply(this, args);
|
|
363
|
+
} catch (e) {
|
|
364
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
var cachedUint32Memory0 = null;
|
|
368
|
+
function getUint32Memory0() {
|
|
369
|
+
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
370
|
+
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
371
|
+
}
|
|
372
|
+
return cachedUint32Memory0;
|
|
373
|
+
}
|
|
374
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
375
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
376
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
377
|
+
WASM_VECTOR_LEN = arg.length;
|
|
378
|
+
return ptr;
|
|
379
|
+
}
|
|
380
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
381
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
382
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
383
|
+
WASM_VECTOR_LEN = arg.length;
|
|
384
|
+
return ptr;
|
|
385
|
+
}
|
|
386
386
|
function __wbg_adapter_210(arg0, arg1, arg2, arg3) {
|
|
387
|
-
wasm.
|
|
387
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h040411d80f04923c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
388
388
|
}
|
|
389
389
|
var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
|
|
390
390
|
var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
|
|
@@ -644,28 +644,16 @@
|
|
|
644
644
|
imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
|
|
645
645
|
getObject(arg0).fit();
|
|
646
646
|
};
|
|
647
|
-
imports.wbg.
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
const ret = result;
|
|
655
|
-
return ret;
|
|
656
|
-
};
|
|
657
|
-
imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
|
|
658
|
-
let result;
|
|
659
|
-
try {
|
|
660
|
-
result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
|
|
661
|
-
} catch (e) {
|
|
662
|
-
result = false;
|
|
663
|
-
}
|
|
664
|
-
const ret = result;
|
|
665
|
-
return ret;
|
|
647
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
648
|
+
const obj = getObject(arg1);
|
|
649
|
+
const ret = JSON.stringify(obj === void 0 ? null : obj);
|
|
650
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
651
|
+
const len1 = WASM_VECTOR_LEN;
|
|
652
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
653
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
666
654
|
};
|
|
667
|
-
imports.wbg.
|
|
668
|
-
getObject(arg0).
|
|
655
|
+
imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
|
|
656
|
+
getObject(arg0).rows = arg1 >>> 0;
|
|
669
657
|
};
|
|
670
658
|
imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
|
|
671
659
|
getObject(arg0).cursorBlink = arg1 !== 0;
|
|
@@ -673,46 +661,33 @@
|
|
|
673
661
|
imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
|
|
674
662
|
getObject(arg0).cursorWidth = arg1 >>> 0;
|
|
675
663
|
};
|
|
676
|
-
imports.wbg.
|
|
677
|
-
getObject(
|
|
664
|
+
imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
|
|
665
|
+
const ret = getObject(arg1).fontFamily;
|
|
666
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
667
|
+
const len1 = WASM_VECTOR_LEN;
|
|
668
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
669
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
670
|
+
};
|
|
671
|
+
imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
|
|
672
|
+
getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
|
|
678
673
|
};
|
|
679
674
|
imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
|
|
680
675
|
getObject(arg0).fontSize = arg1 >>> 0;
|
|
681
676
|
};
|
|
682
|
-
imports.wbg.
|
|
683
|
-
getObject(arg0).
|
|
677
|
+
imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
|
|
678
|
+
getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
|
|
684
679
|
};
|
|
685
680
|
imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
|
|
686
681
|
getObject(arg0).rightClickSelectsWord = arg1 !== 0;
|
|
687
682
|
};
|
|
688
|
-
imports.wbg.
|
|
689
|
-
getObject(arg0).
|
|
690
|
-
};
|
|
691
|
-
imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
|
|
692
|
-
getObject(arg0).theme = getObject(arg1);
|
|
693
|
-
};
|
|
694
|
-
imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
|
|
695
|
-
getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
|
|
696
|
-
};
|
|
697
|
-
imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
|
|
698
|
-
getObject(arg0).background = getStringFromWasm0(arg1, arg2);
|
|
683
|
+
imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
|
|
684
|
+
getObject(arg0).allowProposedApi = arg1 !== 0;
|
|
699
685
|
};
|
|
700
686
|
imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
|
|
701
687
|
getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
|
|
702
688
|
};
|
|
703
|
-
imports.wbg.
|
|
704
|
-
|
|
705
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
706
|
-
const len1 = WASM_VECTOR_LEN;
|
|
707
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
708
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
709
|
-
};
|
|
710
|
-
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
|
|
711
|
-
const ret = import_duckdb_wasm.PACKAGE_VERSION;
|
|
712
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
713
|
-
const len1 = WASM_VECTOR_LEN;
|
|
714
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
715
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
689
|
+
imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
|
|
690
|
+
getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
|
|
716
691
|
};
|
|
717
692
|
imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
|
|
718
693
|
const ret = getObject(arg1).backgroundColor;
|
|
@@ -721,16 +696,29 @@
|
|
|
721
696
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
722
697
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
723
698
|
};
|
|
724
|
-
imports.wbg.
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
699
|
+
imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
|
|
700
|
+
getObject(arg0).background = getStringFromWasm0(arg1, arg2);
|
|
701
|
+
};
|
|
702
|
+
imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
|
|
703
|
+
getObject(arg0).theme = getObject(arg1);
|
|
730
704
|
};
|
|
731
705
|
imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
|
|
732
706
|
getObject(arg0).open(takeObject(arg1));
|
|
733
707
|
};
|
|
708
|
+
imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
|
|
709
|
+
const ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
|
|
710
|
+
return addHeapObject(ret);
|
|
711
|
+
};
|
|
712
|
+
imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
|
|
713
|
+
let result;
|
|
714
|
+
try {
|
|
715
|
+
result = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
|
|
716
|
+
} catch (e) {
|
|
717
|
+
result = false;
|
|
718
|
+
}
|
|
719
|
+
const ret = result;
|
|
720
|
+
return ret;
|
|
721
|
+
};
|
|
734
722
|
imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
|
|
735
723
|
getObject(arg0).loadAddon(takeObject(arg1));
|
|
736
724
|
};
|
|
@@ -738,9 +726,15 @@
|
|
|
738
726
|
const ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
|
|
739
727
|
return addHeapObject(ret);
|
|
740
728
|
};
|
|
741
|
-
imports.wbg.
|
|
742
|
-
|
|
743
|
-
|
|
729
|
+
imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
|
|
730
|
+
let result;
|
|
731
|
+
try {
|
|
732
|
+
result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
|
|
733
|
+
} catch (e) {
|
|
734
|
+
result = false;
|
|
735
|
+
}
|
|
736
|
+
const ret = result;
|
|
737
|
+
return ret;
|
|
744
738
|
};
|
|
745
739
|
imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
|
|
746
740
|
return handleError(function(arg0, arg1) {
|
|
@@ -748,15 +742,6 @@
|
|
|
748
742
|
return addHeapObject(ret);
|
|
749
743
|
}, arguments);
|
|
750
744
|
};
|
|
751
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
752
|
-
const obj = takeObject(arg0).original;
|
|
753
|
-
if (obj.cnt-- == 1) {
|
|
754
|
-
obj.a = 0;
|
|
755
|
-
return true;
|
|
756
|
-
}
|
|
757
|
-
const ret = false;
|
|
758
|
-
return ret;
|
|
759
|
-
};
|
|
760
745
|
imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
|
|
761
746
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
762
747
|
};
|
|
@@ -770,6 +755,29 @@
|
|
|
770
755
|
const ret = new import_xterm_addon_fit.FitAddon();
|
|
771
756
|
return addHeapObject(ret);
|
|
772
757
|
};
|
|
758
|
+
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
|
|
759
|
+
const ret = import_duckdb_wasm.PACKAGE_VERSION;
|
|
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_NAME_0af717684e189e55 = function(arg0) {
|
|
766
|
+
const ret = import_duckdb_wasm.PACKAGE_NAME;
|
|
767
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
768
|
+
const len1 = WASM_VECTOR_LEN;
|
|
769
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
770
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
771
|
+
};
|
|
772
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
773
|
+
const obj = takeObject(arg0).original;
|
|
774
|
+
if (obj.cnt-- == 1) {
|
|
775
|
+
obj.a = 0;
|
|
776
|
+
return true;
|
|
777
|
+
}
|
|
778
|
+
const ret = false;
|
|
779
|
+
return ret;
|
|
780
|
+
};
|
|
773
781
|
imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
|
|
774
782
|
const ret = getObject(arg0).blockStats;
|
|
775
783
|
return addHeapObject(ret);
|
|
@@ -802,14 +810,6 @@
|
|
|
802
810
|
const ret = getObject(arg0).blockSize;
|
|
803
811
|
return addHeapObject(ret);
|
|
804
812
|
};
|
|
805
|
-
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
806
|
-
const obj = getObject(arg1);
|
|
807
|
-
const ret = JSON.stringify(obj === void 0 ? null : obj);
|
|
808
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
809
|
-
const len1 = WASM_VECTOR_LEN;
|
|
810
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
811
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
812
|
-
};
|
|
813
813
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
814
814
|
const ret = new Error();
|
|
815
815
|
return addHeapObject(ret);
|
|
@@ -999,12 +999,12 @@
|
|
|
999
999
|
const ret = wasm.memory;
|
|
1000
1000
|
return addHeapObject(ret);
|
|
1001
1001
|
};
|
|
1002
|
-
imports.wbg.
|
|
1003
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1002
|
+
imports.wbg.__wbindgen_closure_wrapper616 = function(arg0, arg1, arg2) {
|
|
1003
|
+
const ret = makeMutClosure(arg0, arg1, 158, __wbg_adapter_22);
|
|
1004
1004
|
return addHeapObject(ret);
|
|
1005
1005
|
};
|
|
1006
|
-
imports.wbg.
|
|
1007
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1006
|
+
imports.wbg.__wbindgen_closure_wrapper921 = function(arg0, arg1, arg2) {
|
|
1007
|
+
const ret = makeMutClosure(arg0, arg1, 188, __wbg_adapter_25);
|
|
1008
1008
|
return addHeapObject(ret);
|
|
1009
1009
|
};
|
|
1010
1010
|
return imports;
|