Socket
Socket
Sign inDemoInstall

parse

Package Overview
Dependencies
Maintainers
11
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse - npm Package Compare versions

Comparing version 4.3.1-alpha.1 to 4.3.1-alpha.2

2

lib/browser/CoreManager.js

@@ -190,3 +190,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.3.1-alpha.1",
VERSION: 'js' + "4.3.1-alpha.2",
APPLICATION_ID: null,

@@ -193,0 +193,0 @@ JAVASCRIPT_KEY: null,

@@ -119,3 +119,3 @@ "use strict";

}
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
var value = serverData[attr];

@@ -125,7 +125,4 @@ for (var i = 0; i < pendingOps.length; i++) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
value = pendingOps[i][attr].applyTo(value, {
className: className,
id: id
}, attr);
if (object.id) {
value = pendingOps[i][attr].applyTo(value, object, attr);
}

@@ -139,3 +136,3 @@ } else {

}
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/) /*: AttributeMap*/{
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/) /*: AttributeMap*/{
var data = {};

@@ -148,7 +145,4 @@ for (var attr in serverData) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], {
className: className,
id: id
}, attr);
if (object.id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], object, attr);
}

@@ -162,11 +156,11 @@ } else {

data[first] = _objectSpread({}, serverData[first]);
var object = _objectSpread({}, data);
var _object = _objectSpread({}, data);
for (var _i = 0; _i < fields.length - 1; _i++) {
var key = fields[_i];
if (!(key in object)) {
object[key] = {};
if (!(key in _object)) {
_object[key] = {};
}
object = object[key];
_object = _object[key];
}
object[last] = pendingOps[i][attr].applyTo(object[last]);
_object[last] = pendingOps[i][attr].applyTo(_object[last]);
} else {

@@ -173,0 +167,0 @@ data[attr] = pendingOps[i][attr].applyTo(data[attr]);

@@ -469,14 +469,7 @@ "use strict";

key: "applyTo",
value: function (value /*: mixed*/, object /*:: ?: { className: string, id: ?string }*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
value: function (value /*: mixed*/, parent /*: ParseObject*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
if (!value) {
var _context3;
if (!object || !key) {
if (!parent || !key) {
throw new Error('Cannot apply a RelationOp without either a previous value, or an object and a key');
}
var parent = new _ParseObject.default(object.className);
if (object.id && (0, _indexOf.default)(_context3 = object.id).call(_context3, 'local') === 0) {
parent._localId = object.id;
} else if (object.id) {
parent.id = object.id;
}
var relation = new _ParseRelation.default(parent, key);

@@ -511,8 +504,8 @@ relation.targetClassName = this._targetClassName;

} else if (previous instanceof RelationOp) {
var _context4, _context5, _context6, _context7, _context8, _context9;
var _context3, _context4, _context5, _context6, _context7, _context8;
if (previous._targetClassName && previous._targetClassName !== this._targetClassName) {
throw new Error('Related object must be of class ' + previous._targetClassName + ', but ' + (this._targetClassName || 'null') + ' was passed in.');
}
var newAdd = (0, _concat.default)(_context4 = previous.relationsToAdd).call(_context4, []);
(0, _forEach.default)(_context5 = this.relationsToRemove).call(_context5, function (r) {
var newAdd = (0, _concat.default)(_context3 = previous.relationsToAdd).call(_context3, []);
(0, _forEach.default)(_context4 = this.relationsToRemove).call(_context4, function (r) {
var index = (0, _indexOf.default)(newAdd).call(newAdd, r);

@@ -523,3 +516,3 @@ if (index > -1) {

});
(0, _forEach.default)(_context6 = this.relationsToAdd).call(_context6, function (r) {
(0, _forEach.default)(_context5 = this.relationsToAdd).call(_context5, function (r) {
var index = (0, _indexOf.default)(newAdd).call(newAdd, r);

@@ -530,4 +523,4 @@ if (index < 0) {

});
var newRemove = (0, _concat.default)(_context7 = previous.relationsToRemove).call(_context7, []);
(0, _forEach.default)(_context8 = this.relationsToAdd).call(_context8, function (r) {
var newRemove = (0, _concat.default)(_context6 = previous.relationsToRemove).call(_context6, []);
(0, _forEach.default)(_context7 = this.relationsToAdd).call(_context7, function (r) {
var index = (0, _indexOf.default)(newRemove).call(newRemove, r);

@@ -538,3 +531,3 @@ if (index > -1) {

});
(0, _forEach.default)(_context9 = this.relationsToRemove).call(_context9, function (r) {
(0, _forEach.default)(_context8 = this.relationsToRemove).call(_context8, function (r) {
var index = (0, _indexOf.default)(newRemove).call(newRemove, r);

@@ -566,4 +559,4 @@ if (index < 0) {

if (this.relationsToAdd.length > 0) {
var _context10;
pointers = (0, _map.default)(_context10 = this.relationsToAdd).call(_context10, idToPointer);
var _context9;
pointers = (0, _map.default)(_context9 = this.relationsToAdd).call(_context9, idToPointer);
adds = {

@@ -575,4 +568,4 @@ __op: 'AddRelation',

if (this.relationsToRemove.length > 0) {
var _context11;
pointers = (0, _map.default)(_context11 = this.relationsToRemove).call(_context11, idToPointer);
var _context10;
pointers = (0, _map.default)(_context10 = this.relationsToRemove).call(_context10, idToPointer);
removes = {

@@ -579,0 +572,0 @@ __op: 'RemoveRelation',

@@ -7,2 +7,3 @@ "use strict";

var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
_Object$defineProperty(exports, "__esModule", {

@@ -29,2 +30,3 @@ value: true

var ObjectStateMutations = _interopRequireWildcard(require("./ObjectStateMutations"));
var _ParseObject = _interopRequireDefault(require("./ParseObject"));
function _getRequireWildcardCache(nodeInterop) {

@@ -153,11 +155,11 @@ if (typeof _WeakMap !== "function") return null;

}
function estimateAttribute(obj /*: ObjectIdentifier*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(obj /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
var serverData = getServerData(obj);
var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}
function estimateAttributes(obj /*: ObjectIdentifier*/) /*: AttributeMap*/{
function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{
var serverData = getServerData(obj);
var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -164,0 +166,0 @@ function commitServerChanges(obj /*: ObjectIdentifier*/, changes /*: AttributeMap*/) {

@@ -150,3 +150,3 @@ "use strict";

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}

@@ -156,3 +156,3 @@ function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -159,0 +159,0 @@ function commitServerChanges(obj /*: ParseObject*/, changes /*: AttributeMap*/) {

@@ -186,3 +186,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.3.1-alpha.1",
VERSION: 'js' + "4.3.1-alpha.2",
APPLICATION_ID: null,

@@ -189,0 +189,0 @@ JAVASCRIPT_KEY: null,

@@ -90,3 +90,3 @@ "use strict";

}
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
let value = serverData[attr];

@@ -96,7 +96,4 @@ for (let i = 0; i < pendingOps.length; i++) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
value = pendingOps[i][attr].applyTo(value, {
className: className,
id: id
}, attr);
if (object.id) {
value = pendingOps[i][attr].applyTo(value, object, attr);
}

@@ -110,3 +107,3 @@ } else {

}
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/) /*: AttributeMap*/{
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/) /*: AttributeMap*/{
const data = {};

@@ -119,7 +116,4 @@ for (var attr in serverData) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], {
className: className,
id: id
}, attr);
if (object.id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], object, attr);
}

@@ -126,0 +120,0 @@ } else {

@@ -333,13 +333,7 @@ "use strict";

}
applyTo(value /*: mixed*/, object /*:: ?: { className: string, id: ?string }*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
applyTo(value /*: mixed*/, parent /*: ParseObject*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
if (!value) {
if (!object || !key) {
if (!parent || !key) {
throw new Error('Cannot apply a RelationOp without either a previous value, or an object and a key');
}
const parent = new _ParseObject.default(object.className);
if (object.id && object.id.indexOf('local') === 0) {
parent._localId = object.id;
} else if (object.id) {
parent.id = object.id;
}
const relation = new _ParseRelation.default(parent, key);

@@ -346,0 +340,0 @@ relation.targetClassName = this._targetClassName;

@@ -24,2 +24,8 @@ "use strict";

var ObjectStateMutations = _interopRequireWildcard(require("./ObjectStateMutations"));
var _ParseObject = _interopRequireDefault(require("./ParseObject"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _getRequireWildcardCache(nodeInterop) {

@@ -149,11 +155,11 @@ if (typeof WeakMap !== "function") return null;

}
function estimateAttribute(obj /*: ObjectIdentifier*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(obj /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
const serverData = getServerData(obj);
const pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}
function estimateAttributes(obj /*: ObjectIdentifier*/) /*: AttributeMap*/{
function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{
const serverData = getServerData(obj);
const pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -160,0 +166,0 @@ function commitServerChanges(obj /*: ObjectIdentifier*/, changes /*: AttributeMap*/) {

@@ -150,3 +150,3 @@ "use strict";

const pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}

@@ -156,3 +156,3 @@ function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{

const pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -159,0 +159,0 @@ function commitServerChanges(obj /*: ParseObject*/, changes /*: AttributeMap*/) {

@@ -15,3 +15,3 @@ Object.defineProperty(exports, "__esModule", {

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.3.1-alpha.1",
VERSION: 'js' + "4.3.1-alpha.2",
APPLICATION_ID: null,

@@ -18,0 +18,0 @@ JAVASCRIPT_KEY: null,

@@ -70,3 +70,3 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

}
function estimateAttribute(serverData, pendingOps, className, id, attr) {
function estimateAttribute(serverData, pendingOps, object, attr) {
var value = serverData[attr];

@@ -76,7 +76,4 @@ for (var i = 0; i < pendingOps.length; i++) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
value = pendingOps[i][attr].applyTo(value, {
className: className,
id: id
}, attr);
if (object.id) {
value = pendingOps[i][attr].applyTo(value, object, attr);
}

@@ -90,3 +87,3 @@ } else {

}
function estimateAttributes(serverData, pendingOps, className, id) {
function estimateAttributes(serverData, pendingOps, object) {
var data = {};

@@ -99,7 +96,4 @@ for (var attr in serverData) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], {
className: className,
id: id
}, attr);
if (object.id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], object, attr);
}

@@ -112,11 +106,11 @@ } else {

data[first] = Object.assign({}, serverData[first]);
var object = Object.assign({}, data);
var _object = Object.assign({}, data);
for (var _i = 0; _i < fields.length - 1; _i++) {
var key = fields[_i];
if (!(key in object)) {
object[key] = {};
if (!(key in _object)) {
_object[key] = {};
}
object = object[key];
_object = _object[key];
}
object[last] = pendingOps[i][attr].applyTo(object[last]);
_object[last] = pendingOps[i][attr].applyTo(_object[last]);
} else {

@@ -123,0 +117,0 @@ data[attr] = pendingOps[i][attr].applyTo(data[attr]);

@@ -443,13 +443,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

key: "applyTo",
value: function (value, object, key) {
value: function (value, parent, key) {
if (!value) {
if (!object || !key) {
if (!parent || !key) {
throw new Error('Cannot apply a RelationOp without either a previous value, or an object and a key');
}
var parent = new _ParseObject.default(object.className);
if (object.id && object.id.indexOf('local') === 0) {
parent._localId = object.id;
} else if (object.id) {
parent.id = object.id;
}
var relation = new _ParseRelation.default(parent, key);

@@ -456,0 +450,0 @@ relation.targetClassName = this._targetClassName;

@@ -0,1 +1,2 @@

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -22,2 +23,3 @@ value: true

var ObjectStateMutations = _interopRequireWildcard(require("./ObjectStateMutations"));
var _ParseObject = _interopRequireDefault(require("./ParseObject"));
function _getRequireWildcardCache(nodeInterop) {

@@ -136,3 +138,3 @@ if (typeof WeakMap !== "function") return null;

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}

@@ -142,3 +144,3 @@ function estimateAttributes(obj) {

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -145,0 +147,0 @@ function commitServerChanges(obj, changes) {

@@ -138,3 +138,3 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}

@@ -144,3 +144,3 @@ function estimateAttributes(obj) {

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -147,0 +147,0 @@ function commitServerChanges(obj, changes) {

@@ -190,3 +190,3 @@ "use strict";

ENCRYPTED_KEY: null,
VERSION: 'js' + "4.3.1-alpha.1",
VERSION: 'js' + "4.3.1-alpha.2",
APPLICATION_ID: null,

@@ -193,0 +193,0 @@ JAVASCRIPT_KEY: null,

@@ -119,3 +119,3 @@ "use strict";

}
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
var value = serverData[attr];

@@ -125,7 +125,4 @@ for (var i = 0; i < pendingOps.length; i++) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
value = pendingOps[i][attr].applyTo(value, {
className: className,
id: id
}, attr);
if (object.id) {
value = pendingOps[i][attr].applyTo(value, object, attr);
}

@@ -139,3 +136,3 @@ } else {

}
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, className /*: string*/, id /*: ?string*/) /*: AttributeMap*/{
function estimateAttributes(serverData /*: AttributeMap*/, pendingOps /*: Array<OpsMap>*/, object /*: ParseObject*/) /*: AttributeMap*/{
var data = {};

@@ -148,7 +145,4 @@ for (var attr in serverData) {

if (pendingOps[i][attr] instanceof _ParseOp.RelationOp) {
if (id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], {
className: className,
id: id
}, attr);
if (object.id) {
data[attr] = pendingOps[i][attr].applyTo(data[attr], object, attr);
}

@@ -162,11 +156,11 @@ } else {

data[first] = _objectSpread({}, serverData[first]);
var object = _objectSpread({}, data);
var _object = _objectSpread({}, data);
for (var _i = 0; _i < fields.length - 1; _i++) {
var key = fields[_i];
if (!(key in object)) {
object[key] = {};
if (!(key in _object)) {
_object[key] = {};
}
object = object[key];
_object = _object[key];
}
object[last] = pendingOps[i][attr].applyTo(object[last]);
_object[last] = pendingOps[i][attr].applyTo(_object[last]);
} else {

@@ -173,0 +167,0 @@ data[attr] = pendingOps[i][attr].applyTo(data[attr]);

@@ -469,14 +469,7 @@ "use strict";

key: "applyTo",
value: function (value /*: mixed*/, object /*:: ?: { className: string, id: ?string }*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
value: function (value /*: mixed*/, parent /*: ParseObject*/, key /*:: ?: string*/) /*: ?ParseRelation*/{
if (!value) {
var _context3;
if (!object || !key) {
if (!parent || !key) {
throw new Error('Cannot apply a RelationOp without either a previous value, or an object and a key');
}
var parent = new _ParseObject.default(object.className);
if (object.id && (0, _indexOf.default)(_context3 = object.id).call(_context3, 'local') === 0) {
parent._localId = object.id;
} else if (object.id) {
parent.id = object.id;
}
var relation = new _ParseRelation.default(parent, key);

@@ -511,8 +504,8 @@ relation.targetClassName = this._targetClassName;

} else if (previous instanceof RelationOp) {
var _context4, _context5, _context6, _context7, _context8, _context9;
var _context3, _context4, _context5, _context6, _context7, _context8;
if (previous._targetClassName && previous._targetClassName !== this._targetClassName) {
throw new Error('Related object must be of class ' + previous._targetClassName + ', but ' + (this._targetClassName || 'null') + ' was passed in.');
}
var newAdd = (0, _concat.default)(_context4 = previous.relationsToAdd).call(_context4, []);
(0, _forEach.default)(_context5 = this.relationsToRemove).call(_context5, function (r) {
var newAdd = (0, _concat.default)(_context3 = previous.relationsToAdd).call(_context3, []);
(0, _forEach.default)(_context4 = this.relationsToRemove).call(_context4, function (r) {
var index = (0, _indexOf.default)(newAdd).call(newAdd, r);

@@ -523,3 +516,3 @@ if (index > -1) {

});
(0, _forEach.default)(_context6 = this.relationsToAdd).call(_context6, function (r) {
(0, _forEach.default)(_context5 = this.relationsToAdd).call(_context5, function (r) {
var index = (0, _indexOf.default)(newAdd).call(newAdd, r);

@@ -530,4 +523,4 @@ if (index < 0) {

});
var newRemove = (0, _concat.default)(_context7 = previous.relationsToRemove).call(_context7, []);
(0, _forEach.default)(_context8 = this.relationsToAdd).call(_context8, function (r) {
var newRemove = (0, _concat.default)(_context6 = previous.relationsToRemove).call(_context6, []);
(0, _forEach.default)(_context7 = this.relationsToAdd).call(_context7, function (r) {
var index = (0, _indexOf.default)(newRemove).call(newRemove, r);

@@ -538,3 +531,3 @@ if (index > -1) {

});
(0, _forEach.default)(_context9 = this.relationsToRemove).call(_context9, function (r) {
(0, _forEach.default)(_context8 = this.relationsToRemove).call(_context8, function (r) {
var index = (0, _indexOf.default)(newRemove).call(newRemove, r);

@@ -566,4 +559,4 @@ if (index < 0) {

if (this.relationsToAdd.length > 0) {
var _context10;
pointers = (0, _map.default)(_context10 = this.relationsToAdd).call(_context10, idToPointer);
var _context9;
pointers = (0, _map.default)(_context9 = this.relationsToAdd).call(_context9, idToPointer);
adds = {

@@ -575,4 +568,4 @@ __op: 'AddRelation',

if (this.relationsToRemove.length > 0) {
var _context11;
pointers = (0, _map.default)(_context11 = this.relationsToRemove).call(_context11, idToPointer);
var _context10;
pointers = (0, _map.default)(_context10 = this.relationsToRemove).call(_context10, idToPointer);
removes = {

@@ -579,0 +572,0 @@ __op: 'RemoveRelation',

@@ -7,2 +7,3 @@ "use strict";

var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
_Object$defineProperty(exports, "__esModule", {

@@ -29,2 +30,3 @@ value: true

var ObjectStateMutations = _interopRequireWildcard(require("./ObjectStateMutations"));
var _ParseObject = _interopRequireDefault(require("./ParseObject"));
function _getRequireWildcardCache(nodeInterop) {

@@ -153,11 +155,11 @@ if (typeof _WeakMap !== "function") return null;

}
function estimateAttribute(obj /*: ObjectIdentifier*/, attr /*: string*/) /*: mixed*/{
function estimateAttribute(obj /*: ParseObject*/, attr /*: string*/) /*: mixed*/{
var serverData = getServerData(obj);
var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}
function estimateAttributes(obj /*: ObjectIdentifier*/) /*: AttributeMap*/{
function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{
var serverData = getServerData(obj);
var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -164,0 +166,0 @@ function commitServerChanges(obj /*: ObjectIdentifier*/, changes /*: AttributeMap*/) {

@@ -150,3 +150,3 @@ "use strict";

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj.className, obj.id, attr);
return ObjectStateMutations.estimateAttribute(serverData, pendingOps, obj, attr);
}

@@ -156,3 +156,3 @@ function estimateAttributes(obj /*: ParseObject*/) /*: AttributeMap*/{

var pendingOps = getPendingOps(obj);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj.className, obj.id);
return ObjectStateMutations.estimateAttributes(serverData, pendingOps, obj);
}

@@ -159,0 +159,0 @@ function commitServerChanges(obj /*: ParseObject*/, changes /*: AttributeMap*/) {

{
"name": "parse",
"version": "4.3.1-alpha.1",
"version": "4.3.1-alpha.2",
"description": "Parse JavaScript SDK",

@@ -36,3 +36,3 @@ "homepage": "https://parseplatform.org",

"uuid": "9.0.1",
"ws": "8.14.2",
"ws": "8.15.1",
"xmlhttprequest": "1.8.0"

@@ -79,3 +79,3 @@ },

"husky": "8.0.3",
"jasmine": "5.0.0",
"jasmine": "5.1.0",
"jasmine-reporters": "2.5.2",

@@ -82,0 +82,0 @@ "jasmine-spec-reporter": "7.0.0",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc