parse 5.1.0-alpha.6 → 5.1.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v5.1.0-alpha.6
2
+ * Parse JavaScript SDK v5.1.0-alpha.7
3
3
  *
4
4
  * The source tree of this library can be found at
5
5
  * https://github.com/ParsePlatform/Parse-SDK-JS
@@ -562,7 +562,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
562
562
  SERVER_AUTH_TOKEN: null,
563
563
  LIVEQUERY_SERVER_URL: null,
564
564
  ENCRYPTED_KEY: null,
565
- VERSION: 'js' + "5.1.0-alpha.6",
565
+ VERSION: 'js' + "5.1.0-alpha.7",
566
566
  APPLICATION_ID: null,
567
567
  JAVASCRIPT_KEY: null,
568
568
  MASTER_KEY: null,
@@ -3596,14 +3596,14 @@ function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<
3596
3596
  if ((0, _includes.default)(attr).call(attr, '.')) {
3597
3597
  // convert a.b.c into { a: { b: { c: value } } }
3598
3598
  var fields = attr.split('.');
3599
- var first = fields[0];
3600
3599
  var last = fields[fields.length - 1];
3601
- data[first] = _objectSpread({}, serverData[first]);
3602
- var _object = _objectSpread({}, data);
3600
+ var _object = data;
3603
3601
  for (var _i = 0; _i < fields.length - 1; _i++) {
3604
3602
  var key = fields[_i];
3605
3603
  if (!(key in _object)) {
3606
3604
  _object[key] = {};
3605
+ } else {
3606
+ _object[key] = _objectSpread({}, _object[key]);
3607
3607
  }
3608
3608
  _object = _object[key];
3609
3609
  }