Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serverless/platform-sdk

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serverless/platform-sdk - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1-11-g1c9f7eb

dist/service/getService.js

2

dist/config.js

@@ -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

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