Socket
Socket
Sign inDemoInstall

pubnub

Package Overview
Dependencies
Maintainers
7
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 7.3.0 to 7.3.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## v7.3.1
August 21 2023
#### Fixed
- Fixes issue of missing get and set methods for userId field of PubNub configuration.
## v7.3.0

@@ -2,0 +8,0 @@ July 26 2023

2

lib/core/components/config.js

@@ -172,3 +172,3 @@ "use strict";

default_1.prototype.getVersion = function () {
return '7.3.0';
return '7.3.1';
};

@@ -175,0 +175,0 @@ default_1.prototype._addPnsdkSuffix = function (name, suffix) {

@@ -483,2 +483,4 @@ "use strict";

this.setUUID = modules.config.setUUID.bind(modules.config);
this.getUserId = modules.config.getUserId.bind(modules.config);
this.setUserId = modules.config.setUserId.bind(modules.config);
this.getFilterExpression = modules.config.getFilterExpression.bind(modules.config);

@@ -485,0 +487,0 @@ this.setFilterExpression = modules.config.setFilterExpression.bind(modules.config);

{
"name": "pubnub",
"version": "7.3.0",
"version": "7.3.1",
"author": "PubNub <support@pubnub.com>",

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

@@ -25,4 +25,4 @@ # PubNub JavaScript SDK (V4)

* or download one of our builds from our CDN:
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.0.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.1.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.3.1.min.js

@@ -29,0 +29,0 @@ 2. Configure your keys:

@@ -342,3 +342,3 @@ /* */

getVersion() {
return '7.3.0';
return '7.3.1';
}

@@ -345,0 +345,0 @@

@@ -257,2 +257,6 @@ import Config from './components/config';

setUserId;
getUserId;
getFilterExpression;

@@ -673,2 +677,4 @@

this.setUUID = modules.config.setUUID.bind(modules.config);
this.getUserId = modules.config.getUserId.bind(modules.config);
this.setUserId = modules.config.setUserId.bind(modules.config);
this.getFilterExpression = modules.config.getFilterExpression.bind(modules.config);

@@ -675,0 +681,0 @@ this.setFilterExpression = modules.config.setFilterExpression.bind(modules.config);

@@ -45,2 +45,13 @@ /* global describe, it */

it('get/set userId', () => {
let pubnub = new PubNub({
subscribeKey: 'mySubKey',
publishKey: 'myPublishKey',
userId: 'userId1',
});
assert.equal(pubnub.getUserId(), 'userId1');
pubnub.setUserId('userId2');
assert.equal(pubnub.getUserId(), 'userId2');
});
it('throws when both userId and uuid are provided', () => {

@@ -47,0 +58,0 @@ let config = { subscribeKey: 'demo', publishKey: 'demo', uuid: 'myUuid', userId: 'myUserId' };

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

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