get-promise
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -6,2 +6,6 @@ 'use strict'; | ||
var parseURL = require('url').parse; | ||
var net_modules = { | ||
http: require('http'), | ||
https: require('https') | ||
}; | ||
@@ -20,3 +24,3 @@ module.exports = get; | ||
return Q.Promise(function (resolve, reject, notify) { | ||
var http = require(url.match(/^https?/)[0]); | ||
var http = net_modules[url.match(/^https?/)[0]]; | ||
@@ -23,0 +27,0 @@ http.request(config, function (response) { |
{ | ||
"name": "get-promise", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "HTTP(S) GET with promises, supports redirects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4799
80
0
2