Skip to content

Commit 56b3b9f

Browse files
author
Aamod Pisat
committed
bug fixes:
only() & includeReference() not working in react-native ios boolean value in where() query doesn't work automation script added
1 parent e7b26d2 commit 56b3b9f

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

dist/react-native/contentstack.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ var _when = __webpack_require__(6);
428428

429429
var _when2 = _interopRequireDefault(_when);
430430

431+
var _package = __webpack_require__(17);
432+
433+
var Package = _interopRequireWildcard(_package);
434+
431435
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
432436

433437
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
@@ -461,6 +465,7 @@ function Request(options) {
461465
xhr.open(method, url + '?' + queryParams, true);
462466
// set headers
463467
xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
468+
xhr.setRequestHeader('X-User-Agent', 'contentstack-(JS-SDK)/' + Package.version);
464469
for (var header in headers) {
465470
xhr.setRequestHeader(header, headers[header]);
466471
}
@@ -576,10 +581,6 @@ var _index = __webpack_require__(2);
576581

577582
var _index2 = _interopRequireDefault(_index);
578583

579-
var _package = __webpack_require__(17);
580-
581-
var Package = _interopRequireWildcard(_package);
582-
583584
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
584585

585586
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -607,9 +608,7 @@ var Stack = function () {
607608
if (_typeof(stack_arguments[0]) === "object" && typeof stack_arguments[0].api_key === "string" && typeof stack_arguments[0].access_token === "string" && typeof stack_arguments[0].environment === "string") {
608609
this.headers = {
609610
api_key: stack_arguments[0].api_key,
610-
access_token: stack_arguments[0].access_token,
611-
"Content-Type": "application/json",
612-
"User-Agent": "contentstack-(JS-SDK)/" + Package.version
611+
access_token: stack_arguments[0].access_token
613612
};
614613
this.environment = stack_arguments[0].environment;
615614
return this;
@@ -620,9 +619,7 @@ var Stack = function () {
620619
if (typeof stack_arguments[0] === "string" && typeof stack_arguments[1] === "string" && typeof stack_arguments[2] === "string") {
621620
this.headers = {
622621
api_key: stack_arguments[0],
623-
access_token: stack_arguments[1],
624-
"Content-Type": "application/json",
625-
"User-Agent": "contentstack-(JS-SDK)/" + Package.version
622+
access_token: stack_arguments[1]
626623
};
627624
this.environment = stack_arguments[2];
628625
return this;

0 commit comments

Comments
 (0)