Comparing version 3.6.7 to 3.6.8
{ | ||
"name": "pubnub", | ||
"preferGlobal": false, | ||
"version": "3.6.7", | ||
"version": "3.6.8", | ||
"author": "PubNub <stephen@pubnub.com>", | ||
@@ -31,3 +31,5 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub", | ||
], | ||
"dependencies" : { }, | ||
"dependencies" : { | ||
"agentkeepalive": "~0.2" | ||
}, | ||
"noAnalyze": false, | ||
@@ -34,0 +36,0 @@ "devDependencies": {}, |
@@ -1,2 +0,2 @@ | ||
// Version: 3.6.7 | ||
// Version: 3.6.8 | ||
var NOW = 1 | ||
@@ -15,3 +15,3 @@ , READY = false | ||
, PRESENCE_HB_DEFAULT = 30 | ||
, SDK_VER = '3.6.7' | ||
, SDK_VER = '3.6.8' | ||
, REPL = /{([\w\-]+)}/g; | ||
@@ -1463,6 +1463,11 @@ | ||
, https = require('https') | ||
, keepAliveAgent = new (keepAliveIsEmbedded() ? http.Agent : require('agentkeepalive'))({ | ||
keepAlive: true, | ||
keepAliveMsecs: 300000, | ||
maxSockets: 5 | ||
}) | ||
, XHRTME = 310000 | ||
, DEF_TIMEOUT = 10000 | ||
, SECOND = 1000 | ||
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.7' | ||
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.8' | ||
, crypto = require('crypto') | ||
@@ -1556,3 +1561,4 @@ , proxy = null | ||
options.method = mode; | ||
options.agent = false; | ||
options.keepAlive= !!keepAliveAgent; | ||
options.agent = keepAliveAgent; | ||
options.body = payload; | ||
@@ -1614,3 +1620,3 @@ | ||
'set' : function( key, value ) { | ||
db[key] = value; | ||
store[key] = value; | ||
} | ||
@@ -1647,2 +1653,5 @@ }; | ||
function keepAliveIsEmbedded() { | ||
return 'EventEmitter' in http.Agent.super_; | ||
} | ||
@@ -1658,2 +1667,7 @@ | ||
setup['params'] = {'pnsdk' : PNSDK}; | ||
if (setup['keepAlive'] === false) { | ||
keepAliveAgent = undefined; | ||
} | ||
SELF = function(setup) { | ||
@@ -1660,0 +1674,0 @@ return CREATE_PUBNUB(setup); |
@@ -38,2 +38,7 @@ /* --------------------------------------------------------------------------- | ||
, https = require('https') | ||
, keepAliveAgent = new (keepAliveIsEmbedded() ? http.Agent : require('agentkeepalive'))({ | ||
keepAlive: true, | ||
keepAliveMsecs: 300000, | ||
maxSockets: 5 | ||
}) | ||
, XHRTME = 310000 | ||
@@ -131,3 +136,4 @@ , DEF_TIMEOUT = 10000 | ||
options.method = mode; | ||
options.agent = false; | ||
options.keepAlive= !!keepAliveAgent; | ||
options.agent = keepAliveAgent; | ||
options.body = payload; | ||
@@ -189,3 +195,3 @@ | ||
'set' : function( key, value ) { | ||
db[key] = value; | ||
store[key] = value; | ||
} | ||
@@ -222,2 +228,5 @@ }; | ||
function keepAliveIsEmbedded() { | ||
return 'EventEmitter' in http.Agent.super_; | ||
} | ||
@@ -233,2 +242,7 @@ | ||
setup['params'] = {'pnsdk' : PNSDK}; | ||
if (setup['keepAlive'] === false) { | ||
keepAliveAgent = undefined; | ||
} | ||
SELF = function(setup) { | ||
@@ -235,0 +249,0 @@ return CREATE_PUBNUB(setup); |
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
209970
4873
1
+ Addedagentkeepalive@~0.2
+ Addedagentkeepalive@0.2.4(transitive)