@duckdb/duckdb-wasm-shell
Advanced tools
Comparing version 1.24.0 to 1.25.0
@@ -32,3 +32,3 @@ "use strict"; | ||
name: "@duckdb/duckdb-wasm-shell", | ||
version: "1.24.0", | ||
version: "1.25.0", | ||
description: "", | ||
@@ -57,3 +57,3 @@ author: "Andre Kohn <kohn.a@outlook.com>", | ||
dependencies: { | ||
"@duckdb/duckdb-wasm": "^1.24.0", | ||
"@duckdb/duckdb-wasm": "^1.25.0", | ||
xterm: "^5.1.0", | ||
@@ -66,3 +66,3 @@ "xterm-addon-fit": "^0.7.0", | ||
esbuild: "^0.15.12", | ||
eslint: "^8.34.0", | ||
eslint: "^8.35.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
@@ -75,3 +75,3 @@ "eslint-plugin-react": "^7.32.2", | ||
prettier: "^2.8.4", | ||
rimraf: "^4.1.2", | ||
rimraf: "^4.3.0", | ||
"wasm-pack": "^0.10.3" | ||
@@ -1012,3 +1012,3 @@ }, | ||
async open() { | ||
this._idb = await new Promise((resolve, reject) => { | ||
await new Promise((resolve, reject) => { | ||
const req = this._idbFactory.open(DB_NAME, DB_VERSION); | ||
@@ -1024,10 +1024,12 @@ req.onupgradeneeded = (ev) => { | ||
req.onsuccess = (_) => { | ||
const idb = req.result; | ||
resolve(idb); | ||
this._idb = req.result; | ||
resolve(null); | ||
}; | ||
req.onerror = (err) => reject(err); | ||
}); | ||
}).catch((e) => console.warn("Unable to initialize indexedDB, no history persistence")); | ||
await this.loadMetadata(); | ||
} | ||
async loadMetadata() { | ||
if (!this._idb) | ||
return; | ||
const entry = await new Promise((resolve, _reject) => { | ||
@@ -1068,2 +1070,4 @@ const tx = this._idb.transaction([TABLE_LOG_INFO]); | ||
async push(input) { | ||
if (!this._idb) | ||
return; | ||
const entryKey = this._nextEntryKey++ & (1 << HISTORY_SIZE_SHIFT) - 1; | ||
@@ -1206,3 +1210,3 @@ this._entryCount = Math.min(this._entryCount + 1, 1 << HISTORY_SIZE_SHIFT); | ||
if (progress.bytesTotal > 0) { | ||
const blocks = Math.floor(progress.bytesLoaded / progress.bytesTotal * 10); | ||
const blocks = Math.max(Math.min(Math.floor(progress.bytesLoaded / progress.bytesTotal * 10), 10), 0); | ||
const bar = `${"#".repeat(blocks)}${"-".repeat(10 - blocks)}`; | ||
@@ -1209,0 +1213,0 @@ write(`${TERM_CLEAR}${TERM_BOLD}[ RUN ]${TERM_NORMAL} Loading ${bar}`); |
{ | ||
"name": "@duckdb/duckdb-wasm-shell", | ||
"version": "1.24.0", | ||
"version": "1.25.0", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "author": "Andre Kohn <kohn.a@outlook.com>", | ||
"dependencies": { | ||
"@duckdb/duckdb-wasm": "^1.24.0", | ||
"@duckdb/duckdb-wasm": "^1.25.0", | ||
"xterm": "^5.1.0", | ||
@@ -36,3 +36,3 @@ "xterm-addon-fit": "^0.7.0", | ||
"esbuild": "^0.15.12", | ||
"eslint": "^8.34.0", | ||
"eslint": "^8.35.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
@@ -45,3 +45,3 @@ "eslint-plugin-react": "^7.32.2", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.1.2", | ||
"rimraf": "^4.3.0", | ||
"wasm-pack": "^0.10.3" | ||
@@ -48,0 +48,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2302524
3707
Updated@duckdb/duckdb-wasm@^1.25.0