Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ibeam

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibeam - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

README.md

14

lib/Client.js

@@ -30,7 +30,13 @@ 'use strict';

this._host = config.host;
if (this._host && this._host.startsWith('http://')) {
if (config.https !== true) {
this._useHttps = false;
if (this._host) {
if (this._host.startsWith('http://')) {
if (config.https !== true) {
this._useHttps = false;
}
this._host = this._host.substr(7);
} else if (this._host.startsWith('https://')) {
this._host = this._host.substr(8);
} else if (this._host.indexOf('://') > -1) {
throw new Error('Unsupported host protocol');
}
this._host = this._host.substr(0, 7);
}

@@ -37,0 +43,0 @@ this._httpController = config.hasOwnProperty('httpController') ? config.httpController : require('./HttpController.browser');

{
"name": "ibeam",
"version": "0.1.1",
"version": "0.1.2",
"files": [

@@ -5,0 +5,0 @@ "http-browser.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