spacebro-client
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -135,3 +135,11 @@ 'use strict'; | ||
if (err) (0, _log2.default)(err.stack); | ||
var url = 'http://' + address + ':' + port; | ||
var urlParser = require('url'); | ||
var parsedURI = urlParser.parse(address); | ||
var protocol = 'ws://'; | ||
console.log(parsedURI.protocol); | ||
if (parsedURI.protocol !== null) { | ||
protocol = ''; | ||
} | ||
var url = '' + protocol + address + ':' + port; | ||
console.log(url); | ||
var socket = (0, _socket2.default)(url); | ||
@@ -138,0 +146,0 @@ patch(socket); |
{ | ||
"name": "spacebro-client", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Allow to automagically 🌟 connect to a Spacebro server", | ||
@@ -49,3 +49,4 @@ "main": "dist/index.js", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2" | ||
"gulp-babel": "^6.1.2", | ||
"moment": "^2.14.1" | ||
}, | ||
@@ -52,0 +53,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26527
460
6