@observablehq/notebook-kit 1.1.0-rc.1 → 1.1.0-rc.3
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/dist/package.json
CHANGED
|
@@ -25,6 +25,8 @@ function getDefaultRange(name) {
|
|
|
25
25
|
switch (name) {
|
|
26
26
|
case "@duckdb/duckdb-wasm":
|
|
27
27
|
return "@1.29.0"; // https://github.com/duckdb/duckdb-wasm/issues/1994
|
|
28
|
+
case "apache-arrow":
|
|
29
|
+
return "@17.0.0"; // to match @duckdb/duckdb-wasm 1.29.0
|
|
28
30
|
default:
|
|
29
31
|
return "";
|
|
30
32
|
}
|
|
@@ -29,12 +29,12 @@ import * as duckdb from "npm:@duckdb/duckdb-wasm";
|
|
|
29
29
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
30
30
|
const bundles = {
|
|
31
31
|
mvp: {
|
|
32
|
-
mainModule: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm/dist/duckdb-mvp.wasm",
|
|
33
|
-
mainWorker: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm/dist/duckdb-browser-mvp.worker.js"
|
|
32
|
+
mainModule: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@1.29.0/dist/duckdb-mvp.wasm",
|
|
33
|
+
mainWorker: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@1.29.0/dist/duckdb-browser-mvp.worker.js"
|
|
34
34
|
},
|
|
35
35
|
eh: {
|
|
36
|
-
mainModule: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm/dist/duckdb-eh.wasm",
|
|
37
|
-
mainWorker: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js"
|
|
36
|
+
mainModule: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@1.29.0/dist/duckdb-eh.wasm",
|
|
37
|
+
mainWorker: "https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@1.29.0/dist/duckdb-browser-eh.worker.js"
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
const bundle = duckdb.selectBundle(bundles);
|
|
@@ -150,6 +150,9 @@ export class DuckDBClient {
|
|
|
150
150
|
}
|
|
151
151
|
static async of(sources = {}, config = {}) {
|
|
152
152
|
const db = await createDuckDB();
|
|
153
|
+
if (config.query?.castDecimalToDouble === undefined) {
|
|
154
|
+
config = { ...config, query: { ...config.query, castDecimalToDouble: true } };
|
|
155
|
+
}
|
|
153
156
|
if (config.query?.castTimestampToDate === undefined) {
|
|
154
157
|
config = { ...config, query: { ...config.query, castTimestampToDate: true } };
|
|
155
158
|
}
|
package/dist/src/vite/config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { dirname, resolve } from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { resolveNpmImport } from "../javascript/imports/npm.js";
|
|
3
4
|
const __filename = fileURLToPath(import.meta.url);
|
|
4
5
|
const __dirname = dirname(__filename);
|
|
5
6
|
export function config() {
|
|
@@ -14,8 +15,9 @@ export function config() {
|
|
|
14
15
|
resolve: {
|
|
15
16
|
alias: [
|
|
16
17
|
{
|
|
17
|
-
find: /^npm
|
|
18
|
-
replacement: "
|
|
18
|
+
find: /^(npm:.*)$/,
|
|
19
|
+
replacement: "$1",
|
|
20
|
+
customResolver: resolveNpmImport
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
find: /^jsr:(.*)$/,
|