Skip to content

Commit

Permalink
Develop (pubnub#138)
Browse files Browse the repository at this point in the history
* fix POST for nativescript adapter over android

* v4.21.6
  • Loading branch information
ManuelFernando authored and madisonsmith committed Oct 8, 2018
1 parent bb44dde commit 627b956
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 22 deletions.
7 changes: 6 additions & 1 deletion .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: javascript
version: 4.21.5
version: 4.21.6
schema: 1
scm: github.com/pubnub/javascript
files:
- dist/web/pubnub.js
- dist/web/pubnub.min.js
changelog:
- version: v4.21.6
date: 2018-10-04
changes:
- type: bug
text: fix POST for nativescript adapter over android
- version: v4.21.5
date: 2018-08-06
changes:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [v4.21.6](https://github.com/pubnub/javascript/tree/v4.21.6)
October-04-2018


[Full Changelog](https://github.com/pubnub/javascript/compare/v4.21.5...v4.21.6)



- 🐛fix POST for nativescript adapter over android



## [v4.21.5](https://github.com/pubnub/javascript/tree/v4.21.5)
August-06-2018

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ please use the [master_3x](https://github.com/pubnub/javascript/tree/master_3x)

## CDN Links

* https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.5.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.5.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.6.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.6.js
4 changes: 2 additions & 2 deletions dist/titanium/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.21.5 / Consumer */
/*! 4.21.6 / Consumer */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -586,7 +586,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'getVersion',
value: function getVersion() {
return '4.21.5';
return '4.21.6';
}
}, {
key: '_decideUUID',
Expand Down
2 changes: 1 addition & 1 deletion dist/titanium/pubnub.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.21.5 / Consumer */
/*! 4.21.6 / Consumer */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -608,7 +608,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'getVersion',
value: function getVersion() {
return '4.21.5';
return '4.21.6';
}
}, {
key: '_decideUUID',
Expand Down
2 changes: 1 addition & 1 deletion dist/web/pubnub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core/components/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/components/config.js.map

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions lib/networking/modules/nativescript.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/networking/modules/nativescript.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pubnub",
"version": "4.21.5",
"version": "4.21.6",
"author": "PubNub <support@pubnub.com>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"bin": {},
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default class {
setSendBeaconConfig(val: boolean): this { this._useSendBeacon = val; return this; }

getVersion(): string {
return '4.21.5';
return '4.21.6';
}

_decideUUID(providedUUID: string): string {
Expand Down
13 changes: 9 additions & 4 deletions src/networking/modules/nativescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ function xdr(method: string, url: string, params: Object, body: string, endpoint
let status: StatusAnnouncement = {};
status.operation = endpoint.operation;

// $FlowFixMe
return HttpRequest({
const httpConfig = {
method,
url: buildUrl(url, params),
content: body,
timeout: endpoint.timeout
}).then((response) => {
};

if (method === 'GET') {
httpConfig.content = body;
}

// $FlowFixMe
return HttpRequest(httpConfig).then((response) => {
status.error = false;

if (response.statusCode) {
Expand Down

0 comments on commit 627b956

Please sign in to comment.