New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-functions-core-tools

Package Overview
Dependencies
Maintainers
3
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-functions-core-tools - npm Package Compare versions

Comparing version 1.0.12 to 1.0.14

README.md

25

lib/install.js
#! /usr/bin/env node
var unzipper = require('unzipper');
var url = require('url');
var HttpsProxyAgent = require('https-proxy-agent');
var https = require('https');

@@ -10,4 +12,21 @@ var version = require('../package.json').version;

var url = 'https://functionscdn.azureedge.net/public/' + version + '/Azure.Functions.Cli.zip';
https.get(url, function (response) {
var endpoint = 'https://functionscdn.azureedge.net/public/' + version + '/Azure.Functions.Cli.zip';
console.log('attempting to GET %j', endpoint);
var options = url.parse(endpoint);
// npm config preceed system environment
// https://github.com/npm/npm/blob/19397ad523434656af3d3765e80e22d7e6305f48/lib/config/reg-client.js#L7-L8
// https://github.com/request/request/blob/b12a6245d9acdb1e13c6486d427801e123fdafae/lib/getProxyFromURI.js#L66-L71
var proxy = process.env.npm_config_https_proxy ||
process.env.npm_config_proxy ||
process.env.HTTPS_PROXY ||
process.env.https_proxy ||
process.env.HTTP_PROXY ||
process.env.http_proxy;
if (proxy) {
console.log('using proxy server %j', proxy);
options.agent = new HttpsProxyAgent(proxy);
}
https.get(options, function (response) {
if (response.statusCode === 200) {

@@ -20,3 +39,3 @@ var bin = path.join(path.dirname(fs.realpathSync(__filename)), '../bin');

} else {
console.error(chalk.red('Error downloading zip file from ' + url));
console.error(chalk.red('Error downloading zip file from ' + endpoint));
console.error(chalk.red('Expected: 200, Actual: ' + response.statusCode));

@@ -23,0 +42,0 @@ process.exit(1);

3

package.json
{
"name": "azure-functions-core-tools",
"version": "1.0.12",
"version": "1.0.14",
"description": "Azure Functions Core Tools",

@@ -26,2 +26,3 @@ "scripts": {

"command-exists": "^1.2.2",
"https-proxy-agent": "^2.2.1",
"tmp": "^0.0.33",

@@ -28,0 +29,0 @@ "unzipper": "^0.8.9"

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