New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-promise

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-promise - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

index.js

@@ -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) {

2

package.json
{
"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",

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