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.1 to 2.3.0-3-g39f32f8

dist/service/getService.js

19

dist/accessKeys/accessKeys.js

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

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