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.1.0 to 2.1.1

25

dist/fetch.js

@@ -20,2 +20,6 @@ 'use strict';

var _httpsProxyAgent = require('https-proxy-agent');
var _httpsProxyAgent2 = _interopRequireDefault(_httpsProxyAgent);
var _utils = require('./utils');

@@ -25,2 +29,4 @@

var _url = require('url');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,2 +40,10 @@

function configureFetchDefaults() {
// Use HTTPS Proxy (Optional)
var proxy = process.env.proxy || process.env.HTTP_PROXY || process.env.http_proxy || process.env.HTTPS_PROXY || process.env.https_proxy;
var agentOptions = {};
if (proxy) {
Object.assign(agentOptions, (0, _url.parse)(proxy));
}
var ca = process.env.ca || process.env.HTTPS_CA || process.env.https_ca;

@@ -59,9 +73,14 @@

if (caCerts.length > 0) {
var caOptions = {
Object.assign(agentOptions, {
rejectUnauthorized: true,
ca: caCerts
// Update the agent -- http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-registering-certs.html
};agent = new _https2.default.Agent(caOptions);
});
}
if (proxy) {
agent = new _httpsProxyAgent2.default(agentOptions);
} else if (agentOptions.ca) {
agent = new _https2.default.Agent(agentOptions);
}
headers = {

@@ -68,0 +87,0 @@ 'Content-Type': 'application/json',

3

package.json
{
"name": "@serverless/platform-sdk",
"version": "2.1.0",
"version": "2.1.1",
"description": "Serverless Platform SDK",

@@ -33,2 +33,3 @@ "author": "Serverless, Inc.",

"express": "^4.16.3",
"https-proxy-agent": "^2.2.2",
"is-docker": "^1.1.0",

@@ -35,0 +36,0 @@ "isomorphic-fetch": "^2.2.1",

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