@serverless/platform-sdk
Advanced tools
Comparing version 2.2.1 to 2.3.0-3-g39f32f8
@@ -119,3 +119,3 @@ 'use strict'; | ||
if (!(!user.accessKeys || !user.accessKeys[tenant])) { | ||
_context2.next = 16; | ||
_context2.next = 17; | ||
break; | ||
@@ -125,10 +125,13 @@ } | ||
if (!user.idToken) { | ||
_context2.next = 15; | ||
_context2.next = 16; | ||
break; | ||
} | ||
_context2.next = 11; | ||
if (!user.accessKeys) { | ||
user.accessKeys = {}; | ||
} | ||
_context2.next = 12; | ||
return createAccessKeyForTenant(tenant); | ||
case 11: | ||
case 12: | ||
user.accessKeys[tenant] = _context2.sent; | ||
@@ -143,12 +146,12 @@ | ||
}); | ||
_context2.next = 16; | ||
_context2.next = 17; | ||
break; | ||
case 15: | ||
case 16: | ||
throw new Error(`Could not find an access key for tenant ${tenant}. Log out and log in again to create a new acce ss key for this tenant.`); | ||
case 16: | ||
case 17: | ||
return _context2.abrupt('return', user.accessKeys[tenant]); | ||
case 17: | ||
case 18: | ||
case 'end': | ||
@@ -155,0 +158,0 @@ return _context2.stop(); |
@@ -19,3 +19,3 @@ 'use strict'; | ||
var browser = process.env.BROWSER; | ||
if (browser === 'none' || (0, _isDocker2.default)() || ['darwin', 'linux'].includes(process.platform) && !process.env.DISPLAY) { | ||
if (browser === 'none' || (0, _isDocker2.default)()) { | ||
console.log(_chalk2.default.green('Please open your browser & open the URL below to login:')); | ||
@@ -22,0 +22,0 @@ console.log(_chalk2.default.yellow(url)); |
@@ -25,3 +25,12 @@ 'use strict'; | ||
var _getService = require('./getService'); | ||
Object.defineProperty(exports, 'getService', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_getService).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.2.1", | ||
"version": "2.3.0-3-g39f32f8", | ||
"description": "Serverless Platform SDK", | ||
@@ -26,3 +26,3 @@ "author": "Serverless, Inc.", | ||
"test": "./scripts/test.sh", | ||
"test:ci": "snyk test && ./scripts/test-ci.sh", | ||
"test:ci": "./scripts/test-ci.sh", | ||
"watch": "./scripts/watch.sh" | ||
@@ -32,3 +32,3 @@ }, | ||
"chalk": "^2.4.1", | ||
"https-proxy-agent": "^3.0.0", | ||
"https-proxy-agent": "^4.0.0", | ||
"is-docker": "^1.1.0", | ||
@@ -60,4 +60,3 @@ "isomorphic-fetch": "^2.2.1", | ||
"pre-commit": "^1.2.2", | ||
"prettier": "^1.17.1", | ||
"snyk": "^1.163.3" | ||
"prettier": "^1.17.1" | ||
}, | ||
@@ -64,0 +63,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
190307
13
94
2122
21
2
+ Addedagent-base@5.1.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedhttps-proxy-agent@4.0.0(transitive)
- Removedagent-base@4.3.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedhttps-proxy-agent@3.0.1(transitive)
Updatedhttps-proxy-agent@^4.0.0