Comparing version 4.4.0 to 4.4.1
@@ -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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
1602556
13236
3
2
+ Addedsuperagent-proxy@^1.0.2
+ Addedagent-base@4.3.0(transitive)
+ Addedast-types@0.16.1(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedbytes@3.1.2(transitive)
+ Addedco@4.6.0(transitive)
+ Addeddata-uri-to-buffer@1.2.0(transitive)
+ Addeddebug@3.1.03.2.7(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addeddegenerator@1.0.4(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedescodegen@1.14.3(transitive)
+ Addedesprima@3.1.34.0.1(transitive)
+ Addedestraverse@4.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedform-data@2.5.2(transitive)
+ Addedftp@0.3.10(transitive)
+ Addedget-uri@2.0.4(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addedhttp-proxy-agent@2.1.0(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedip@1.1.9(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedms@2.1.3(transitive)
+ Addednetmask@1.0.6(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedpac-proxy-agent@2.0.2(transitive)
+ Addedpac-resolver@3.0.0(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedproxy-agent@2.3.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedraw-body@2.5.2(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedsmart-buffer@1.1.15(transitive)
+ Addedsocks@1.1.10(transitive)
+ Addedsocks-proxy-agent@3.0.1(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedsuperagent@3.8.3(transitive)
+ Addedsuperagent-proxy@1.0.3(transitive)
+ Addedthunkify@2.1.2(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedunpipe@1.0.0(transitive)
+ Addedword-wrap@1.2.5(transitive)
+ Addedxregexp@2.0.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedasync@1.5.2(transitive)
- Removedform-data@1.0.0-rc4(transitive)
- Removedsuperagent@2.3.0(transitive)
Updatedsuperagent@^3.4.0
Updateduuid@^3.0.1