Comparing version 2.0.0 to 2.1.0
'use strict'; | ||
const conf = require('rc')('npm'); | ||
const npmConf = require('npm-conf')(); | ||
@@ -9,6 +9,6 @@ module.exports = () => { | ||
process.env.http_proxy || | ||
conf['https-proxy'] || | ||
conf['http-proxy'] || | ||
conf.proxy || | ||
npmConf.get('https-proxy') || | ||
npmConf.get('http-proxy') || | ||
npmConf.get('proxy') || | ||
null; | ||
}; |
{ | ||
"name": "get-proxy", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Get configured proxy", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"rc": "^1.1.2" | ||
"npm-conf": "^1.1.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ # get-proxy [![Build Status](https://travis-ci.org/kevva/get-proxy.svg?branch=master)](http://travis-ci.org/kevva/get-proxy) | ||
``` | ||
$ npm install --save get-proxy | ||
$ npm install get-proxy | ||
``` | ||
@@ -12,0 +12,0 @@ |
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
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
2336
+ Addednpm-conf@^1.1.0
+ Addedconfig-chain@1.1.13(transitive)
+ Addednpm-conf@1.1.3(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedproto-list@1.2.4(transitive)
- Removedrc@^1.1.2
- Removeddeep-extend@0.6.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removedrc@1.2.8(transitive)
- Removedstrip-json-comments@2.0.1(transitive)