@duckdb/duckdb-wasm-shell
Advanced tools
Comparing version 1.27.0 to 1.27.1-dev114.0
@@ -14,3 +14,3 @@ "use strict"; | ||
return require.apply(this, arguments); | ||
throw new Error('Dynamic require of "' + x + '" is not supported'); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
}); | ||
@@ -26,2 +26,6 @@ var __copyProps = (to, from, except, desc) => { | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -34,3 +38,3 @@ mod | ||
name: "@duckdb/duckdb-wasm-shell", | ||
version: "1.27.0", | ||
version: "1.27.1-dev114.0", | ||
description: "", | ||
@@ -59,20 +63,20 @@ author: "Andre Kohn <kohn.a@outlook.com>", | ||
dependencies: { | ||
"@duckdb/duckdb-wasm": "^1.27.0", | ||
"@duckdb/duckdb-wasm": "^1.27.1-dev114.0", | ||
xterm: "^5.1.0", | ||
"xterm-addon-fit": "^0.7.0", | ||
"xterm-addon-web-links": "^0.8.0", | ||
"xterm-addon-webgl": "^0.14.0" | ||
"xterm-addon-webgl": "^0.15.0" | ||
}, | ||
devDependencies: { | ||
esbuild: "^0.15.12", | ||
eslint: "^8.35.0", | ||
esbuild: "^0.18.13", | ||
eslint: "^8.47.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
"eslint-plugin-react": "^7.32.2", | ||
jasmine: "^4.5.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
jasmine: "^5.1.0", | ||
"jasmine-core": "^5.0.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"make-dir": "^3.1.0", | ||
prettier: "^2.8.4", | ||
rimraf: "^4.3.0", | ||
"wasm-pack": "^0.10.3" | ||
"make-dir": "^4.0.0", | ||
prettier: "^3.0.2", | ||
rimraf: "^5.0.1", | ||
"wasm-pack": "^0.12.1" | ||
}, | ||
@@ -222,6 +226,6 @@ scripts: { | ||
if (type == "number" || type == "boolean" || val == null) { | ||
return `${val}`; | ||
return "".concat(val); | ||
} | ||
if (type == "string") { | ||
return `"${val}"`; | ||
return '"'.concat(val, '"'); | ||
} | ||
@@ -233,3 +237,3 @@ if (type == "symbol") { | ||
} else { | ||
return `Symbol(${description})`; | ||
return "Symbol(".concat(description, ")"); | ||
} | ||
@@ -240,3 +244,3 @@ } | ||
if (typeof name == "string" && name.length > 0) { | ||
return `Function(${name})`; | ||
return "Function(".concat(name, ")"); | ||
} else { | ||
@@ -273,4 +277,3 @@ return "Function"; | ||
if (val instanceof Error) { | ||
return `${val.name}: ${val.message} | ||
${val.stack}`; | ||
return "".concat(val.name, ": ").concat(val.message, "\n").concat(val.stack); | ||
} | ||
@@ -304,7 +307,7 @@ return className; | ||
function __wbg_adapter_24(arg0, arg1, arg2) { | ||
var ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8627dd023b7400b7(arg0, arg1, addHeapObject(arg2)); | ||
var ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h08598aeb8718ccbb(arg0, arg1, addHeapObject(arg2)); | ||
return ret !== 0; | ||
} | ||
function __wbg_adapter_27(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2903fa6d7a2fc12(arg0, arg1, addHeapObject(arg2)); | ||
wasm.wasm_bindgen__convert__closures__invoke1_mut__h88b34c2b2acdb0fb(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -372,9 +375,9 @@ function handleError(f, args) { | ||
function __wbg_adapter_211(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h477457f3753e6248(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h64c2463c772a8dcf(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" }); | ||
var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" }); | ||
var DuckDBConfig = class { | ||
var DuckDBConfig = class _DuckDBConfig { | ||
static __wrap(ptr) { | ||
const obj = Object.create(DuckDBConfig.prototype); | ||
const obj = Object.create(_DuckDBConfig.prototype); | ||
obj.ptr = ptr; | ||
@@ -392,2 +395,5 @@ return obj; | ||
} | ||
/** | ||
* @returns {string | undefined} | ||
*/ | ||
get path() { | ||
@@ -409,2 +415,5 @@ try { | ||
} | ||
/** | ||
* @param {string | undefined} path | ||
*/ | ||
set path(path) { | ||
@@ -446,38 +455,23 @@ var ptr0 = isLikeNone(path) ? 0 : passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
imports.wbg = {}; | ||
imports.wbg.__wbg_setallowProposedApi_cfb269e8e3377640 = function(arg0, arg1) { | ||
getObject(arg0).allowProposedApi = arg1 !== 0; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbg_setcursorBlink_a86479d2e1c79045 = function(arg0, arg1) { | ||
getObject(arg0).cursorBlink = arg1 !== 0; | ||
imports.wbg.__wbg_getFeatureFlags_3fbe38b898027f8e = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).getFeatureFlags(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_setcursorWidth_33b9ca879009416e = function(arg0, arg1) { | ||
getObject(arg0).cursorWidth = arg1 >>> 0; | ||
imports.wbg.__wbg_collectFileStatistics_d5bb7163392f63a7 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_setdrawBoldTextInBrightColors_fd29f92ff197d87d = function(arg0, arg1) { | ||
getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0; | ||
imports.wbg.__wbg_exportFileStatistics_047e5ff39e3cd97e = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_setfontSize_2390052bdfa0951f = function(arg0, arg1) { | ||
getObject(arg0).fontSize = arg1 >>> 0; | ||
}; | ||
imports.wbg.__wbg_setfontFamily_a76723a99b3e1c44 = function(arg0, arg1, arg2) { | ||
getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_setrightClickSelectsWord_b360a1259d32073b = function(arg0, arg1) { | ||
getObject(arg0).rightClickSelectsWord = arg1 !== 0; | ||
}; | ||
imports.wbg.__wbg_setrows_869f76d0b575783a = function(arg0, arg1) { | ||
getObject(arg0).rows = arg1 >>> 0; | ||
}; | ||
imports.wbg.__wbg_settheme_8e79c01462f90cdf = function(arg0, arg1) { | ||
getObject(arg0).theme = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_setforeground_edd982f95949c129 = function(arg0, arg1, arg2) { | ||
getObject(arg0).foreground = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_setbackground_24012fa04dc675fc = function(arg0, arg1, arg2) { | ||
getObject(arg0).background = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_setbrightYellow_862f40b15257431a = function(arg0, arg1, arg2) { | ||
getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_construct_9d9938ba79ea4475 = function(arg0) { | ||
@@ -491,62 +485,64 @@ var ret = new import_xterm.Terminal(getObject(arg0)); | ||
}; | ||
imports.wbg.__wbg_focus_5fff41e8198ad0b4 = function(arg0) { | ||
getObject(arg0).focus(); | ||
imports.wbg.__wbg_withWebGL_23ecf5d40e6afbed = function(arg0) { | ||
var ret = getObject(arg0).withWebGL; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_open_c7703947d6302f6c = function(arg0, arg1) { | ||
getObject(arg0).open(takeObject(arg1)); | ||
}; | ||
imports.wbg.__wbg_attachCustomKeyEventHandler_9c38a062a62eddd5 = function(arg0, arg1) { | ||
getObject(arg0).attachCustomKeyEventHandler(getObject(arg1)); | ||
}; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_write_167ebfb900d36862 = function(arg0, arg1, arg2) { | ||
getObject(arg0).write(getStringFromWasm0(arg1, arg2)); | ||
}; | ||
imports.wbg.__wbg_loadAddon_0d8374e2ad409924 = function(arg0, arg1) { | ||
getObject(arg0).loadAddon(takeObject(arg1)); | ||
}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbg_connectInternal_2a301658fb915262 = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).connectInternal(); | ||
imports.wbg.__wbg_pushInputToHistory_be6169df38305347 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_runQuery_73797dc478f1bce2 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3)); | ||
imports.wbg.__wbg_copyFileToBuffer_e4a7050307f57c30 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4 = function() { | ||
imports.wbg.__wbg_dropFiles_4d857401e3dd75ab = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).readClipboardText(); | ||
var ret = getObject(arg0).dropFiles(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_disconnect_503fc005d621c8c7 = function() { | ||
return handleError(function(arg0, arg1) { | ||
var ret = getObject(arg0).disconnect(arg1 >>> 0); | ||
imports.wbg.__wbg_dropFile_78cc44051c1ddec2 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_getFeatureFlags_3fbe38b898027f8e = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).getFeatureFlags(); | ||
imports.wbg.__wbg_downloadFile_223fed31724de5a9 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_pushInputToHistory_be6169df38305347 = function() { | ||
imports.wbg.__wbg_globFiles_7af26f0d3bb9c2f6 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2)); | ||
var ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_tokenize_17d3fb98b81f8e3b = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2)); | ||
imports.wbg.__wbg_pickFiles_0773778daac97095 = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).pickFiles(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_open_1c24085b4339ac18 = function() { | ||
return handleError(function(arg0, arg1) { | ||
var ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_getVersion_498e84d9ed3a6710 = function() { | ||
@@ -558,14 +554,8 @@ return handleError(function(arg0) { | ||
}; | ||
imports.wbg.__wbg_exportFileStatistics_047e5ff39e3cd97e = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2)); | ||
imports.wbg.__wbg_connectInternal_2a301658fb915262 = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).connectInternal(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_collectFileStatistics_d5bb7163392f63a7 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_getPlatformFeatures_c95d7aa09758c47e = function() { | ||
@@ -601,47 +591,17 @@ return handleError(function() { | ||
}; | ||
imports.wbg.__wbg_open_1c24085b4339ac18 = function() { | ||
return handleError(function(arg0, arg1) { | ||
var ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1)); | ||
imports.wbg.__wbg_runQuery_73797dc478f1bce2 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_copyFileToBuffer_e4a7050307f57c30 = function() { | ||
imports.wbg.__wbg_tokenize_17d3fb98b81f8e3b = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2)); | ||
var ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_dropFiles_4d857401e3dd75ab = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).dropFiles(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_dropFile_78cc44051c1ddec2 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_globFiles_7af26f0d3bb9c2f6 = function() { | ||
return handleError(function(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_pickFiles_0773778daac97095 = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).pickFiles(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_downloadFile_223fed31724de5a9 = function() { | ||
return handleError(function(arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3)); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_backgroundColor_13124d7a2f6922da = function(arg0, arg1) { | ||
var ret = getObject(arg1).backgroundColor; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
imports.wbg.__wbg_offsets_b3b1bdd37d9a4f30 = function(arg0, arg1) { | ||
var ret = getObject(arg1).offsets; | ||
var ptr0 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -651,5 +611,5 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
}; | ||
imports.wbg.__wbg_fontFamily_bf454fed644c371e = function(arg0, arg1) { | ||
var ret = getObject(arg1).fontFamily; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
imports.wbg.__wbg_types_cc4d77772fac0646 = function(arg0, arg1) { | ||
var ret = getObject(arg1).types; | ||
var ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -659,14 +619,11 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
}; | ||
imports.wbg.__wbg_withWebGL_23ecf5d40e6afbed = function(arg0) { | ||
var ret = getObject(arg0).withWebGL; | ||
return ret; | ||
imports.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4 = function() { | ||
return handleError(function(arg0) { | ||
var ret = getObject(arg0).readClipboardText(); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) { | ||
var ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_focus_5fff41e8198ad0b4 = function(arg0) { | ||
getObject(arg0).focus(); | ||
}; | ||
imports.wbg.__wbg_new_58c6288db0a82870 = function(arg0) { | ||
var ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) { | ||
@@ -676,10 +633,2 @@ var ret = getObject(arg0) instanceof import_xterm_addon_webgl.WebglAddon; | ||
}; | ||
imports.wbg.__wbg_new_6bf4fb65423e34f9 = function(arg0, arg1, arg2) { | ||
var ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_670d6f7b0bfae3ee = function() { | ||
var ret = new import_xterm_addon_fit.FitAddon(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) { | ||
@@ -689,5 +638,2 @@ var ret = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon; | ||
}; | ||
imports.wbg.__wbg_fit_fea2302f520fa7cc = function(arg0) { | ||
getObject(arg0).fit(); | ||
}; | ||
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) { | ||
@@ -701,2 +647,38 @@ const obj = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_new_670d6f7b0bfae3ee = function() { | ||
var ret = new import_xterm_addon_fit.FitAddon(); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_blockStats_b4d97ec10e70983d = function(arg0) { | ||
var ret = getObject(arg0).blockStats; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalFileWrites_bbaee851a41a14ff = function(arg0) { | ||
var ret = getObject(arg0).totalFileWrites; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsAhead_ddd1fa3f99bbb6b5 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsAhead; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsCold_1db94cbad8a68e51 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsCold; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsCached_47f56ad6f5eea3e2 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsCached; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalPageAccesses_872b05c6d29a292d = function(arg0) { | ||
var ret = getObject(arg0).totalPageAccesses; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_totalPageLoads_f735ffd254650c2a = function(arg0) { | ||
var ret = getObject(arg0).totalPageLoads; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_blockSize_672ac525e53ba36d = function(arg0) { | ||
var ret = getObject(arg0).blockSize; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_da91149963a32187 = function(arg0) { | ||
@@ -716,2 +698,5 @@ var ret = import_duckdb_wasm.PACKAGE_NAME; | ||
}; | ||
imports.wbg.__wbg_fit_fea2302f520fa7cc = function(arg0) { | ||
getObject(arg0).fit(); | ||
}; | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
@@ -726,14 +711,28 @@ const obj = takeObject(arg0).original; | ||
}; | ||
imports.wbg.__wbg_log_39e5c6dfbf35ce2a = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_disconnect_503fc005d621c8c7 = function() { | ||
return handleError(function(arg0, arg1) { | ||
var ret = getObject(arg0).disconnect(arg1 >>> 0); | ||
return addHeapObject(ret); | ||
}, arguments); | ||
}; | ||
imports.wbg.__wbg_error_e42d6a50bd4cd544 = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_new_6bf4fb65423e34f9 = function(arg0, arg1, arg2) { | ||
var ret = new import_xterm_addon_web_links.WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_warn_8c6115cb2bc8bed9 = function(arg0, arg1) { | ||
console.warn(getStringFromWasm0(arg0, arg1)); | ||
imports.wbg.__wbg_new_58c6288db0a82870 = function(arg0) { | ||
var ret = new import_xterm_addon_webgl.WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_offsets_b3b1bdd37d9a4f30 = function(arg0, arg1) { | ||
var ret = getObject(arg1).offsets; | ||
var ptr0 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc); | ||
imports.wbg.__wbg_setrows_869f76d0b575783a = function(arg0, arg1) { | ||
getObject(arg0).rows = arg1 >>> 0; | ||
}; | ||
imports.wbg.__wbg_setcursorBlink_a86479d2e1c79045 = function(arg0, arg1) { | ||
getObject(arg0).cursorBlink = arg1 !== 0; | ||
}; | ||
imports.wbg.__wbg_setcursorWidth_33b9ca879009416e = function(arg0, arg1) { | ||
getObject(arg0).cursorWidth = arg1 >>> 0; | ||
}; | ||
imports.wbg.__wbg_fontFamily_bf454fed644c371e = function(arg0, arg1) { | ||
var ret = getObject(arg1).fontFamily; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -743,5 +742,26 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
}; | ||
imports.wbg.__wbg_types_cc4d77772fac0646 = function(arg0, arg1) { | ||
var ret = getObject(arg1).types; | ||
var ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc); | ||
imports.wbg.__wbg_setfontFamily_a76723a99b3e1c44 = function(arg0, arg1, arg2) { | ||
getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_setfontSize_2390052bdfa0951f = function(arg0, arg1) { | ||
getObject(arg0).fontSize = arg1 >>> 0; | ||
}; | ||
imports.wbg.__wbg_setdrawBoldTextInBrightColors_fd29f92ff197d87d = function(arg0, arg1) { | ||
getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0; | ||
}; | ||
imports.wbg.__wbg_setrightClickSelectsWord_b360a1259d32073b = function(arg0, arg1) { | ||
getObject(arg0).rightClickSelectsWord = arg1 !== 0; | ||
}; | ||
imports.wbg.__wbg_setallowProposedApi_cfb269e8e3377640 = function(arg0, arg1) { | ||
getObject(arg0).allowProposedApi = arg1 !== 0; | ||
}; | ||
imports.wbg.__wbg_setbrightYellow_862f40b15257431a = function(arg0, arg1, arg2) { | ||
getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_setforeground_edd982f95949c129 = function(arg0, arg1, arg2) { | ||
getObject(arg0).foreground = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_backgroundColor_13124d7a2f6922da = function(arg0, arg1) { | ||
var ret = getObject(arg1).backgroundColor; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -751,34 +771,23 @@ getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
}; | ||
imports.wbg.__wbg_blockStats_b4d97ec10e70983d = function(arg0) { | ||
var ret = getObject(arg0).blockStats; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_setbackground_24012fa04dc675fc = function(arg0, arg1, arg2) { | ||
getObject(arg0).background = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_totalFileWrites_bbaee851a41a14ff = function(arg0) { | ||
var ret = getObject(arg0).totalFileWrites; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_settheme_8e79c01462f90cdf = function(arg0, arg1) { | ||
getObject(arg0).theme = getObject(arg1); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsAhead_ddd1fa3f99bbb6b5 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsAhead; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_open_c7703947d6302f6c = function(arg0, arg1) { | ||
getObject(arg0).open(takeObject(arg1)); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsCold_1db94cbad8a68e51 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsCold; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_loadAddon_0d8374e2ad409924 = function(arg0, arg1) { | ||
getObject(arg0).loadAddon(takeObject(arg1)); | ||
}; | ||
imports.wbg.__wbg_totalFileReadsCached_47f56ad6f5eea3e2 = function(arg0) { | ||
var ret = getObject(arg0).totalFileReadsCached; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_log_39e5c6dfbf35ce2a = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_totalPageAccesses_872b05c6d29a292d = function(arg0) { | ||
var ret = getObject(arg0).totalPageAccesses; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_error_e42d6a50bd4cd544 = function(arg0, arg1) { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_totalPageLoads_f735ffd254650c2a = function(arg0) { | ||
var ret = getObject(arg0).totalPageLoads; | ||
return addHeapObject(ret); | ||
imports.wbg.__wbg_warn_8c6115cb2bc8bed9 = function(arg0, arg1) { | ||
console.warn(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_blockSize_672ac525e53ba36d = function(arg0) { | ||
var ret = getObject(arg0).blockSize; | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_59cb74e423758ede = function() { | ||
@@ -810,6 +819,2 @@ var ret = new Error(); | ||
}; | ||
imports.wbg.__wbg_now_44a034aa2e1d73dd = function(arg0) { | ||
var ret = getObject(arg0).now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_type_55a19f61b3198ce6 = function(arg0, arg1) { | ||
@@ -822,2 +827,6 @@ var ret = getObject(arg1).type; | ||
}; | ||
imports.wbg.__wbg_now_44a034aa2e1d73dd = function(arg0) { | ||
var ret = getObject(arg0).now(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_ctrlKey_8fa508d0b540bc8f = function(arg0) { | ||
@@ -982,7 +991,7 @@ var ret = getObject(arg0).ctrlKey; | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper649 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 130, __wbg_adapter_24); | ||
imports.wbg.__wbindgen_closure_wrapper325 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 94, __wbg_adapter_24); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper976 = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbindgen_closure_wrapper962 = function(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 155, __wbg_adapter_27); | ||
@@ -1015,2 +1024,3 @@ return addHeapObject(ret); | ||
} | ||
/// Load entire history | ||
async load() { | ||
@@ -1036,2 +1046,3 @@ if (this._entryCount == 0) | ||
} | ||
/// Open the indexeddb database | ||
async open() { | ||
@@ -1056,2 +1067,3 @@ await new Promise((resolve, reject) => { | ||
} | ||
/// Load the log metadata (if persisted) | ||
async loadMetadata() { | ||
@@ -1073,2 +1085,3 @@ if (!this._idb) | ||
} | ||
/// Create the store schema | ||
createSchema(idb) { | ||
@@ -1088,2 +1101,3 @@ if (idb.objectStoreNames.contains(TABLE_LOG_INFO)) { | ||
} | ||
/// Reset the indexeddb | ||
async reset() { | ||
@@ -1096,2 +1110,3 @@ var _a; | ||
} | ||
/// Push a new entry | ||
async push(input) { | ||
@@ -1109,3 +1124,3 @@ if (!this._idb) | ||
key: entryKey, | ||
when: new Date(), | ||
when: /* @__PURE__ */ new Date(), | ||
input | ||
@@ -1221,3 +1236,3 @@ }); | ||
const size = Number((value / Math.pow(multiple, exp)).toFixed(2)); | ||
return `${size} ${exp ? `${k}MGTPEZY`[exp - 1] + suffix : `byte${size !== 1 ? "s" : ""}`}`; | ||
return "".concat(size, " ").concat(exp ? "".concat(k, "MGTPEZY")[exp - 1] + suffix : "byte".concat(size !== 1 ? "s" : "")); | ||
} | ||
@@ -1240,15 +1255,15 @@ async function embed2(props) { | ||
const blocks = Math.max(Math.min(Math.floor(progress.bytesLoaded / progress.bytesTotal * 10), 10), 0); | ||
const bar = `${"#".repeat(blocks)}${"-".repeat(10 - blocks)}`; | ||
write(`${TERM_CLEAR}${TERM_BOLD}[ RUN ]${TERM_NORMAL} Loading ${bar}`); | ||
const bar = "".concat("#".repeat(blocks)).concat("-".repeat(10 - blocks)); | ||
write("".concat(TERM_CLEAR).concat(TERM_BOLD, "[ RUN ]").concat(TERM_NORMAL, " Loading ").concat(bar)); | ||
} else { | ||
write(`${TERM_CLEAR}${TERM_BOLD}[ RUN ]${TERM_NORMAL} Loading ${formatBytes(progress.bytesLoaded)}`); | ||
write("".concat(TERM_CLEAR).concat(TERM_BOLD, "[ RUN ]").concat(TERM_NORMAL, " Loading ").concat(formatBytes(progress.bytesLoaded))); | ||
} | ||
}; | ||
writeln(`${TERM_BOLD}[ RUN ]${TERM_NORMAL} Instantiating DuckDB`); | ||
writeln("".concat(TERM_BOLD, "[ RUN ]").concat(TERM_NORMAL, " Instantiating DuckDB")); | ||
runtime.database = await props.resolveDatabase(progressHandler); | ||
writeln(`${TERM_CLEAR}${TERM_BOLD}[ OK ]${TERM_NORMAL} Instantiating DuckDB`); | ||
writeln("".concat(TERM_CLEAR).concat(TERM_BOLD, "[ OK ]").concat(TERM_NORMAL, " Instantiating DuckDB")); | ||
const step = async (label, work) => { | ||
writeln(`${TERM_BOLD}[ RUN ]${TERM_NORMAL} ${label}`); | ||
writeln("".concat(TERM_BOLD, "[ RUN ]").concat(TERM_NORMAL, " ").concat(label)); | ||
await work(); | ||
writeln(`${TERM_BOLD}[ OK ]${TERM_NORMAL} ${label}`); | ||
writeln("".concat(TERM_BOLD, "[ OK ]").concat(TERM_NORMAL, " ").concat(label)); | ||
}; | ||
@@ -1267,6 +1282,6 @@ await step("Loading Shell History", async () => { | ||
function getJsDelivrModule() { | ||
const jsdelivr_dist_url = `https://cdn.jsdelivr.net/npm/${PACKAGE_NAME}@${PACKAGE_VERSION}/dist/`; | ||
return new URL(`${jsdelivr_dist_url}dist/shell_bg.wasm`); | ||
const jsdelivr_dist_url = "https://cdn.jsdelivr.net/npm/".concat(PACKAGE_NAME, "@").concat(PACKAGE_VERSION, "/dist/"); | ||
return new URL("".concat(jsdelivr_dist_url, "dist/shell_bg.wasm")); | ||
} | ||
})(); | ||
//# sourceMappingURL=shell.js.map |
{ | ||
"name": "@duckdb/duckdb-wasm-shell", | ||
"version": "1.27.0", | ||
"version": "1.27.1-dev114.0", | ||
"description": "", | ||
@@ -27,20 +27,20 @@ "author": "Andre Kohn <kohn.a@outlook.com>", | ||
"dependencies": { | ||
"@duckdb/duckdb-wasm": "^1.27.0", | ||
"@duckdb/duckdb-wasm": "^1.27.1-dev114.0", | ||
"xterm": "^5.1.0", | ||
"xterm-addon-fit": "^0.7.0", | ||
"xterm-addon-web-links": "^0.8.0", | ||
"xterm-addon-webgl": "^0.14.0" | ||
"xterm-addon-webgl": "^0.15.0" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.15.12", | ||
"eslint": "^8.35.0", | ||
"esbuild": "^0.18.13", | ||
"eslint": "^8.47.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
"eslint-plugin-react": "^7.32.2", | ||
"jasmine": "^4.5.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"jasmine": "^5.1.0", | ||
"jasmine-core": "^5.0.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"make-dir": "^3.1.0", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.3.0", | ||
"wasm-pack": "^0.10.3" | ||
"make-dir": "^4.0.0", | ||
"prettier": "^3.0.2", | ||
"rimraf": "^5.0.1", | ||
"wasm-pack": "^0.12.1" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
2331464
3748
2
+ Addedxterm-addon-webgl@0.15.0(transitive)
- Removedxterm-addon-webgl@0.14.0(transitive)
Updatedxterm-addon-webgl@^0.15.0