@astrojs/db 0.3.1 → 0.3.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/core/cli/commands/link/index.js +7 -0
- package/dist/core/cli/commands/push/index.js +19 -5
- package/dist/core/cli/commands/verify/index.js +12 -0
- package/dist/core/cli/migrations.d.ts +1 -0
- package/dist/core/integration/index.js +10 -8
- package/dist/core/queries.d.ts +5 -2
- package/dist/core/queries.js +26 -24
- package/dist/core/types.d.ts +149 -158
- package/dist/runtime/types.d.ts +2 -2
- package/package.json +3 -3
package/dist/runtime/types.d.ts
CHANGED
|
@@ -51,9 +51,9 @@ export type Table<TTableName extends string, TFields extends Record<string, Pick
|
|
|
51
51
|
[K in Extract<keyof TFields, string>]: Column<TFields[K]['type'], {
|
|
52
52
|
tableName: TTableName;
|
|
53
53
|
name: K;
|
|
54
|
-
hasDefault: TFields[K] extends {
|
|
54
|
+
hasDefault: TFields[K]['schema'] extends {
|
|
55
55
|
default: NonNullable<unknown>;
|
|
56
|
-
} ? true : TFields[K] extends {
|
|
56
|
+
} ? true : TFields[K]['schema'] extends {
|
|
57
57
|
primaryKey: true;
|
|
58
58
|
} ? true : false;
|
|
59
59
|
notNull: TFields[K]['schema']['optional'] extends true ? false : true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"mocha": "^10.2.0",
|
|
71
71
|
"typescript": "^5.2.2",
|
|
72
72
|
"vite": "^4.4.11",
|
|
73
|
-
"astro": "
|
|
74
|
-
"astro
|
|
73
|
+
"astro-scripts": "0.0.14",
|
|
74
|
+
"astro": "4.2.4"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|