Socket
Socket
Sign inDemoInstall

pubnub

Package Overview
Dependencies
Maintainers
4
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 4.18.0 to 4.19.0

lib/nativescript/index.js

19

CHANGELOG.md
## [v4.19.0](https://github.com/pubnub/javascript/tree/v4.19.0)
December-05-2017
[Full Changelog](https://github.com/pubnub/javascript/compare/v4.18.0...v4.19.0)
- ⭐ add support for Native Script
- 🌟 add missing flow types
- 🌟 upgrade superagent to ^3.8.1
## [v4.18.0](https://github.com/pubnub/javascript/tree/v4.18.0)

@@ -10,2 +27,4 @@ November-20-2017

- ⭐ keepAlive is now initialized globally instead of per-call, allowing better connection reuse
- 🌟 added sdkName configuration parameter which allow completely override pnsdk in request query

@@ -12,0 +31,0 @@

2

lib/core/components/config.js

@@ -176,3 +176,3 @@ 'use strict';

value: function getVersion() {
return '4.18.0';
return '4.19.0';
}

@@ -179,0 +179,0 @@ }, {

@@ -13,2 +13,4 @@ 'use strict';

var _flow_interfaces = require('../flow_interfaces');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -15,0 +17,0 @@

@@ -513,3 +513,5 @@ 'use strict';

if (this._subscribeCall) {
this._subscribeCall.abort();
if (typeof this._subscribeCall.abort === 'function') {
this._subscribeCall.abort();
}
this._subscribeCall = null;

@@ -516,0 +518,0 @@ }

{
"name": "pubnub",
"version": "4.18.0",
"version": "4.19.0",
"author": "PubNub <support@pubnub.com>",

@@ -12,2 +12,3 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub",

"react-native": "./lib/react_native/index.js",
"nativescript": "./lib/nativescript/index.js",
"browser": "./dist/web/pubnub.min.js",

@@ -32,3 +33,3 @@ "repository": {

"lil-uuid": "^0.1.1",
"superagent": "^2.3.0",
"superagent": "^3.8.1",
"superagent-proxy": "^1.0.2"

@@ -95,2 +96,2 @@ },

}
}
}

@@ -22,3 +22,3 @@ # PubNub JavaScript SDK (V4)

## CDN Links
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.18.0.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.18.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.19.0.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.19.0.js

@@ -227,3 +227,3 @@ /* @flow */

getVersion(): string {
return '4.18.0';
return '4.19.0';
}

@@ -230,0 +230,0 @@

/* @flow */
import Config from '../components/config';
import { SubscribeMessage } from '../flow_interfaces';
type DedupingManagerConsturct = {
config: Config,
config: Config,
}

@@ -30,3 +31,3 @@

getKey(message) {
getKey(message: SubscribeMessage) {
const hashedPayload = hashCode(JSON.stringify(message.payload)).toString();

@@ -37,7 +38,7 @@ const timetoken = message.publishMetaData.publishTimetoken;

isDuplicate(message) {
isDuplicate(message: SubscribeMessage) {
return this.hashHistory.includes(this.getKey(message));
}
addEntry(message) {
addEntry(message: SubscribeMessage) {
if (this.hashHistory.length >= this._config.maximumCacheSize) {

@@ -44,0 +45,0 @@ this.hashHistory.shift();

@@ -77,2 +77,4 @@ /* @flow */

_dedupingManager: DedupingManager;
constructor({ subscribeEndpoint, leaveEndpoint, heartbeatEndpoint, setStateEndpoint, timeEndpoint, config, crypto, listenerManager }: SubscriptionManagerConsturct) {

@@ -499,3 +501,5 @@ this._listenerManager = listenerManager;

if (this._subscribeCall) {
this._subscribeCall.abort();
if (typeof this._subscribeCall.abort === 'function') {
this._subscribeCall.abort();
}
this._subscribeCall = null;

@@ -502,0 +506,0 @@ }

@@ -55,3 +55,3 @@ /* @flow */

history: Function;
deleteHistory: Function;
deleteMessages: Function;
fetchMessages: Function;

@@ -100,2 +100,4 @@

setHeartbeatInterval: Function;
encrypt: Function;

@@ -102,0 +104,0 @@ decrypt: Function;

Sorry, the diff of this file is not supported yet

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

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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