@astrojs/db
Advanced tools
Comparing version 0.3.3 to 0.3.4
import { mkdir, writeFile } from "node:fs/promises"; | ||
import { red } from "kleur/colors"; | ||
import { bgRed, cyan } from "kleur/colors"; | ||
import prompts from "prompts"; | ||
@@ -30,5 +30,8 @@ import { PROJECT_ID_FILE, getSessionIdFromFile } from "../../../tokens.js"; | ||
if (response.status === 401) { | ||
console.error(`${red("Unauthorized")}. | ||
console.error(`${bgRed("Unauthorized")} | ||
Are you logged in? Run \`astro db login\` to authenticate and then try linking again.`); | ||
Are you logged in? | ||
Run ${cyan("astro db login")} to authenticate and then try linking again. | ||
`); | ||
process.exit(1); | ||
@@ -35,0 +38,0 @@ } |
{ | ||
"name": "@astrojs/db", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "", | ||
@@ -73,4 +73,4 @@ "license": "MIT", | ||
"vite": "^4.4.11", | ||
"astro-scripts": "0.0.14", | ||
"astro": "4.2.4" | ||
"astro": "4.2.4", | ||
"astro-scripts": "0.0.14" | ||
}, | ||
@@ -77,0 +77,0 @@ "scripts": { |
530684
14174