Socket
Socket
Sign inDemoInstall

@alicloud/acc

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/acc - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

2

commands/list.js

@@ -32,3 +32,3 @@ 'use strict';

console.log(` # | ${'Profile'.padEnd(maxNameLength, ' ')} | Credential `);
console.log(`---|${'-'.padEnd(maxNameLength + 2, '-')}|----------`);
console.log(`---|${'-'.repeat(maxNameLength + 2)}|----------`);
for (const d of config.profiles) {

@@ -35,0 +35,0 @@ console.log(` ${d.name === config.current ? '*' : ' '} | ${d.name.padEnd(maxNameLength, ' ')} | ${getDetail(d)}`);

@@ -256,9 +256,17 @@ 'use strict';

console.log(`export ALIBABACLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`);
console.log(`export ALIBABA_CLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`);
console.log(`export ALICLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`);
console.log(`export ALIBABACLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`);
console.log(`export ALIBABA_CLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`);
console.log(`export ALICLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`);
if (credential.getSecurityToken()) {
console.log(`export ALIBABACLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`);
console.log(`export ALIBABA_CLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`);
console.log(`export ALICLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`);
console.log(`export SECURITY_TOKEN=${credential.getSecurityToken()}`);
} else {
console.log(`unset ALIBABACLOUD_SECURITY_TOKEN`);
console.log(`unset ALIBABA_CLOUD_SECURITY_TOKEN`);
console.log(`unset ALICLOUD_SECURITY_TOKEN`);
console.log(`unset SECURITY_TOKEN`);
}

@@ -265,0 +273,0 @@ }

@@ -139,3 +139,3 @@ 'use strict';

console.log(`invalid sub-command '${subcommand}'`);
await this.runCommand('help', argv);
await this.runCommand('help', []);
process.exit(-1);

@@ -142,0 +142,0 @@ }

{
"name": "@alicloud/acc",
"version": "1.1.2",
"version": "1.2.0",
"description": "Alibaba Cloud Credentials CLI",

@@ -20,6 +20,6 @@ "bin": {

"dependencies": {
"@alicloud/credentials": "^2.2.0"
"@alicloud/credentials": "^2.2.5"
},
"devDependencies": {
"eslint": "^8.7.0",
"eslint": "^9.2.0",
"mocha": "^10.0.0",

@@ -26,0 +26,0 @@ "nyc": "^15.1.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc