@duckdb/duckdb-wasm-shell
Advanced tools
Comparing version 1.14.4 to 1.15.0
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
(() => { | ||
@@ -26,94 +27,76 @@ var __create = Object.create; | ||
// package.json | ||
var name = "@duckdb/duckdb-wasm-shell"; | ||
var version = "1.14.4"; | ||
var description = ""; | ||
var author = "Andre Kohn <kohn.a@outlook.com>"; | ||
var license = "MPL-2.0"; | ||
var repository = { | ||
type: "git", | ||
url: "https://github.com/duckdb/duckdb-wasm.git" | ||
}; | ||
var keywords = [ | ||
"sql", | ||
"duckdb", | ||
"relational", | ||
"database", | ||
"data", | ||
"query", | ||
"wasm", | ||
"analytics", | ||
"olap", | ||
"arrow", | ||
"parquet", | ||
"json", | ||
"csv" | ||
]; | ||
var dependencies = { | ||
"@duckdb/duckdb-wasm": "^1.14.4", | ||
xterm: "^4.18.0", | ||
"xterm-addon-fit": "^0.5.0", | ||
"xterm-addon-web-links": "^0.5.1", | ||
"xterm-addon-webgl": "^0.11.4" | ||
}; | ||
var devDependencies = { | ||
esbuild: "^0.14.39", | ||
eslint: "^8.15.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
"eslint-plugin-react": "^7.30.0", | ||
jasmine: "^4.1.0", | ||
"jasmine-core": "^4.1.1", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"make-dir": "^3.1.0", | ||
prettier: "^2.6.2", | ||
rimraf: "^3.0.2", | ||
"wasm-pack": "^0.10.2" | ||
}; | ||
var scripts = { | ||
"install:wasmpack": "node ../../node_modules/wasm-pack/install.js", | ||
"build:debug": "node bundle.mjs debug && tsc --emitDeclarationOnly", | ||
"build:release": "node bundle.mjs release && tsc --emitDeclarationOnly", | ||
lint: "eslint src" | ||
}; | ||
var files = [ | ||
"dist", | ||
"!dist/types/test" | ||
]; | ||
var main = "dist/shell.cjs"; | ||
var module = "dist/shell.mjs"; | ||
var types = "dist/shell.d.ts"; | ||
var jsdelivr = "dist/shell.cjs"; | ||
var unpkg = "dist/shell.mjs"; | ||
var sideEffects = false; | ||
var exports = { | ||
"./dist/shell_bg.wasm": "./dist/shell_bg.wasm", | ||
"./dist/shell.js": "./dist/shell.js", | ||
"./dist/shell.cjs": "./dist/shell.cjs", | ||
"./dist/shell.mjs": "./dist/shell.mjs", | ||
"./dist/shell": "./dist/shell.mjs", | ||
".": { | ||
types: "./dist/shell.d.ts", | ||
import: "./dist/shell.mjs", | ||
require: "./dist/shell.cjs" | ||
var package_default = { | ||
name: "@duckdb/duckdb-wasm-shell", | ||
version: "1.15.0", | ||
description: "", | ||
author: "Andre Kohn <kohn.a@outlook.com>", | ||
license: "MPL-2.0", | ||
repository: { | ||
type: "git", | ||
url: "https://github.com/duckdb/duckdb-wasm.git" | ||
}, | ||
keywords: [ | ||
"sql", | ||
"duckdb", | ||
"relational", | ||
"database", | ||
"data", | ||
"query", | ||
"wasm", | ||
"analytics", | ||
"olap", | ||
"arrow", | ||
"parquet", | ||
"json", | ||
"csv" | ||
], | ||
dependencies: { | ||
"@duckdb/duckdb-wasm": "^1.15.0", | ||
xterm: "^4.19.0", | ||
"xterm-addon-fit": "^0.5.0", | ||
"xterm-addon-web-links": "^0.6.0", | ||
"xterm-addon-webgl": "^0.12.0" | ||
}, | ||
devDependencies: { | ||
esbuild: "^0.14.48", | ||
eslint: "^8.19.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
"eslint-plugin-react": "^7.30.1", | ||
jasmine: "^4.2.1", | ||
"jasmine-core": "^4.2.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"make-dir": "^3.1.0", | ||
prettier: "^2.7.1", | ||
rimraf: "^3.0.2", | ||
"wasm-pack": "^0.10.3" | ||
}, | ||
scripts: { | ||
"install:wasmpack": "node ../../node_modules/wasm-pack/install.js", | ||
"build:debug": "node bundle.mjs debug && tsc --emitDeclarationOnly", | ||
"build:release": "node bundle.mjs release && tsc --emitDeclarationOnly", | ||
lint: "eslint src" | ||
}, | ||
files: [ | ||
"dist", | ||
"!dist/types/test" | ||
], | ||
main: "dist/shell.cjs", | ||
module: "dist/shell.mjs", | ||
types: "dist/shell.d.ts", | ||
jsdelivr: "dist/shell.cjs", | ||
unpkg: "dist/shell.mjs", | ||
sideEffects: false, | ||
exports: { | ||
"./dist/shell_bg.wasm": "./dist/shell_bg.wasm", | ||
"./dist/shell.js": "./dist/shell.js", | ||
"./dist/shell.cjs": "./dist/shell.cjs", | ||
"./dist/shell.mjs": "./dist/shell.mjs", | ||
"./dist/shell": "./dist/shell.mjs", | ||
".": { | ||
types: "./dist/shell.d.ts", | ||
import: "./dist/shell.mjs", | ||
require: "./dist/shell.cjs" | ||
} | ||
} | ||
}; | ||
var package_default = { | ||
name, | ||
version, | ||
description, | ||
author, | ||
license, | ||
repository, | ||
keywords, | ||
dependencies, | ||
devDependencies, | ||
scripts, | ||
files, | ||
main, | ||
module, | ||
types, | ||
jsdelivr, | ||
unpkg, | ||
sideEffects, | ||
exports | ||
}; | ||
@@ -239,13 +222,13 @@ // src/version.ts | ||
if (type == "symbol") { | ||
const description2 = val.description; | ||
if (description2 == null) { | ||
const description = val.description; | ||
if (description == null) { | ||
return "Symbol"; | ||
} else { | ||
return `Symbol(${description2})`; | ||
return `Symbol(${description})`; | ||
} | ||
} | ||
if (type == "function") { | ||
const name2 = val.name; | ||
if (typeof name2 == "string" && name2.length > 0) { | ||
return `Function(${name2})`; | ||
const name = val.name; | ||
if (typeof name == "string" && name.length > 0) { | ||
return `Function(${name})`; | ||
} else { | ||
@@ -383,9 +366,9 @@ return "Function"; | ||
var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" }); | ||
async function load(module2, imports) { | ||
if (typeof Response === "function" && module2 instanceof Response) { | ||
async function load(module, imports) { | ||
if (typeof Response === "function" && module instanceof Response) { | ||
if (typeof WebAssembly.instantiateStreaming === "function") { | ||
try { | ||
return await WebAssembly.instantiateStreaming(module2, imports); | ||
return await WebAssembly.instantiateStreaming(module, imports); | ||
} catch (e) { | ||
if (module2.headers.get("Content-Type") != "application/wasm") { | ||
if (module.headers.get("Content-Type") != "application/wasm") { | ||
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); | ||
@@ -397,8 +380,8 @@ } else { | ||
} | ||
const bytes = await module2.arrayBuffer(); | ||
const bytes = await module.arrayBuffer(); | ||
return await WebAssembly.instantiate(bytes, imports); | ||
} else { | ||
const instance = await WebAssembly.instantiate(module2, imports); | ||
const instance = await WebAssembly.instantiate(module, imports); | ||
if (instance instanceof WebAssembly.Instance) { | ||
return { instance, module: module2 }; | ||
return { instance, module }; | ||
} else { | ||
@@ -947,5 +930,5 @@ return instance; | ||
} | ||
const { instance, module: module2 } = await load(await input, imports); | ||
const { instance, module } = await load(await input, imports); | ||
wasm = instance.exports; | ||
init.__wbindgen_wasm_module = module2; | ||
init.__wbindgen_wasm_module = module; | ||
wasm.__wbindgen_start(); | ||
@@ -1081,9 +1064,9 @@ return wasm; | ||
closed = true; | ||
const files2 = input.files; | ||
for (let i = 0; i < files2.length; ++i) { | ||
const file = files2.item(i); | ||
const files = input.files; | ||
for (let i = 0; i < files.length; ++i) { | ||
const file = files.item(i); | ||
await db.dropFile(file.name); | ||
await db.registerFileHandle(file.name, file); | ||
} | ||
resolve(files2.length); | ||
resolve(files.length); | ||
}; | ||
@@ -1140,7 +1123,7 @@ const deferredFinish = async () => { | ||
} | ||
async downloadFile(name2, buffer) { | ||
async downloadFile(name, buffer) { | ||
const blob = new Blob([buffer]); | ||
const link = document.createElement("a"); | ||
link.href = URL.createObjectURL(blob); | ||
link.download = name2; | ||
link.download = name; | ||
link.click(); | ||
@@ -1147,0 +1130,0 @@ } |
{ | ||
"name": "@duckdb/duckdb-wasm-shell", | ||
"version": "1.14.4", | ||
"version": "1.15.0", | ||
"description": "", | ||
@@ -27,20 +27,20 @@ "author": "Andre Kohn <kohn.a@outlook.com>", | ||
"dependencies": { | ||
"@duckdb/duckdb-wasm": "^1.14.4", | ||
"xterm": "^4.18.0", | ||
"@duckdb/duckdb-wasm": "^1.15.0", | ||
"xterm": "^4.19.0", | ||
"xterm-addon-fit": "^0.5.0", | ||
"xterm-addon-web-links": "^0.5.1", | ||
"xterm-addon-webgl": "^0.11.4" | ||
"xterm-addon-web-links": "^0.6.0", | ||
"xterm-addon-webgl": "^0.12.0" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.14.39", | ||
"eslint": "^8.15.0", | ||
"esbuild": "^0.14.48", | ||
"eslint": "^8.19.0", | ||
"eslint-plugin-jasmine": "^4.1.3", | ||
"eslint-plugin-react": "^7.30.0", | ||
"jasmine": "^4.1.0", | ||
"jasmine-core": "^4.1.1", | ||
"eslint-plugin-react": "^7.30.1", | ||
"jasmine": "^4.2.1", | ||
"jasmine-core": "^4.2.0", | ||
"jasmine-spec-reporter": "^7.0.0", | ||
"make-dir": "^3.1.0", | ||
"prettier": "^2.6.2", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"wasm-pack": "^0.10.2" | ||
"wasm-pack": "^0.10.3" | ||
}, | ||
@@ -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
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
2293214
648
3566
8
+ Addedxterm-addon-web-links@0.6.0(transitive)
+ Addedxterm-addon-webgl@0.12.0(transitive)
- Removedxterm-addon-web-links@0.5.1(transitive)
- Removedxterm-addon-webgl@0.11.4(transitive)
Updated@duckdb/duckdb-wasm@^1.15.0
Updatedxterm@^4.19.0
Updatedxterm-addon-web-links@^0.6.0
Updatedxterm-addon-webgl@^0.12.0