@prisma/cli 8.0.0-rc.15-dev.108 → 8.0.0-rc.15-dev.109
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/cli.js +6 -0
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -1238,6 +1238,7 @@ async function tryCompletePastedCallback(url, options) {
|
|
|
1238
1238
|
await options.complete(url);
|
|
1239
1239
|
return true;
|
|
1240
1240
|
} catch (error) {
|
|
1241
|
+
if (error instanceof CliStructuredError) throw error;
|
|
1241
1242
|
const message = error instanceof Error ? error.message : String(error);
|
|
1242
1243
|
options.output.write(`Sign-in didn't complete (${message}). Paste the callback URL to try again.\n`);
|
|
1243
1244
|
return false;
|
|
@@ -1296,6 +1297,11 @@ var LoginState = class {
|
|
|
1296
1297
|
if (url.pathname !== "/auth/callback") throw new AuthError$1("Not a callback URL");
|
|
1297
1298
|
const params = url.searchParams;
|
|
1298
1299
|
const error = params.get("error");
|
|
1300
|
+
if (error === "access_denied") throw new CliStructuredError("AUTH.LOGIN_DENIED", "Sign-in was not authorized.", { nextActions: [{
|
|
1301
|
+
kind: "run-command",
|
|
1302
|
+
label: "Sign in again if you want to grant access",
|
|
1303
|
+
command: `${CLI_NAME} auth login`
|
|
1304
|
+
}] });
|
|
1299
1305
|
if (error) {
|
|
1300
1306
|
const desc = params.get("error_description");
|
|
1301
1307
|
throw new AuthError$1(desc ? `${error}: ${desc}` : error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/cli",
|
|
3
|
-
"version": "8.0.0-rc.15-dev.
|
|
3
|
+
"version": "8.0.0-rc.15-dev.109",
|
|
4
4
|
"description": "Command-line interface for the Prisma Developer Platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@manypkg/tools": "^2.1.2",
|
|
43
43
|
"@prisma/cli-engine": "0.4.0",
|
|
44
|
-
"@prisma/composer-cli": "0.20.0-dev.
|
|
44
|
+
"@prisma/composer-cli": "0.20.0-dev.6",
|
|
45
45
|
"@prisma/compute-sdk": "0.42.0",
|
|
46
46
|
"@prisma/management-api-sdk": "1.69.0",
|
|
47
|
-
"@prisma/orm-toolchain": "8.0.0-rc.11-dev.
|
|
47
|
+
"@prisma/orm-toolchain": "8.0.0-rc.11-dev.22",
|
|
48
48
|
"@vercel/detect-agent": "^1.2.3",
|
|
49
49
|
"better-result": "^2.9.2",
|
|
50
50
|
"cross-spawn": "^7.0.6",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"open": "^11.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@prisma/composer": "0.20.0-dev.
|
|
56
|
+
"@prisma/composer": "0.20.0-dev.6",
|
|
57
57
|
"@prisma/credentials-store": "^7.8.0",
|
|
58
|
-
"@repo/cli-conformance": "8.0.0-rc.15-dev.
|
|
59
|
-
"@repo/cli-telemetry": "8.0.0-rc.15-dev.
|
|
60
|
-
"@repo/tsconfig": "8.0.0-rc.15-dev.
|
|
58
|
+
"@repo/cli-conformance": "8.0.0-rc.15-dev.109",
|
|
59
|
+
"@repo/cli-telemetry": "8.0.0-rc.15-dev.109",
|
|
60
|
+
"@repo/tsconfig": "8.0.0-rc.15-dev.109",
|
|
61
61
|
"@types/node": "^22.19.19",
|
|
62
62
|
"@types/cross-spawn": "^6.0.6",
|
|
63
63
|
"tsdown": "^0.21.10",
|