New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vtex/cli-plugin-whoami

Package Overview
Dependencies
Maintainers
73
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/cli-plugin-whoami - npm Package Compare versions

Comparing version

to
0.2.0

4

build/commands/whoami.js

@@ -13,4 +13,4 @@ "use strict";

exports.default = WhoAmI;
WhoAmI.description = 'See your credentials current status';
WhoAmI.examples = ['vtex whoami'];
WhoAmI.description = `Prints the current ${vtex_1.ColorifyConstants.ID('account')}, ${vtex_1.ColorifyConstants.ID('workspace')}, environment, and login details.`;
WhoAmI.examples = [`${vtex_1.ColorifyConstants.COMMAND_OR_VTEX_REF('vtex whoami')}`];
WhoAmI.flags = {

@@ -17,0 +17,0 @@ ...vtex_1.CustomCommand.globalFlags,

@@ -27,10 +27,10 @@ "use strict";

if (!state) {
loggedMessage = `${chalk_1.default.red('Not logged in')}. Previously logged into`;
loggedMessage = `${chalk_1.default.hex(vtex_1.COLORS.YELLOW)('Not logged in')}. Previously logged into`;
state = '';
}
return [
`${loggedMessage} ${chalk_1.default.blue(account)} as ${chalk_1.default.green(userLogged)} at ${chalk_1.default.yellowBright(state)}workspace ${chalk_1.default.green(workspace)}`,
`${loggedMessage} ${vtex_1.ColorifyConstants.ID(account)} as ${vtex_1.ColorifyConstants.ID(userLogged)} at ${chalk_1.default.hex(vtex_1.COLORS.YELLOW)(state)}workspace ${vtex_1.ColorifyConstants.ID(workspace)}`,
];
}
return ['Welcome to VTEX I/O', `Login with ${chalk_1.default.green('vtex login')} ${chalk_1.default.blue('<account>')}`];
return [`${chalk_1.default.bold('Welcome to VTEX IO')}`, `Log in by running ${vtex_1.ColorifyConstants.COMMAND_OR_VTEX_REF('vtex login')} ${vtex_1.ColorifyConstants.ID('<account-name>')}`];
};

@@ -9,5 +9,10 @@ # Changelog

## [0.1.0] - 2020-11-04
## [0.2.0] - 2021-03-12
### Changed
- [Messages] Improve UX
## [0.1.0] - 2020-11-04
### Changed
- First release

@@ -1,1 +0,1 @@

{"version":"0.1.0","commands":{"whoami":{"id":"whoami","description":"See your credentials current status","pluginName":"@vtex/cli-plugin-whoami","pluginType":"core","aliases":[],"examples":["vtex whoami"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Show debug level logs","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"trace":{"name":"trace","type":"boolean","description":"Ensure all requests to VTEX IO are traced","allowNo":false}},"args":[]}}}
{"version":"0.2.0","commands":{"whoami":{"id":"whoami","description":"Prints the current \u001b[93maccount\u001b[39m, \u001b[93mworkspace\u001b[39m, environment, and login details.","pluginName":"@vtex/cli-plugin-whoami","pluginType":"core","aliases":[],"examples":["\u001b[95mvtex whoami\u001b[39m"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Show debug level logs","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"trace":{"name":"trace","type":"boolean","description":"Ensure all requests to VTEX IO are traced","allowNo":false}},"args":[]}}}
{
"name": "@vtex/cli-plugin-whoami",
"description": "vtex plugin whoami",
"version": "0.1.0",
"version": "0.2.0",
"bugs": "https://github.com/vtex/cli-plugin-whoami/issues",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -32,3 +32,3 @@ # VTEX CLI Plugin Whoami

$ vtex (-v|--version|version)
@vtex/cli-plugin-whoami/0.1.0 linux-x64 node-v12.19.0
@vtex/cli-plugin-whoami/0.2.0 linux-x64 node-v12.21.0
$ vtex --help [COMMAND]

@@ -46,3 +46,3 @@ USAGE

See your credentials current status
Prints the current account, workspace, environment, and login details.

@@ -62,3 +62,3 @@ ```

_See code: [build/commands/whoami.ts](https://github.com/vtex/cli-plugin-whoami/blob/v0.1.0/build/commands/whoami.ts)_
_See code: [build/commands/whoami.ts](https://github.com/vtex/cli-plugin-whoami/blob/v0.2.0/build/commands/whoami.ts)_
<!-- commandsstop -->