parse
Advanced tools
Comparing version 5.3.0-alpha.1 to 5.3.0-alpha.2
@@ -22,3 +22,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "5.3.0-alpha.1", | ||
VERSION: 'js' + "5.3.0-alpha.2", | ||
APPLICATION_ID: null, | ||
@@ -25,0 +25,0 @@ JAVASCRIPT_KEY: null, |
@@ -19,6 +19,2 @@ "use strict"; | ||
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys")); | ||
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some")); | ||
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/parse-int")); | ||
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify")); | ||
@@ -176,8 +172,3 @@ var _encode = _interopRequireDefault(require("./encode")); | ||
for (const attr in changes) { | ||
var _context, _context2; | ||
let val = changes[attr]; | ||
// Check for JSON array { '0': { something }, '1': { something } } | ||
if (val && typeof val === 'object' && !(0, _isArray.default)(val) && (0, _keys.default)(val).length > 0 && (0, _some.default)(_context = (0, _keys.default)(val)).call(_context, k => !isNaN((0, _parseInt2.default)(k))) && !(0, _includes.default)(_context2 = ['sentPerUTCOffset', 'failedPerUTCOffset']).call(_context2, attr)) { | ||
val = (0, _values.default)(val); | ||
} | ||
const val = changes[attr]; | ||
nestedSet(serverData, attr, val); | ||
@@ -184,0 +175,0 @@ if (val && typeof val === 'object' && !(val instanceof ParseObject) && !(val instanceof _ParseFile.default) && !(val instanceof _ParseRelation.default)) { |
@@ -19,3 +19,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "5.3.0-alpha.1", | ||
VERSION: 'js' + "5.3.0-alpha.2", | ||
APPLICATION_ID: null, | ||
@@ -22,0 +22,0 @@ JAVASCRIPT_KEY: null, |
@@ -171,7 +171,3 @@ "use strict"; | ||
for (const attr in changes) { | ||
let val = changes[attr]; | ||
// Check for JSON array { '0': { something }, '1': { something } } | ||
if (val && typeof val === 'object' && !Array.isArray(val) && Object.keys(val).length > 0 && Object.keys(val).some(k => !isNaN(parseInt(k))) && !['sentPerUTCOffset', 'failedPerUTCOffset'].includes(attr)) { | ||
val = Object.values(val); | ||
} | ||
const val = changes[attr]; | ||
nestedSet(serverData, attr, val); | ||
@@ -178,0 +174,0 @@ if (val && typeof val === 'object' && !(val instanceof ParseObject) && !(val instanceof _ParseFile.default) && !(val instanceof _ParseRelation.default)) { |
@@ -15,3 +15,3 @@ Object.defineProperty(exports, "__esModule", { | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "5.3.0-alpha.1", | ||
VERSION: 'js' + "5.3.0-alpha.2", | ||
APPLICATION_ID: null, | ||
@@ -18,0 +18,0 @@ JAVASCRIPT_KEY: null, |
@@ -153,7 +153,2 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var val = changes[_attr3]; | ||
if (val && typeof val === 'object' && !Array.isArray(val) && Object.keys(val).length > 0 && Object.keys(val).some(function (k) { | ||
return !isNaN(parseInt(k)); | ||
}) && !['sentPerUTCOffset', 'failedPerUTCOffset'].includes(_attr3)) { | ||
val = Object.values(val); | ||
} | ||
nestedSet(serverData, _attr3, val); | ||
@@ -160,0 +155,0 @@ if (val && typeof val === 'object' && !(val instanceof ParseObject) && !(val instanceof _ParseFile.default) && !(val instanceof _ParseRelation.default)) { |
@@ -22,3 +22,3 @@ "use strict"; | ||
ENCRYPTED_KEY: null, | ||
VERSION: 'js' + "5.3.0-alpha.1", | ||
VERSION: 'js' + "5.3.0-alpha.2", | ||
APPLICATION_ID: null, | ||
@@ -25,0 +25,0 @@ JAVASCRIPT_KEY: null, |
@@ -19,6 +19,2 @@ "use strict"; | ||
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys")); | ||
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some")); | ||
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/parse-int")); | ||
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify")); | ||
@@ -176,8 +172,3 @@ var _encode = _interopRequireDefault(require("./encode")); | ||
for (const attr in changes) { | ||
var _context, _context2; | ||
let val = changes[attr]; | ||
// Check for JSON array { '0': { something }, '1': { something } } | ||
if (val && typeof val === 'object' && !(0, _isArray.default)(val) && (0, _keys.default)(val).length > 0 && (0, _some.default)(_context = (0, _keys.default)(val)).call(_context, k => !isNaN((0, _parseInt2.default)(k))) && !(0, _includes.default)(_context2 = ['sentPerUTCOffset', 'failedPerUTCOffset']).call(_context2, attr)) { | ||
val = (0, _values.default)(val); | ||
} | ||
const val = changes[attr]; | ||
nestedSet(serverData, attr, val); | ||
@@ -184,0 +175,0 @@ if (val && typeof val === 'object' && !(val instanceof ParseObject) && !(val instanceof _ParseFile.default) && !(val instanceof _ParseRelation.default)) { |
{ | ||
"name": "parse", | ||
"version": "5.3.0-alpha.1", | ||
"version": "5.3.0-alpha.2", | ||
"description": "Parse JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "homepage": "https://parseplatform.org", |
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 too big to display
4848793
108353