Galerie und tage
This commit is contained in:
10
node_modules/get-proxy/index.js
generated
vendored
10
node_modules/get-proxy/index.js
generated
vendored
@@ -1,13 +1,13 @@
|
||||
'use strict';
|
||||
const npmConf = require('npm-conf')();
|
||||
var conf = require('rc')('npm');
|
||||
|
||||
module.exports = () => {
|
||||
module.exports = function () {
|
||||
return process.env.HTTPS_PROXY ||
|
||||
process.env.https_proxy ||
|
||||
process.env.HTTP_PROXY ||
|
||||
process.env.http_proxy ||
|
||||
npmConf.get('https-proxy') ||
|
||||
npmConf.get('http-proxy') ||
|
||||
npmConf.get('proxy') ||
|
||||
conf['https-proxy'] ||
|
||||
conf['http-proxy'] ||
|
||||
conf.proxy ||
|
||||
null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user