@serverless/platform-sdk
Advanced tools
Comparing version 2.0.0 to 2.0.1-4-g193f754
@@ -77,3 +77,10 @@ 'use strict'; | ||
case 0: | ||
_context.next = 2; | ||
if (process.env.SDK_HTTP_DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log(`platform-sdk fetching: ${options.method || 'GET'} ${url} ${JSON.stringify(options.headers) || 'NO_HEADERS'} ${options.body || 'NO_BODY'}`); | ||
} else if (process.env.SLS_DEBUG) { | ||
// eslint-disable-next-line no-console | ||
console.log(`platform-sdk fetching: ${options.method || 'GET'} ${url}`); | ||
} | ||
_context.next = 3; | ||
return (0, _isomorphicFetch2.default)(url, Object.assign({ | ||
@@ -85,11 +92,11 @@ agent | ||
case 2: | ||
case 3: | ||
response = _context.sent; | ||
_context.next = 5; | ||
_context.next = 6; | ||
return (0, _utils.checkHttpResponse)(response); | ||
case 5: | ||
case 6: | ||
return _context.abrupt('return', response); | ||
case 6: | ||
case 7: | ||
case 'end': | ||
@@ -96,0 +103,0 @@ return _context.stop(); |
@@ -51,2 +51,4 @@ 'use strict'; | ||
loggedInUser.enterprise.timeLastLogout = Math.round(+new Date() / 1000); | ||
configFile.userId = null; | ||
} | ||
@@ -53,0 +55,0 @@ |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.0.0", | ||
"version": "2.0.1-4-g193f754", | ||
"description": "Serverless Platform SDK", | ||
@@ -5,0 +5,0 @@ "author": "Serverless, Inc.", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
173688
1897
1
16