@serverless/platform-sdk
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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(); |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Serverless Platform SDK", | ||
@@ -5,0 +5,0 @@ "author": "Serverless, Inc.", |
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
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
173573
1896
16