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

sbis3-bl-request

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sbis3-bl-request - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

lib/bl-request.js

@@ -6,7 +6,9 @@ 'use strict';

var https = require('https');
var url = require('url');
function doRequest(connection, reqParams) {
var isHTTPS = connection.hostname.indexOf('https') != -1;
var urlInfo = url.parse(connection.hostname);
var isHTTPS = urlInfo.protocol == 'https:';
var protocol = isHTTPS ? https : http;
connection.hostname = connection.hostname.replace(/https:\/\//g, '').replace(/http:\/\//g, '');
connection.hostname = urlInfo.hostname;
connection.port = isHTTPS ? 443 : 80;

@@ -13,0 +15,0 @@ var deferred = q.defer();

{
"name": "sbis3-bl-request",
"version": "0.0.2",
"version": "0.0.3",
"dependencies": {

@@ -5,0 +5,0 @@ "q": "^1.1.2"

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