Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@duckdb/duckdb-wasm-shell

Package Overview
Dependencies
Maintainers
3
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duckdb/duckdb-wasm-shell - npm Package Compare versions

Comparing version 1.17.0 to 1.20.0

330

dist/shell.js

@@ -32,3 +32,3 @@ "use strict";

name: "@duckdb/duckdb-wasm-shell",
version: "1.17.0",
version: "1.20.0",
description: "",

@@ -57,13 +57,13 @@ author: "Andre Kohn <kohn.a@outlook.com>",

dependencies: {
"@duckdb/duckdb-wasm": "^1.17.0",
xterm: "^4.19.0",
"xterm-addon-fit": "^0.5.0",
"xterm-addon-web-links": "^0.6.0",
"xterm-addon-webgl": "^0.12.0"
"@duckdb/duckdb-wasm": "^1.20.0",
xterm: "^5.0.0",
"xterm-addon-fit": "^0.6.0",
"xterm-addon-web-links": "^0.7.0",
"xterm-addon-webgl": "^0.13.0"
},
devDependencies: {
esbuild: "^0.15.6",
eslint: "^8.23.0",
esbuild: "^0.15.12",
eslint: "^8.26.0",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react": "^7.31.10",
jasmine: "^4.4.0",

@@ -116,3 +116,3 @@ "jasmine-core": "^4.3.0",

// src/shell.ts
var duckdb = __toESM(__require("@duckdb/duckdb-wasm"));
var duckdb2 = __toESM(__require("@duckdb/duckdb-wasm"));

@@ -299,7 +299,7 @@ // crate/pkg/shell.js

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__ha2fb078823e7ad26(arg0, arg1, addHeapObject(arg2));
var ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8627dd023b7400b7(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__h6c7916bcc52a68f1(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2903fa6d7a2fc12(arg0, arg1, addHeapObject(arg2));
}

@@ -367,3 +367,3 @@ function handleError(f, args) {

function __wbg_adapter_211(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h5c71afac6a955823(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
wasm.wasm_bindgen__convert__closures__invoke2_mut__h477457f3753e6248(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -439,2 +439,5 @@ var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });

imports.wbg = {};
imports.wbg.__wbg_setallowProposedApi_cfb269e8e3377640 = function(arg0, arg1) {
getObject(arg0).allowProposedApi = arg1 !== 0;
};
imports.wbg.__wbg_setcursorBlink_a86479d2e1c79045 = function(arg0, arg1) {

@@ -493,5 +496,2 @@ getObject(arg0).cursorBlink = arg1 !== 0;

};
imports.wbg.__wbg_setOption_ca4753aa51a9406f = function(arg0, arg1, arg2, arg3) {
getObject(arg0).setOption(getStringFromWasm0(arg1, arg2), takeObject(arg3));
};
imports.wbg.__wbg_loadAddon_0d8374e2ad409924 = function(arg0, arg1) {

@@ -503,2 +503,68 @@ getObject(arg0).loadAddon(takeObject(arg1));

};
imports.wbg.__wbg_connectInternal_2a301658fb915262 = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).connectInternal();
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));
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4 = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).readClipboardText();
return addHeapObject(ret);
}, arguments);
};
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_getFeatureFlags_3fbe38b898027f8e = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).getFeatureFlags();
return addHeapObject(ret);
}, arguments);
};
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_tokenize_17d3fb98b81f8e3b = function() {
return handleError(function(arg0, arg1, arg2) {
var ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_getVersion_498e84d9ed3a6710 = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).getVersion();
return addHeapObject(ret);
}, arguments);
};
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_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() {
return handleError(function() {
var ret = (0, import_duckdb_wasm.getPlatformFeatures)();
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_bigInt64Array_c5434225e36e999d = function(arg0) {

@@ -508,2 +574,6 @@ var ret = getObject(arg0).bigInt64Array;

};
imports.wbg.__wbg_crossOriginIsolated_8ef3a49137dfb764 = function(arg0) {
var ret = getObject(arg0).crossOriginIsolated;
return ret;
};
imports.wbg.__wbg_wasmThreads_ee9dc3f62d002e58 = function(arg0) {

@@ -513,6 +583,2 @@ var ret = getObject(arg0).wasmThreads;

};
imports.wbg.__wbg_wasmExceptions_fd3690b4fcea2b6c = function(arg0) {
var ret = getObject(arg0).wasmExceptions;
return ret;
};
imports.wbg.__wbg_wasmSIMD_65312a153e3a0ea1 = function(arg0) {

@@ -526,12 +592,6 @@ var ret = getObject(arg0).wasmSIMD;

};
imports.wbg.__wbg_crossOriginIsolated_8ef3a49137dfb764 = function(arg0) {
var ret = getObject(arg0).crossOriginIsolated;
imports.wbg.__wbg_wasmExceptions_fd3690b4fcea2b6c = function(arg0) {
var ret = getObject(arg0).wasmExceptions;
return ret;
};
imports.wbg.__wbg_getPlatformFeatures_c95d7aa09758c47e = function() {
return handleError(function() {
var ret = (0, import_duckdb_wasm.getPlatformFeatures)();
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_open_1c24085b4339ac18 = function() {

@@ -597,62 +657,2 @@ return handleError(function(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_exportFileStatistics_047e5ff39e3cd97e = function() {
return handleError(function(arg0, arg1, arg2) {
var ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_getVersion_498e84d9ed3a6710 = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).getVersion();
return addHeapObject(ret);
}, arguments);
};
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_tokenize_17d3fb98b81f8e3b = function() {
return handleError(function(arg0, arg1, arg2) {
var ret = getObject(arg0).tokenize(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));
return addHeapObject(ret);
}, arguments);
};
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_getFeatureFlags_3fbe38b898027f8e = function() {
return handleError(function(arg0) {
var ret = getObject(arg0).getFeatureFlags();
return addHeapObject(ret);
}, arguments);
};
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) {

@@ -685,2 +685,24 @@ var ret = getObject(arg0);

};
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
var ret = JSON.stringify(obj === void 0 ? null : obj);
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_da91149963a32187 = function(arg0) {
var ret = import_duckdb_wasm.PACKAGE_NAME;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_8aa2f518d9081bf5 = function(arg0) {
var ret = import_duckdb_wasm.PACKAGE_VERSION;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {

@@ -695,10 +717,2 @@ const obj = takeObject(arg0).original;

};
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
var ret = JSON.stringify(obj === void 0 ? null : obj);
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_log_39e5c6dfbf35ce2a = function(arg0, arg1) {

@@ -713,2 +727,16 @@ console.log(getStringFromWasm0(arg0, arg1));

};
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;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
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;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_blockStats_b4d97ec10e70983d = function(arg0) {

@@ -746,30 +774,2 @@ var ret = getObject(arg0).blockStats;

};
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;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
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;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_da91149963a32187 = function(arg0) {
var ret = import_duckdb_wasm.PACKAGE_NAME;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_8aa2f518d9081bf5 = function(arg0) {
var ret = import_duckdb_wasm.PACKAGE_VERSION;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_new_59cb74e423758ede = function() {

@@ -841,2 +841,34 @@ var ret = new Error();

};
imports.wbg.__wbg_self_bb69a836a72ec6e9 = function() {
return handleError(function() {
var ret = self.self;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_window_3304fc4b414c9693 = function() {
return handleError(function() {
var ret = window.window;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_globalThis_e0d21cabc6630763 = function() {
return handleError(function() {
var ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_global_8463719227271676 = function() {
return handleError(function() {
var ret = global.global;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
var ret = getObject(arg0) === void 0;
return ret;
};
imports.wbg.__wbg_newnoargs_9fdd8f3961dd1bee = function(arg0, arg1) {
var ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_new_3e1ee746fe308c9f = function(arg0, arg1) {

@@ -854,6 +886,2 @@ var ret = new Error(getStringFromWasm0(arg0, arg1));

};
imports.wbg.__wbg_newnoargs_9fdd8f3961dd1bee = function(arg0, arg1) {
var ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_call_3fc07b7d5fc9022d = function() {

@@ -899,30 +927,2 @@ return handleError(function(arg0, arg1, arg2) {

};
imports.wbg.__wbg_self_bb69a836a72ec6e9 = function() {
return handleError(function() {
var ret = self.self;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_window_3304fc4b414c9693 = function() {
return handleError(function() {
var ret = window.window;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_globalThis_e0d21cabc6630763 = function() {
return handleError(function() {
var ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_global_8463719227271676 = function() {
return handleError(function() {
var ret = global.global;
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
var ret = getObject(arg0) === void 0;
return ret;
};
imports.wbg.__wbg_buffer_9e184d6f785de5ed = function(arg0) {

@@ -974,8 +974,8 @@ var ret = getObject(arg0).buffer;

};
imports.wbg.__wbindgen_closure_wrapper646 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 127, __wbg_adapter_24);
imports.wbg.__wbindgen_closure_wrapper649 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 130, __wbg_adapter_24);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper979 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_27);
imports.wbg.__wbindgen_closure_wrapper976 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 155, __wbg_adapter_27);
return addHeapObject(ret);

@@ -1111,3 +1111,4 @@ };

// src/utils/files.ts
function pickFiles(db) {
var duckdb = __toESM(__require("@duckdb/duckdb-wasm"));
function pickFilesForFileReader(db) {
return new Promise((resolve, _reject) => {

@@ -1124,3 +1125,3 @@ const input = document.createElement("input");

await db.dropFile(file.name);
await db.registerFileHandle(file.name, file);
await db.registerFileHandle(file.name, file, duckdb.DuckDBDataProtocol.BROWSER_FILEREADER, true);
}

@@ -1149,6 +1150,9 @@ resolve(files.length);

}
async function pickFiles(db) {
return await pickFilesForFileReader(db);
}
// src/shell.ts
var hasWebGL = () => {
if (duckdb.isSafari()) {
if (duckdb2.isSafari()) {
return false;

@@ -1155,0 +1159,0 @@ }

{
"name": "@duckdb/duckdb-wasm-shell",
"version": "1.17.0",
"version": "1.20.0",
"description": "",

@@ -27,13 +27,13 @@ "author": "Andre Kohn <kohn.a@outlook.com>",

"dependencies": {
"@duckdb/duckdb-wasm": "^1.17.0",
"xterm": "^4.19.0",
"xterm-addon-fit": "^0.5.0",
"xterm-addon-web-links": "^0.6.0",
"xterm-addon-webgl": "^0.12.0"
"@duckdb/duckdb-wasm": "^1.20.0",
"xterm": "^5.0.0",
"xterm-addon-fit": "^0.6.0",
"xterm-addon-web-links": "^0.7.0",
"xterm-addon-webgl": "^0.13.0"
},
"devDependencies": {
"esbuild": "^0.15.6",
"eslint": "^8.23.0",
"esbuild": "^0.15.12",
"eslint": "^8.26.0",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react": "^7.31.10",
"jasmine": "^4.4.0",

@@ -40,0 +40,0 @@ "jasmine-core": "^4.3.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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc