@duckdb/duckdb-wasm-shell 1.13.1-dev94.0 → 1.14.1

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.
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="140" height="20" role="img" aria-label="duckdb: v0.3.1-dev973"><title>duckdb: v0.3.1-dev973</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="140" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="49" height="20" fill="#555"/><rect x="49" width="91" height="20" fill="#007ec6"/><rect width="140" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="255" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="390">duckdb</text><text x="255" y="140" transform="scale(.1)" fill="#fff" textLength="390">duckdb</text><text aria-hidden="true" x="935" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="810">v0.3.1-dev973</text><text x="935" y="140" transform="scale(.1)" fill="#fff" textLength="810">v0.3.1-dev973</text></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="94" height="20" role="img" aria-label="duckdb: v0.3.4"><title>duckdb: v0.3.4</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="94" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="49" height="20" fill="#555"/><rect x="49" width="45" height="20" fill="#007ec6"/><rect width="94" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="255" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="390">duckdb</text><text x="255" y="140" transform="scale(.1)" fill="#fff" textLength="390">duckdb</text><text aria-hidden="true" x="705" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="350">v0.3.4</text><text x="705" y="140" transform="scale(.1)" fill="#fff" textLength="350">v0.3.4</text></g></svg>
package/dist/shell.cjs CHANGED
@@ -1,25 +1,23 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
7
  var __export = (target, all) => {
7
8
  for (var name2 in all)
8
9
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
10
  };
10
- var __reExport = (target, module3, copyDefault, desc) => {
11
- if (module3 && typeof module3 === "object" || typeof module3 === "function") {
12
- for (let key of __getOwnPropNames(module3))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module3[key], enumerable: !(desc = __getOwnPropDesc(module3, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
16
  }
16
- return target;
17
+ return to;
17
18
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module3, temp) => {
20
- return cache && cache.get(module3) || (temp = __reExport(__markAsModule({}), module3, 1), cache && cache.set(module3, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
 
24
22
  // src/index.ts
25
23
  var src_exports = {};
@@ -32,10 +30,11 @@ __export(src_exports, {
32
30
  embed: () => embed2,
33
31
  getJsDelivrModule: () => getJsDelivrModule
34
32
  });
33
+ module.exports = __toCommonJS(src_exports);
35
34
 
36
35
  // package.json
37
36
  var name = "@duckdb/duckdb-wasm-shell";
38
- var version = "1.13.1-dev94.0";
37
+ var version = "1.14.1";
39
38
  var description = "";
40
39
  var author = "Andre Kohn <kohn.a@outlook.com>";
41
40
  var license = "MPL-2.0";
@@ -59,27 +58,27 @@ var keywords = [
59
58
  "csv"
60
59
  ];
61
60
  var dependencies = {
62
- "@duckdb/duckdb-wasm": "^1.13.1-dev94.0",
63
- xterm: "^4.16.0",
61
+ "@duckdb/duckdb-wasm": "^1.14.1",
62
+ xterm: "^4.18.0",
64
63
  "xterm-addon-fit": "^0.5.0",
65
- "xterm-addon-web-links": "^0.5.0",
64
+ "xterm-addon-web-links": "^0.5.1",
66
65
  "xterm-addon-webgl": "^0.11.4"
67
66
  };
68
67
  var devDependencies = {
69
- esbuild: "^0.14.12",
70
- eslint: "^8.7.0",
68
+ esbuild: "^0.14.38",
69
+ eslint: "^8.14.0",
71
70
  "eslint-plugin-jasmine": "^4.1.3",
72
- "eslint-plugin-react": "^7.28.0",
73
- jasmine: "^4.0.2",
74
- "jasmine-core": "^4.0.0",
71
+ "eslint-plugin-react": "^7.29.4",
72
+ jasmine: "^4.1.0",
73
+ "jasmine-core": "^4.0.1",
75
74
  "jasmine-spec-reporter": "^7.0.0",
76
75
  "make-dir": "^3.1.0",
77
- prettier: "^2.5.1",
76
+ prettier: "^2.6.2",
78
77
  rimraf: "^3.0.2",
79
78
  "wasm-pack": "^0.10.2"
80
79
  };
81
80
  var scripts = {
82
- postinstall: "node ../../node_modules/wasm-pack/install.js",
81
+ "install:wasmpack": "node ../../node_modules/wasm-pack/install.js",
83
82
  "build:debug": "node bundle.mjs debug && tsc --emitDeclarationOnly",
84
83
  "build:release": "node bundle.mjs release && tsc --emitDeclarationOnly",
85
84
  lint: "eslint src"
@@ -96,10 +95,10 @@ var unpkg = "dist/shell.mjs";
96
95
  var sideEffects = false;
97
96
  var exports = {
98
97
  "./dist/shell_bg.wasm": "./dist/shell_bg.wasm",
99
- "./dist/shell.js": "./dist/shell_bg.js",
100
- "./dist/shell.cjs": "./dist/shell_bg.cjs",
101
- "./dist/shell.mjs": "./dist/shell_bg.mjs",
102
- "./dist/shell": "./dist/shell_bg.mjs",
98
+ "./dist/shell.js": "./dist/shell.js",
99
+ "./dist/shell.cjs": "./dist/shell.cjs",
100
+ "./dist/shell.mjs": "./dist/shell.mjs",
101
+ "./dist/shell": "./dist/shell.mjs",
103
102
  ".": {
104
103
  types: "./dist/shell.d.ts",
105
104
  import: "./dist/shell.mjs",
@@ -135,6 +134,9 @@ var PACKAGE_VERSION_MAJOR = VERSION_PARTS[0];
135
134
  var PACKAGE_VERSION_MINOR = VERSION_PARTS[1];
136
135
  var PACKAGE_VERSION_PATCH = VERSION_PARTS[2];
137
136
 
137
+ // src/shell.ts
138
+ var duckdb = __toESM(require("@duckdb/duckdb-wasm"));
139
+
138
140
  // crate/pkg/shell.js
139
141
  var import_duckdb_wasm = require("@duckdb/duckdb-wasm");
140
142
  var import_xterm = require("xterm");
@@ -315,11 +317,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
315
317
  return real;
316
318
  }
317
319
  function __wbg_adapter_24(arg0, arg1, arg2) {
318
- var ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h86575dcdd9170515(arg0, arg1, addHeapObject(arg2));
320
+ var ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha2fb078823e7ad26(arg0, arg1, addHeapObject(arg2));
319
321
  return ret !== 0;
320
322
  }
321
323
  function __wbg_adapter_27(arg0, arg1, arg2) {
322
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf1b92730452b26a5(arg0, arg1, addHeapObject(arg2));
324
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6c7916bcc52a68f1(arg0, arg1, addHeapObject(arg2));
323
325
  }
324
326
  function handleError(f, args) {
325
327
  try {
@@ -381,8 +383,8 @@ function passArray8ToWasm0(arg, malloc) {
381
383
  WASM_VECTOR_LEN = arg.length;
382
384
  return ptr;
383
385
  }
384
- function __wbg_adapter_199(arg0, arg1, arg2, arg3) {
385
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h445be38df5ff7a40(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
386
+ function __wbg_adapter_203(arg0, arg1, arg2, arg3) {
387
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h5c71afac6a955823(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
386
388
  }
387
389
  var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
388
390
  var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
@@ -428,6 +430,9 @@ async function init(input) {
428
430
  imports.wbg.__wbg_setfontSize_2390052bdfa0951f = function(arg0, arg1) {
429
431
  getObject(arg0).fontSize = arg1 >>> 0;
430
432
  };
433
+ imports.wbg.__wbg_setfontFamily_a76723a99b3e1c44 = function(arg0, arg1, arg2) {
434
+ getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
435
+ };
431
436
  imports.wbg.__wbg_setrightClickSelectsWord_b360a1259d32073b = function(arg0, arg1) {
432
437
  getObject(arg0).rightClickSelectsWord = arg1 !== 0;
433
438
  };
@@ -475,25 +480,40 @@ async function init(input) {
475
480
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
476
481
  takeObject(arg0);
477
482
  };
478
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
479
- const obj = takeObject(arg0).original;
480
- if (obj.cnt-- == 1) {
481
- obj.a = 0;
482
- return true;
483
- }
484
- var ret = false;
483
+ imports.wbg.__wbg_backgroundColor_13124d7a2f6922da = function(arg0, arg1) {
484
+ var ret = getObject(arg1).backgroundColor;
485
+ var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
486
+ var len0 = WASM_VECTOR_LEN;
487
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
488
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
489
+ };
490
+ imports.wbg.__wbg_fontFamily_bf454fed644c371e = function(arg0, arg1) {
491
+ var ret = getObject(arg1).fontFamily;
492
+ var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
493
+ var len0 = WASM_VECTOR_LEN;
494
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
495
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
496
+ };
497
+ imports.wbg.__wbg_withWebGL_23ecf5d40e6afbed = function(arg0) {
498
+ var ret = getObject(arg0).withWebGL;
485
499
  return ret;
486
500
  };
501
+ imports.wbg.__wbg_getPlatformFeatures_c95d7aa09758c47e = function() {
502
+ return handleError(function() {
503
+ var ret = (0, import_duckdb_wasm.getPlatformFeatures)();
504
+ return addHeapObject(ret);
505
+ }, arguments);
506
+ };
487
507
  imports.wbg.__wbg_bigInt64Array_c5434225e36e999d = function(arg0) {
488
508
  var ret = getObject(arg0).bigInt64Array;
489
509
  return ret;
490
510
  };
491
- imports.wbg.__wbg_wasmThreads_ee9dc3f62d002e58 = function(arg0) {
492
- var ret = getObject(arg0).wasmThreads;
511
+ imports.wbg.__wbg_crossOriginIsolated_8ef3a49137dfb764 = function(arg0) {
512
+ var ret = getObject(arg0).crossOriginIsolated;
493
513
  return ret;
494
514
  };
495
- imports.wbg.__wbg_wasmExceptions_fd3690b4fcea2b6c = function(arg0) {
496
- var ret = getObject(arg0).wasmExceptions;
515
+ imports.wbg.__wbg_wasmThreads_ee9dc3f62d002e58 = function(arg0) {
516
+ var ret = getObject(arg0).wasmThreads;
497
517
  return ret;
498
518
  };
499
519
  imports.wbg.__wbg_wasmSIMD_65312a153e3a0ea1 = function(arg0) {
@@ -504,57 +524,55 @@ async function init(input) {
504
524
  var ret = getObject(arg0).wasmBulkMemory;
505
525
  return ret;
506
526
  };
507
- imports.wbg.__wbg_crossOriginIsolated_8ef3a49137dfb764 = function(arg0) {
508
- var ret = getObject(arg0).crossOriginIsolated;
509
- return ret;
510
- };
511
- imports.wbg.__wbg_withWebGL_23ecf5d40e6afbed = function(arg0) {
512
- var ret = getObject(arg0).withWebGL;
527
+ imports.wbg.__wbg_wasmExceptions_fd3690b4fcea2b6c = function(arg0) {
528
+ var ret = getObject(arg0).wasmExceptions;
513
529
  return ret;
514
530
  };
515
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
516
- var ret = getObject(arg0);
517
- return addHeapObject(ret);
531
+ imports.wbg.__wbg_open_1c24085b4339ac18 = function() {
532
+ return handleError(function(arg0, arg1, arg2) {
533
+ var ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
534
+ return addHeapObject(ret);
535
+ }, arguments);
518
536
  };
519
- imports.wbg.__wbg_connectInternal_2a301658fb915262 = function() {
520
- return handleError(function(arg0) {
521
- var ret = getObject(arg0).connectInternal();
537
+ imports.wbg.__wbg_copyFileToBuffer_e4a7050307f57c30 = function() {
538
+ return handleError(function(arg0, arg1, arg2) {
539
+ var ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
522
540
  return addHeapObject(ret);
523
541
  }, arguments);
524
542
  };
525
- imports.wbg.__wbg_collectFileStatistics_d5bb7163392f63a7 = function() {
526
- return handleError(function(arg0, arg1, arg2, arg3) {
527
- var ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
543
+ imports.wbg.__wbg_dropFiles_4d857401e3dd75ab = function() {
544
+ return handleError(function(arg0) {
545
+ var ret = getObject(arg0).dropFiles();
528
546
  return addHeapObject(ret);
529
547
  }, arguments);
530
548
  };
531
- imports.wbg.__wbg_exportFileStatistics_047e5ff39e3cd97e = function() {
549
+ imports.wbg.__wbg_dropFile_78cc44051c1ddec2 = function() {
532
550
  return handleError(function(arg0, arg1, arg2) {
533
- var ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
551
+ var ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
534
552
  return addHeapObject(ret);
535
553
  }, arguments);
536
554
  };
537
- imports.wbg.__wbg_pushInputToHistory_be6169df38305347 = function() {
555
+ imports.wbg.__wbg_globFiles_7af26f0d3bb9c2f6 = function() {
538
556
  return handleError(function(arg0, arg1, arg2) {
539
- var ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
557
+ var ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
540
558
  return addHeapObject(ret);
541
559
  }, arguments);
542
560
  };
543
- imports.wbg.__wbg_runQuery_73797dc478f1bce2 = function() {
544
- return handleError(function(arg0, arg1, arg2, arg3) {
545
- var ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
561
+ imports.wbg.__wbg_pickFiles_0773778daac97095 = function() {
562
+ return handleError(function(arg0) {
563
+ var ret = getObject(arg0).pickFiles();
546
564
  return addHeapObject(ret);
547
565
  }, arguments);
548
566
  };
549
- imports.wbg.__wbg_disconnect_503fc005d621c8c7 = function() {
550
- return handleError(function(arg0, arg1) {
551
- var ret = getObject(arg0).disconnect(arg1 >>> 0);
567
+ imports.wbg.__wbg_downloadFile_223fed31724de5a9 = function() {
568
+ return handleError(function(arg0, arg1, arg2, arg3) {
569
+ var ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
552
570
  return addHeapObject(ret);
553
571
  }, arguments);
554
572
  };
555
- imports.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4 = function() {
573
+ imports.wbg.__wbg_getVersion_498e84d9ed3a6710 = function() {
556
574
  return handleError(function(arg0) {
557
- var ret = getObject(arg0).readClipboardText();
575
+ var ret = getObject(arg0).getVersion();
558
576
  return addHeapObject(ret);
559
577
  }, arguments);
560
578
  };
@@ -564,98 +582,66 @@ async function init(input) {
564
582
  return addHeapObject(ret);
565
583
  }, arguments);
566
584
  };
567
- imports.wbg.__wbg_getVersion_498e84d9ed3a6710 = function() {
568
- return handleError(function(arg0) {
569
- var ret = getObject(arg0).getVersion();
585
+ imports.wbg.__wbg_disconnect_503fc005d621c8c7 = function() {
586
+ return handleError(function(arg0, arg1) {
587
+ var ret = getObject(arg0).disconnect(arg1 >>> 0);
570
588
  return addHeapObject(ret);
571
589
  }, arguments);
572
590
  };
573
- imports.wbg.__wbg_getFeatureFlags_3fbe38b898027f8e = function() {
591
+ imports.wbg.__wbg_connectInternal_2a301658fb915262 = function() {
574
592
  return handleError(function(arg0) {
575
- var ret = getObject(arg0).getFeatureFlags();
576
- return addHeapObject(ret);
577
- }, arguments);
578
- };
579
- imports.wbg.__wbg_getPlatformFeatures_c95d7aa09758c47e = function() {
580
- return handleError(function() {
581
- var ret = (0, import_duckdb_wasm.getPlatformFeatures)();
593
+ var ret = getObject(arg0).connectInternal();
582
594
  return addHeapObject(ret);
583
595
  }, arguments);
584
596
  };
585
- imports.wbg.__wbg_open_1c24085b4339ac18 = function() {
586
- return handleError(function(arg0, arg1, arg2) {
587
- var ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
597
+ imports.wbg.__wbg_collectFileStatistics_d5bb7163392f63a7 = function() {
598
+ return handleError(function(arg0, arg1, arg2, arg3) {
599
+ var ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
588
600
  return addHeapObject(ret);
589
601
  }, arguments);
590
602
  };
591
- imports.wbg.__wbg_copyFileToBuffer_e4a7050307f57c30 = function() {
592
- return handleError(function(arg0, arg1, arg2) {
593
- var ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
603
+ imports.wbg.__wbg_runQuery_73797dc478f1bce2 = function() {
604
+ return handleError(function(arg0, arg1, arg2, arg3) {
605
+ var ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
594
606
  return addHeapObject(ret);
595
607
  }, arguments);
596
608
  };
597
- imports.wbg.__wbg_dropFiles_4d857401e3dd75ab = function() {
609
+ imports.wbg.__wbg_getFeatureFlags_3fbe38b898027f8e = function() {
598
610
  return handleError(function(arg0) {
599
- var ret = getObject(arg0).dropFiles();
611
+ var ret = getObject(arg0).getFeatureFlags();
600
612
  return addHeapObject(ret);
601
613
  }, arguments);
602
614
  };
603
- imports.wbg.__wbg_dropFile_78cc44051c1ddec2 = function() {
615
+ imports.wbg.__wbg_pushInputToHistory_be6169df38305347 = function() {
604
616
  return handleError(function(arg0, arg1, arg2) {
605
- var ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
617
+ var ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
606
618
  return addHeapObject(ret);
607
619
  }, arguments);
608
620
  };
609
- imports.wbg.__wbg_globFiles_7af26f0d3bb9c2f6 = function() {
621
+ imports.wbg.__wbg_exportFileStatistics_047e5ff39e3cd97e = function() {
610
622
  return handleError(function(arg0, arg1, arg2) {
611
- var ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
623
+ var ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
612
624
  return addHeapObject(ret);
613
625
  }, arguments);
614
626
  };
615
- imports.wbg.__wbg_pickFiles_0773778daac97095 = function() {
627
+ imports.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4 = function() {
616
628
  return handleError(function(arg0) {
617
- var ret = getObject(arg0).pickFiles();
629
+ var ret = getObject(arg0).readClipboardText();
618
630
  return addHeapObject(ret);
619
631
  }, arguments);
620
632
  };
621
- imports.wbg.__wbg_downloadFile_223fed31724de5a9 = function() {
622
- return handleError(function(arg0, arg1, arg2, arg3) {
623
- var ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
624
- return addHeapObject(ret);
625
- }, arguments);
633
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
634
+ var ret = getObject(arg0);
635
+ return addHeapObject(ret);
626
636
  };
627
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
628
- const obj = getObject(arg1);
629
- var ret = JSON.stringify(obj === void 0 ? null : obj);
630
- var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
631
- var len0 = WASM_VECTOR_LEN;
632
- getInt32Memory0()[arg0 / 4 + 1] = len0;
633
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
637
+ imports.wbg.__wbg_new_58c6288db0a82870 = function(arg0) {
638
+ var ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
639
+ return addHeapObject(ret);
634
640
  };
635
641
  imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
636
642
  var ret = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon;
637
643
  return ret;
638
644
  };
639
- imports.wbg.__wbg_log_39e5c6dfbf35ce2a = function(arg0, arg1) {
640
- console.log(getStringFromWasm0(arg0, arg1));
641
- };
642
- imports.wbg.__wbg_error_e42d6a50bd4cd544 = function(arg0, arg1) {
643
- console.error(getStringFromWasm0(arg0, arg1));
644
- };
645
- imports.wbg.__wbg_warn_8c6115cb2bc8bed9 = function(arg0, arg1) {
646
- console.warn(getStringFromWasm0(arg0, arg1));
647
- };
648
- imports.wbg.__wbg_backgroundColor_13124d7a2f6922da = function(arg0, arg1) {
649
- var ret = getObject(arg1).backgroundColor;
650
- var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
651
- var len0 = WASM_VECTOR_LEN;
652
- getInt32Memory0()[arg0 / 4 + 1] = len0;
653
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
654
- };
655
- imports.wbg.__wbg_new_58c6288db0a82870 = function(arg0) {
656
- var ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
657
- return addHeapObject(ret);
658
- };
659
645
  imports.wbg.__wbg_new_6bf4fb65423e34f9 = function(arg0, arg1, arg2) {
660
646
  var ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
661
647
  return addHeapObject(ret);
@@ -671,6 +657,32 @@ async function init(input) {
671
657
  imports.wbg.__wbg_fit_fea2302f520fa7cc = function(arg0) {
672
658
  getObject(arg0).fit();
673
659
  };
660
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
661
+ const obj = takeObject(arg0).original;
662
+ if (obj.cnt-- == 1) {
663
+ obj.a = 0;
664
+ return true;
665
+ }
666
+ var ret = false;
667
+ return ret;
668
+ };
669
+ imports.wbg.__wbg_log_39e5c6dfbf35ce2a = function(arg0, arg1) {
670
+ console.log(getStringFromWasm0(arg0, arg1));
671
+ };
672
+ imports.wbg.__wbg_error_e42d6a50bd4cd544 = function(arg0, arg1) {
673
+ console.error(getStringFromWasm0(arg0, arg1));
674
+ };
675
+ imports.wbg.__wbg_warn_8c6115cb2bc8bed9 = function(arg0, arg1) {
676
+ console.warn(getStringFromWasm0(arg0, arg1));
677
+ };
678
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
679
+ const obj = getObject(arg1);
680
+ var ret = JSON.stringify(obj === void 0 ? null : obj);
681
+ var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
682
+ var len0 = WASM_VECTOR_LEN;
683
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
684
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
685
+ };
674
686
  imports.wbg.__wbg_blockStats_b4d97ec10e70983d = function(arg0) {
675
687
  var ret = getObject(arg0).blockStats;
676
688
  return addHeapObject(ret);
@@ -812,7 +824,7 @@ async function init(input) {
812
824
  const a = state0.a;
813
825
  state0.a = 0;
814
826
  try {
815
- return __wbg_adapter_199(a, state0.b, arg02, arg12);
827
+ return __wbg_adapter_203(a, state0.b, arg02, arg12);
816
828
  } finally {
817
829
  state0.a = a;
818
830
  }
@@ -909,12 +921,12 @@ async function init(input) {
909
921
  var ret = wasm.memory;
910
922
  return addHeapObject(ret);
911
923
  };
912
- imports.wbg.__wbindgen_closure_wrapper222 = function(arg0, arg1, arg2) {
913
- var ret = makeMutClosure(arg0, arg1, 4, __wbg_adapter_24);
924
+ imports.wbg.__wbindgen_closure_wrapper636 = function(arg0, arg1, arg2) {
925
+ var ret = makeMutClosure(arg0, arg1, 129, __wbg_adapter_24);
914
926
  return addHeapObject(ret);
915
927
  };
916
- imports.wbg.__wbindgen_closure_wrapper918 = function(arg0, arg1, arg2) {
917
- var ret = makeMutClosure(arg0, arg1, 150, __wbg_adapter_27);
928
+ imports.wbg.__wbindgen_closure_wrapper950 = function(arg0, arg1, arg2) {
929
+ var ret = makeMutClosure(arg0, arg1, 145, __wbg_adapter_27);
918
930
  return addHeapObject(ret);
919
931
  };
920
932
  if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
@@ -1044,16 +1056,6 @@ var HistoryStore = class {
1044
1056
  }
1045
1057
  };
1046
1058
 
1047
- // src/platform.ts
1048
- var isNode = typeof navigator === "undefined" ? true : false;
1049
- var userAgent = isNode ? "node" : navigator.userAgent;
1050
- var isFirefox = userAgent.includes("Firefox");
1051
- var isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
1052
- function getJsDelivrModule() {
1053
- const jsdelivr_dist_url = `https://cdn.jsdelivr.net/npm/${PACKAGE_NAME}@${PACKAGE_VERSION}/dist/`;
1054
- return new URL(`${jsdelivr_dist_url}dist/shell_bg.wasm`);
1055
- }
1056
-
1057
1059
  // src/utils/files.ts
1058
1060
  function pickFiles(db) {
1059
1061
  return new Promise((resolve, _reject) => {
@@ -1094,7 +1096,7 @@ function pickFiles(db) {
1094
1096
 
1095
1097
  // src/shell.ts
1096
1098
  var hasWebGL = () => {
1097
- if (isSafari) {
1099
+ if (duckdb.isSafari()) {
1098
1100
  return false;
1099
1101
  }
1100
1102
  const canvas = document.createElement("canvas");
@@ -1145,10 +1147,12 @@ function formatBytes(value) {
1145
1147
  return `${size} ${exp ? `${k}MGTPEZY`[exp - 1] + suffix : `byte${size !== 1 ? "s" : ""}`}`;
1146
1148
  }
1147
1149
  async function embed2(props) {
1148
- await shell_default(props.wasmSource);
1150
+ var _a, _b;
1151
+ await shell_default(props.shellModule);
1149
1152
  const runtime = new ShellRuntime(props.container);
1150
1153
  embed(props.container, runtime, {
1151
- backgroundColor: "#333",
1154
+ fontFamily: (_a = props.fontFamily) != null ? _a : "monospace",
1155
+ backgroundColor: (_b = props.backgroundColor) != null ? _b : "#333",
1152
1156
  withWebGL: hasWebGL()
1153
1157
  });
1154
1158
  props.container.onresize = runtime.resizeHandler;
@@ -1181,5 +1185,10 @@ async function embed2(props) {
1181
1185
  configureDatabase(runtime.database);
1182
1186
  });
1183
1187
  }
1184
- module.exports = __toCommonJS(src_exports);
1188
+
1189
+ // src/platform.ts
1190
+ function getJsDelivrModule() {
1191
+ const jsdelivr_dist_url = `https://cdn.jsdelivr.net/npm/${PACKAGE_NAME}@${PACKAGE_VERSION}/dist/`;
1192
+ return new URL(`${jsdelivr_dist_url}dist/shell_bg.wasm`);
1193
+ }
1185
1194
  //# sourceMappingURL=shell.cjs.map