@serverless/platform-sdk
Advanced tools
Comparing version 2.2.0 to 2.2.1-11-g1c9f7eb
@@ -8,3 +8,3 @@ 'use strict'; | ||
frontendUrl: 'http://localhost:3000/', | ||
backendUrl: 'https://api.serverless-dev.com/core/', | ||
backendUrl: 'http://localhost:3011/core/', | ||
loginBrokerUrl: 'https://api.serverless-dev.com/login/', | ||
@@ -11,0 +11,0 @@ logDestinationUrl: 'https://api.serverless-dev.com/malt/', |
@@ -43,3 +43,3 @@ 'use strict'; | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(tenant) { | ||
var configFile, loginIdentityPromises, transactionId, scope, AUTH0_DOMAIN, auth0Queries, auth0Endpoint, data, decoded, id, updatedConfigFile, accessKey; | ||
var configFile, loginIdentityPromises, transactionId, scope, AUTH0_DOMAIN, auth0Queries, auth0Endpoint, data, decoded, id, expiresAt, updatedConfigFile, accessKey; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -87,2 +87,3 @@ while (1) { | ||
id = decoded.tracking_id || decoded.sub; | ||
expiresAt = data.expires_in ? Date.now() + data.expires_in : data.expires_at; | ||
@@ -100,4 +101,4 @@ configFile.userId = id; | ||
idToken: data.id_token, | ||
expiresAt: Date.now() + data.expires_in, | ||
username: decoded.nickname | ||
expiresAt: expiresAt, | ||
username: data.username | ||
} | ||
@@ -123,10 +124,10 @@ | ||
if (!(tenant && tenant !== 'tenantname')) { | ||
_context.next = 32; | ||
_context.next = 33; | ||
break; | ||
} | ||
_context.next = 30; | ||
_context.next = 31; | ||
return (0, _accessKeys.createAccessKeyForTenant)(tenant); | ||
case 30: | ||
case 31: | ||
accessKey = _context.sent; | ||
@@ -140,6 +141,6 @@ | ||
case 32: | ||
case 33: | ||
return _context.abrupt('return', updatedConfigFile); | ||
case 33: | ||
case 34: | ||
case 'end': | ||
@@ -146,0 +147,0 @@ return _context.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.0", | ||
"version": "2.2.1-11-g1c9f7eb", | ||
"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
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
190074
13
94
2119
21
1
+ Addedagent-base@5.1.1(transitive)
+ Addeddebug@4.3.7(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