@duckdb/duckdb-wasm-shell 1.28.0 → 1.28.1-dev105.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <img src="https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@latest/dist/img/duckdb_wasm.svg" height="64">
1
+ <img src="https://raw.githubusercontent.com/duckdb/duckdb-wasm/main/misc/duckdb_wasm.svg" height="64">
2
2
 
3
3
  [![Main](https://github.com/duckdb/duckdb-wasm/actions/workflows/main.yml/badge.svg)](https://github.com/duckdb/duckdb-wasm/actions/workflows/main.yml)
4
4
  [![Benchmarks](https://github.com/duckdb/duckdb-wasm/actions/workflows/benchmarks.yml/badge.svg)](https://github.com/duckdb/duckdb-wasm/actions/workflows/benchmarks.yml)
@@ -1 +1 @@
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.9.1"><title>duckdb: v0.9.1</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.9.1</text><text x="705" y="140" transform="scale(.1)" fill="#fff" textLength="350">v0.9.1</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.9.2"><title>duckdb: v0.9.2</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.9.2</text><text x="705" y="140" transform="scale(.1)" fill="#fff" textLength="350">v0.9.2</text></g></svg>
package/dist/shell.cjs CHANGED
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(src_exports);
43
43
  // package.json
44
44
  var package_default = {
45
45
  name: "@duckdb/duckdb-wasm-shell",
46
- version: "1.28.0",
46
+ version: "1.28.1-dev105.0",
47
47
  description: "",
48
48
  author: "Andre Kohn <kohn.a@outlook.com>",
49
49
  license: "MIT",
@@ -67,22 +67,22 @@ var package_default = {
67
67
  "csv"
68
68
  ],
69
69
  dependencies: {
70
- "@duckdb/duckdb-wasm": "^1.28.0",
71
- xterm: "^5.1.0",
72
- "xterm-addon-fit": "^0.7.0",
70
+ "@duckdb/duckdb-wasm": "^1.28.1-dev105.0",
71
+ xterm: "^5.3.0",
72
+ "xterm-addon-fit": "^0.8.0",
73
73
  "xterm-addon-web-links": "^0.9.0",
74
74
  "xterm-addon-webgl": "^0.16.0"
75
75
  },
76
76
  devDependencies: {
77
- esbuild: "^0.19.5",
78
- eslint: "^8.50.0",
77
+ esbuild: "^0.20.0",
78
+ eslint: "^8.56.0",
79
79
  "eslint-plugin-jasmine": "^4.1.3",
80
80
  "eslint-plugin-react": "^7.33.2",
81
81
  jasmine: "^5.1.0",
82
82
  "jasmine-core": "^5.1.1",
83
83
  "jasmine-spec-reporter": "^7.0.0",
84
84
  "make-dir": "^4.0.0",
85
- prettier: "^3.0.2",
85
+ prettier: "^3.2.4",
86
86
  rimraf: "^5.0.5",
87
87
  "wasm-pack": "^0.12.1"
88
88
  },
@@ -313,11 +313,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
313
313
  return real;
314
314
  }
315
315
  function __wbg_adapter_22(arg0, arg1, arg2) {
316
- const ret = wasm.wasm_bindgen__convert__closures__invoke1_mut__h823dff921dec94a7(arg0, arg1, addHeapObject(arg2));
316
+ const ret = wasm.wasm_bindgen__convert__closures__invoke1_mut__h7e625be7026adc7c(arg0, arg1, addHeapObject(arg2));
317
317
  return ret !== 0;
318
318
  }
319
319
  function __wbg_adapter_25(arg0, arg1, arg2) {
320
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebc947492fd4d2e2(arg0, arg1, addHeapObject(arg2));
320
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__hc13282646fd8976d(arg0, arg1, addHeapObject(arg2));
321
+ }
322
+ function handleError(f, args) {
323
+ try {
324
+ return f.apply(this, args);
325
+ } catch (e) {
326
+ wasm.__wbindgen_exn_store(addHeapObject(e));
327
+ }
321
328
  }
322
329
  var cachedUint32Memory0 = null;
323
330
  function getUint32Memory0() {
@@ -378,19 +385,16 @@ function loadHistory(history, cursor) {
378
385
  heap[stack_pointer++] = void 0;
379
386
  }
380
387
  }
388
+ function passInitQueries(queries) {
389
+ const ret = wasm.passInitQueries(addHeapObject(queries));
390
+ return takeObject(ret);
391
+ }
381
392
  function configureDatabase(db) {
382
393
  const ret = wasm.configureDatabase(addHeapObject(db));
383
394
  return takeObject(ret);
384
395
  }
385
- function handleError(f, args) {
386
- try {
387
- return f.apply(this, args);
388
- } catch (e) {
389
- wasm.__wbindgen_exn_store(addHeapObject(e));
390
- }
391
- }
392
- function __wbg_adapter_213(arg0, arg1, arg2, arg3) {
393
- wasm.wasm_bindgen__convert__closures__invoke2_mut__hb4a89eef713a072f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
396
+ function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
397
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h085319ab0941bbff(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
394
398
  }
395
399
  var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
396
400
  var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
@@ -520,9 +524,9 @@ function __wbg_get_imports() {
520
524
  return addHeapObject(ret);
521
525
  }, arguments);
522
526
  };
523
- imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
527
+ imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
524
528
  return handleError(function(arg0, arg1, arg2) {
525
- const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
529
+ const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
526
530
  return addHeapObject(ret);
527
531
  }, arguments);
528
532
  };
@@ -532,9 +536,9 @@ function __wbg_get_imports() {
532
536
  return addHeapObject(ret);
533
537
  }, arguments);
534
538
  };
535
- imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
539
+ imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
536
540
  return handleError(function(arg0, arg1, arg2) {
537
- const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
541
+ const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
538
542
  return addHeapObject(ret);
539
543
  }, arguments);
540
544
  };
@@ -650,41 +654,41 @@ function __wbg_get_imports() {
650
654
  imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
651
655
  getObject(arg0).fit();
652
656
  };
653
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
654
- console.log(getStringFromWasm0(arg0, arg1));
655
- };
656
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
657
- console.error(getStringFromWasm0(arg0, arg1));
658
- };
659
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
660
- console.warn(getStringFromWasm0(arg0, arg1));
661
- };
662
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
663
- const ret = getObject(arg1).backgroundColor;
657
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
658
+ const obj = getObject(arg1);
659
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
664
660
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
665
661
  const len1 = WASM_VECTOR_LEN;
666
662
  getInt32Memory0()[arg0 / 4 + 1] = len1;
667
663
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
668
664
  };
669
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
670
- const ret = getObject(arg1).fontFamily;
665
+ imports.wbg.__wbg_new_79cc836771d68198 = function() {
666
+ const ret = new import_xterm_addon_fit.FitAddon();
667
+ return addHeapObject(ret);
668
+ };
669
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
670
+ const ret = import_duckdb_wasm.PACKAGE_VERSION;
671
671
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
672
672
  const len1 = WASM_VECTOR_LEN;
673
673
  getInt32Memory0()[arg0 / 4 + 1] = len1;
674
674
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
675
675
  };
676
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
677
- const ret = new import_xterm_addon_fit.FitAddon();
678
- return addHeapObject(ret);
679
- };
680
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
681
- const obj = getObject(arg1);
682
- const ret = JSON.stringify(obj === void 0 ? null : obj);
676
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
677
+ const ret = import_duckdb_wasm.PACKAGE_NAME;
683
678
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
684
679
  const len1 = WASM_VECTOR_LEN;
685
680
  getInt32Memory0()[arg0 / 4 + 1] = len1;
686
681
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
687
682
  };
683
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
684
+ const obj = takeObject(arg0).original;
685
+ if (obj.cnt-- == 1) {
686
+ obj.a = 0;
687
+ return true;
688
+ }
689
+ const ret = false;
690
+ return ret;
691
+ };
688
692
  imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
689
693
  getObject(arg0).rows = arg1 >>> 0;
690
694
  };
@@ -694,6 +698,13 @@ function __wbg_get_imports() {
694
698
  imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
695
699
  getObject(arg0).cursorWidth = arg1 >>> 0;
696
700
  };
701
+ imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
702
+ const ret = getObject(arg1).fontFamily;
703
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
704
+ const len1 = WASM_VECTOR_LEN;
705
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
706
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
707
+ };
697
708
  imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
698
709
  getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
699
710
  };
@@ -715,6 +726,13 @@ function __wbg_get_imports() {
715
726
  imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
716
727
  getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
717
728
  };
729
+ imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
730
+ const ret = getObject(arg1).backgroundColor;
731
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
732
+ const len1 = WASM_VECTOR_LEN;
733
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
734
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
735
+ };
718
736
  imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
719
737
  getObject(arg0).background = getStringFromWasm0(arg1, arg2);
720
738
  };
@@ -755,6 +773,21 @@ function __wbg_get_imports() {
755
773
  const ret = result;
756
774
  return ret;
757
775
  };
776
+ imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
777
+ return handleError(function(arg0, arg1) {
778
+ const ret = getObject(arg0).disconnect(arg1 >>> 0);
779
+ return addHeapObject(ret);
780
+ }, arguments);
781
+ };
782
+ imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
783
+ console.log(getStringFromWasm0(arg0, arg1));
784
+ };
785
+ imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
786
+ console.error(getStringFromWasm0(arg0, arg1));
787
+ };
788
+ imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
789
+ console.warn(getStringFromWasm0(arg0, arg1));
790
+ };
758
791
  imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
759
792
  const ret = getObject(arg0).blockStats;
760
793
  return addHeapObject(ret);
@@ -787,35 +820,6 @@ function __wbg_get_imports() {
787
820
  const ret = getObject(arg0).blockSize;
788
821
  return addHeapObject(ret);
789
822
  };
790
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
791
- const ret = import_duckdb_wasm.PACKAGE_VERSION;
792
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
793
- const len1 = WASM_VECTOR_LEN;
794
- getInt32Memory0()[arg0 / 4 + 1] = len1;
795
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
796
- };
797
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
798
- const ret = import_duckdb_wasm.PACKAGE_NAME;
799
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
800
- const len1 = WASM_VECTOR_LEN;
801
- getInt32Memory0()[arg0 / 4 + 1] = len1;
802
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
803
- };
804
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
805
- return handleError(function(arg0, arg1) {
806
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
807
- return addHeapObject(ret);
808
- }, arguments);
809
- };
810
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
811
- const obj = takeObject(arg0).original;
812
- if (obj.cnt-- == 1) {
813
- obj.a = 0;
814
- return true;
815
- }
816
- const ret = false;
817
- return ret;
818
- };
819
823
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
820
824
  const ret = new Error();
821
825
  return addHeapObject(ret);
@@ -852,6 +856,17 @@ function __wbg_get_imports() {
852
856
  const ret = getObject(arg0).performance;
853
857
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
854
858
  };
859
+ imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
860
+ const ret = getObject(arg1).type;
861
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
862
+ const len1 = WASM_VECTOR_LEN;
863
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
864
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
865
+ };
866
+ imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
867
+ const ret = getObject(arg0).now();
868
+ return ret;
869
+ };
855
870
  imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
856
871
  const ret = getObject(arg0).ctrlKey;
857
872
  return ret;
@@ -867,17 +882,6 @@ function __wbg_get_imports() {
867
882
  getInt32Memory0()[arg0 / 4 + 1] = len1;
868
883
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
869
884
  };
870
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
871
- const ret = getObject(arg1).type;
872
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
873
- const len1 = WASM_VECTOR_LEN;
874
- getInt32Memory0()[arg0 / 4 + 1] = len1;
875
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
876
- };
877
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
878
- const ret = getObject(arg0).now();
879
- return ret;
880
- };
881
885
  imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
882
886
  const ret = getObject(arg0)[arg1 >>> 0];
883
887
  return addHeapObject(ret);
@@ -961,7 +965,7 @@ function __wbg_get_imports() {
961
965
  const a = state0.a;
962
966
  state0.a = 0;
963
967
  try {
964
- return __wbg_adapter_213(a, state0.b, arg02, arg12);
968
+ return __wbg_adapter_214(a, state0.b, arg02, arg12);
965
969
  } finally {
966
970
  state0.a = a;
967
971
  }
@@ -1013,12 +1017,12 @@ function __wbg_get_imports() {
1013
1017
  const ret = wasm.memory;
1014
1018
  return addHeapObject(ret);
1015
1019
  };
1016
- imports.wbg.__wbindgen_closure_wrapper633 = function(arg0, arg1, arg2) {
1017
- const ret = makeMutClosure(arg0, arg1, 131, __wbg_adapter_22);
1020
+ imports.wbg.__wbindgen_closure_wrapper369 = function(arg0, arg1, arg2) {
1021
+ const ret = makeMutClosure(arg0, arg1, 119, __wbg_adapter_22);
1018
1022
  return addHeapObject(ret);
1019
1023
  };
1020
- imports.wbg.__wbindgen_closure_wrapper956 = function(arg0, arg1, arg2) {
1021
- const ret = makeMutClosure(arg0, arg1, 150, __wbg_adapter_25);
1024
+ imports.wbg.__wbindgen_closure_wrapper967 = function(arg0, arg1, arg2) {
1025
+ const ret = makeMutClosure(arg0, arg1, 202, __wbg_adapter_25);
1022
1026
  return addHeapObject(ret);
1023
1027
  };
1024
1028
  return imports;
@@ -1240,6 +1244,7 @@ var ShellRuntime = class {
1240
1244
  const rect = container.getBoundingClientRect();
1241
1245
  resize(rect.width, rect.height);
1242
1246
  };
1247
+ this.hash = "";
1243
1248
  }
1244
1249
  async pickFiles() {
1245
1250
  if (this.database == null) {
@@ -1262,6 +1267,16 @@ var ShellRuntime = class {
1262
1267
  return await navigator.clipboard.writeText(value);
1263
1268
  }
1264
1269
  async pushInputToHistory(value) {
1270
+ const encode = encodeURIComponent(extraswaps(value));
1271
+ if (this.hash === "")
1272
+ this.hash = "queries=v0";
1273
+ this.hash += ",";
1274
+ this.hash += encode;
1275
+ if (window.location.hash.startsWith("#savequeries"))
1276
+ window.location.hash = "savequeries&" + this.hash;
1277
+ const a = document.getElementById("hashencoded");
1278
+ if (a && a instanceof HTMLAnchorElement)
1279
+ a.href = "/#" + this.hash;
1265
1280
  this.history.push(value);
1266
1281
  }
1267
1282
  };
@@ -1271,6 +1286,22 @@ function formatBytes(value) {
1271
1286
  const size = Number((value / Math.pow(multiple, exp)).toFixed(2));
1272
1287
  return "".concat(size, " ").concat(exp ? "".concat(k, "MGTPEZY")[exp - 1] + suffix : "byte".concat(size !== 1 ? "s" : ""));
1273
1288
  }
1289
+ function extraswaps(input) {
1290
+ let res = "";
1291
+ for (let i = 0; i < input.length; i++) {
1292
+ if (input[i] == " ")
1293
+ res += "-";
1294
+ else if (input[i] == "-")
1295
+ res += " ";
1296
+ else if (input[i] == ";")
1297
+ res += "~";
1298
+ else if (input[i] == "~")
1299
+ res += ";";
1300
+ else
1301
+ res += input[i];
1302
+ }
1303
+ return res;
1304
+ }
1274
1305
  async function embed2(props) {
1275
1306
  var _a, _b;
1276
1307
  await shell_default(props.shellModule);
@@ -1309,6 +1340,15 @@ async function embed2(props) {
1309
1340
  await step("Attaching Shell", async () => {
1310
1341
  configureDatabase(runtime.database);
1311
1342
  });
1343
+ const hash = window.location.hash;
1344
+ const splits = hash.split(",");
1345
+ const sqls = [];
1346
+ for (let i = 1; i < splits.length; i++) {
1347
+ sqls.push(extraswaps(decodeURIComponent(splits[i])));
1348
+ }
1349
+ await step("Rewinding history!", async () => {
1350
+ passInitQueries(sqls);
1351
+ });
1312
1352
  }
1313
1353
 
1314
1354
  // src/platform.ts