Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

update-notifier

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-notifier - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

7

lib/update-notifier.js

@@ -10,2 +10,7 @@ 'use strict';

var proxyServer = process.env.HTTPS_PROXY
|| process.env.https_proxy
|| process.env.HTTP_PROXY
|| process.env.http_proxy;
function UpdateNotifier(options) {

@@ -74,3 +79,3 @@ this.options = options = options || {};

request({url: url, json: true, timeout: this.updateCheckTimeout}, function (error, response, body) {
request({url: url, json: true, timeout: this.updateCheckTimeout, proxy: proxyServer}, function (error, response, body) {
var currentVersion, latestVersion;

@@ -77,0 +82,0 @@

2

package.json
{
"name": "update-notifier",
"version": "0.1.5",
"version": "0.1.6",
"description": "Update notifier for your package",

@@ -5,0 +5,0 @@ "keywords": [

@@ -149,2 +149,7 @@ # update-notifier [![Build Status](https://secure.travis-ci.org/yeoman/update-notifier.png?branch=master)](http://travis-ci.org/yeoman/update-notifier)

### Proxy settings
If you are behind a proxy server the `process.env` property is used to take the proxy server value from `HTTP_PROXY` or `HTTPS_PROXY` in order to make the call to the server. This means that you need to [set](https://github.com/sindresorhus/guides/blob/master/set-environment-variables.md) those properties as environment variables.
### User settings

@@ -151,0 +156,0 @@

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