http-browserify
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -7,4 +7,7 @@ var http = module.exports; | ||
if (!params) params = {}; | ||
if (!params.host) params.host = window.location.host.split(':')[0]; | ||
if (!params.port) params.port = window.location.port; | ||
if (!params.host && !params.port) { | ||
params.port = parseInt(window.location.port, 10); | ||
} | ||
if (!params.host) params.host = window.location.hostname; | ||
if (!params.port) params.port = 80; | ||
if (!params.scheme) params.scheme = window.location.protocol.split(':')[0]; | ||
@@ -11,0 +14,0 @@ |
{ | ||
"name": "http-browserify", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "http module compatability for browserify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
615312
6606