@astrojs/db 0.1.17 → 0.1.18

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.
@@ -13,7 +13,7 @@ function fileURLIntegration() {
13
13
  name: "@astrojs/db/file-url",
14
14
  enforce: "pre",
15
15
  async load(id) {
16
- if (id.endsWith("?file-url")) {
16
+ if (id.endsWith("?fileurl")) {
17
17
  const filePath = id.slice(0, id.indexOf("?"));
18
18
  if (command === "build") {
19
19
  const data = await fs.promises.readFile(filePath);
@@ -23,8 +23,8 @@ function getVirtualModContents({
23
23
  collections
24
24
  }) {
25
25
  return `
26
- import { collectionToTable, createLocalDatabaseClient, findLocalDatabase } from ${INTERNAL_MOD_IMPORT};
27
- import dbUrl from './.astro/content.db?file-url';
26
+ import { collectionToTable, createLocalDatabaseClient } from ${INTERNAL_MOD_IMPORT};
27
+ import dbUrl from './.astro/content.db?fileurl';
28
28
 
29
29
  const params = ${JSON.stringify({
30
30
  collections,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",