@astrojs/db 0.14.6 → 0.14.8
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.
|
@@ -43,6 +43,6 @@ export declare function defineDb(userConfig: DBConfigInput): {
|
|
|
43
43
|
export declare const NOW: import("drizzle-orm").SQL<unknown>;
|
|
44
44
|
export declare const TRUE: import("drizzle-orm").SQL<unknown>;
|
|
45
45
|
export declare const FALSE: import("drizzle-orm").SQL<unknown>;
|
|
46
|
-
export { sql, eq, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, exists, notExists, between, notBetween, like, notIlike, not, asc, desc, and, or, count, countDistinct, avg, avgDistinct, sum, sumDistinct, max, min, } from 'drizzle-orm';
|
|
46
|
+
export { sql, eq, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, exists, notExists, between, notBetween, like, ilike, notIlike, not, asc, desc, and, or, count, countDistinct, avg, avgDistinct, sum, sumDistinct, max, min, } from 'drizzle-orm';
|
|
47
47
|
export { alias } from 'drizzle-orm/sqlite-core';
|
|
48
48
|
export { isDbError } from './utils.js';
|
|
@@ -162,7 +162,8 @@ async function executeSeedFile({
|
|
|
162
162
|
fileUrl,
|
|
163
163
|
viteServer
|
|
164
164
|
}) {
|
|
165
|
-
const
|
|
165
|
+
const pathname = decodeURIComponent(fileUrl.pathname);
|
|
166
|
+
const mod = await viteServer.ssrLoadModule(pathname);
|
|
166
167
|
if (typeof mod.default !== "function") {
|
|
167
168
|
throw new AstroDbError(EXEC_DEFAULT_EXPORT_ERROR(fileURLToPath(fileUrl)));
|
|
168
169
|
}
|
package/dist/runtime/virtual.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
4
4
|
"description": "Add libSQL and Astro Studio support to your Astro site",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@libsql/client": "^0.14.0",
|
|
66
|
-
"async-listen": "^3.0
|
|
66
|
+
"async-listen": "^3.1.0",
|
|
67
67
|
"deep-diff": "^1.0.2",
|
|
68
68
|
"drizzle-orm": "^0.31.2",
|
|
69
69
|
"github-slugger": "^2.0.0",
|
|
70
70
|
"kleur": "^4.1.5",
|
|
71
|
-
"nanoid": "^5.
|
|
71
|
+
"nanoid": "^5.1.2",
|
|
72
72
|
"open": "^10.1.0",
|
|
73
73
|
"prompts": "^2.4.2",
|
|
74
74
|
"yargs-parser": "^21.1.1",
|
|
75
|
-
"yocto-spinner": "^0.1
|
|
76
|
-
"zod": "^3.24.
|
|
75
|
+
"yocto-spinner": "^0.2.1",
|
|
76
|
+
"zod": "^3.24.2",
|
|
77
77
|
"@astrojs/studio": "0.1.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"@types/prompts": "^2.4.9",
|
|
82
82
|
"@types/yargs-parser": "^21.0.3",
|
|
83
83
|
"cheerio": "1.0.0",
|
|
84
|
-
"typescript": "^5.
|
|
85
|
-
"vite": "^6.0
|
|
86
|
-
"astro": "5.
|
|
84
|
+
"typescript": "^5.8.2",
|
|
85
|
+
"vite": "^6.2.0",
|
|
86
|
+
"astro": "5.4.2",
|
|
87
87
|
"astro-scripts": "0.0.14"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
package/virtual.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare module 'astro:db' {
|
|
|
28
28
|
export const between: RuntimeConfig['between'];
|
|
29
29
|
export const notBetween: RuntimeConfig['notBetween'];
|
|
30
30
|
export const like: RuntimeConfig['like'];
|
|
31
|
+
export const ilike: RuntimeConfig['ilike'];
|
|
31
32
|
export const notIlike: RuntimeConfig['notIlike'];
|
|
32
33
|
export const not: RuntimeConfig['not'];
|
|
33
34
|
export const asc: RuntimeConfig['asc'];
|