@hpcc-js/wasm-duckdb 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +26 -7
- package/dist/index.js +4 -4
- package/dist/index.js.map +3 -3
- package/package.json +61 -61
- package/src/duckdb.ts +3 -5
- package/types/build/duckdb-browser-eh.worker.d.ts +2 -0
- package/types/build/duckdb-eh.wasm.d.ts +2 -0
- package/types/{duckdb.d.ts → src/duckdb.d.ts} +1 -1
- /package/types/{index.d.ts → src/index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
2
|
+
"name": "@hpcc-js/wasm-duckdb",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "hpcc-js - WASM DuckDB",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/src/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./types/src/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/**/*",
|
|
16
|
+
"src/**/*",
|
|
17
|
+
"types/**/*"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "rimraf ./build ./dist ./dist-test ./types",
|
|
21
|
+
"pack-duckdb-eh-worker-node": "npx -y mkdirp build && node ./utils/sfx-wasm.js ../../node_modules/@duckdb/duckdb-wasm/dist/duckdb-node-eh.worker.cjs > ./build/duckdb-node-eh.worker.ts",
|
|
22
|
+
"pack-duckdb-eh-worker": "npx -y mkdirp build && node ./utils/sfx-wasm.js ../../node_modules/@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js > ./build/duckdb-browser-eh.worker.ts",
|
|
23
|
+
"pack-duckdb-eh": "npx -y mkdirp build && node ./utils/sfx-wasm.js ../../node_modules/@duckdb/duckdb-wasm/dist/duckdb-eh.wasm > ./build/duckdb-eh.wasm.ts",
|
|
24
|
+
"pack-duckdb": "run-p pack-duckdb-eh pack-duckdb-eh-worker pack-duckdb-eh-worker-node",
|
|
25
|
+
"build-types": "tsc --project tsconfig.json --emitDeclarationOnly",
|
|
26
|
+
"build-types-watch": "npm run build-types -- --watch",
|
|
27
|
+
"build-ts": "node esbuild.mjs",
|
|
28
|
+
"build-ts-dev": "npm run build-ts -- --mode=development",
|
|
29
|
+
"build-ts-watch": "npm run compile-ts-dev -- --watch",
|
|
30
|
+
"build-dev": "run-p build-types build-ts-dev",
|
|
31
|
+
"build": "npm-run-all --serial pack-duckdb --parallel build-types build-ts",
|
|
32
|
+
"lint-skypack": "npx -y @skypack/package-check",
|
|
33
|
+
"lint-eslint": "eslint src/**/*.ts",
|
|
34
|
+
"lint": "run-p lint-eslint",
|
|
35
|
+
"test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs",
|
|
36
|
+
"test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
|
|
37
|
+
"test": "run-s test-chrome",
|
|
38
|
+
"update": "npx -y npm-check-updates -u -t minor",
|
|
39
|
+
"update-major": "npx -y npm-check-updates -u"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@duckdb/duckdb-wasm": "1.28.1-dev99.0",
|
|
43
|
+
"@hpcc-js/esbuild-plugins": "1.0.7"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"graphviz",
|
|
47
|
+
"typescript",
|
|
48
|
+
"webassembly",
|
|
49
|
+
"wasm",
|
|
50
|
+
"dot",
|
|
51
|
+
"neato",
|
|
52
|
+
"twopi"
|
|
53
|
+
],
|
|
54
|
+
"author": "hpcc-systems",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
|
|
60
|
+
"license": "Apache-2.0",
|
|
61
|
+
"gitHead": "841d4713a5ccd8644024e27f929cbb63ffff0573"
|
|
62
|
+
}
|
package/src/duckdb.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import loadWasmWorker, { reset as resetWasmWorker } from "../build/duckdb-browser-eh.worker.js";
|
|
1
|
+
import load, { reset } from "../build/duckdb-eh.wasm.ts";
|
|
2
|
+
import loadWasmWorker, { reset as resetWasmWorker } from "../build/duckdb-browser-eh.worker.ts";
|
|
5
3
|
import { AsyncDuckDB, ConsoleLogger } from "@duckdb/duckdb-wasm";
|
|
6
4
|
|
|
7
5
|
/**
|
|
@@ -10,7 +8,7 @@ import { AsyncDuckDB, ConsoleLogger } from "@duckdb/duckdb-wasm";
|
|
|
10
8
|
* See [DuckDB](https://github.com/duckdb/duckdb) for more details.
|
|
11
9
|
*
|
|
12
10
|
* ```ts
|
|
13
|
-
* import { DuckDB } from "@hpcc-js/wasm
|
|
11
|
+
* import { DuckDB } from "@hpcc-js/wasm-duckdb";
|
|
14
12
|
*
|
|
15
13
|
* let duckdb = await DuckDB.load();
|
|
16
14
|
* const c = await duckdb.db.connect();
|
|
@@ -5,7 +5,7 @@ import { AsyncDuckDB } from "@duckdb/duckdb-wasm";
|
|
|
5
5
|
* See [DuckDB](https://github.com/duckdb/duckdb) for more details.
|
|
6
6
|
*
|
|
7
7
|
* ```ts
|
|
8
|
-
* import { DuckDB } from "@hpcc-js/wasm
|
|
8
|
+
* import { DuckDB } from "@hpcc-js/wasm-duckdb";
|
|
9
9
|
*
|
|
10
10
|
* let duckdb = await DuckDB.load();
|
|
11
11
|
* const c = await duckdb.db.connect();
|
|
File without changes
|