Comparing version 3.5.4 to 3.5.43
{ | ||
"name": "pubnub", | ||
"preferGlobal": false, | ||
"version": "3.5.4", | ||
"version": "3.5.43", | ||
"author": "PubNub <stephen@pubnub.com>", | ||
@@ -6,0 +6,0 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub", |
@@ -1,2 +0,2 @@ | ||
// Version: 3.5.4 | ||
// Version: 3.5.43 | ||
var NOW = 1 | ||
@@ -52,3 +52,5 @@ , READY = false | ||
each( url_params, function( key, value ) { | ||
(typeof value != 'undefined' && value != null && encode_param(value).length > 0) && params.push(key + "=" + encode_param(value)); | ||
(typeof value != 'undefined' && | ||
value != null && encode_param(value).length > 0 | ||
) && params.push(key + "=" + encode_param(value)); | ||
} ); | ||
@@ -163,15 +165,15 @@ | ||
*/ | ||
function encode_base(path, chars) { | ||
return map( (encodeURIComponent(path)).split(''), function(chr) { | ||
function encode_base( path, chars ) { | ||
return map( (''+path||"").split(''), function(chr) { | ||
return chars.indexOf(chr) < 0 ? chr : | ||
"%"+chr.charCodeAt(0).toString(16).toUpperCase() | ||
"%"+chr.charCodeAt(0).toString(16).toUpperCase() | ||
} ).join(''); | ||
} | ||
function encode(path) { | ||
return encode_base(path,"-_.!~*'()"); | ||
function encode( path, chars ) { | ||
return encode_base( path, chars || '?/%&#' ); | ||
} | ||
function encode_param(value) { | ||
return encode_base(value,".!~*'()"); | ||
return encode_base( value, '?/%&#' ); | ||
} | ||
@@ -264,3 +266,5 @@ | ||
// No Leave Patch (Prevent Blocking Leave if Desired) | ||
if (NOLEAVE) return; | ||
if (NOLEAVE) return; | ||
if (!SSL) return; | ||
if (jsonp == '0') return; | ||
@@ -966,3 +970,3 @@ if (jsonp != '0') data['callback'] = jsonp; | ||
, SECOND = 1000 | ||
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.4' | ||
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.43' | ||
, crypto = require('crypto') | ||
@@ -1070,2 +1074,5 @@ , XORIGN = 1; | ||
}); | ||
request.on( 'error', function() { | ||
done( 1, {"error":"Network Connection Error"} ); | ||
} ); | ||
request.end(); | ||
@@ -1072,0 +1079,0 @@ request.timeout = xhrtme; |
@@ -144,2 +144,5 @@ /* --------------------------------------------------------------------------- | ||
}); | ||
request.on( 'error', function() { | ||
done( 1, {"error":"Network Connection Error"} ); | ||
} ); | ||
request.end(); | ||
@@ -146,0 +149,0 @@ request.timeout = xhrtme; |
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
154003
23
2644