Socket
Socket
Sign inDemoInstall

pubnub

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pubnub - npm Package Compare versions

Comparing version 3.6.4 to 3.6.5

2

package.json
{
"name": "pubnub",
"preferGlobal": false,
"version": "3.6.4",
"version": "3.6.5",
"author": "PubNub <stephen@pubnub.com>",

@@ -6,0 +6,0 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub",

@@ -1,2 +0,2 @@

// Version: 3.6.4
// Version: 3.6.5
var NOW = 1

@@ -15,3 +15,3 @@ , READY = false

, PRESENCE_HB_DEFAULT = 30
, SDK_VER = '3.6.4'
, SDK_VER = '3.6.5'
, REPL = /{([\w\-]+)}/g;

@@ -251,3 +251,3 @@

each( params , function( key, value ) {
data[key] = value;
if (!(key in data)) data[key] = value;
});

@@ -627,2 +627,3 @@ return data;

, post = args['post'] || false
, store = ('store_in_history' in args) ? args['store_in_history']: true
, jsonp = jsonp_cb()

@@ -650,2 +651,6 @@ , add_msg = 'push'

params = { 'uuid' : UUID, 'auth' : auth_key }
if (!store) params['store'] ="0"
// Queue Message Send

@@ -656,3 +661,3 @@ PUB_QUEUE[add_msg]({

url : url,
data : _get_url_params({ 'uuid' : UUID, 'auth' : auth_key }),
data : _get_url_params(params),
fail : function(response){

@@ -939,3 +944,4 @@ _invoke_error(response, err);

var next = next_callback();
var decrypted_msg = decrypt(msg,CHANNELS[next[1]]['cipher_key']);
var decrypted_msg = decrypt(msg,
(CHANNELS[next[1]])?CHANNELS[next[1]]['cipher_key']:null);
next[0]( decrypted_msg, messages, next[1], latency);

@@ -1055,3 +1061,3 @@ });

if (CHANNELS[channel] && CHANNELS[channel].subscribed) STATE[channel] = state;
if (CHANNELS[channel] && CHANNELS[channel].subscribed && state) STATE[channel] = state;

@@ -1112,4 +1118,2 @@ data['state'] = JSON.stringify(state);

// Make sure we have a Channel
if (!channel) return error('Missing Channel');
if (!callback) return error('Missing Callback');

@@ -1127,8 +1131,8 @@ if (!SUBSCRIBE_KEY) return error('Missing Subscribe Key');

'r' : r,
'channel' : channel,
'timestamp' : timestamp
};
if (channel != 'undefined' && channel != null && channel.length > 0) data['channel'] = channel;
if (jsonp != '0') { data['callback'] = jsonp; }
if (ttl || ttl === 0) data['ttl'] = ttl;
if (auth_key) data['auth'] = auth_key;

@@ -1138,2 +1142,4 @@

if (!auth_key) delete data['auth'];
sign_input += _get_pam_sign_input_from_params(data);

@@ -1194,7 +1200,9 @@

if (jsonp != '0') { data['callback'] = jsonp; }
if (channel) data['channel'] = channel;
if (channel != 'undefined' && channel != null && channel.length > 0) data['channel'] = channel;
if (auth_key) data['auth'] = auth_key;
data = _get_url_params(data)
if (!auth_key) delete data['auth'];
sign_input += _get_pam_sign_input_from_params(data);

@@ -1255,2 +1263,4 @@

if (jsonp != '0') { data['callback'] = jsonp; }
xdr({

@@ -1382,3 +1392,3 @@ callback : jsonp,

, SECOND = 1000
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.4'
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.6.5'
, crypto = require('crypto')

@@ -1385,0 +1395,0 @@ , proxy = null

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc