@observablehq/notebook-kit 1.1.0-rc.2 → 1.1.0-rc.4

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
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/observablehq/notebook-kit.git"
7
7
  },
8
- "version": "1.1.0-rc.2",
8
+ "version": "1.1.0-rc.4",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "test": "vitest",
@@ -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
  }
@@ -17,7 +17,7 @@ export function config() {
17
17
  {
18
18
  find: /^(npm:.*)$/,
19
19
  replacement: "$1",
20
- customResolver: resolveNpmImport
20
+ customResolver: (source) => ({ id: resolveNpmImport(source), external: true })
21
21
  },
22
22
  {
23
23
  find: /^jsr:(.*)$/,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/observablehq/notebook-kit.git"
7
7
  },
8
- "version": "1.1.0-rc.2",
8
+ "version": "1.1.0-rc.4",
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "test": "vitest",