sockjs-client
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,6 @@ | ||
1.0.3 | ||
== | ||
* Use `https` module for xhr requests in node when url uses https - #254 | ||
1.0.2 | ||
@@ -2,0 +7,0 @@ == |
@@ -6,2 +6,3 @@ 'use strict'; | ||
, http = require('http') | ||
, https = require('https') | ||
, URL = require('url-parse') | ||
@@ -30,3 +31,4 @@ ; | ||
this.req = http.request(options, function(res) { | ||
var protocol = parsedUrl.protocol === 'https:' ? https : http; | ||
this.req = protocol.request(options, function(res) { | ||
res.setEncoding('utf8'); | ||
@@ -33,0 +35,0 @@ var responseText = ''; |
@@ -1,1 +0,1 @@ | ||
module.exports = '1.0.2'; | ||
module.exports = '1.0.3'; |
{ | ||
"name": "sockjs-client", | ||
"description": "SockJS-client is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Bryce Kahle", | ||
@@ -6,0 +6,0 @@ "browser": { |
@@ -272,3 +272,3 @@ | ||
server and JavaScript minification. If you want to work on | ||
SockJS-client source code, checkout the git repo and follow this | ||
SockJS-client source code, checkout the git repo and follow these | ||
steps: | ||
@@ -275,0 +275,0 @@ |
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
Network access
Supply chain riskThis module accesses the network.
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
128744
3064
2