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.4.0 to 4.4.1

9

lib/core/components/config.js

@@ -29,5 +29,5 @@ 'use strict';

this.instanceId = _uuid2.default.v4();
this.secretKey = setup.secretKey;
this.subscribeKey = setup.subscribeKey;
this.publishKey = setup.publishKey;
this.secretKey = setup.secretKey || setup.secret_key;
this.subscribeKey = setup.subscribeKey || setup.subscribe_key;
this.publishKey = setup.publishKey || setup.publish_key;
this.sdkFamily = setup.sdkFamily;

@@ -43,2 +43,3 @@ this.partnerId = setup.partnerId;

this.restore = setup.restore || false;
this.proxy = setup.proxy;

@@ -167,3 +168,3 @@ if (typeof location !== 'undefined' && location.protocol === 'https:') {

value: function getVersion() {
return '4.4.0';
return '4.4.1';
}

@@ -170,0 +171,0 @@ }, {

@@ -106,2 +106,7 @@ 'use strict';

if (this._config.proxy) {
require('superagent-proxy')(_superagent2.default);
superagentConstruct = superagentConstruct.proxy(this._config.proxy);
}
return superagentConstruct.timeout(endpoint.timeout).end(function (err, resp) {

@@ -108,0 +113,0 @@ var status = {};

@@ -113,2 +113,7 @@ 'use strict';

if (!this._config.subscribeKey || this._config.subscribeKey === '') {
if (console && console.log) console.log('subscribe key missing; aborting subscribe');
return;
}
if (timetoken) this._timetoken = timetoken;

@@ -115,0 +120,0 @@

{
"name": "pubnub",
"version": "4.4.0",
"version": "4.4.1",
"author": "PubNub <support@pubnub.com>",

@@ -29,21 +29,22 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub",

"dependencies": {
"superagent": "^2.3.0",
"uuid": "^3.0.0"
"superagent": "^3.4.0",
"superagent-proxy": "^1.0.2",
"uuid": "^3.0.1"
},
"noAnalyze": false,
"devDependencies": {
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.0",
"babel-loader": "^6.2.7",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.10",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-class-properties": "^6.16.0",
"babel-plugin-transform-flow-strip-types": "^6.14.0",
"babel-preset-es2015": "^6.16.0",
"babel-register": "^6.16.3",
"babel-plugin-transform-class-properties": "^6.22.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"babel-register": "^6.22.0",
"chai": "^3.5.0",
"eslint-config-airbnb": "^14.0.0",
"eslint-plugin-flowtype": "^2.19.0",
"eslint-plugin-flowtype": "^2.30.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-mocha": "^4.6.0",
"eslint-plugin-react": "^6.3.0",
"eslint-plugin-mocha": "^4.8.0",
"eslint-plugin-react": "^6.9.0",
"flow-bin": "^0.38.0",

@@ -54,3 +55,3 @@ "gulp": "^3.9.1",

"gulp-eslint": "^3.0.1",
"gulp-exec": "^2.1.2",
"gulp-exec": "^2.1.3",
"gulp-flowtype": "^1.0.0",

@@ -61,4 +62,4 @@ "gulp-gzip": "^1.4.0",

"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^2.2.0",
"gulp-uglify": "^2.0.0",
"gulp-sourcemaps": "^2.4.0",
"gulp-uglify": "^2.0.1",
"imports-loader": "^0.7.0",

@@ -68,20 +69,20 @@ "isparta": "^4.0.0",

"json-loader": "^0.5.4",
"karma": "^1.3.0",
"karma": "^1.4.0",
"karma-babel-preprocessor": "^6.0.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.0.0",
"karma-mocha": "^1.2.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-spec-reporter": "^0.0.26",
"mocha": "^3.1.0",
"mocha": "^3.2.0",
"nock": "^9.0.2",
"phantomjs-prebuilt": "^2.1.12",
"phantomjs-prebuilt": "^2.1.14",
"remap-istanbul": "^0.8.4",
"run-sequence": "^1.2.2",
"sinon": "^1.17.6",
"stats-webpack-plugin": "^0.4.2",
"uglify-js": "^2.7.3",
"sinon": "^1.17.7",
"stats-webpack-plugin": "^0.4.3",
"uglify-js": "^2.7.5",
"underscore": "^1.8.3",
"webpack": "^1.13.3",
"webpack-dev-server": "^1.16.1",
"webpack": "^1.14.0",
"webpack-dev-server": "^1.16.2",
"webpack-stream": "^3.2.0"

@@ -88,0 +89,0 @@ },

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

## CDN Links
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.0.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.1.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.1.js

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

proxy: string;
/*

@@ -109,5 +111,5 @@ if _useInstanceId is true, this instanceId will be added to all requests

this.instanceId = uuidGenerator.v4();
this.secretKey = setup.secretKey;
this.subscribeKey = setup.subscribeKey;
this.publishKey = setup.publishKey;
this.secretKey = setup.secretKey || setup.secret_key;
this.subscribeKey = setup.subscribeKey || setup.subscribe_key;
this.publishKey = setup.publishKey || setup.publish_key;
this.sdkFamily = setup.sdkFamily;

@@ -123,2 +125,3 @@ this.partnerId = setup.partnerId;

this.restore = setup.restore || false;
this.proxy = setup.proxy;

@@ -192,3 +195,3 @@ // if location config exist and we are in https, force secure to true.

getVersion(): string {
return '4.4.0';
return '4.4.1';
}

@@ -195,0 +198,0 @@

@@ -102,2 +102,7 @@ /* @flow */

if (this._config.proxy) {
require('superagent-proxy')(superagent); //eslint-disable-line
superagentConstruct = superagentConstruct.proxy(this._config.proxy);
}
return superagentConstruct

@@ -104,0 +109,0 @@ .timeout(endpoint.timeout)

@@ -113,2 +113,7 @@ /* @flow */

if (!this._config.subscribeKey || this._config.subscribeKey === '') {
if (console && console.log) console.log('subscribe key missing; aborting subscribe') //eslint-disable-line
return;
}
if (timetoken) this._timetoken = timetoken;

@@ -115,0 +120,0 @@

@@ -12,7 +12,7 @@ var webpack = require('webpack');

node: {
console: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
formidable: 'empty'
formidable: 'empty',
'superagent-proxy': 'empty',
},

@@ -33,3 +33,5 @@ output: {

],
externals: [],
externals: [{
'superagent-proxy': 'superagent-proxy'
}],
profile: true

@@ -36,0 +38,0 @@ };

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 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