@astrojs/db 0.3.3 → 0.3.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
-
import {
|
|
2
|
+
import { bgRed, cyan } from "kleur/colors";
|
|
3
3
|
import prompts from "prompts";
|
|
4
4
|
import { PROJECT_ID_FILE, getSessionIdFromFile } from "../../../tokens.js";
|
|
5
5
|
import { getAstroStudioUrl } from "../../../utils.js";
|
|
@@ -27,9 +27,12 @@ async function cmd({ flags }) {
|
|
|
27
27
|
});
|
|
28
28
|
if (!response.ok) {
|
|
29
29
|
if (response.status === 401) {
|
|
30
|
-
console.error(`${
|
|
30
|
+
console.error(`${bgRed("Unauthorized")}
|
|
31
31
|
|
|
32
|
-
Are you logged in?
|
|
32
|
+
Are you logged in?
|
|
33
|
+
Run ${cyan("astro db login")} to authenticate and then try linking again.
|
|
34
|
+
|
|
35
|
+
`);
|
|
33
36
|
process.exit(1);
|
|
34
37
|
}
|
|
35
38
|
console.error(`Failed to link project: ${response.status} ${response.statusText}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
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": "4.2.4",
|
|
74
|
+
"astro-scripts": "0.0.14"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|