@contentstack/cli-auth 2.0.0-beta.7 → 2.0.0-beta.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.
- package/README.md +1 -1
- package/lib/commands/auth/logout.js +4 -1
- package/messages/index.json +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-auth/2.0.0-beta.
|
|
21
|
+
@contentstack/cli-auth/2.0.0-beta.8 linux-x64 node-v22.22.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -46,7 +46,10 @@ class LogoutCommand extends base_command_1.BaseCommand {
|
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
48
|
cli_utilities_1.log.debug('User not confirmed or not authenticated, skipping logout', Object.assign(Object.assign({}, this.contextDetails), { confirm, isAuthenticated: cli_utilities_1.authHandler.isAuthenticated() }));
|
|
49
|
-
cli_utilities_1.
|
|
49
|
+
const messageKey = confirm === false && cli_utilities_1.authHandler.isAuthenticated()
|
|
50
|
+
? 'CLI_AUTH_LOGOUT_CANCELLED'
|
|
51
|
+
: 'CLI_AUTH_LOGOUT_ALREADY';
|
|
52
|
+
cli_utilities_1.log.success(cli_utilities_1.messageHandler.parse(messageKey), this.contextDetails);
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
catch (error) {
|
package/messages/index.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"CLI_AUTH_LOGOUT_DESCRIPTION": "User session logout",
|
|
19
19
|
"CLI_AUTH_LOGOUT_FLAG_FORCE": "Force logging out for skipping the confirmation",
|
|
20
20
|
"CLI_AUTH_LOGOUT_ALREADY": "You're already logged out",
|
|
21
|
+
"CLI_AUTH_LOGOUT_CANCELLED": "Log out cancelled",
|
|
21
22
|
"CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS": "No authorizations found",
|
|
22
23
|
"CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS_USER": "No authorizations found for current user",
|
|
23
24
|
"CLI_AUTH_WHOAMI_LOGGED_IN_AS": "You are currently logged in with email:",
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-auth",
|
|
3
3
|
"description": "Contentstack CLI plugin for authentication activities",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.8",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-command": "~2.0.0-beta.
|
|
26
|
-
"@contentstack/cli-utilities": "~2.0.0-beta.
|
|
25
|
+
"@contentstack/cli-command": "~2.0.0-beta.3",
|
|
26
|
+
"@contentstack/cli-utilities": "~2.0.0-beta.3",
|
|
27
27
|
"@oclif/core": "^4.3.0",
|
|
28
28
|
"@oclif/plugin-help": "^6.2.28",
|
|
29
29
|
"otplib": "^12.0.1"
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"repository": "contentstack/cli"
|
|
84
|
-
}
|
|
84
|
+
}
|