update-notifier
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -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 @@ |
{ | ||
"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 @@ |
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 4 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
10706
134
170
5