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.28.0 to 1.28.1-dev104.0

214

dist/shell.js

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

name: "@duckdb/duckdb-wasm-shell",
version: "1.28.0",
version: "1.28.1-dev104.0",
description: "",

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

dependencies: {
"@duckdb/duckdb-wasm": "^1.28.0",
xterm: "^5.1.0",
"xterm-addon-fit": "^0.7.0",
"@duckdb/duckdb-wasm": "^1.28.1-dev104.0",
xterm: "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"xterm-addon-web-links": "^0.9.0",

@@ -69,4 +69,4 @@ "xterm-addon-webgl": "^0.16.0"

devDependencies: {
esbuild: "^0.19.5",
eslint: "^8.50.0",
esbuild: "^0.20.0",
eslint: "^8.56.0",
"eslint-plugin-jasmine": "^4.1.3",

@@ -78,3 +78,3 @@ "eslint-plugin-react": "^7.33.2",

"make-dir": "^4.0.0",
prettier: "^3.0.2",
prettier: "^3.2.4",
rimraf: "^5.0.5",

@@ -310,8 +310,15 @@ "wasm-pack": "^0.12.1"

function __wbg_adapter_22(arg0, arg1, arg2) {
const ret = wasm.wasm_bindgen__convert__closures__invoke1_mut__h823dff921dec94a7(arg0, arg1, addHeapObject(arg2));
const ret = wasm.wasm_bindgen__convert__closures__invoke1_mut__h7e625be7026adc7c(arg0, arg1, addHeapObject(arg2));
return ret !== 0;
}
function __wbg_adapter_25(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hebc947492fd4d2e2(arg0, arg1, addHeapObject(arg2));
wasm.wasm_bindgen__convert__closures__invoke1_mut__hc13282646fd8976d(arg0, arg1, addHeapObject(arg2));
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
}
var cachedUint32Memory0 = null;

@@ -376,2 +383,6 @@ function getUint32Memory0() {

}
function passInitQueries(queries) {
const ret = wasm.passInitQueries(addHeapObject(queries));
return takeObject(ret);
}
function configureDatabase(db) {

@@ -381,12 +392,5 @@ const ret = wasm.configureDatabase(addHeapObject(db));

}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h085319ab0941bbff(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}
function __wbg_adapter_213(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb4a89eef713a072f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}
var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });

@@ -520,5 +524,5 @@ var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });

};
imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
return handleError(function(arg0, arg1, arg2) {
const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);

@@ -533,5 +537,5 @@ }, arguments);

};
imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
return handleError(function(arg0, arg1, arg2) {
const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);

@@ -652,13 +656,5 @@ }, arguments);

};
imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
console.warn(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
const ret = getObject(arg1).backgroundColor;
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === void 0 ? null : obj);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -669,4 +665,8 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
const ret = getObject(arg1).fontFamily;
imports.wbg.__wbg_new_79cc836771d68198 = function() {
const ret = new import_xterm_addon_fit.FitAddon();
return addHeapObject(ret);
};
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
const ret = import_duckdb_wasm.PACKAGE_VERSION;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -677,9 +677,4 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbg_new_79cc836771d68198 = function() {
const ret = new import_xterm_addon_fit.FitAddon();
return addHeapObject(ret);
};
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = JSON.stringify(obj === void 0 ? null : obj);
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
const ret = import_duckdb_wasm.PACKAGE_NAME;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -690,2 +685,11 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};
imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {

@@ -700,2 +704,9 @@ getObject(arg0).rows = arg1 >>> 0;

};
imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
const ret = getObject(arg1).fontFamily;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {

@@ -722,2 +733,9 @@ getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);

};
imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
const ret = getObject(arg1).backgroundColor;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {

@@ -763,2 +781,17 @@ getObject(arg0).background = getStringFromWasm0(arg1, arg2);

};
imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
return handleError(function(arg0, arg1) {
const ret = getObject(arg0).disconnect(arg1 >>> 0);
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
console.warn(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {

@@ -796,31 +829,2 @@ const ret = getObject(arg0).blockStats;

};
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
const ret = import_duckdb_wasm.PACKAGE_VERSION;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
const ret = import_duckdb_wasm.PACKAGE_NAME;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
return handleError(function(arg0, arg1) {
const ret = getObject(arg0).disconnect(arg1 >>> 0);
return addHeapObject(ret);
}, arguments);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {

@@ -862,2 +866,13 @@ const ret = new Error();

};
imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
const ret = getObject(arg1).type;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
const ret = getObject(arg0).now();
return ret;
};
imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {

@@ -878,13 +893,2 @@ const ret = getObject(arg0).ctrlKey;

};
imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
const ret = getObject(arg1).type;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
const ret = getObject(arg0).now();
return ret;
};
imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {

@@ -973,3 +977,3 @@ const ret = getObject(arg0)[arg1 >>> 0];

try {
return __wbg_adapter_213(a, state0.b, arg02, arg12);
return __wbg_adapter_214(a, state0.b, arg02, arg12);
} finally {

@@ -1026,8 +1030,8 @@ state0.a = a;

};
imports.wbg.__wbindgen_closure_wrapper633 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 131, __wbg_adapter_22);
imports.wbg.__wbindgen_closure_wrapper369 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 119, __wbg_adapter_22);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper956 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 150, __wbg_adapter_25);
imports.wbg.__wbindgen_closure_wrapper967 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 202, __wbg_adapter_25);
return addHeapObject(ret);

@@ -1254,2 +1258,3 @@ };

};
this.hash = "";
}

@@ -1277,2 +1282,12 @@ async pickFiles() {

async pushInputToHistory(value) {
const encode = encodeURIComponent(extraswaps(value));
if (this.hash === "")
this.hash = "queries=v0";
this.hash += ",";
this.hash += encode;
if (window.location.hash.startsWith("#savequeries"))
window.location.hash = "savequeries&" + this.hash;
const a = document.getElementById("hashencoded");
if (a && a instanceof HTMLAnchorElement)
a.href = "/#" + this.hash;
this.history.push(value);

@@ -1287,2 +1302,18 @@ }

}
function extraswaps(input) {
let res = "";
for (let i = 0; i < input.length; i++) {
if (input[i] == " ")
res += "-";
else if (input[i] == "-")
res += " ";
else if (input[i] == ";")
res += "~";
else if (input[i] == "~")
res += ";";
else
res += input[i];
}
return res;
}
async function embed2(props) {

@@ -1326,2 +1357,11 @@ var _a, _b;

});
const hash = window.location.hash;
const splits = hash.split(",");
const sqls = [];
for (let i = 1; i < splits.length; i++) {
sqls.push(extraswaps(decodeURIComponent(splits[i])));
}
await step("Rewinding history!", async () => {
passInitQueries(sqls);
});
}

@@ -1328,0 +1368,0 @@

{
"name": "@duckdb/duckdb-wasm-shell",
"version": "1.28.0",
"version": "1.28.1-dev104.0",
"description": "",

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

"dependencies": {
"@duckdb/duckdb-wasm": "^1.28.0",
"xterm": "^5.1.0",
"xterm-addon-fit": "^0.7.0",
"@duckdb/duckdb-wasm": "^1.28.1-dev104.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"xterm-addon-web-links": "^0.9.0",

@@ -35,4 +35,4 @@ "xterm-addon-webgl": "^0.16.0"

"devDependencies": {
"esbuild": "^0.19.5",
"eslint": "^8.50.0",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-plugin-jasmine": "^4.1.3",

@@ -44,3 +44,3 @@ "eslint-plugin-react": "^7.33.2",

"make-dir": "^4.0.0",
"prettier": "^3.0.2",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",

@@ -47,0 +47,0 @@ "wasm-pack": "^0.12.1"

@@ -1,2 +0,2 @@

<img src="https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@latest/dist/img/duckdb_wasm.svg" height="64">
<img src="https://raw.githubusercontent.com/duckdb/duckdb-wasm/main/misc/duckdb_wasm.svg" height="64">

@@ -3,0 +3,0 @@ [![Main](https://github.com/duckdb/duckdb-wasm/actions/workflows/main.yml/badge.svg)](https://github.com/duckdb/duckdb-wasm/actions/workflows/main.yml)

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