diff --git a/README.md b/README.md index 06f671f..bb2a3ad 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,20 @@ now you can just push the responses from your own requests to the store: ```javascript +// Create a new store instance. +var store = new Store(); + // Define the "categories" type. -Store.types["categories"] = { +store.define("categories", { title: Store.attr(), products: Store.hasMany({ inverse: "category" }) -}; +}); // Define the "products" type. -Store.types["products"] = { +store.define("products", { title: Store.attr(), category: Store.hasOne() -}; - -// Create a new store instance. -var store = new Store(); +}); // Add data - this can just be the response from a GET request to your API. store.push({ diff --git a/dist/store.js b/dist/store.js index 200b120..b0de9f0 100644 --- a/dist/store.js +++ b/dist/store.js @@ -1 +1 @@ -(function(global,factory){if(typeof define === 'function' && define.amd){define('Store',['exports','module'],factory);}else if(typeof exports !== 'undefined' && typeof module !== 'undefined'){factory(exports,module);}else {var mod={exports:{}};factory(mod.exports,mod);global.Store = mod.exports;}})(this,function(exports,module){'use strict';var _createClass=(function(){function defineProperties(target,props){for(var i=0;i < props.length;i++) {var descriptor=props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if('value' in descriptor)descriptor.writable = true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};})();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError('Cannot call a class as a function');}}var Store=(function(){_createClass(Store,null,[{key:'attr',value:function attr(name,options){if(name && typeof name === 'object'){return Store.attr(null,name);}else {return {type:"attr",'default':options && options['default'],deserialize:function deserialize(data,key){return data.attributes && data.attributes[name || key];}};}}},{key:'hasOne',value:function hasOne(name,options){if(name && typeof name === 'object'){return Store.hasOne(null,name);}else {return {type:"has-one",inverse:options && options.inverse,deserialize:function deserialize(data,key){name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return null;}else if(data.relationships[name].data){return this.find(data.relationships[name].data.type,data.relationships[name].data.id);}}}};}}},{key:'hasMany',value:function hasMany(name,options){if(name && typeof name === 'object'){return Store.hasMany(null,name);}else {return {type:"has-many",'default':[],inverse:options && options.inverse,deserialize:function deserialize(data,key){var _this=this;name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return [];}else if(data.relationships[name].data){return data.relationships[name].data.map(function(c){return _this.find(c.type,c.id);});}}}};}}}]);function Store(){_classCallCheck(this,Store);this._data = {};}_createClass(Store,[{key:'add',value:function add(object){var _this2=this;if(object){if(object.type && object.id){(function(){var resource=_this2.find(object.type,object.id);var definition=Store.types[object.type];Object.keys(definition).forEach(function(fieldName){_this2._addField(object,resource,definition,fieldName);});})();}else {throw new TypeError('The data must have a type and id');}}else {throw new TypeError('You must provide data to add');}}},{key:'find',value:function find(type,id){var _this3=this;var definition;if(type){definition = Store.types[type];if(definition){this._data[type] = this._data[type] || {};if(id){if(!this._data[type][id]){this._data[type][id] = {_dependents:[],type:type,id:id};Object.keys(definition).forEach(function(key){_this3._data[type][id][key] = definition[key]['default'];});}return this._data[type][id];}else {return Object.keys(this._data[type]).map(function(x){return _this3._data[type][x];});}}else {throw new TypeError('Unknown type \'' + type + '\'');}}else {throw new TypeError('You must provide a type');}}},{key:'push',value:function push(root){var _this4=this;if(root.data.constructor === Array){root.data.forEach(function(x){return _this4.add(x);});}else {this.add(root.data);}if(root.included){root.included.forEach(function(x){return _this4.add(x);});}}},{key:'remove',value:function remove(type,id){var _this5=this;if(type){if(Store.types[type]){if(id){var resource=this._data[type][id];if(resource){this._remove(resource);}}else {Object.keys(this._data[type]).forEach(function(id){return _this5.remove(type,id);});}}else {throw new TypeError('Unknown type \'' + type + '\'');}}else {throw new TypeError('You must provide a type to remove');}}},{key:'_addField',value:function _addField(object,resource,definition,fieldName){var _this6=this;var field=definition[fieldName];var newValue=field.deserialize.call(this,object,fieldName);if(typeof newValue !== "undefined"){if(field.type === "has-one"){if(resource[fieldName]){this._removeInverseRelationship(resource,fieldName,resource[fieldName],field);}if(newValue){this._addInverseRelationship(resource,fieldName,newValue,field);}}else if(field.type === "has-many"){resource[fieldName].forEach(function(r){if(resource[fieldName].indexOf(r) !== -1){_this6._removeInverseRelationship(resource,fieldName,r,field);}});newValue.forEach(function(r){_this6._addInverseRelationship(resource,fieldName,r,field);});}resource[fieldName] = newValue;}}},{key:'_addInverseRelationship',value:function _addInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=Store.types[targetResource.type];var targetFieldName=sourceField.inverse || targetResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents.push({type:sourceResource.type,id:sourceResource.id,fieldName:sourceFieldName});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});targetResource[targetFieldName] = sourceResource;}else if(targetField.type === "has-many"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});if(targetResource[targetFieldName].indexOf(sourceResource) === -1){targetResource[targetFieldName].push(sourceResource);}}else if(targetField.type === "attr"){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is an attribute (\'' + targetFieldName + '\')');}}else if(sourceField.inverse){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is missing (\'' + sourceField.inverse + '\')');}}},{key:'_remove',value:function _remove(resource){var _this7=this;resource._dependents.forEach(function(dependent){var dependentResource=_this7._data[dependent.type][dependent.id];switch(Store.types[dependent.type][dependent.fieldName].type){case "has-one":{dependentResource[dependent.fieldName] = null;break;}case "has-many":{var index=dependentResource[dependent.fieldName].indexOf(resource);if(index !== -1){dependentResource[dependent.fieldName].splice(index,1);}break;}default:{break;}}dependentResource._dependents = dependentResource._dependents.filter(function(d){return !(d.type === resource.type && d.id === resource.id);});});delete this._data[resource.type][resource.id];}},{key:'_removeInverseRelationship',value:function _removeInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=Store.types[targetResource.type];var targetFieldName=sourceField.inverse || targetResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents = targetResource._dependents.filter(function(r){return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = null;}else if(targetField.type === "has-many"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = targetResource[targetFieldName].filter(function(r){return r !== sourceResource;});}else if(targetField.type === "attr"){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is an attribute (\'' + targetFieldName + '\')');}}else if(sourceField.inverse){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is missing (\'' + sourceField.inverse + '\')');}}}]);return Store;})();module.exports = Store;Store.types = {};}); +(function(global,factory){if(typeof define === 'function' && define.amd){define('Store',['exports','module'],factory);}else if(typeof exports !== 'undefined' && typeof module !== 'undefined'){factory(exports,module);}else {var mod={exports:{}};factory(mod.exports,mod);global.Store = mod.exports;}})(this,function(exports,module){'use strict';var _createClass=(function(){function defineProperties(target,props){for(var i=0;i < props.length;i++) {var descriptor=props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if('value' in descriptor)descriptor.writable = true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};})();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError('Cannot call a class as a function');}}var Store=(function(){_createClass(Store,null,[{key:'attr',value:function attr(name,options){if(name && typeof name === 'object'){return Store.attr(null,name);}else {return {type:"attr",'default':options && options['default'],deserialize:function deserialize(data,key){return data.attributes && data.attributes[name || key];}};}}},{key:'hasOne',value:function hasOne(name,options){if(name && typeof name === 'object'){return Store.hasOne(null,name);}else {return {type:"has-one",inverse:options && options.inverse,deserialize:function deserialize(data,key){name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return null;}else if(data.relationships[name].data){return this.find(data.relationships[name].data.type,data.relationships[name].data.id);}}}};}}},{key:'hasMany',value:function hasMany(name,options){if(name && typeof name === 'object'){return Store.hasMany(null,name);}else {return {type:"has-many",'default':[],inverse:options && options.inverse,deserialize:function deserialize(data,key){var _this=this;name = name || key;if(data.relationships && data.relationships[name]){if(data.relationships[name].data === null){return [];}else if(data.relationships[name].data){return data.relationships[name].data.map(function(c){return _this.find(c.type,c.id);});}}}};}}}]);function Store(){_classCallCheck(this,Store);this._data = {};this._types = {};}_createClass(Store,[{key:'add',value:function add(object){var _this2=this;if(object){if(object.type && object.id){(function(){var resource=_this2.find(object.type,object.id);var definition=_this2._types[object.type];Object.keys(definition).forEach(function(fieldName){_this2._addField(object,resource,definition,fieldName);});})();}else {throw new TypeError('The data must have a type and id');}}else {throw new TypeError('You must provide data to add');}}},{key:'define',value:function define(name,defition){this._types[name] = defition;}},{key:'find',value:function find(type,id){var _this3=this;var definition;if(type){definition = this._types[type];if(definition){this._data[type] = this._data[type] || {};if(id){if(!this._data[type][id]){this._data[type][id] = {_dependents:[],type:type,id:id};Object.keys(definition).forEach(function(key){_this3._data[type][id][key] = definition[key]['default'];});}return this._data[type][id];}else {return Object.keys(this._data[type]).map(function(x){return _this3._data[type][x];});}}else {throw new TypeError('Unknown type \'' + type + '\'');}}else {throw new TypeError('You must provide a type');}}},{key:'push',value:function push(root){var _this4=this;if(root.data.constructor === Array){root.data.forEach(function(x){return _this4.add(x);});}else {this.add(root.data);}if(root.included){root.included.forEach(function(x){return _this4.add(x);});}}},{key:'remove',value:function remove(type,id){var _this5=this;if(type){if(this._types[type]){if(id){var resource=this._data[type][id];if(resource){this._remove(resource);}}else {Object.keys(this._data[type]).forEach(function(id){return _this5.remove(type,id);});}}else {throw new TypeError('Unknown type \'' + type + '\'');}}else {throw new TypeError('You must provide a type to remove');}}},{key:'_addField',value:function _addField(object,resource,definition,fieldName){var _this6=this;var field=definition[fieldName];var newValue=field.deserialize.call(this,object,fieldName);if(typeof newValue !== "undefined"){if(field.type === "has-one"){if(resource[fieldName]){this._removeInverseRelationship(resource,fieldName,resource[fieldName],field);}if(newValue){this._addInverseRelationship(resource,fieldName,newValue,field);}}else if(field.type === "has-many"){resource[fieldName].forEach(function(r){if(resource[fieldName].indexOf(r) !== -1){_this6._removeInverseRelationship(resource,fieldName,r,field);}});newValue.forEach(function(r){_this6._addInverseRelationship(resource,fieldName,r,field);});}resource[fieldName] = newValue;}}},{key:'_addInverseRelationship',value:function _addInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var targetFieldName=sourceField.inverse || targetResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents.push({type:sourceResource.type,id:sourceResource.id,fieldName:sourceFieldName});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});targetResource[targetFieldName] = sourceResource;}else if(targetField.type === "has-many"){sourceResource._dependents.push({type:targetResource.type,id:targetResource.id,fieldName:targetFieldName});if(targetResource[targetFieldName].indexOf(sourceResource) === -1){targetResource[targetFieldName].push(sourceResource);}}else if(targetField.type === "attr"){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is an attribute (\'' + targetFieldName + '\')');}}else if(sourceField.inverse){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is missing (\'' + sourceField.inverse + '\')');}}},{key:'_remove',value:function _remove(resource){var _this7=this;resource._dependents.forEach(function(dependent){var dependentResource=_this7._data[dependent.type][dependent.id];switch(_this7._types[dependent.type][dependent.fieldName].type){case "has-one":{dependentResource[dependent.fieldName] = null;break;}case "has-many":{var index=dependentResource[dependent.fieldName].indexOf(resource);if(index !== -1){dependentResource[dependent.fieldName].splice(index,1);}break;}default:{break;}}dependentResource._dependents = dependentResource._dependents.filter(function(d){return !(d.type === resource.type && d.id === resource.id);});});delete this._data[resource.type][resource.id];}},{key:'_removeInverseRelationship',value:function _removeInverseRelationship(sourceResource,sourceFieldName,targetResource,sourceField){var targetDefinition=this._types[targetResource.type];var targetFieldName=sourceField.inverse || targetResource.type;var targetField=targetDefinition && targetDefinition[targetFieldName];targetResource._dependents = targetResource._dependents.filter(function(r){return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);});if(targetField){if(targetField.type === "has-one"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = null;}else if(targetField.type === "has-many"){sourceResource._dependents = sourceResource._dependents.filter(function(r){return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);});targetResource[targetFieldName] = targetResource[targetFieldName].filter(function(r){return r !== sourceResource;});}else if(targetField.type === "attr"){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is an attribute (\'' + targetFieldName + '\')');}}else if(sourceField.inverse){throw new Error('The the inverse relationship for \'' + sourceFieldName + '\' is missing (\'' + sourceField.inverse + '\')');}}}]);return Store;})();module.exports = Store;}); diff --git a/docs/ast/source/src/store.js.json b/docs/ast/source/src/store.js.json index 37b6250..3642420 100644 --- a/docs/ast/source/src/store.js.json +++ b/docs/ast/source/src/store.js.json @@ -5043,11 +5043,117 @@ "column": 20 } } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2724, + 2728 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_types", + "range": [ + 2729, + 2735 + ], + "loc": { + "start": { + "line": 88, + "column": 9 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "range": [ + 2724, + 2735 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 15 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 2738, + 2740 + ], + "loc": { + "start": { + "line": 88, + "column": 18 + }, + "end": { + "line": 88, + "column": 20 + } + } + }, + "range": [ + 2724, + 2740 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 20 + } + } + }, + "range": [ + 2724, + 2741 + ], + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 21 + } + } } ], "range": [ 2697, - 2723 + 2745 ], "loc": { "start": { @@ -5055,7 +5161,7 @@ "column": 16 }, "end": { - "line": 88, + "line": 89, "column": 3 } } @@ -5064,7 +5170,7 @@ "expression": false, "range": [ 2694, - 2723 + 2745 ], "loc": { "start": { @@ -5072,7 +5178,7 @@ "column": 13 }, "end": { - "line": 88, + "line": 89, "column": 3 } } @@ -5081,7 +5187,7 @@ "computed": false, "range": [ 2683, - 2723 + 2745 ], "loc": { "start": { @@ -5089,25 +5195,25 @@ "column": 2 }, "end": { - "line": 88, + "line": 89, "column": 3 } }, "trailingComments": [ { "type": "Block", - "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n ", "range": [ - 2727, - 3032 + 2749, + 3038 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 5 } } @@ -5121,16 +5227,16 @@ "type": "Identifier", "name": "add", "range": [ - 3035, - 3038 + 3041, + 3044 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 2 }, "end": { - "line": 98, + "line": 99, "column": 5 } } @@ -5143,16 +5249,16 @@ "type": "Identifier", "name": "object", "range": [ - 3039, - 3045 + 3045, + 3051 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 6 }, "end": { - "line": 98, + "line": 99, "column": 12 } } @@ -5167,16 +5273,16 @@ "type": "Identifier", "name": "object", "range": [ - 3057, - 3063 + 3063, + 3069 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 8 }, "end": { - "line": 99, + "line": 100, "column": 14 } } @@ -5196,16 +5302,16 @@ "type": "Identifier", "name": "object", "range": [ - 3077, - 3083 + 3083, + 3089 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 10 }, "end": { - "line": 100, + "line": 101, "column": 16 } } @@ -5214,31 +5320,31 @@ "type": "Identifier", "name": "type", "range": [ - 3084, - 3088 + 3090, + 3094 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 17 }, "end": { - "line": 100, + "line": 101, "column": 21 } } }, "range": [ - 3077, - 3088 + 3083, + 3094 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 10 }, "end": { - "line": 100, + "line": 101, "column": 21 } } @@ -5250,16 +5356,16 @@ "type": "Identifier", "name": "object", "range": [ - 3092, - 3098 + 3098, + 3104 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 25 }, "end": { - "line": 100, + "line": 101, "column": 31 } } @@ -5268,46 +5374,46 @@ "type": "Identifier", "name": "id", "range": [ - 3099, - 3101 + 3105, + 3107 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 32 }, "end": { - "line": 100, + "line": 101, "column": 34 } } }, "range": [ - 3092, - 3101 + 3098, + 3107 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 25 }, "end": { - "line": 100, + "line": 101, "column": 34 } } }, "range": [ - 3077, - 3101 + 3083, + 3107 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 10 }, "end": { - "line": 100, + "line": 101, "column": 34 } } @@ -5324,16 +5430,16 @@ "type": "Identifier", "name": "resource", "range": [ - 3117, - 3125 + 3123, + 3131 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 12 }, "end": { - "line": 101, + "line": 102, "column": 20 } } @@ -5346,16 +5452,16 @@ "object": { "type": "ThisExpression", "range": [ - 3128, - 3132 + 3134, + 3138 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 23 }, "end": { - "line": 101, + "line": 102, "column": 27 } } @@ -5364,31 +5470,31 @@ "type": "Identifier", "name": "find", "range": [ - 3133, - 3137 + 3139, + 3143 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 28 }, "end": { - "line": 101, + "line": 102, "column": 32 } } }, "range": [ - 3128, - 3137 + 3134, + 3143 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 23 }, "end": { - "line": 101, + "line": 102, "column": 32 } } @@ -5401,16 +5507,16 @@ "type": "Identifier", "name": "object", "range": [ - 3138, - 3144 + 3144, + 3150 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 33 }, "end": { - "line": 101, + "line": 102, "column": 39 } } @@ -5419,31 +5525,31 @@ "type": "Identifier", "name": "type", "range": [ - 3145, - 3149 + 3151, + 3155 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 40 }, "end": { - "line": 101, + "line": 102, "column": 44 } } }, "range": [ - 3138, - 3149 + 3144, + 3155 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 33 }, "end": { - "line": 101, + "line": 102, "column": 44 } } @@ -5455,16 +5561,16 @@ "type": "Identifier", "name": "object", "range": [ - 3151, - 3157 + 3157, + 3163 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 46 }, "end": { - "line": 101, + "line": 102, "column": 52 } } @@ -5473,62 +5579,62 @@ "type": "Identifier", "name": "id", "range": [ - 3158, - 3160 + 3164, + 3166 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 53 }, "end": { - "line": 101, + "line": 102, "column": 55 } } }, "range": [ - 3151, - 3160 + 3157, + 3166 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 46 }, "end": { - "line": 101, + "line": 102, "column": 55 } } } ], "range": [ - 3128, - 3161 + 3134, + 3167 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 23 }, "end": { - "line": 101, + "line": 102, "column": 56 } } }, "range": [ - 3117, - 3161 + 3123, + 3167 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 12 }, "end": { - "line": 101, + "line": 102, "column": 56 } } @@ -5536,16 +5642,16 @@ ], "kind": "let", "range": [ - 3113, - 3162 + 3119, + 3168 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 8 }, "end": { - "line": 101, + "line": 102, "column": 57 } } @@ -5559,16 +5665,16 @@ "type": "Identifier", "name": "definition", "range": [ - 3175, - 3185 + 3181, + 3191 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 12 }, "end": { - "line": 102, + "line": 103, "column": 22 } } @@ -5580,52 +5686,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 3188, - 3193 + 3194, + 3198 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 25 }, "end": { - "line": 102, - "column": 30 + "line": 103, + "column": 29 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 3194, - 3199 + 3199, + 3205 ], "loc": { "start": { - "line": 102, - "column": 31 + "line": 103, + "column": 30 }, "end": { - "line": 102, + "line": 103, "column": 36 } } }, "range": [ - 3188, - 3199 + 3194, + 3205 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 25 }, "end": { - "line": 102, + "line": 103, "column": 36 } } @@ -5637,16 +5742,16 @@ "type": "Identifier", "name": "object", "range": [ - 3200, - 3206 + 3206, + 3212 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 37 }, "end": { - "line": 102, + "line": 103, "column": 43 } } @@ -5655,61 +5760,61 @@ "type": "Identifier", "name": "type", "range": [ - 3207, - 3211 + 3213, + 3217 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 44 }, "end": { - "line": 102, + "line": 103, "column": 48 } } }, "range": [ - 3200, - 3211 + 3206, + 3217 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 37 }, "end": { - "line": 102, + "line": 103, "column": 48 } } }, "range": [ - 3188, - 3212 + 3194, + 3218 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 25 }, "end": { - "line": 102, + "line": 103, "column": 49 } } }, "range": [ - 3175, - 3212 + 3181, + 3218 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 12 }, "end": { - "line": 102, + "line": 103, "column": 49 } } @@ -5717,16 +5822,16 @@ ], "kind": "let", "range": [ - 3171, - 3213 + 3177, + 3219 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 8 }, "end": { - "line": 102, + "line": 103, "column": 50 } } @@ -5747,16 +5852,16 @@ "type": "Identifier", "name": "Object", "range": [ - 3222, - 3228 + 3228, + 3234 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 103, + "line": 104, "column": 14 } } @@ -5765,31 +5870,31 @@ "type": "Identifier", "name": "keys", "range": [ - 3229, - 3233 + 3235, + 3239 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 15 }, "end": { - "line": 103, + "line": 104, "column": 19 } } }, "range": [ - 3222, - 3233 + 3228, + 3239 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 103, + "line": 104, "column": 19 } } @@ -5799,32 +5904,32 @@ "type": "Identifier", "name": "definition", "range": [ - 3234, - 3244 + 3240, + 3250 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 20 }, "end": { - "line": 103, + "line": 104, "column": 30 } } } ], "range": [ - 3222, - 3245 + 3228, + 3251 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 103, + "line": 104, "column": 31 } } @@ -5833,31 +5938,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 3246, - 3253 + 3252, + 3259 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 32 }, "end": { - "line": 103, + "line": 104, "column": 39 } } }, "range": [ - 3222, - 3253 + 3228, + 3259 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 103, + "line": 104, "column": 39 } } @@ -5871,16 +5976,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 3254, - 3263 + 3260, + 3269 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 40 }, "end": { - "line": 103, + "line": 104, "column": 49 } } @@ -5899,16 +6004,16 @@ "object": { "type": "ThisExpression", "range": [ - 3279, - 3283 + 3285, + 3289 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 10 }, "end": { - "line": 104, + "line": 105, "column": 14 } } @@ -5917,31 +6022,31 @@ "type": "Identifier", "name": "_addField", "range": [ - 3284, - 3293 + 3290, + 3299 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 15 }, "end": { - "line": 104, + "line": 105, "column": 24 } } }, "range": [ - 3279, - 3293 + 3285, + 3299 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 10 }, "end": { - "line": 104, + "line": 105, "column": 24 } } @@ -5951,16 +6056,16 @@ "type": "Identifier", "name": "object", "range": [ - 3294, - 3300 + 3300, + 3306 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 25 }, "end": { - "line": 104, + "line": 105, "column": 31 } } @@ -5969,16 +6074,16 @@ "type": "Identifier", "name": "resource", "range": [ - 3302, - 3310 + 3308, + 3316 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 33 }, "end": { - "line": 104, + "line": 105, "column": 41 } } @@ -5987,16 +6092,16 @@ "type": "Identifier", "name": "definition", "range": [ - 3312, - 3322 + 3318, + 3328 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 43 }, "end": { - "line": 104, + "line": 105, "column": 53 } } @@ -6005,63 +6110,63 @@ "type": "Identifier", "name": "fieldName", "range": [ - 3324, - 3333 + 3330, + 3339 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 55 }, "end": { - "line": 104, + "line": 105, "column": 64 } } } ], "range": [ - 3279, - 3334 + 3285, + 3340 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 10 }, "end": { - "line": 104, + "line": 105, "column": 65 } } }, "range": [ - 3279, - 3335 + 3285, + 3341 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 10 }, "end": { - "line": 104, + "line": 105, "column": 66 } } } ], "range": [ - 3267, - 3345 + 3273, + 3351 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 53 }, "end": { - "line": 105, + "line": 106, "column": 9 } } @@ -6069,63 +6174,63 @@ "generator": false, "expression": false, "range": [ - 3254, - 3345 + 3260, + 3351 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 40 }, "end": { - "line": 105, + "line": 106, "column": 9 } } } ], "range": [ - 3222, - 3346 + 3228, + 3352 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 105, + "line": 106, "column": 10 } } }, "range": [ - 3222, - 3347 + 3228, + 3353 ], "loc": { "start": { - "line": 103, + "line": 104, "column": 8 }, "end": { - "line": 105, + "line": 106, "column": 11 } } } ], "range": [ - 3103, - 3355 + 3109, + 3361 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 36 }, "end": { - "line": 106, + "line": 107, "column": 7 } } @@ -6141,16 +6246,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 3381, - 3390 + 3387, + 3396 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 18 }, "end": { - "line": 107, + "line": 108, "column": 27 } } @@ -6167,16 +6272,16 @@ }, "tail": true, "range": [ - 3391, - 3425 + 3397, + 3431 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 28 }, "end": { - "line": 107, + "line": 108, "column": 62 } } @@ -6184,94 +6289,94 @@ ], "expressions": [], "range": [ - 3391, - 3425 + 3397, + 3431 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 28 }, "end": { - "line": 107, + "line": 108, "column": 62 } } } ], "range": [ - 3377, - 3426 + 3383, + 3432 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 14 }, "end": { - "line": 107, + "line": 108, "column": 63 } } }, "range": [ - 3371, - 3427 + 3377, + 3433 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 8 }, "end": { - "line": 107, + "line": 108, "column": 64 } } } ], "range": [ - 3361, - 3435 + 3367, + 3441 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 13 }, "end": { - "line": 108, + "line": 109, "column": 7 } } }, "range": [ - 3073, - 3435 + 3079, + 3441 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 7 } } } ], "range": [ - 3065, - 3441 + 3071, + 3447 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 16 }, "end": { - "line": 109, + "line": 110, "column": 5 } } @@ -6287,16 +6392,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 3465, - 3474 + 3471, + 3480 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 16 }, "end": { - "line": 110, + "line": 111, "column": 25 } } @@ -6313,16 +6418,16 @@ }, "tail": true, "range": [ - 3475, - 3505 + 3481, + 3511 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 26 }, "end": { - "line": 110, + "line": 111, "column": 56 } } @@ -6330,94 +6435,391 @@ ], "expressions": [], "range": [ - 3475, - 3505 + 3481, + 3511 ], "loc": { "start": { - "line": 110, + "line": 111, "column": 26 }, "end": { - "line": 110, + "line": 111, "column": 56 } } } ], "range": [ - 3461, - 3506 + 3467, + 3512 + ], + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 57 + } + } + }, + "range": [ + 3461, + 3513 + ], + "loc": { + "start": { + "line": 111, + "column": 6 + }, + "end": { + "line": 111, + "column": 58 + } + } + } + ], + "range": [ + 3453, + 3519 + ], + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 112, + "column": 5 + } + } + }, + "range": [ + 3059, + 3519 + ], + "loc": { + "start": { + "line": 100, + "column": 4 + }, + "end": { + "line": 112, + "column": 5 + } + } + } + ], + "range": [ + 3053, + 3523 + ], + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 113, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 3044, + 3523 + ], + "loc": { + "start": { + "line": 99, + "column": 5 + }, + "end": { + "line": 113, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 3041, + 3523 + ], + "loc": { + "start": { + "line": 99, + "column": 2 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n ", + "range": [ + 2749, + 3038 + ], + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 98, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Defines a type of resource.\n *\n * @param {string} name - Name of the resource.\n * @param {Object} defition - The resource's definition.\n * @return {undefined} - Nothing.\n ", + "range": [ + 3527, + 3719 + ], + "loc": { + "start": { + "line": 115, + "column": 2 + }, + "end": { + "line": 121, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "define", + "range": [ + 3722, + 3728 + ], + "loc": { + "start": { + "line": 122, + "column": 2 + }, + "end": { + "line": 122, + "column": 8 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "name", + "range": [ + 3729, + 3733 + ], + "loc": { + "start": { + "line": 122, + "column": 9 + }, + "end": { + "line": 122, + "column": 13 + } + } + }, + { + "type": "Identifier", + "name": "defition", + "range": [ + 3735, + 3743 + ], + "loc": { + "start": { + "line": 122, + "column": 15 + }, + "end": { + "line": 122, + "column": 23 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 3751, + 3755 + ], + "loc": { + "start": { + "line": 123, + "column": 4 + }, + "end": { + "line": 123, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_types", + "range": [ + 3756, + 3762 ], "loc": { "start": { - "line": 110, - "column": 12 + "line": 123, + "column": 9 }, "end": { - "line": 110, - "column": 57 + "line": 123, + "column": 15 } } }, "range": [ - 3455, - 3507 + 3751, + 3762 ], "loc": { "start": { - "line": 110, - "column": 6 + "line": 123, + "column": 4 }, "end": { - "line": 110, - "column": 58 + "line": 123, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "name", + "range": [ + 3763, + 3767 + ], + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 123, + "column": 20 } } + }, + "range": [ + 3751, + 3768 + ], + "loc": { + "start": { + "line": 123, + "column": 4 + }, + "end": { + "line": 123, + "column": 21 + } } - ], + }, + "right": { + "type": "Identifier", + "name": "defition", + "range": [ + 3771, + 3779 + ], + "loc": { + "start": { + "line": 123, + "column": 24 + }, + "end": { + "line": 123, + "column": 32 + } + } + }, "range": [ - 3447, - 3513 + 3751, + 3779 ], "loc": { "start": { - "line": 109, - "column": 11 + "line": 123, + "column": 4 }, "end": { - "line": 111, - "column": 5 + "line": 123, + "column": 32 } } }, "range": [ - 3053, - 3513 + 3751, + 3780 ], "loc": { "start": { - "line": 99, + "line": 123, "column": 4 }, "end": { - "line": 111, - "column": 5 + "line": 123, + "column": 33 } } } ], "range": [ - 3047, - 3517 + 3745, + 3784 ], "loc": { "start": { - "line": 98, - "column": 14 + "line": 122, + "column": 25 }, "end": { - "line": 112, + "line": 124, "column": 3 } } @@ -6425,16 +6827,16 @@ "generator": false, "expression": false, "range": [ - 3038, - 3517 + 3728, + 3784 ], "loc": { "start": { - "line": 98, - "column": 5 + "line": 122, + "column": 8 }, "end": { - "line": 112, + "line": 124, "column": 3 } } @@ -6442,34 +6844,34 @@ "kind": "method", "computed": false, "range": [ - 3035, - 3517 + 3722, + 3784 ], "loc": { "start": { - "line": 98, + "line": 122, "column": 2 }, "end": { - "line": 112, + "line": 124, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Defines a type of resource.\n *\n * @param {string} name - Name of the resource.\n * @param {Object} defition - The resource's definition.\n * @return {undefined} - Nothing.\n ", "range": [ - 2727, - 3032 + 3527, + 3719 ], "loc": { "start": { - "line": 90, + "line": 115, "column": 2 }, "end": { - "line": 97, + "line": 121, "column": 5 } } @@ -6480,16 +6882,16 @@ "type": "Block", "value": "*\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n ", "range": [ - 3521, - 4013 + 3788, + 4280 ], "loc": { "start": { - "line": 114, + "line": 126, "column": 2 }, "end": { - "line": 124, + "line": 136, "column": 5 } } @@ -6503,16 +6905,16 @@ "type": "Identifier", "name": "find", "range": [ - 4016, - 4020 + 4283, + 4287 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 2 }, "end": { - "line": 125, + "line": 137, "column": 6 } } @@ -6525,16 +6927,16 @@ "type": "Identifier", "name": "type", "range": [ - 4021, - 4025 + 4288, + 4292 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 7 }, "end": { - "line": 125, + "line": 137, "column": 11 } } @@ -6543,16 +6945,16 @@ "type": "Identifier", "name": "id", "range": [ - 4027, - 4029 + 4294, + 4296 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 13 }, "end": { - "line": 125, + "line": 137, "column": 15 } } @@ -6570,32 +6972,32 @@ "type": "Identifier", "name": "definition", "range": [ - 4041, - 4051 + 4308, + 4318 ], "loc": { "start": { - "line": 126, + "line": 138, "column": 8 }, "end": { - "line": 126, + "line": 138, "column": 18 } } }, "init": null, "range": [ - 4041, - 4051 + 4308, + 4318 ], "loc": { "start": { - "line": 126, + "line": 138, "column": 8 }, "end": { - "line": 126, + "line": 138, "column": 18 } } @@ -6603,16 +7005,16 @@ ], "kind": "var", "range": [ - 4037, - 4052 + 4304, + 4319 ], "loc": { "start": { - "line": 126, + "line": 138, "column": 4 }, "end": { - "line": 126, + "line": 138, "column": 19 } } @@ -6623,16 +7025,16 @@ "type": "Identifier", "name": "type", "range": [ - 4061, - 4065 + 4328, + 4332 ], "loc": { "start": { - "line": 127, + "line": 139, "column": 8 }, "end": { - "line": 127, + "line": 139, "column": 12 } } @@ -6649,16 +7051,16 @@ "type": "Identifier", "name": "definition", "range": [ - 4075, - 4085 + 4342, + 4352 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 6 }, "end": { - "line": 128, + "line": 140, "column": 16 } } @@ -6670,52 +7072,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 4088, - 4093 + 4355, + 4359 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 19 }, "end": { - "line": 128, - "column": 24 + "line": 140, + "column": 23 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 4094, - 4099 + 4360, + 4366 ], "loc": { "start": { - "line": 128, - "column": 25 + "line": 140, + "column": 24 }, "end": { - "line": 128, + "line": 140, "column": 30 } } }, "range": [ - 4088, - 4099 + 4355, + 4366 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 19 }, "end": { - "line": 128, + "line": 140, "column": 30 } } @@ -6724,61 +7125,61 @@ "type": "Identifier", "name": "type", "range": [ - 4100, - 4104 + 4367, + 4371 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 31 }, "end": { - "line": 128, + "line": 140, "column": 35 } } }, "range": [ - 4088, - 4105 + 4355, + 4372 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 19 }, "end": { - "line": 128, + "line": 140, "column": 36 } } }, "range": [ - 4075, - 4105 + 4342, + 4372 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 6 }, "end": { - "line": 128, + "line": 140, "column": 36 } } }, "range": [ - 4075, - 4106 + 4342, + 4373 ], "loc": { "start": { - "line": 128, + "line": 140, "column": 6 }, "end": { - "line": 128, + "line": 140, "column": 37 } } @@ -6789,16 +7190,16 @@ "type": "Identifier", "name": "definition", "range": [ - 4117, - 4127 + 4384, + 4394 ], "loc": { "start": { - "line": 129, + "line": 141, "column": 10 }, "end": { - "line": 129, + "line": 141, "column": 20 } } @@ -6820,16 +7221,16 @@ "object": { "type": "ThisExpression", "range": [ - 4139, - 4143 + 4406, + 4410 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 8 }, "end": { - "line": 130, + "line": 142, "column": 12 } } @@ -6838,31 +7239,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4144, - 4149 + 4411, + 4416 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 13 }, "end": { - "line": 130, + "line": 142, "column": 18 } } }, "range": [ - 4139, - 4149 + 4406, + 4416 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 8 }, "end": { - "line": 130, + "line": 142, "column": 18 } } @@ -6871,31 +7272,31 @@ "type": "Identifier", "name": "type", "range": [ - 4150, - 4154 + 4417, + 4421 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 19 }, "end": { - "line": 130, + "line": 142, "column": 23 } } }, "range": [ - 4139, - 4155 + 4406, + 4422 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 8 }, "end": { - "line": 130, + "line": 142, "column": 24 } } @@ -6912,16 +7313,16 @@ "object": { "type": "ThisExpression", "range": [ - 4158, - 4162 + 4425, + 4429 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 27 }, "end": { - "line": 130, + "line": 142, "column": 31 } } @@ -6930,31 +7331,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4163, - 4168 + 4430, + 4435 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 32 }, "end": { - "line": 130, + "line": 142, "column": 37 } } }, "range": [ - 4158, - 4168 + 4425, + 4435 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 27 }, "end": { - "line": 130, + "line": 142, "column": 37 } } @@ -6963,31 +7364,31 @@ "type": "Identifier", "name": "type", "range": [ - 4169, - 4173 + 4436, + 4440 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 38 }, "end": { - "line": 130, + "line": 142, "column": 42 } } }, "range": [ - 4158, - 4174 + 4425, + 4441 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 27 }, "end": { - "line": 130, + "line": 142, "column": 43 } } @@ -6996,61 +7397,61 @@ "type": "ObjectExpression", "properties": [], "range": [ - 4178, - 4180 + 4445, + 4447 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 47 }, "end": { - "line": 130, + "line": 142, "column": 49 } } }, "range": [ - 4158, - 4180 + 4425, + 4447 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 27 }, "end": { - "line": 130, + "line": 142, "column": 49 } } }, "range": [ - 4139, - 4180 + 4406, + 4447 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 8 }, "end": { - "line": 130, + "line": 142, "column": 49 } } }, "range": [ - 4139, - 4181 + 4406, + 4448 ], "loc": { "start": { - "line": 130, + "line": 142, "column": 8 }, "end": { - "line": 130, + "line": 142, "column": 50 } } @@ -7061,16 +7462,16 @@ "type": "Identifier", "name": "id", "range": [ - 4194, - 4196 + 4461, + 4463 ], "loc": { "start": { - "line": 131, + "line": 143, "column": 12 }, "end": { - "line": 131, + "line": 143, "column": 14 } } @@ -7095,16 +7496,16 @@ "object": { "type": "ThisExpression", "range": [ - 4215, - 4219 + 4482, + 4486 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 15 }, "end": { - "line": 132, + "line": 144, "column": 19 } } @@ -7113,31 +7514,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4220, - 4225 + 4487, + 4492 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 20 }, "end": { - "line": 132, + "line": 144, "column": 25 } } }, "range": [ - 4215, - 4225 + 4482, + 4492 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 15 }, "end": { - "line": 132, + "line": 144, "column": 25 } } @@ -7146,31 +7547,31 @@ "type": "Identifier", "name": "type", "range": [ - 4226, - 4230 + 4493, + 4497 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 26 }, "end": { - "line": 132, + "line": 144, "column": 30 } } }, "range": [ - 4215, - 4231 + 4482, + 4498 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 15 }, "end": { - "line": 132, + "line": 144, "column": 31 } } @@ -7179,47 +7580,47 @@ "type": "Identifier", "name": "id", "range": [ - 4232, - 4234 + 4499, + 4501 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 32 }, "end": { - "line": 132, + "line": 144, "column": 34 } } }, "range": [ - 4215, - 4235 + 4482, + 4502 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 15 }, "end": { - "line": 132, + "line": 144, "column": 35 } } }, "prefix": true, "range": [ - 4214, - 4235 + 4481, + 4502 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 14 }, "end": { - "line": 132, + "line": 144, "column": 35 } } @@ -7244,16 +7645,16 @@ "object": { "type": "ThisExpression", "range": [ - 4251, - 4255 + 4518, + 4522 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 133, + "line": 145, "column": 16 } } @@ -7262,31 +7663,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4256, - 4261 + 4523, + 4528 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 17 }, "end": { - "line": 133, + "line": 145, "column": 22 } } }, "range": [ - 4251, - 4261 + 4518, + 4528 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 133, + "line": 145, "column": 22 } } @@ -7295,31 +7696,31 @@ "type": "Identifier", "name": "type", "range": [ - 4262, - 4266 + 4529, + 4533 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 23 }, "end": { - "line": 133, + "line": 145, "column": 27 } } }, "range": [ - 4251, - 4267 + 4518, + 4534 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 133, + "line": 145, "column": 28 } } @@ -7328,31 +7729,31 @@ "type": "Identifier", "name": "id", "range": [ - 4268, - 4270 + 4535, + 4537 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 29 }, "end": { - "line": 133, + "line": 145, "column": 31 } } }, "range": [ - 4251, - 4271 + 4518, + 4538 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 133, + "line": 145, "column": 32 } } @@ -7366,16 +7767,16 @@ "type": "Identifier", "name": "_dependents", "range": [ - 4290, - 4301 + 4557, + 4568 ], "loc": { "start": { - "line": 134, + "line": 146, "column": 14 }, "end": { - "line": 134, + "line": 146, "column": 25 } } @@ -7384,16 +7785,16 @@ "type": "ArrayExpression", "elements": [], "range": [ - 4303, - 4305 + 4570, + 4572 ], "loc": { "start": { - "line": 134, + "line": 146, "column": 27 }, "end": { - "line": 134, + "line": 146, "column": 29 } } @@ -7403,16 +7804,16 @@ "shorthand": false, "computed": false, "range": [ - 4290, - 4305 + 4557, + 4572 ], "loc": { "start": { - "line": 134, + "line": 146, "column": 14 }, "end": { - "line": 134, + "line": 146, "column": 29 } } @@ -7423,16 +7824,16 @@ "type": "Identifier", "name": "type", "range": [ - 4321, - 4325 + 4588, + 4592 ], "loc": { "start": { - "line": 135, + "line": 147, "column": 14 }, "end": { - "line": 135, + "line": 147, "column": 18 } } @@ -7441,16 +7842,16 @@ "type": "Identifier", "name": "type", "range": [ - 4327, - 4331 + 4594, + 4598 ], "loc": { "start": { - "line": 135, + "line": 147, "column": 20 }, "end": { - "line": 135, + "line": 147, "column": 24 } } @@ -7460,16 +7861,16 @@ "shorthand": false, "computed": false, "range": [ - 4321, - 4331 + 4588, + 4598 ], "loc": { "start": { - "line": 135, + "line": 147, "column": 14 }, "end": { - "line": 135, + "line": 147, "column": 24 } } @@ -7480,16 +7881,16 @@ "type": "Identifier", "name": "id", "range": [ - 4347, - 4349 + 4614, + 4616 ], "loc": { "start": { - "line": 136, + "line": 148, "column": 14 }, "end": { - "line": 136, + "line": 148, "column": 16 } } @@ -7498,16 +7899,16 @@ "type": "Identifier", "name": "id", "range": [ - 4351, - 4353 + 4618, + 4620 ], "loc": { "start": { - "line": 136, + "line": 148, "column": 18 }, "end": { - "line": 136, + "line": 148, "column": 20 } } @@ -7517,62 +7918,62 @@ "shorthand": false, "computed": false, "range": [ - 4347, - 4353 + 4614, + 4620 ], "loc": { "start": { - "line": 136, + "line": 148, "column": 14 }, "end": { - "line": 136, + "line": 148, "column": 20 } } } ], "range": [ - 4274, - 4367 + 4541, + 4634 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 35 }, "end": { - "line": 137, + "line": 149, "column": 13 } } }, "range": [ - 4251, - 4367 + 4518, + 4634 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 137, + "line": 149, "column": 13 } } }, "range": [ - 4251, - 4368 + 4518, + 4635 ], "loc": { "start": { - "line": 133, + "line": 145, "column": 12 }, "end": { - "line": 137, + "line": 149, "column": 14 } } @@ -7593,16 +7994,16 @@ "type": "Identifier", "name": "Object", "range": [ - 4381, - 4387 + 4648, + 4654 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 138, + "line": 150, "column": 18 } } @@ -7611,31 +8012,31 @@ "type": "Identifier", "name": "keys", "range": [ - 4388, - 4392 + 4655, + 4659 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 19 }, "end": { - "line": 138, + "line": 150, "column": 23 } } }, "range": [ - 4381, - 4392 + 4648, + 4659 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 138, + "line": 150, "column": 23 } } @@ -7645,32 +8046,32 @@ "type": "Identifier", "name": "definition", "range": [ - 4393, - 4403 + 4660, + 4670 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 24 }, "end": { - "line": 138, + "line": 150, "column": 34 } } } ], "range": [ - 4381, - 4404 + 4648, + 4671 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 138, + "line": 150, "column": 35 } } @@ -7679,31 +8080,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 4405, - 4412 + 4672, + 4679 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 36 }, "end": { - "line": 138, + "line": 150, "column": 43 } } }, "range": [ - 4381, - 4412 + 4648, + 4679 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 138, + "line": 150, "column": 43 } } @@ -7717,16 +8118,16 @@ "type": "Identifier", "name": "key", "range": [ - 4413, - 4416 + 4680, + 4683 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 44 }, "end": { - "line": 138, + "line": 150, "column": 47 } } @@ -7755,16 +8156,16 @@ "object": { "type": "ThisExpression", "range": [ - 4436, - 4440 + 4703, + 4707 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 18 } } @@ -7773,31 +8174,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4441, - 4446 + 4708, + 4713 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 19 }, "end": { - "line": 139, + "line": 151, "column": 24 } } }, "range": [ - 4436, - 4446 + 4703, + 4713 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 24 } } @@ -7806,31 +8207,31 @@ "type": "Identifier", "name": "type", "range": [ - 4447, - 4451 + 4714, + 4718 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 25 }, "end": { - "line": 139, + "line": 151, "column": 29 } } }, "range": [ - 4436, - 4452 + 4703, + 4719 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 30 } } @@ -7839,31 +8240,31 @@ "type": "Identifier", "name": "id", "range": [ - 4453, - 4455 + 4720, + 4722 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 31 }, "end": { - "line": 139, + "line": 151, "column": 33 } } }, "range": [ - 4436, - 4456 + 4703, + 4723 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 34 } } @@ -7872,31 +8273,31 @@ "type": "Identifier", "name": "key", "range": [ - 4457, - 4460 + 4724, + 4727 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 35 }, "end": { - "line": 139, + "line": 151, "column": 38 } } }, "range": [ - 4436, - 4461 + 4703, + 4728 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 39 } } @@ -7911,16 +8312,16 @@ "type": "Identifier", "name": "definition", "range": [ - 4464, - 4474 + 4731, + 4741 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 42 }, "end": { - "line": 139, + "line": 151, "column": 52 } } @@ -7929,31 +8330,31 @@ "type": "Identifier", "name": "key", "range": [ - 4475, - 4478 + 4742, + 4745 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 53 }, "end": { - "line": 139, + "line": 151, "column": 56 } } }, "range": [ - 4464, - 4479 + 4731, + 4746 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 42 }, "end": { - "line": 139, + "line": 151, "column": 57 } } @@ -7962,77 +8363,77 @@ "type": "Identifier", "name": "default", "range": [ - 4480, - 4487 + 4747, + 4754 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 58 }, "end": { - "line": 139, + "line": 151, "column": 65 } } }, "range": [ - 4464, - 4487 + 4731, + 4754 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 42 }, "end": { - "line": 139, + "line": 151, "column": 65 } } }, "range": [ - 4436, - 4487 + 4703, + 4754 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 65 } } }, "range": [ - 4436, - 4488 + 4703, + 4755 ], "loc": { "start": { - "line": 139, + "line": 151, "column": 14 }, "end": { - "line": 139, + "line": 151, "column": 66 } } } ], "range": [ - 4420, - 4502 + 4687, + 4769 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 51 }, "end": { - "line": 140, + "line": 152, "column": 13 } } @@ -8040,79 +8441,79 @@ "generator": false, "expression": false, "range": [ - 4413, - 4502 + 4680, + 4769 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 44 }, "end": { - "line": 140, + "line": 152, "column": 13 } } } ], "range": [ - 4381, - 4503 + 4648, + 4770 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 140, + "line": 152, "column": 14 } } }, "range": [ - 4381, - 4504 + 4648, + 4771 ], "loc": { "start": { - "line": 138, + "line": 150, "column": 12 }, "end": { - "line": 140, + "line": 152, "column": 15 } } } ], "range": [ - 4237, - 4516 + 4504, + 4783 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 37 }, "end": { - "line": 141, + "line": 153, "column": 11 } } }, "alternate": null, "range": [ - 4210, - 4516 + 4477, + 4783 ], "loc": { "start": { - "line": 132, + "line": 144, "column": 10 }, "end": { - "line": 141, + "line": 153, "column": 11 } } @@ -8131,16 +8532,16 @@ "object": { "type": "ThisExpression", "range": [ - 4534, - 4538 + 4801, + 4805 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 17 }, "end": { - "line": 142, + "line": 154, "column": 21 } } @@ -8149,31 +8550,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4539, - 4544 + 4806, + 4811 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 22 }, "end": { - "line": 142, + "line": 154, "column": 27 } } }, "range": [ - 4534, - 4544 + 4801, + 4811 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 17 }, "end": { - "line": 142, + "line": 154, "column": 27 } } @@ -8182,31 +8583,31 @@ "type": "Identifier", "name": "type", "range": [ - 4545, - 4549 + 4812, + 4816 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 28 }, "end": { - "line": 142, + "line": 154, "column": 32 } } }, "range": [ - 4534, - 4550 + 4801, + 4817 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 17 }, "end": { - "line": 142, + "line": 154, "column": 33 } } @@ -8215,62 +8616,62 @@ "type": "Identifier", "name": "id", "range": [ - 4551, - 4553 + 4818, + 4820 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 34 }, "end": { - "line": 142, + "line": 154, "column": 36 } } }, "range": [ - 4534, - 4554 + 4801, + 4821 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 17 }, "end": { - "line": 142, + "line": 154, "column": 37 } } }, "range": [ - 4527, - 4555 + 4794, + 4822 ], "loc": { "start": { - "line": 142, + "line": 154, "column": 10 }, "end": { - "line": 142, + "line": 154, "column": 38 } } } ], "range": [ - 4198, - 4565 + 4465, + 4832 ], "loc": { "start": { - "line": 131, + "line": 143, "column": 16 }, "end": { - "line": 143, + "line": 155, "column": 9 } } @@ -8294,16 +8695,16 @@ "type": "Identifier", "name": "Object", "range": [ - 4590, - 4596 + 4857, + 4863 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 17 }, "end": { - "line": 144, + "line": 156, "column": 23 } } @@ -8312,31 +8713,31 @@ "type": "Identifier", "name": "keys", "range": [ - 4597, - 4601 + 4864, + 4868 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 24 }, "end": { - "line": 144, + "line": 156, "column": 28 } } }, "range": [ - 4590, - 4601 + 4857, + 4868 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 17 }, "end": { - "line": 144, + "line": 156, "column": 28 } } @@ -8351,16 +8752,16 @@ "object": { "type": "ThisExpression", "range": [ - 4602, - 4606 + 4869, + 4873 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 29 }, "end": { - "line": 144, + "line": 156, "column": 33 } } @@ -8369,31 +8770,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4607, - 4612 + 4874, + 4879 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 34 }, "end": { - "line": 144, + "line": 156, "column": 39 } } }, "range": [ - 4602, - 4612 + 4869, + 4879 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 29 }, "end": { - "line": 144, + "line": 156, "column": 39 } } @@ -8402,47 +8803,47 @@ "type": "Identifier", "name": "type", "range": [ - 4613, - 4617 + 4880, + 4884 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 40 }, "end": { - "line": 144, + "line": 156, "column": 44 } } }, "range": [ - 4602, - 4618 + 4869, + 4885 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 29 }, "end": { - "line": 144, + "line": 156, "column": 45 } } } ], "range": [ - 4590, - 4619 + 4857, + 4886 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 17 }, "end": { - "line": 144, + "line": 156, "column": 46 } } @@ -8451,31 +8852,31 @@ "type": "Identifier", "name": "map", "range": [ - 4620, - 4623 + 4887, + 4890 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 47 }, "end": { - "line": 144, + "line": 156, "column": 50 } } }, "range": [ - 4590, - 4623 + 4857, + 4890 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 17 }, "end": { - "line": 144, + "line": 156, "column": 50 } } @@ -8489,16 +8890,16 @@ "type": "Identifier", "name": "x", "range": [ - 4624, - 4625 + 4891, + 4892 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 51 }, "end": { - "line": 144, + "line": 156, "column": 52 } } @@ -8516,16 +8917,16 @@ "object": { "type": "ThisExpression", "range": [ - 4629, - 4633 + 4896, + 4900 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 56 }, "end": { - "line": 144, + "line": 156, "column": 60 } } @@ -8534,31 +8935,31 @@ "type": "Identifier", "name": "_data", "range": [ - 4634, - 4639 + 4901, + 4906 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 61 }, "end": { - "line": 144, + "line": 156, "column": 66 } } }, "range": [ - 4629, - 4639 + 4896, + 4906 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 56 }, "end": { - "line": 144, + "line": 156, "column": 66 } } @@ -8567,31 +8968,31 @@ "type": "Identifier", "name": "type", "range": [ - 4640, - 4644 + 4907, + 4911 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 67 }, "end": { - "line": 144, + "line": 156, "column": 71 } } }, "range": [ - 4629, - 4645 + 4896, + 4912 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 56 }, "end": { - "line": 144, + "line": 156, "column": 72 } } @@ -8600,31 +9001,31 @@ "type": "Identifier", "name": "x", "range": [ - 4646, - 4647 + 4913, + 4914 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 73 }, "end": { - "line": 144, + "line": 156, "column": 74 } } }, "range": [ - 4629, - 4648 + 4896, + 4915 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 56 }, "end": { - "line": 144, + "line": 156, "column": 75 } } @@ -8632,94 +9033,94 @@ "generator": false, "expression": true, "range": [ - 4624, - 4648 + 4891, + 4915 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 51 }, "end": { - "line": 144, + "line": 156, "column": 75 } } } ], "range": [ - 4590, - 4649 + 4857, + 4916 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 17 }, "end": { - "line": 144, + "line": 156, "column": 76 } } }, "range": [ - 4583, - 4650 + 4850, + 4917 ], "loc": { "start": { - "line": 144, + "line": 156, "column": 10 }, "end": { - "line": 144, + "line": 156, "column": 77 } } } ], "range": [ - 4571, - 4660 + 4838, + 4927 ], "loc": { "start": { - "line": 143, + "line": 155, "column": 15 }, "end": { - "line": 145, + "line": 157, "column": 9 } } }, "range": [ - 4190, - 4660 + 4457, + 4927 ], "loc": { "start": { - "line": 131, + "line": 143, "column": 8 }, "end": { - "line": 145, + "line": 157, "column": 9 } } } ], "range": [ - 4129, - 4668 + 4396, + 4935 ], "loc": { "start": { - "line": 129, + "line": 141, "column": 22 }, "end": { - "line": 146, + "line": 158, "column": 7 } } @@ -8735,16 +9136,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 4694, - 4703 + 4961, + 4970 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 18 }, "end": { - "line": 147, + "line": 159, "column": 27 } } @@ -8761,16 +9162,16 @@ }, "tail": false, "range": [ - 4704, - 4721 + 4971, + 4988 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 28 }, "end": { - "line": 147, + "line": 159, "column": 45 } } @@ -8783,16 +9184,16 @@ }, "tail": true, "range": [ - 4725, - 4728 + 4992, + 4995 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 49 }, "end": { - "line": 147, + "line": 159, "column": 52 } } @@ -8803,110 +9204,110 @@ "type": "Identifier", "name": "type", "range": [ - 4721, - 4725 + 4988, + 4992 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 45 }, "end": { - "line": 147, + "line": 159, "column": 49 } } } ], "range": [ - 4704, - 4728 + 4971, + 4995 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 28 }, "end": { - "line": 147, + "line": 159, "column": 52 } } } ], "range": [ - 4690, - 4729 + 4957, + 4996 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 14 }, "end": { - "line": 147, + "line": 159, "column": 53 } } }, "range": [ - 4684, - 4730 + 4951, + 4997 ], "loc": { "start": { - "line": 147, + "line": 159, "column": 8 }, "end": { - "line": 147, + "line": 159, "column": 54 } } } ], "range": [ - 4674, - 4738 + 4941, + 5005 ], "loc": { "start": { - "line": 146, + "line": 158, "column": 13 }, "end": { - "line": 148, + "line": 160, "column": 7 } } }, "range": [ - 4113, - 4738 + 4380, + 5005 ], "loc": { "start": { - "line": 129, + "line": 141, "column": 6 }, "end": { - "line": 148, + "line": 160, "column": 7 } } } ], "range": [ - 4067, - 4744 + 4334, + 5011 ], "loc": { "start": { - "line": 127, + "line": 139, "column": 14 }, "end": { - "line": 149, + "line": 161, "column": 5 } } @@ -8922,16 +9323,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 4768, - 4777 + 5035, + 5044 ], "loc": { "start": { - "line": 150, + "line": 162, "column": 16 }, "end": { - "line": 150, + "line": 162, "column": 25 } } @@ -8948,16 +9349,16 @@ }, "tail": true, "range": [ - 4778, - 4803 + 5045, + 5070 ], "loc": { "start": { - "line": 150, + "line": 162, "column": 26 }, "end": { - "line": 150, + "line": 162, "column": 51 } } @@ -8965,94 +9366,94 @@ ], "expressions": [], "range": [ - 4778, - 4803 + 5045, + 5070 ], "loc": { "start": { - "line": 150, + "line": 162, "column": 26 }, "end": { - "line": 150, + "line": 162, "column": 51 } } } ], "range": [ - 4764, - 4804 + 5031, + 5071 ], "loc": { "start": { - "line": 150, + "line": 162, "column": 12 }, "end": { - "line": 150, + "line": 162, "column": 52 } } }, "range": [ - 4758, - 4805 + 5025, + 5072 ], "loc": { "start": { - "line": 150, + "line": 162, "column": 6 }, "end": { - "line": 150, + "line": 162, "column": 53 } } } ], "range": [ - 4750, - 4811 + 5017, + 5078 ], "loc": { "start": { - "line": 149, + "line": 161, "column": 11 }, "end": { - "line": 151, + "line": 163, "column": 5 } } }, "range": [ - 4057, - 4811 + 4324, + 5078 ], "loc": { "start": { - "line": 127, + "line": 139, "column": 4 }, "end": { - "line": 151, + "line": 163, "column": 5 } } } ], "range": [ - 4031, - 4815 + 4298, + 5082 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 17 }, "end": { - "line": 152, + "line": 164, "column": 3 } } @@ -9060,16 +9461,16 @@ "generator": false, "expression": false, "range": [ - 4020, - 4815 + 4287, + 5082 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 6 }, "end": { - "line": 152, + "line": 164, "column": 3 } } @@ -9077,16 +9478,16 @@ "kind": "method", "computed": false, "range": [ - 4016, - 4815 + 4283, + 5082 ], "loc": { "start": { - "line": 125, + "line": 137, "column": 2 }, "end": { - "line": 152, + "line": 164, "column": 3 } }, @@ -9095,16 +9496,16 @@ "type": "Block", "value": "*\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n ", "range": [ - 3521, - 4013 + 3788, + 4280 ], "loc": { "start": { - "line": 114, + "line": 126, "column": 2 }, "end": { - "line": 124, + "line": 136, "column": 5 } } @@ -9113,18 +9514,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 4819, - 5151 + 5086, + 5402 ], "loc": { "start": { - "line": 154, + "line": 166, "column": 2 }, "end": { - "line": 161, + "line": 173, "column": 5 } } @@ -9138,16 +9539,16 @@ "type": "Identifier", "name": "push", "range": [ - 5154, - 5158 + 5405, + 5409 ], "loc": { "start": { - "line": 162, + "line": 174, "column": 2 }, "end": { - "line": 162, + "line": 174, "column": 6 } } @@ -9160,16 +9561,16 @@ "type": "Identifier", "name": "root", "range": [ - 5159, - 5163 + 5410, + 5414 ], "loc": { "start": { - "line": 162, + "line": 174, "column": 7 }, "end": { - "line": 162, + "line": 174, "column": 11 } } @@ -9193,16 +9594,16 @@ "type": "Identifier", "name": "root", "range": [ - 5175, - 5179 + 5426, + 5430 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 8 }, "end": { - "line": 163, + "line": 175, "column": 12 } } @@ -9211,31 +9612,31 @@ "type": "Identifier", "name": "data", "range": [ - 5180, - 5184 + 5431, + 5435 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 13 }, "end": { - "line": 163, + "line": 175, "column": 17 } } }, "range": [ - 5175, - 5184 + 5426, + 5435 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 8 }, "end": { - "line": 163, + "line": 175, "column": 17 } } @@ -9244,31 +9645,31 @@ "type": "Identifier", "name": "constructor", "range": [ - 5185, - 5196 + 5436, + 5447 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 18 }, "end": { - "line": 163, + "line": 175, "column": 29 } } }, "range": [ - 5175, - 5196 + 5426, + 5447 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 8 }, "end": { - "line": 163, + "line": 175, "column": 29 } } @@ -9277,31 +9678,31 @@ "type": "Identifier", "name": "Array", "range": [ - 5201, - 5206 + 5452, + 5457 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 34 }, "end": { - "line": 163, + "line": 175, "column": 39 } } }, "range": [ - 5175, - 5206 + 5426, + 5457 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 8 }, "end": { - "line": 163, + "line": 175, "column": 39 } } @@ -9323,16 +9724,16 @@ "type": "Identifier", "name": "root", "range": [ - 5216, - 5220 + 5467, + 5471 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 6 }, "end": { - "line": 164, + "line": 176, "column": 10 } } @@ -9341,31 +9742,31 @@ "type": "Identifier", "name": "data", "range": [ - 5221, - 5225 + 5472, + 5476 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 11 }, "end": { - "line": 164, + "line": 176, "column": 15 } } }, "range": [ - 5216, - 5225 + 5467, + 5476 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 6 }, "end": { - "line": 164, + "line": 176, "column": 15 } } @@ -9374,31 +9775,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 5226, - 5233 + 5477, + 5484 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 16 }, "end": { - "line": 164, + "line": 176, "column": 23 } } }, "range": [ - 5216, - 5233 + 5467, + 5484 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 6 }, "end": { - "line": 164, + "line": 176, "column": 23 } } @@ -9412,16 +9813,16 @@ "type": "Identifier", "name": "x", "range": [ - 5234, - 5235 + 5485, + 5486 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 24 }, "end": { - "line": 164, + "line": 176, "column": 25 } } @@ -9435,16 +9836,16 @@ "object": { "type": "ThisExpression", "range": [ - 5239, - 5243 + 5490, + 5494 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 29 }, "end": { - "line": 164, + "line": 176, "column": 33 } } @@ -9453,31 +9854,31 @@ "type": "Identifier", "name": "add", "range": [ - 5244, - 5247 + 5495, + 5498 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 34 }, "end": { - "line": 164, + "line": 176, "column": 37 } } }, "range": [ - 5239, - 5247 + 5490, + 5498 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 29 }, "end": { - "line": 164, + "line": 176, "column": 37 } } @@ -9487,32 +9888,32 @@ "type": "Identifier", "name": "x", "range": [ - 5248, - 5249 + 5499, + 5500 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 38 }, "end": { - "line": 164, + "line": 176, "column": 39 } } } ], "range": [ - 5239, - 5250 + 5490, + 5501 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 29 }, "end": { - "line": 164, + "line": 176, "column": 40 } } @@ -9520,63 +9921,63 @@ "generator": false, "expression": true, "range": [ - 5234, - 5250 + 5485, + 5501 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 24 }, "end": { - "line": 164, + "line": 176, "column": 40 } } } ], "range": [ - 5216, - 5251 + 5467, + 5502 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 6 }, "end": { - "line": 164, + "line": 176, "column": 41 } } }, "range": [ - 5216, - 5252 + 5467, + 5503 ], "loc": { "start": { - "line": 164, + "line": 176, "column": 6 }, "end": { - "line": 164, + "line": 176, "column": 42 } } } ], "range": [ - 5208, - 5258 + 5459, + 5509 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 41 }, "end": { - "line": 165, + "line": 177, "column": 5 } } @@ -9594,16 +9995,16 @@ "object": { "type": "ThisExpression", "range": [ - 5272, - 5276 + 5523, + 5527 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 6 }, "end": { - "line": 166, + "line": 178, "column": 10 } } @@ -9612,31 +10013,31 @@ "type": "Identifier", "name": "add", "range": [ - 5277, - 5280 + 5528, + 5531 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 11 }, "end": { - "line": 166, + "line": 178, "column": 14 } } }, "range": [ - 5272, - 5280 + 5523, + 5531 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 6 }, "end": { - "line": 166, + "line": 178, "column": 14 } } @@ -9649,16 +10050,16 @@ "type": "Identifier", "name": "root", "range": [ - 5281, - 5285 + 5532, + 5536 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 15 }, "end": { - "line": 166, + "line": 178, "column": 19 } } @@ -9667,93 +10068,93 @@ "type": "Identifier", "name": "data", "range": [ - 5286, - 5290 + 5537, + 5541 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 20 }, "end": { - "line": 166, + "line": 178, "column": 24 } } }, "range": [ - 5281, - 5290 + 5532, + 5541 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 15 }, "end": { - "line": 166, + "line": 178, "column": 24 } } } ], "range": [ - 5272, - 5291 + 5523, + 5542 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 6 }, "end": { - "line": 166, + "line": 178, "column": 25 } } }, "range": [ - 5272, - 5292 + 5523, + 5543 ], "loc": { "start": { - "line": 166, + "line": 178, "column": 6 }, "end": { - "line": 166, + "line": 178, "column": 26 } } } ], "range": [ - 5264, - 5298 + 5515, + 5549 ], "loc": { "start": { - "line": 165, + "line": 177, "column": 11 }, "end": { - "line": 167, + "line": 179, "column": 5 } } }, "range": [ - 5171, - 5298 + 5422, + 5549 ], "loc": { "start": { - "line": 163, + "line": 175, "column": 4 }, "end": { - "line": 167, + "line": 179, "column": 5 } } @@ -9767,16 +10168,16 @@ "type": "Identifier", "name": "root", "range": [ - 5307, - 5311 + 5558, + 5562 ], "loc": { "start": { - "line": 168, + "line": 180, "column": 8 }, "end": { - "line": 168, + "line": 180, "column": 12 } } @@ -9785,31 +10186,31 @@ "type": "Identifier", "name": "included", "range": [ - 5312, - 5320 + 5563, + 5571 ], "loc": { "start": { - "line": 168, + "line": 180, "column": 13 }, "end": { - "line": 168, + "line": 180, "column": 21 } } }, "range": [ - 5307, - 5320 + 5558, + 5571 ], "loc": { "start": { - "line": 168, + "line": 180, "column": 8 }, "end": { - "line": 168, + "line": 180, "column": 21 } } @@ -9831,16 +10232,16 @@ "type": "Identifier", "name": "root", "range": [ - 5330, - 5334 + 5581, + 5585 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 6 }, "end": { - "line": 169, + "line": 181, "column": 10 } } @@ -9849,31 +10250,31 @@ "type": "Identifier", "name": "included", "range": [ - 5335, - 5343 + 5586, + 5594 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 11 }, "end": { - "line": 169, + "line": 181, "column": 19 } } }, "range": [ - 5330, - 5343 + 5581, + 5594 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 6 }, "end": { - "line": 169, + "line": 181, "column": 19 } } @@ -9882,31 +10283,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 5344, - 5351 + 5595, + 5602 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 20 }, "end": { - "line": 169, + "line": 181, "column": 27 } } }, "range": [ - 5330, - 5351 + 5581, + 5602 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 6 }, "end": { - "line": 169, + "line": 181, "column": 27 } } @@ -9920,16 +10321,16 @@ "type": "Identifier", "name": "x", "range": [ - 5352, - 5353 + 5603, + 5604 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 28 }, "end": { - "line": 169, + "line": 181, "column": 29 } } @@ -9943,16 +10344,16 @@ "object": { "type": "ThisExpression", "range": [ - 5357, - 5361 + 5608, + 5612 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 33 }, "end": { - "line": 169, + "line": 181, "column": 37 } } @@ -9961,31 +10362,31 @@ "type": "Identifier", "name": "add", "range": [ - 5362, - 5365 + 5613, + 5616 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 38 }, "end": { - "line": 169, + "line": 181, "column": 41 } } }, "range": [ - 5357, - 5365 + 5608, + 5616 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 33 }, "end": { - "line": 169, + "line": 181, "column": 41 } } @@ -9995,32 +10396,32 @@ "type": "Identifier", "name": "x", "range": [ - 5366, - 5367 + 5617, + 5618 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 42 }, "end": { - "line": 169, + "line": 181, "column": 43 } } } ], "range": [ - 5357, - 5368 + 5608, + 5619 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 33 }, "end": { - "line": 169, + "line": 181, "column": 44 } } @@ -10028,95 +10429,95 @@ "generator": false, "expression": true, "range": [ - 5352, - 5368 + 5603, + 5619 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 28 }, "end": { - "line": 169, + "line": 181, "column": 44 } } } ], "range": [ - 5330, - 5369 + 5581, + 5620 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 6 }, "end": { - "line": 169, + "line": 181, "column": 45 } } }, "range": [ - 5330, - 5370 + 5581, + 5621 ], "loc": { "start": { - "line": 169, + "line": 181, "column": 6 }, "end": { - "line": 169, + "line": 181, "column": 46 } } } ], "range": [ - 5322, - 5376 + 5573, + 5627 ], "loc": { "start": { - "line": 168, + "line": 180, "column": 23 }, "end": { - "line": 170, + "line": 182, "column": 5 } } }, "alternate": null, "range": [ - 5303, - 5376 + 5554, + 5627 ], "loc": { "start": { - "line": 168, + "line": 180, "column": 4 }, "end": { - "line": 170, + "line": 182, "column": 5 } } } ], "range": [ - 5165, - 5380 + 5416, + 5631 ], "loc": { "start": { - "line": 162, + "line": 174, "column": 13 }, "end": { - "line": 171, + "line": 183, "column": 3 } } @@ -10124,16 +10525,16 @@ "generator": false, "expression": false, "range": [ - 5158, - 5380 + 5409, + 5631 ], "loc": { "start": { - "line": 162, + "line": 174, "column": 6 }, "end": { - "line": 171, + "line": 183, "column": 3 } } @@ -10141,34 +10542,34 @@ "kind": "method", "computed": false, "range": [ - 5154, - 5380 + 5405, + 5631 ], "loc": { "start": { - "line": 162, + "line": 174, "column": 2 }, "end": { - "line": 171, + "line": 183, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 4819, - 5151 + 5086, + 5402 ], "loc": { "start": { - "line": 154, + "line": 166, "column": 2 }, "end": { - "line": 161, + "line": 173, "column": 5 } } @@ -10177,18 +10578,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", "range": [ - 5384, - 5724 + 5635, + 5959 ], "loc": { "start": { - "line": 173, + "line": 185, "column": 2 }, "end": { - "line": 180, + "line": 192, "column": 5 } } @@ -10202,16 +10603,16 @@ "type": "Identifier", "name": "remove", "range": [ - 5727, - 5733 + 5962, + 5968 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 2 }, "end": { - "line": 181, + "line": 193, "column": 8 } } @@ -10224,16 +10625,16 @@ "type": "Identifier", "name": "type", "range": [ - 5734, - 5738 + 5969, + 5973 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 9 }, "end": { - "line": 181, + "line": 193, "column": 13 } } @@ -10242,16 +10643,16 @@ "type": "Identifier", "name": "id", "range": [ - 5740, - 5742 + 5975, + 5977 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 15 }, "end": { - "line": 181, + "line": 193, "column": 17 } } @@ -10266,16 +10667,16 @@ "type": "Identifier", "name": "type", "range": [ - 5754, - 5758 + 5989, + 5993 ], "loc": { "start": { - "line": 182, + "line": 194, "column": 8 }, "end": { - "line": 182, + "line": 194, "column": 12 } } @@ -10292,52 +10693,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 5772, - 5777 + 6007, + 6011 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 10 }, "end": { - "line": 183, - "column": 15 + "line": 195, + "column": 14 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 5778, - 5783 + 6012, + 6018 ], "loc": { "start": { - "line": 183, - "column": 16 + "line": 195, + "column": 15 }, "end": { - "line": 183, + "line": 195, "column": 21 } } }, "range": [ - 5772, - 5783 + 6007, + 6018 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 10 }, "end": { - "line": 183, + "line": 195, "column": 21 } } @@ -10346,31 +10746,31 @@ "type": "Identifier", "name": "type", "range": [ - 5784, - 5788 + 6019, + 6023 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 22 }, "end": { - "line": 183, + "line": 195, "column": 26 } } }, "range": [ - 5772, - 5789 + 6007, + 6024 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 10 }, "end": { - "line": 183, + "line": 195, "column": 27 } } @@ -10384,16 +10784,16 @@ "type": "Identifier", "name": "id", "range": [ - 5805, - 5807 + 6040, + 6042 ], "loc": { "start": { - "line": 184, + "line": 196, "column": 12 }, "end": { - "line": 184, + "line": 196, "column": 14 } } @@ -10410,16 +10810,16 @@ "type": "Identifier", "name": "resource", "range": [ - 5825, - 5833 + 6060, + 6068 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 14 }, "end": { - "line": 185, + "line": 197, "column": 22 } } @@ -10436,16 +10836,16 @@ "object": { "type": "ThisExpression", "range": [ - 5836, - 5840 + 6071, + 6075 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 25 }, "end": { - "line": 185, + "line": 197, "column": 29 } } @@ -10454,31 +10854,31 @@ "type": "Identifier", "name": "_data", "range": [ - 5841, - 5846 + 6076, + 6081 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 30 }, "end": { - "line": 185, + "line": 197, "column": 35 } } }, "range": [ - 5836, - 5846 + 6071, + 6081 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 25 }, "end": { - "line": 185, + "line": 197, "column": 35 } } @@ -10487,31 +10887,31 @@ "type": "Identifier", "name": "type", "range": [ - 5847, - 5851 + 6082, + 6086 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 36 }, "end": { - "line": 185, + "line": 197, "column": 40 } } }, "range": [ - 5836, - 5852 + 6071, + 6087 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 25 }, "end": { - "line": 185, + "line": 197, "column": 41 } } @@ -10520,46 +10920,46 @@ "type": "Identifier", "name": "id", "range": [ - 5853, - 5855 + 6088, + 6090 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 42 }, "end": { - "line": 185, + "line": 197, "column": 44 } } }, "range": [ - 5836, - 5856 + 6071, + 6091 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 25 }, "end": { - "line": 185, + "line": 197, "column": 45 } } }, "range": [ - 5825, - 5856 + 6060, + 6091 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 14 }, "end": { - "line": 185, + "line": 197, "column": 45 } } @@ -10567,16 +10967,16 @@ ], "kind": "let", "range": [ - 5821, - 5857 + 6056, + 6092 ], "loc": { "start": { - "line": 185, + "line": 197, "column": 10 }, "end": { - "line": 185, + "line": 197, "column": 46 } } @@ -10587,16 +10987,16 @@ "type": "Identifier", "name": "resource", "range": [ - 5872, - 5880 + 6107, + 6115 ], "loc": { "start": { - "line": 186, + "line": 198, "column": 14 }, "end": { - "line": 186, + "line": 198, "column": 22 } } @@ -10614,16 +11014,16 @@ "object": { "type": "ThisExpression", "range": [ - 5896, - 5900 + 6131, + 6135 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 12 }, "end": { - "line": 187, + "line": 199, "column": 16 } } @@ -10632,31 +11032,31 @@ "type": "Identifier", "name": "_remove", "range": [ - 5901, - 5908 + 6136, + 6143 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 17 }, "end": { - "line": 187, + "line": 199, "column": 24 } } }, "range": [ - 5896, - 5908 + 6131, + 6143 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 12 }, "end": { - "line": 187, + "line": 199, "column": 24 } } @@ -10666,95 +11066,95 @@ "type": "Identifier", "name": "resource", "range": [ - 5909, - 5917 + 6144, + 6152 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 25 }, "end": { - "line": 187, + "line": 199, "column": 33 } } } ], "range": [ - 5896, - 5918 + 6131, + 6153 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 12 }, "end": { - "line": 187, + "line": 199, "column": 34 } } }, "range": [ - 5896, - 5919 + 6131, + 6154 ], "loc": { "start": { - "line": 187, + "line": 199, "column": 12 }, "end": { - "line": 187, + "line": 199, "column": 35 } } } ], "range": [ - 5882, - 5931 + 6117, + 6166 ], "loc": { "start": { - "line": 186, + "line": 198, "column": 24 }, "end": { - "line": 188, + "line": 200, "column": 11 } } }, "alternate": null, "range": [ - 5868, - 5931 + 6103, + 6166 ], "loc": { "start": { - "line": 186, + "line": 198, "column": 10 }, "end": { - "line": 188, + "line": 200, "column": 11 } } } ], "range": [ - 5809, - 5941 + 6044, + 6176 ], "loc": { "start": { - "line": 184, + "line": 196, "column": 16 }, "end": { - "line": 189, + "line": 201, "column": 9 } } @@ -10778,16 +11178,16 @@ "type": "Identifier", "name": "Object", "range": [ - 5959, - 5965 + 6194, + 6200 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 16 } } @@ -10796,31 +11196,31 @@ "type": "Identifier", "name": "keys", "range": [ - 5966, - 5970 + 6201, + 6205 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 17 }, "end": { - "line": 190, + "line": 202, "column": 21 } } }, "range": [ - 5959, - 5970 + 6194, + 6205 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 21 } } @@ -10835,16 +11235,16 @@ "object": { "type": "ThisExpression", "range": [ - 5971, - 5975 + 6206, + 6210 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 22 }, "end": { - "line": 190, + "line": 202, "column": 26 } } @@ -10853,31 +11253,31 @@ "type": "Identifier", "name": "_data", "range": [ - 5976, - 5981 + 6211, + 6216 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 27 }, "end": { - "line": 190, + "line": 202, "column": 32 } } }, "range": [ - 5971, - 5981 + 6206, + 6216 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 22 }, "end": { - "line": 190, + "line": 202, "column": 32 } } @@ -10886,47 +11286,47 @@ "type": "Identifier", "name": "type", "range": [ - 5982, - 5986 + 6217, + 6221 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 33 }, "end": { - "line": 190, + "line": 202, "column": 37 } } }, "range": [ - 5971, - 5987 + 6206, + 6222 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 22 }, "end": { - "line": 190, + "line": 202, "column": 38 } } } ], "range": [ - 5959, - 5988 + 6194, + 6223 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 39 } } @@ -10935,31 +11335,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 5989, - 5996 + 6224, + 6231 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 40 }, "end": { - "line": 190, + "line": 202, "column": 47 } } }, "range": [ - 5959, - 5996 + 6194, + 6231 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 47 } } @@ -10973,16 +11373,16 @@ "type": "Identifier", "name": "id", "range": [ - 5997, - 5999 + 6232, + 6234 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 48 }, "end": { - "line": 190, + "line": 202, "column": 50 } } @@ -10996,16 +11396,16 @@ "object": { "type": "ThisExpression", "range": [ - 6003, - 6007 + 6238, + 6242 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 54 }, "end": { - "line": 190, + "line": 202, "column": 58 } } @@ -11014,31 +11414,31 @@ "type": "Identifier", "name": "remove", "range": [ - 6008, - 6014 + 6243, + 6249 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 59 }, "end": { - "line": 190, + "line": 202, "column": 65 } } }, "range": [ - 6003, - 6014 + 6238, + 6249 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 54 }, "end": { - "line": 190, + "line": 202, "column": 65 } } @@ -11048,16 +11448,16 @@ "type": "Identifier", "name": "type", "range": [ - 6015, - 6019 + 6250, + 6254 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 66 }, "end": { - "line": 190, + "line": 202, "column": 70 } } @@ -11066,32 +11466,32 @@ "type": "Identifier", "name": "id", "range": [ - 6021, - 6023 + 6256, + 6258 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 72 }, "end": { - "line": 190, + "line": 202, "column": 74 } } } ], "range": [ - 6003, - 6024 + 6238, + 6259 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 54 }, "end": { - "line": 190, + "line": 202, "column": 75 } } @@ -11099,94 +11499,94 @@ "generator": false, "expression": true, "range": [ - 5997, - 6024 + 6232, + 6259 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 48 }, "end": { - "line": 190, + "line": 202, "column": 75 } } } ], "range": [ - 5959, - 6025 + 6194, + 6260 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 76 } } }, "range": [ - 5959, - 6026 + 6194, + 6261 ], "loc": { "start": { - "line": 190, + "line": 202, "column": 10 }, "end": { - "line": 190, + "line": 202, "column": 77 } } } ], "range": [ - 5947, - 6036 + 6182, + 6271 ], "loc": { "start": { - "line": 189, + "line": 201, "column": 15 }, "end": { - "line": 191, + "line": 203, "column": 9 } } }, "range": [ - 5801, - 6036 + 6036, + 6271 ], "loc": { "start": { - "line": 184, + "line": 196, "column": 8 }, "end": { - "line": 191, + "line": 203, "column": 9 } } } ], "range": [ - 5791, - 6044 + 6026, + 6279 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 29 }, "end": { - "line": 192, + "line": 204, "column": 7 } } @@ -11202,16 +11602,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 6070, - 6079 + 6305, + 6314 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 18 }, "end": { - "line": 193, + "line": 205, "column": 27 } } @@ -11228,16 +11628,16 @@ }, "tail": false, "range": [ - 6080, - 6097 + 6315, + 6332 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 28 }, "end": { - "line": 193, + "line": 205, "column": 45 } } @@ -11250,16 +11650,16 @@ }, "tail": true, "range": [ - 6101, - 6104 + 6336, + 6339 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 49 }, "end": { - "line": 193, + "line": 205, "column": 52 } } @@ -11270,110 +11670,110 @@ "type": "Identifier", "name": "type", "range": [ - 6097, - 6101 + 6332, + 6336 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 45 }, "end": { - "line": 193, + "line": 205, "column": 49 } } } ], "range": [ - 6080, - 6104 + 6315, + 6339 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 28 }, "end": { - "line": 193, + "line": 205, "column": 52 } } } ], "range": [ - 6066, - 6105 + 6301, + 6340 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 14 }, "end": { - "line": 193, + "line": 205, "column": 53 } } }, "range": [ - 6060, - 6106 + 6295, + 6341 ], "loc": { "start": { - "line": 193, + "line": 205, "column": 8 }, "end": { - "line": 193, + "line": 205, "column": 54 } } } ], "range": [ - 6050, - 6114 + 6285, + 6349 ], "loc": { "start": { - "line": 192, + "line": 204, "column": 13 }, "end": { - "line": 194, + "line": 206, "column": 7 } } }, "range": [ - 5768, - 6114 + 6003, + 6349 ], "loc": { "start": { - "line": 183, + "line": 195, "column": 6 }, "end": { - "line": 194, + "line": 206, "column": 7 } } } ], "range": [ - 5760, - 6120 + 5995, + 6355 ], "loc": { "start": { - "line": 182, + "line": 194, "column": 14 }, "end": { - "line": 195, + "line": 207, "column": 5 } } @@ -11389,16 +11789,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 6144, - 6153 + 6379, + 6388 ], "loc": { "start": { - "line": 196, + "line": 208, "column": 16 }, "end": { - "line": 196, + "line": 208, "column": 25 } } @@ -11415,16 +11815,16 @@ }, "tail": true, "range": [ - 6154, - 6189 + 6389, + 6424 ], "loc": { "start": { - "line": 196, + "line": 208, "column": 26 }, "end": { - "line": 196, + "line": 208, "column": 61 } } @@ -11432,94 +11832,94 @@ ], "expressions": [], "range": [ - 6154, - 6189 + 6389, + 6424 ], "loc": { "start": { - "line": 196, + "line": 208, "column": 26 }, "end": { - "line": 196, + "line": 208, "column": 61 } } } ], "range": [ - 6140, - 6190 + 6375, + 6425 ], "loc": { "start": { - "line": 196, + "line": 208, "column": 12 }, "end": { - "line": 196, + "line": 208, "column": 62 } } }, "range": [ - 6134, - 6191 + 6369, + 6426 ], "loc": { "start": { - "line": 196, + "line": 208, "column": 6 }, "end": { - "line": 196, + "line": 208, "column": 63 } } } ], "range": [ - 6126, - 6197 + 6361, + 6432 ], "loc": { "start": { - "line": 195, + "line": 207, "column": 11 }, "end": { - "line": 197, + "line": 209, "column": 5 } } }, "range": [ - 5750, - 6197 + 5985, + 6432 ], "loc": { "start": { - "line": 182, + "line": 194, "column": 4 }, "end": { - "line": 197, + "line": 209, "column": 5 } } } ], "range": [ - 5744, - 6201 + 5979, + 6436 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 19 }, "end": { - "line": 198, + "line": 210, "column": 3 } } @@ -11527,16 +11927,16 @@ "generator": false, "expression": false, "range": [ - 5733, - 6201 + 5968, + 6436 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 8 }, "end": { - "line": 198, + "line": 210, "column": 3 } } @@ -11544,34 +11944,34 @@ "kind": "method", "computed": false, "range": [ - 5727, - 6201 + 5962, + 6436 ], "loc": { "start": { - "line": 181, + "line": 193, "column": 2 }, "end": { - "line": 198, + "line": 210, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", "range": [ - 5384, - 5724 + 5635, + 5959 ], "loc": { "start": { - "line": 173, + "line": 185, "column": 2 }, "end": { - "line": 180, + "line": 192, "column": 5 } } @@ -11585,16 +11985,16 @@ "type": "Identifier", "name": "_addField", "range": [ - 6205, - 6214 + 6440, + 6449 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 2 }, "end": { - "line": 200, + "line": 212, "column": 11 } } @@ -11607,16 +12007,16 @@ "type": "Identifier", "name": "object", "range": [ - 6215, - 6221 + 6450, + 6456 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 12 }, "end": { - "line": 200, + "line": 212, "column": 18 } } @@ -11625,16 +12025,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6223, - 6231 + 6458, + 6466 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 20 }, "end": { - "line": 200, + "line": 212, "column": 28 } } @@ -11643,16 +12043,16 @@ "type": "Identifier", "name": "definition", "range": [ - 6233, - 6243 + 6468, + 6478 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 30 }, "end": { - "line": 200, + "line": 212, "column": 40 } } @@ -11661,16 +12061,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6245, - 6254 + 6480, + 6489 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 42 }, "end": { - "line": 200, + "line": 212, "column": 51 } } @@ -11688,16 +12088,16 @@ "type": "Identifier", "name": "field", "range": [ - 6266, - 6271 + 6501, + 6506 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 8 }, "end": { - "line": 201, + "line": 213, "column": 13 } } @@ -11709,16 +12109,16 @@ "type": "Identifier", "name": "definition", "range": [ - 6274, - 6284 + 6509, + 6519 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 16 }, "end": { - "line": 201, + "line": 213, "column": 26 } } @@ -11727,46 +12127,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6285, - 6294 + 6520, + 6529 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 27 }, "end": { - "line": 201, + "line": 213, "column": 36 } } }, "range": [ - 6274, - 6295 + 6509, + 6530 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 16 }, "end": { - "line": 201, + "line": 213, "column": 37 } } }, "range": [ - 6266, - 6295 + 6501, + 6530 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 8 }, "end": { - "line": 201, + "line": 213, "column": 37 } } @@ -11774,16 +12174,16 @@ ], "kind": "var", "range": [ - 6262, - 6296 + 6497, + 6531 ], "loc": { "start": { - "line": 201, + "line": 213, "column": 4 }, "end": { - "line": 201, + "line": 213, "column": 38 } } @@ -11797,16 +12197,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 6305, - 6313 + 6540, + 6548 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 8 }, "end": { - "line": 202, + "line": 214, "column": 16 } } @@ -11823,16 +12223,16 @@ "type": "Identifier", "name": "field", "range": [ - 6316, - 6321 + 6551, + 6556 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 19 }, "end": { - "line": 202, + "line": 214, "column": 24 } } @@ -11841,31 +12241,31 @@ "type": "Identifier", "name": "deserialize", "range": [ - 6322, - 6333 + 6557, + 6568 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 25 }, "end": { - "line": 202, + "line": 214, "column": 36 } } }, "range": [ - 6316, - 6333 + 6551, + 6568 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 19 }, "end": { - "line": 202, + "line": 214, "column": 36 } } @@ -11874,31 +12274,31 @@ "type": "Identifier", "name": "call", "range": [ - 6334, - 6338 + 6569, + 6573 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 37 }, "end": { - "line": 202, + "line": 214, "column": 41 } } }, "range": [ - 6316, - 6338 + 6551, + 6573 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 19 }, "end": { - "line": 202, + "line": 214, "column": 41 } } @@ -11907,16 +12307,16 @@ { "type": "ThisExpression", "range": [ - 6339, - 6343 + 6574, + 6578 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 42 }, "end": { - "line": 202, + "line": 214, "column": 46 } } @@ -11925,16 +12325,16 @@ "type": "Identifier", "name": "object", "range": [ - 6345, - 6351 + 6580, + 6586 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 48 }, "end": { - "line": 202, + "line": 214, "column": 54 } } @@ -11943,47 +12343,47 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6353, - 6362 + 6588, + 6597 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 56 }, "end": { - "line": 202, + "line": 214, "column": 65 } } } ], "range": [ - 6316, - 6363 + 6551, + 6598 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 19 }, "end": { - "line": 202, + "line": 214, "column": 66 } } }, "range": [ - 6305, - 6363 + 6540, + 6598 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 8 }, "end": { - "line": 202, + "line": 214, "column": 66 } } @@ -11991,16 +12391,16 @@ ], "kind": "var", "range": [ - 6301, - 6364 + 6536, + 6599 ], "loc": { "start": { - "line": 202, + "line": 214, "column": 4 }, "end": { - "line": 202, + "line": 214, "column": 67 } } @@ -12017,32 +12417,32 @@ "type": "Identifier", "name": "newValue", "range": [ - 6380, - 6388 + 6615, + 6623 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 15 }, "end": { - "line": 203, + "line": 215, "column": 23 } } }, "prefix": true, "range": [ - 6373, - 6388 + 6608, + 6623 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 8 }, "end": { - "line": 203, + "line": 215, "column": 23 } } @@ -12052,31 +12452,31 @@ "value": "undefined", "raw": "\"undefined\"", "range": [ - 6393, - 6404 + 6628, + 6639 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 28 }, "end": { - "line": 203, + "line": 215, "column": 39 } } }, "range": [ - 6373, - 6404 + 6608, + 6639 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 8 }, "end": { - "line": 203, + "line": 215, "column": 39 } } @@ -12096,16 +12496,16 @@ "type": "Identifier", "name": "field", "range": [ - 6418, - 6423 + 6653, + 6658 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 10 }, "end": { - "line": 204, + "line": 216, "column": 15 } } @@ -12114,31 +12514,31 @@ "type": "Identifier", "name": "type", "range": [ - 6424, - 6428 + 6659, + 6663 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 16 }, "end": { - "line": 204, + "line": 216, "column": 20 } } }, "range": [ - 6418, - 6428 + 6653, + 6663 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 10 }, "end": { - "line": 204, + "line": 216, "column": 20 } } @@ -12148,31 +12548,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 6433, - 6442 + 6668, + 6677 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 25 }, "end": { - "line": 204, + "line": 216, "column": 34 } } }, "range": [ - 6418, - 6442 + 6653, + 6677 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 10 }, "end": { - "line": 204, + "line": 216, "column": 34 } } @@ -12189,16 +12589,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6458, - 6466 + 6693, + 6701 ], "loc": { "start": { - "line": 205, + "line": 217, "column": 12 }, "end": { - "line": 205, + "line": 217, "column": 20 } } @@ -12207,31 +12607,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6467, - 6476 + 6702, + 6711 ], "loc": { "start": { - "line": 205, + "line": 217, "column": 21 }, "end": { - "line": 205, + "line": 217, "column": 30 } } }, "range": [ - 6458, - 6477 + 6693, + 6712 ], "loc": { "start": { - "line": 205, + "line": 217, "column": 12 }, "end": { - "line": 205, + "line": 217, "column": 31 } } @@ -12249,16 +12649,16 @@ "object": { "type": "ThisExpression", "range": [ - 6491, - 6495 + 6726, + 6730 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 10 }, "end": { - "line": 206, + "line": 218, "column": 14 } } @@ -12267,31 +12667,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 6496, - 6522 + 6731, + 6757 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 15 }, "end": { - "line": 206, + "line": 218, "column": 41 } } }, "range": [ - 6491, - 6522 + 6726, + 6757 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 10 }, "end": { - "line": 206, + "line": 218, "column": 41 } } @@ -12301,16 +12701,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6523, - 6531 + 6758, + 6766 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 42 }, "end": { - "line": 206, + "line": 218, "column": 50 } } @@ -12319,16 +12719,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6533, - 6542 + 6768, + 6777 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 52 }, "end": { - "line": 206, + "line": 218, "column": 61 } } @@ -12340,16 +12740,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6544, - 6552 + 6779, + 6787 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 63 }, "end": { - "line": 206, + "line": 218, "column": 71 } } @@ -12358,31 +12758,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6553, - 6562 + 6788, + 6797 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 72 }, "end": { - "line": 206, + "line": 218, "column": 81 } } }, "range": [ - 6544, - 6563 + 6779, + 6798 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 63 }, "end": { - "line": 206, + "line": 218, "column": 82 } } @@ -12391,79 +12791,79 @@ "type": "Identifier", "name": "field", "range": [ - 6565, - 6570 + 6800, + 6805 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 84 }, "end": { - "line": 206, + "line": 218, "column": 89 } } } ], "range": [ - 6491, - 6571 + 6726, + 6806 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 10 }, "end": { - "line": 206, + "line": 218, "column": 90 } } }, "range": [ - 6491, - 6572 + 6726, + 6807 ], "loc": { "start": { - "line": 206, + "line": 218, "column": 10 }, "end": { - "line": 206, + "line": 218, "column": 91 } } } ], "range": [ - 6479, - 6582 + 6714, + 6817 ], "loc": { "start": { - "line": 205, + "line": 217, "column": 33 }, "end": { - "line": 207, + "line": 219, "column": 9 } } }, "alternate": null, "range": [ - 6454, - 6582 + 6689, + 6817 ], "loc": { "start": { - "line": 205, + "line": 217, "column": 8 }, "end": { - "line": 207, + "line": 219, "column": 9 } } @@ -12474,16 +12874,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 6595, - 6603 + 6830, + 6838 ], "loc": { "start": { - "line": 208, + "line": 220, "column": 12 }, "end": { - "line": 208, + "line": 220, "column": 20 } } @@ -12501,16 +12901,16 @@ "object": { "type": "ThisExpression", "range": [ - 6617, - 6621 + 6852, + 6856 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 10 }, "end": { - "line": 209, + "line": 221, "column": 14 } } @@ -12519,31 +12919,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 6622, - 6645 + 6857, + 6880 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 15 }, "end": { - "line": 209, + "line": 221, "column": 38 } } }, "range": [ - 6617, - 6645 + 6852, + 6880 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 10 }, "end": { - "line": 209, + "line": 221, "column": 38 } } @@ -12553,16 +12953,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6646, - 6654 + 6881, + 6889 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 39 }, "end": { - "line": 209, + "line": 221, "column": 47 } } @@ -12571,16 +12971,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6656, - 6665 + 6891, + 6900 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 49 }, "end": { - "line": 209, + "line": 221, "column": 58 } } @@ -12589,16 +12989,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 6667, - 6675 + 6902, + 6910 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 60 }, "end": { - "line": 209, + "line": 221, "column": 68 } } @@ -12607,95 +13007,95 @@ "type": "Identifier", "name": "field", "range": [ - 6677, - 6682 + 6912, + 6917 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 70 }, "end": { - "line": 209, + "line": 221, "column": 75 } } } ], "range": [ - 6617, - 6683 + 6852, + 6918 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 10 }, "end": { - "line": 209, + "line": 221, "column": 76 } } }, "range": [ - 6617, - 6684 + 6852, + 6919 ], "loc": { "start": { - "line": 209, + "line": 221, "column": 10 }, "end": { - "line": 209, + "line": 221, "column": 77 } } } ], "range": [ - 6605, - 6694 + 6840, + 6929 ], "loc": { "start": { - "line": 208, + "line": 220, "column": 22 }, "end": { - "line": 210, + "line": 222, "column": 9 } } }, "alternate": null, "range": [ - 6591, - 6694 + 6826, + 6929 ], "loc": { "start": { - "line": 208, + "line": 220, "column": 8 }, "end": { - "line": 210, + "line": 222, "column": 9 } } } ], "range": [ - 6444, - 6702 + 6679, + 6937 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 36 }, "end": { - "line": 211, + "line": 223, "column": 7 } } @@ -12712,16 +13112,16 @@ "type": "Identifier", "name": "field", "range": [ - 6712, - 6717 + 6947, + 6952 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 17 }, "end": { - "line": 211, + "line": 223, "column": 22 } } @@ -12730,31 +13130,31 @@ "type": "Identifier", "name": "type", "range": [ - 6718, - 6722 + 6953, + 6957 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 23 }, "end": { - "line": 211, + "line": 223, "column": 27 } } }, "range": [ - 6712, - 6722 + 6947, + 6957 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 17 }, "end": { - "line": 211, + "line": 223, "column": 27 } } @@ -12764,31 +13164,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 6727, - 6737 + 6962, + 6972 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 32 }, "end": { - "line": 211, + "line": 223, "column": 42 } } }, "range": [ - 6712, - 6737 + 6947, + 6972 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 17 }, "end": { - "line": 211, + "line": 223, "column": 42 } } @@ -12810,16 +13210,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6749, - 6757 + 6984, + 6992 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 212, + "line": 224, "column": 16 } } @@ -12828,31 +13228,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6758, - 6767 + 6993, + 7002 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 17 }, "end": { - "line": 212, + "line": 224, "column": 26 } } }, "range": [ - 6749, - 6768 + 6984, + 7003 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 212, + "line": 224, "column": 27 } } @@ -12861,31 +13261,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 6769, - 6776 + 7004, + 7011 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 28 }, "end": { - "line": 212, + "line": 224, "column": 35 } } }, "range": [ - 6749, - 6776 + 6984, + 7011 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 212, + "line": 224, "column": 35 } } @@ -12899,16 +13299,16 @@ "type": "Identifier", "name": "r", "range": [ - 6777, - 6778 + 7012, + 7013 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 36 }, "end": { - "line": 212, + "line": 224, "column": 37 } } @@ -12934,16 +13334,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6798, - 6806 + 7033, + 7041 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 14 }, "end": { - "line": 213, + "line": 225, "column": 22 } } @@ -12952,31 +13352,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6807, - 6816 + 7042, + 7051 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 23 }, "end": { - "line": 213, + "line": 225, "column": 32 } } }, "range": [ - 6798, - 6817 + 7033, + 7052 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 14 }, "end": { - "line": 213, + "line": 225, "column": 33 } } @@ -12985,31 +13385,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 6818, - 6825 + 7053, + 7060 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 34 }, "end": { - "line": 213, + "line": 225, "column": 41 } } }, "range": [ - 6798, - 6825 + 7033, + 7060 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 14 }, "end": { - "line": 213, + "line": 225, "column": 41 } } @@ -13019,32 +13419,32 @@ "type": "Identifier", "name": "r", "range": [ - 6826, - 6827 + 7061, + 7062 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 42 }, "end": { - "line": 213, + "line": 225, "column": 43 } } } ], "range": [ - 6798, - 6828 + 7033, + 7063 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 14 }, "end": { - "line": 213, + "line": 225, "column": 44 } } @@ -13057,47 +13457,47 @@ "value": 1, "raw": "1", "range": [ - 6834, - 6835 + 7069, + 7070 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 50 }, "end": { - "line": 213, + "line": 225, "column": 51 } } }, "prefix": true, "range": [ - 6833, - 6835 + 7068, + 7070 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 49 }, "end": { - "line": 213, + "line": 225, "column": 51 } } }, "range": [ - 6798, - 6835 + 7033, + 7070 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 14 }, "end": { - "line": 213, + "line": 225, "column": 51 } } @@ -13115,16 +13515,16 @@ "object": { "type": "ThisExpression", "range": [ - 6851, - 6855 + 7086, + 7090 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 12 }, "end": { - "line": 214, + "line": 226, "column": 16 } } @@ -13133,31 +13533,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 6856, - 6882 + 7091, + 7117 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 17 }, "end": { - "line": 214, + "line": 226, "column": 43 } } }, "range": [ - 6851, - 6882 + 7086, + 7117 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 12 }, "end": { - "line": 214, + "line": 226, "column": 43 } } @@ -13167,16 +13567,16 @@ "type": "Identifier", "name": "resource", "range": [ - 6883, - 6891 + 7118, + 7126 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 44 }, "end": { - "line": 214, + "line": 226, "column": 52 } } @@ -13185,16 +13585,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 6893, - 6902 + 7128, + 7137 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 54 }, "end": { - "line": 214, + "line": 226, "column": 63 } } @@ -13203,16 +13603,16 @@ "type": "Identifier", "name": "r", "range": [ - 6904, - 6905 + 7139, + 7140 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 65 }, "end": { - "line": 214, + "line": 226, "column": 66 } } @@ -13221,95 +13621,95 @@ "type": "Identifier", "name": "field", "range": [ - 6907, - 6912 + 7142, + 7147 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 68 }, "end": { - "line": 214, + "line": 226, "column": 73 } } } ], "range": [ - 6851, - 6913 + 7086, + 7148 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 12 }, "end": { - "line": 214, + "line": 226, "column": 74 } } }, "range": [ - 6851, - 6914 + 7086, + 7149 ], "loc": { "start": { - "line": 214, + "line": 226, "column": 12 }, "end": { - "line": 214, + "line": 226, "column": 75 } } } ], "range": [ - 6837, - 6926 + 7072, + 7161 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 53 }, "end": { - "line": 215, + "line": 227, "column": 11 } } }, "alternate": null, "range": [ - 6794, - 6926 + 7029, + 7161 ], "loc": { "start": { - "line": 213, + "line": 225, "column": 10 }, "end": { - "line": 215, + "line": 227, "column": 11 } } } ], "range": [ - 6782, - 6936 + 7017, + 7171 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 41 }, "end": { - "line": 216, + "line": 228, "column": 9 } } @@ -13317,47 +13717,47 @@ "generator": false, "expression": false, "range": [ - 6777, - 6936 + 7012, + 7171 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 36 }, "end": { - "line": 216, + "line": 228, "column": 9 } } } ], "range": [ - 6749, - 6937 + 6984, + 7172 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 216, + "line": 228, "column": 10 } } }, "range": [ - 6749, - 6938 + 6984, + 7173 ], "loc": { "start": { - "line": 212, + "line": 224, "column": 8 }, "end": { - "line": 216, + "line": 228, "column": 11 } } @@ -13373,16 +13773,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 6947, - 6955 + 7182, + 7190 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 8 }, "end": { - "line": 217, + "line": 229, "column": 16 } } @@ -13391,31 +13791,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 6956, - 6963 + 7191, + 7198 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 17 }, "end": { - "line": 217, + "line": 229, "column": 24 } } }, "range": [ - 6947, - 6963 + 7182, + 7198 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 8 }, "end": { - "line": 217, + "line": 229, "column": 24 } } @@ -13429,16 +13829,16 @@ "type": "Identifier", "name": "r", "range": [ - 6964, - 6965 + 7199, + 7200 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 25 }, "end": { - "line": 217, + "line": 229, "column": 26 } } @@ -13457,16 +13857,16 @@ "object": { "type": "ThisExpression", "range": [ - 6981, - 6985 + 7216, + 7220 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 10 }, "end": { - "line": 218, + "line": 230, "column": 14 } } @@ -13475,31 +13875,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 6986, - 7009 + 7221, + 7244 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 15 }, "end": { - "line": 218, + "line": 230, "column": 38 } } }, "range": [ - 6981, - 7009 + 7216, + 7244 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 10 }, "end": { - "line": 218, + "line": 230, "column": 38 } } @@ -13509,16 +13909,16 @@ "type": "Identifier", "name": "resource", "range": [ - 7010, - 7018 + 7245, + 7253 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 39 }, "end": { - "line": 218, + "line": 230, "column": 47 } } @@ -13527,16 +13927,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 7020, - 7029 + 7255, + 7264 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 49 }, "end": { - "line": 218, + "line": 230, "column": 58 } } @@ -13545,16 +13945,16 @@ "type": "Identifier", "name": "r", "range": [ - 7031, - 7032 + 7266, + 7267 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 60 }, "end": { - "line": 218, + "line": 230, "column": 61 } } @@ -13563,63 +13963,63 @@ "type": "Identifier", "name": "field", "range": [ - 7034, - 7039 + 7269, + 7274 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 63 }, "end": { - "line": 218, + "line": 230, "column": 68 } } } ], "range": [ - 6981, - 7040 + 7216, + 7275 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 10 }, "end": { - "line": 218, + "line": 230, "column": 69 } } }, "range": [ - 6981, - 7041 + 7216, + 7276 ], "loc": { "start": { - "line": 218, + "line": 230, "column": 10 }, "end": { - "line": 218, + "line": 230, "column": 70 } } } ], "range": [ - 6969, - 7051 + 7204, + 7286 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 30 }, "end": { - "line": 219, + "line": 231, "column": 9 } } @@ -13627,94 +14027,94 @@ "generator": false, "expression": false, "range": [ - 6964, - 7051 + 7199, + 7286 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 25 }, "end": { - "line": 219, + "line": 231, "column": 9 } } } ], "range": [ - 6947, - 7052 + 7182, + 7287 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 8 }, "end": { - "line": 219, + "line": 231, "column": 10 } } }, "range": [ - 6947, - 7053 + 7182, + 7288 ], "loc": { "start": { - "line": 217, + "line": 229, "column": 8 }, "end": { - "line": 219, + "line": 231, "column": 11 } } } ], "range": [ - 6739, - 7061 + 6974, + 7296 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 44 }, "end": { - "line": 220, + "line": 232, "column": 7 } } }, "alternate": null, "range": [ - 6708, - 7061 + 6943, + 7296 ], "loc": { "start": { - "line": 211, + "line": 223, "column": 13 }, "end": { - "line": 220, + "line": 232, "column": 7 } } }, "range": [ - 6414, - 7061 + 6649, + 7296 ], "loc": { "start": { - "line": 204, + "line": 216, "column": 6 }, "end": { - "line": 220, + "line": 232, "column": 7 } } @@ -13731,16 +14131,16 @@ "type": "Identifier", "name": "resource", "range": [ - 7068, - 7076 + 7303, + 7311 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 6 }, "end": { - "line": 221, + "line": 233, "column": 14 } } @@ -13749,31 +14149,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 7077, - 7086 + 7312, + 7321 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 15 }, "end": { - "line": 221, + "line": 233, "column": 24 } } }, "range": [ - 7068, - 7087 + 7303, + 7322 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 6 }, "end": { - "line": 221, + "line": 233, "column": 25 } } @@ -13782,94 +14182,94 @@ "type": "Identifier", "name": "newValue", "range": [ - 7090, - 7098 + 7325, + 7333 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 28 }, "end": { - "line": 221, + "line": 233, "column": 36 } } }, "range": [ - 7068, - 7098 + 7303, + 7333 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 6 }, "end": { - "line": 221, + "line": 233, "column": 36 } } }, "range": [ - 7068, - 7099 + 7303, + 7334 ], "loc": { "start": { - "line": 221, + "line": 233, "column": 6 }, "end": { - "line": 221, + "line": 233, "column": 37 } } } ], "range": [ - 6406, - 7105 + 6641, + 7340 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 41 }, "end": { - "line": 222, + "line": 234, "column": 5 } } }, "alternate": null, "range": [ - 6369, - 7105 + 6604, + 7340 ], "loc": { "start": { - "line": 203, + "line": 215, "column": 4 }, "end": { - "line": 222, + "line": 234, "column": 5 } } } ], "range": [ - 6256, - 7109 + 6491, + 7344 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 53 }, "end": { - "line": 223, + "line": 235, "column": 3 } } @@ -13877,16 +14277,16 @@ "generator": false, "expression": false, "range": [ - 6214, - 7109 + 6449, + 7344 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 11 }, "end": { - "line": 223, + "line": 235, "column": 3 } } @@ -13894,16 +14294,16 @@ "kind": "method", "computed": false, "range": [ - 6205, - 7109 + 6440, + 7344 ], "loc": { "start": { - "line": 200, + "line": 212, "column": 2 }, "end": { - "line": 223, + "line": 235, "column": 3 } }, @@ -13915,16 +14315,16 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 7113, - 7136 + 7348, + 7371 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 2 }, "end": { - "line": 225, + "line": 237, "column": 25 } } @@ -13937,16 +14337,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7137, - 7151 + 7372, + 7386 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 26 }, "end": { - "line": 225, + "line": 237, "column": 40 } } @@ -13955,16 +14355,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 7153, - 7168 + 7388, + 7403 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 42 }, "end": { - "line": 225, + "line": 237, "column": 57 } } @@ -13973,16 +14373,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7170, - 7184 + 7405, + 7419 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 59 }, "end": { - "line": 225, + "line": 237, "column": 73 } } @@ -13991,16 +14391,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 7186, - 7197 + 7421, + 7432 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 75 }, "end": { - "line": 225, + "line": 237, "column": 86 } } @@ -14018,16 +14418,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 7209, - 7225 + 7444, + 7460 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 8 }, "end": { - "line": 226, + "line": 238, "column": 24 } } @@ -14039,52 +14439,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 7228, - 7233 + 7463, + 7467 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 27 }, "end": { - "line": 226, - "column": 32 + "line": 238, + "column": 31 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 7234, - 7239 + 7468, + 7474 ], "loc": { "start": { - "line": 226, - "column": 33 + "line": 238, + "column": 32 }, "end": { - "line": 226, + "line": 238, "column": 38 } } }, "range": [ - 7228, - 7239 + 7463, + 7474 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 27 }, "end": { - "line": 226, + "line": 238, "column": 38 } } @@ -14096,16 +14495,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7240, - 7254 + 7475, + 7489 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 39 }, "end": { - "line": 226, + "line": 238, "column": 53 } } @@ -14114,61 +14513,61 @@ "type": "Identifier", "name": "type", "range": [ - 7255, - 7259 + 7490, + 7494 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 54 }, "end": { - "line": 226, + "line": 238, "column": 58 } } }, "range": [ - 7240, - 7259 + 7475, + 7494 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 39 }, "end": { - "line": 226, + "line": 238, "column": 58 } } }, "range": [ - 7228, - 7260 + 7463, + 7495 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 27 }, "end": { - "line": 226, + "line": 238, "column": 59 } } }, "range": [ - 7209, - 7260 + 7444, + 7495 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 8 }, "end": { - "line": 226, + "line": 238, "column": 59 } } @@ -14176,16 +14575,16 @@ ], "kind": "var", "range": [ - 7205, - 7261 + 7440, + 7496 ], "loc": { "start": { - "line": 226, + "line": 238, "column": 4 }, "end": { - "line": 226, + "line": 238, "column": 60 } } @@ -14199,16 +14598,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7270, - 7285 + 7505, + 7520 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 8 }, "end": { - "line": 227, + "line": 239, "column": 23 } } @@ -14223,16 +14622,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 7288, - 7299 + 7523, + 7534 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 26 }, "end": { - "line": 227, + "line": 239, "column": 37 } } @@ -14241,31 +14640,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 7300, - 7307 + 7535, + 7542 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 38 }, "end": { - "line": 227, + "line": 239, "column": 45 } } }, "range": [ - 7288, - 7307 + 7523, + 7542 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 26 }, "end": { - "line": 227, + "line": 239, "column": 45 } } @@ -14277,16 +14676,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7311, - 7325 + 7546, + 7560 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 49 }, "end": { - "line": 227, + "line": 239, "column": 63 } } @@ -14295,61 +14694,61 @@ "type": "Identifier", "name": "type", "range": [ - 7326, - 7330 + 7561, + 7565 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 64 }, "end": { - "line": 227, + "line": 239, "column": 68 } } }, "range": [ - 7311, - 7330 + 7546, + 7565 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 49 }, "end": { - "line": 227, + "line": 239, "column": 68 } } }, "range": [ - 7288, - 7330 + 7523, + 7565 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 26 }, "end": { - "line": 227, + "line": 239, "column": 68 } } }, "range": [ - 7270, - 7330 + 7505, + 7565 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 8 }, "end": { - "line": 227, + "line": 239, "column": 68 } } @@ -14357,16 +14756,16 @@ ], "kind": "var", "range": [ - 7266, - 7331 + 7501, + 7566 ], "loc": { "start": { - "line": 227, + "line": 239, "column": 4 }, "end": { - "line": 227, + "line": 239, "column": 69 } } @@ -14380,16 +14779,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 7340, - 7351 + 7575, + 7586 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 8 }, "end": { - "line": 228, + "line": 240, "column": 19 } } @@ -14401,16 +14800,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 7354, - 7370 + 7589, + 7605 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 22 }, "end": { - "line": 228, + "line": 240, "column": 38 } } @@ -14422,16 +14821,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 7374, - 7390 + 7609, + 7625 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 42 }, "end": { - "line": 228, + "line": 240, "column": 58 } } @@ -14440,61 +14839,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7391, - 7406 + 7626, + 7641 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 59 }, "end": { - "line": 228, + "line": 240, "column": 74 } } }, "range": [ - 7374, - 7407 + 7609, + 7642 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 42 }, "end": { - "line": 228, + "line": 240, "column": 75 } } }, "range": [ - 7354, - 7407 + 7589, + 7642 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 22 }, "end": { - "line": 228, + "line": 240, "column": 75 } } }, "range": [ - 7340, - 7407 + 7575, + 7642 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 8 }, "end": { - "line": 228, + "line": 240, "column": 75 } } @@ -14502,16 +14901,16 @@ ], "kind": "var", "range": [ - 7336, - 7408 + 7571, + 7643 ], "loc": { "start": { - "line": 228, + "line": 240, "column": 4 }, "end": { - "line": 228, + "line": 240, "column": 76 } } @@ -14530,16 +14929,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7413, - 7427 + 7648, + 7662 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 4 }, "end": { - "line": 229, + "line": 241, "column": 18 } } @@ -14548,31 +14947,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 7428, - 7439 + 7663, + 7674 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 19 }, "end": { - "line": 229, + "line": 241, "column": 30 } } }, "range": [ - 7413, - 7439 + 7648, + 7674 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 4 }, "end": { - "line": 229, + "line": 241, "column": 30 } } @@ -14581,31 +14980,31 @@ "type": "Identifier", "name": "push", "range": [ - 7440, - 7444 + 7675, + 7679 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 31 }, "end": { - "line": 229, + "line": 241, "column": 35 } } }, "range": [ - 7413, - 7444 + 7648, + 7679 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 4 }, "end": { - "line": 229, + "line": 241, "column": 35 } } @@ -14620,16 +15019,16 @@ "type": "Identifier", "name": "type", "range": [ - 7447, - 7451 + 7682, + 7686 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 38 }, "end": { - "line": 229, + "line": 241, "column": 42 } } @@ -14641,16 +15040,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7453, - 7467 + 7688, + 7702 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 44 }, "end": { - "line": 229, + "line": 241, "column": 58 } } @@ -14659,31 +15058,31 @@ "type": "Identifier", "name": "type", "range": [ - 7468, - 7472 + 7703, + 7707 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 59 }, "end": { - "line": 229, + "line": 241, "column": 63 } } }, "range": [ - 7453, - 7472 + 7688, + 7707 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 44 }, "end": { - "line": 229, + "line": 241, "column": 63 } } @@ -14693,16 +15092,16 @@ "shorthand": false, "computed": false, "range": [ - 7447, - 7472 + 7682, + 7707 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 38 }, "end": { - "line": 229, + "line": 241, "column": 63 } } @@ -14713,16 +15112,16 @@ "type": "Identifier", "name": "id", "range": [ - 7474, - 7476 + 7709, + 7711 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 65 }, "end": { - "line": 229, + "line": 241, "column": 67 } } @@ -14734,16 +15133,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7478, - 7492 + 7713, + 7727 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 69 }, "end": { - "line": 229, + "line": 241, "column": 83 } } @@ -14752,31 +15151,31 @@ "type": "Identifier", "name": "id", "range": [ - 7493, - 7495 + 7728, + 7730 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 84 }, "end": { - "line": 229, + "line": 241, "column": 86 } } }, "range": [ - 7478, - 7495 + 7713, + 7730 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 69 }, "end": { - "line": 229, + "line": 241, "column": 86 } } @@ -14786,16 +15185,16 @@ "shorthand": false, "computed": false, "range": [ - 7474, - 7495 + 7709, + 7730 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 65 }, "end": { - "line": 229, + "line": 241, "column": 86 } } @@ -14806,16 +15205,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 7497, - 7506 + 7732, + 7741 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 88 }, "end": { - "line": 229, + "line": 241, "column": 97 } } @@ -14824,16 +15223,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 7508, - 7523 + 7743, + 7758 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 99 }, "end": { - "line": 229, + "line": 241, "column": 114 } } @@ -14843,63 +15242,63 @@ "shorthand": false, "computed": false, "range": [ - 7497, - 7523 + 7732, + 7758 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 88 }, "end": { - "line": 229, + "line": 241, "column": 114 } } } ], "range": [ - 7445, - 7525 + 7680, + 7760 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 36 }, "end": { - "line": 229, + "line": 241, "column": 116 } } } ], "range": [ - 7413, - 7526 + 7648, + 7761 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 4 }, "end": { - "line": 229, + "line": 241, "column": 117 } } }, "range": [ - 7413, - 7527 + 7648, + 7762 ], "loc": { "start": { - "line": 229, + "line": 241, "column": 4 }, "end": { - "line": 229, + "line": 241, "column": 118 } } @@ -14910,16 +15309,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 7536, - 7547 + 7771, + 7782 ], "loc": { "start": { - "line": 230, + "line": 242, "column": 8 }, "end": { - "line": 230, + "line": 242, "column": 19 } } @@ -14939,16 +15338,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 7561, - 7572 + 7796, + 7807 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 10 }, "end": { - "line": 231, + "line": 243, "column": 21 } } @@ -14957,31 +15356,31 @@ "type": "Identifier", "name": "type", "range": [ - 7573, - 7577 + 7808, + 7812 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 22 }, "end": { - "line": 231, + "line": 243, "column": 26 } } }, "range": [ - 7561, - 7577 + 7796, + 7812 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 10 }, "end": { - "line": 231, + "line": 243, "column": 26 } } @@ -14991,31 +15390,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 7582, - 7591 + 7817, + 7826 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 31 }, "end": { - "line": 231, + "line": 243, "column": 40 } } }, "range": [ - 7561, - 7591 + 7796, + 7826 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 10 }, "end": { - "line": 231, + "line": 243, "column": 40 } } @@ -15037,16 +15436,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7603, - 7617 + 7838, + 7852 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 8 }, "end": { - "line": 232, + "line": 244, "column": 22 } } @@ -15055,31 +15454,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 7618, - 7629 + 7853, + 7864 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 23 }, "end": { - "line": 232, + "line": 244, "column": 34 } } }, "range": [ - 7603, - 7629 + 7838, + 7864 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 8 }, "end": { - "line": 232, + "line": 244, "column": 34 } } @@ -15088,31 +15487,31 @@ "type": "Identifier", "name": "push", "range": [ - 7630, - 7634 + 7865, + 7869 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 35 }, "end": { - "line": 232, + "line": 244, "column": 39 } } }, "range": [ - 7603, - 7634 + 7838, + 7869 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 8 }, "end": { - "line": 232, + "line": 244, "column": 39 } } @@ -15127,16 +15526,16 @@ "type": "Identifier", "name": "type", "range": [ - 7637, - 7641 + 7872, + 7876 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 42 }, "end": { - "line": 232, + "line": 244, "column": 46 } } @@ -15148,16 +15547,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7643, - 7657 + 7878, + 7892 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 48 }, "end": { - "line": 232, + "line": 244, "column": 62 } } @@ -15166,31 +15565,31 @@ "type": "Identifier", "name": "type", "range": [ - 7658, - 7662 + 7893, + 7897 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 63 }, "end": { - "line": 232, + "line": 244, "column": 67 } } }, "range": [ - 7643, - 7662 + 7878, + 7897 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 48 }, "end": { - "line": 232, + "line": 244, "column": 67 } } @@ -15200,16 +15599,16 @@ "shorthand": false, "computed": false, "range": [ - 7637, - 7662 + 7872, + 7897 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 42 }, "end": { - "line": 232, + "line": 244, "column": 67 } } @@ -15220,16 +15619,16 @@ "type": "Identifier", "name": "id", "range": [ - 7664, - 7666 + 7899, + 7901 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 69 }, "end": { - "line": 232, + "line": 244, "column": 71 } } @@ -15241,16 +15640,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7668, - 7682 + 7903, + 7917 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 73 }, "end": { - "line": 232, + "line": 244, "column": 87 } } @@ -15259,31 +15658,31 @@ "type": "Identifier", "name": "id", "range": [ - 7683, - 7685 + 7918, + 7920 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 88 }, "end": { - "line": 232, + "line": 244, "column": 90 } } }, "range": [ - 7668, - 7685 + 7903, + 7920 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 73 }, "end": { - "line": 232, + "line": 244, "column": 90 } } @@ -15293,16 +15692,16 @@ "shorthand": false, "computed": false, "range": [ - 7664, - 7685 + 7899, + 7920 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 69 }, "end": { - "line": 232, + "line": 244, "column": 90 } } @@ -15313,16 +15712,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 7687, - 7696 + 7922, + 7931 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 92 }, "end": { - "line": 232, + "line": 244, "column": 101 } } @@ -15331,16 +15730,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7698, - 7713 + 7933, + 7948 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 103 }, "end": { - "line": 232, + "line": 244, "column": 118 } } @@ -15350,63 +15749,63 @@ "shorthand": false, "computed": false, "range": [ - 7687, - 7713 + 7922, + 7948 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 92 }, "end": { - "line": 232, + "line": 244, "column": 118 } } } ], "range": [ - 7635, - 7715 + 7870, + 7950 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 40 }, "end": { - "line": 232, + "line": 244, "column": 120 } } } ], "range": [ - 7603, - 7716 + 7838, + 7951 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 8 }, "end": { - "line": 232, + "line": 244, "column": 121 } } }, "range": [ - 7603, - 7717 + 7838, + 7952 ], "loc": { "start": { - "line": 232, + "line": 244, "column": 8 }, "end": { - "line": 232, + "line": 244, "column": 122 } } @@ -15423,16 +15822,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7726, - 7740 + 7961, + 7975 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 8 }, "end": { - "line": 233, + "line": 245, "column": 22 } } @@ -15441,31 +15840,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7741, - 7756 + 7976, + 7991 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 23 }, "end": { - "line": 233, + "line": 245, "column": 38 } } }, "range": [ - 7726, - 7757 + 7961, + 7992 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 8 }, "end": { - "line": 233, + "line": 245, "column": 39 } } @@ -15474,62 +15873,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7760, - 7774 + 7995, + 8009 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 42 }, "end": { - "line": 233, + "line": 245, "column": 56 } } }, "range": [ - 7726, - 7774 + 7961, + 8009 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 8 }, "end": { - "line": 233, + "line": 245, "column": 56 } } }, "range": [ - 7726, - 7775 + 7961, + 8010 ], "loc": { "start": { - "line": 233, + "line": 245, "column": 8 }, "end": { - "line": 233, + "line": 245, "column": 57 } } } ], "range": [ - 7593, - 7783 + 7828, + 8018 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 42 }, "end": { - "line": 234, + "line": 246, "column": 7 } } @@ -15546,16 +15945,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 7793, - 7804 + 8028, + 8039 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 17 }, "end": { - "line": 234, + "line": 246, "column": 28 } } @@ -15564,31 +15963,31 @@ "type": "Identifier", "name": "type", "range": [ - 7805, - 7809 + 8040, + 8044 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 29 }, "end": { - "line": 234, + "line": 246, "column": 33 } } }, "range": [ - 7793, - 7809 + 8028, + 8044 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 17 }, "end": { - "line": 234, + "line": 246, "column": 33 } } @@ -15598,31 +15997,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 7814, - 7824 + 8049, + 8059 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 38 }, "end": { - "line": 234, + "line": 246, "column": 48 } } }, "range": [ - 7793, - 7824 + 8028, + 8059 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 17 }, "end": { - "line": 234, + "line": 246, "column": 48 } } @@ -15644,16 +16043,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 7836, - 7850 + 8071, + 8085 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 22 } } @@ -15662,31 +16061,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 7851, - 7862 + 8086, + 8097 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 23 }, "end": { - "line": 235, + "line": 247, "column": 34 } } }, "range": [ - 7836, - 7862 + 8071, + 8097 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 34 } } @@ -15695,31 +16094,31 @@ "type": "Identifier", "name": "push", "range": [ - 7863, - 7867 + 8098, + 8102 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 35 }, "end": { - "line": 235, + "line": 247, "column": 39 } } }, "range": [ - 7836, - 7867 + 8071, + 8102 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 39 } } @@ -15734,16 +16133,16 @@ "type": "Identifier", "name": "type", "range": [ - 7870, - 7874 + 8105, + 8109 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 42 }, "end": { - "line": 235, + "line": 247, "column": 46 } } @@ -15755,16 +16154,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7876, - 7890 + 8111, + 8125 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 48 }, "end": { - "line": 235, + "line": 247, "column": 62 } } @@ -15773,31 +16172,31 @@ "type": "Identifier", "name": "type", "range": [ - 7891, - 7895 + 8126, + 8130 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 63 }, "end": { - "line": 235, + "line": 247, "column": 67 } } }, "range": [ - 7876, - 7895 + 8111, + 8130 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 48 }, "end": { - "line": 235, + "line": 247, "column": 67 } } @@ -15807,16 +16206,16 @@ "shorthand": false, "computed": false, "range": [ - 7870, - 7895 + 8105, + 8130 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 42 }, "end": { - "line": 235, + "line": 247, "column": 67 } } @@ -15827,16 +16226,16 @@ "type": "Identifier", "name": "id", "range": [ - 7897, - 7899 + 8132, + 8134 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 69 }, "end": { - "line": 235, + "line": 247, "column": 71 } } @@ -15848,16 +16247,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7901, - 7915 + 8136, + 8150 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 73 }, "end": { - "line": 235, + "line": 247, "column": 87 } } @@ -15866,31 +16265,31 @@ "type": "Identifier", "name": "id", "range": [ - 7916, - 7918 + 8151, + 8153 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 88 }, "end": { - "line": 235, + "line": 247, "column": 90 } } }, "range": [ - 7901, - 7918 + 8136, + 8153 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 73 }, "end": { - "line": 235, + "line": 247, "column": 90 } } @@ -15900,16 +16299,16 @@ "shorthand": false, "computed": false, "range": [ - 7897, - 7918 + 8132, + 8153 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 69 }, "end": { - "line": 235, + "line": 247, "column": 90 } } @@ -15920,16 +16319,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 7920, - 7929 + 8155, + 8164 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 92 }, "end": { - "line": 235, + "line": 247, "column": 101 } } @@ -15938,16 +16337,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7931, - 7946 + 8166, + 8181 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 103 }, "end": { - "line": 235, + "line": 247, "column": 118 } } @@ -15957,63 +16356,63 @@ "shorthand": false, "computed": false, "range": [ - 7920, - 7946 + 8155, + 8181 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 92 }, "end": { - "line": 235, + "line": 247, "column": 118 } } } ], "range": [ - 7868, - 7948 + 8103, + 8183 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 40 }, "end": { - "line": 235, + "line": 247, "column": 120 } } } ], "range": [ - 7836, - 7949 + 8071, + 8184 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 121 } } }, "range": [ - 7836, - 7950 + 8071, + 8185 ], "loc": { "start": { - "line": 235, + "line": 247, "column": 8 }, "end": { - "line": 235, + "line": 247, "column": 122 } } @@ -16035,16 +16434,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 7963, - 7977 + 8198, + 8212 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 26 } } @@ -16053,31 +16452,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 7978, - 7993 + 8213, + 8228 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 27 }, "end": { - "line": 236, + "line": 248, "column": 42 } } }, "range": [ - 7963, - 7994 + 8198, + 8229 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 43 } } @@ -16086,31 +16485,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 7995, - 8002 + 8230, + 8237 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 44 }, "end": { - "line": 236, + "line": 248, "column": 51 } } }, "range": [ - 7963, - 8002 + 8198, + 8237 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 51 } } @@ -16120,32 +16519,32 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 8003, - 8017 + 8238, + 8252 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 52 }, "end": { - "line": 236, + "line": 248, "column": 66 } } } ], "range": [ - 7963, - 8018 + 8198, + 8253 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 67 } } @@ -16158,47 +16557,47 @@ "value": 1, "raw": "1", "range": [ - 8024, - 8025 + 8259, + 8260 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 73 }, "end": { - "line": 236, + "line": 248, "column": 74 } } }, "prefix": true, "range": [ - 8023, - 8025 + 8258, + 8260 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 72 }, "end": { - "line": 236, + "line": 248, "column": 74 } } }, "range": [ - 7963, - 8025 + 8198, + 8260 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 12 }, "end": { - "line": 236, + "line": 248, "column": 74 } } @@ -16220,16 +16619,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 8039, - 8053 + 8274, + 8288 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 10 }, "end": { - "line": 237, + "line": 249, "column": 24 } } @@ -16238,31 +16637,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 8054, - 8069 + 8289, + 8304 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 25 }, "end": { - "line": 237, + "line": 249, "column": 40 } } }, "range": [ - 8039, - 8070 + 8274, + 8305 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 10 }, "end": { - "line": 237, + "line": 249, "column": 41 } } @@ -16271,31 +16670,31 @@ "type": "Identifier", "name": "push", "range": [ - 8071, - 8075 + 8306, + 8310 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 42 }, "end": { - "line": 237, + "line": 249, "column": 46 } } }, "range": [ - 8039, - 8075 + 8274, + 8310 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 10 }, "end": { - "line": 237, + "line": 249, "column": 46 } } @@ -16305,95 +16704,95 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 8076, - 8090 + 8311, + 8325 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 47 }, "end": { - "line": 237, + "line": 249, "column": 61 } } } ], "range": [ - 8039, - 8091 + 8274, + 8326 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 10 }, "end": { - "line": 237, + "line": 249, "column": 62 } } }, "range": [ - 8039, - 8092 + 8274, + 8327 ], "loc": { "start": { - "line": 237, + "line": 249, "column": 10 }, "end": { - "line": 237, + "line": 249, "column": 63 } } } ], "range": [ - 8027, - 8102 + 8262, + 8337 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 76 }, "end": { - "line": 238, + "line": 250, "column": 9 } } }, "alternate": null, "range": [ - 7959, - 8102 + 8194, + 8337 ], "loc": { "start": { - "line": 236, + "line": 248, "column": 8 }, "end": { - "line": 238, + "line": 250, "column": 9 } } } ], "range": [ - 7826, - 8110 + 8061, + 8345 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 50 }, "end": { - "line": 239, + "line": 251, "column": 7 } } @@ -16410,16 +16809,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 8120, - 8131 + 8355, + 8366 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 17 }, "end": { - "line": 239, + "line": 251, "column": 28 } } @@ -16428,31 +16827,31 @@ "type": "Identifier", "name": "type", "range": [ - 8132, - 8136 + 8367, + 8371 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 29 }, "end": { - "line": 239, + "line": 251, "column": 33 } } }, "range": [ - 8120, - 8136 + 8355, + 8371 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 17 }, "end": { - "line": 239, + "line": 251, "column": 33 } } @@ -16462,31 +16861,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 8141, - 8147 + 8376, + 8382 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 38 }, "end": { - "line": 239, + "line": 251, "column": 44 } } }, "range": [ - 8120, - 8147 + 8355, + 8382 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 17 }, "end": { - "line": 239, + "line": 251, "column": 44 } } @@ -16502,16 +16901,16 @@ "type": "Identifier", "name": "Error", "range": [ - 8169, - 8174 + 8404, + 8409 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 18 }, "end": { - "line": 240, + "line": 252, "column": 23 } } @@ -16528,16 +16927,16 @@ }, "tail": false, "range": [ - 8175, - 8212 + 8410, + 8447 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 24 }, "end": { - "line": 240, + "line": 252, "column": 61 } } @@ -16550,16 +16949,16 @@ }, "tail": false, "range": [ - 8227, - 8250 + 8462, + 8485 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 76 }, "end": { - "line": 240, + "line": 252, "column": 99 } } @@ -16572,16 +16971,16 @@ }, "tail": true, "range": [ - 8265, - 8269 + 8500, + 8504 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 114 }, "end": { - "line": 240, + "line": 252, "column": 118 } } @@ -16592,16 +16991,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 8212, - 8227 + 8447, + 8462 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 61 }, "end": { - "line": 240, + "line": 252, "column": 76 } } @@ -16610,141 +17009,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 8250, - 8265 + 8485, + 8500 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 99 }, "end": { - "line": 240, + "line": 252, "column": 114 } } } ], "range": [ - 8175, - 8269 + 8410, + 8504 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 24 }, "end": { - "line": 240, + "line": 252, "column": 118 } } } ], "range": [ - 8165, - 8270 + 8400, + 8505 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 14 }, "end": { - "line": 240, + "line": 252, "column": 119 } } }, "range": [ - 8159, - 8271 + 8394, + 8506 ], "loc": { "start": { - "line": 240, + "line": 252, "column": 8 }, "end": { - "line": 240, + "line": 252, "column": 120 } } } ], "range": [ - 8149, - 8279 + 8384, + 8514 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 46 }, "end": { - "line": 241, + "line": 253, "column": 7 } } }, "alternate": null, "range": [ - 8116, - 8279 + 8351, + 8514 ], "loc": { "start": { - "line": 239, + "line": 251, "column": 13 }, "end": { - "line": 241, + "line": 253, "column": 7 } } }, "range": [ - 7789, - 8279 + 8024, + 8514 ], "loc": { "start": { - "line": 234, + "line": 246, "column": 13 }, "end": { - "line": 241, + "line": 253, "column": 7 } } }, "range": [ - 7557, - 8279 + 7792, + 8514 ], "loc": { "start": { - "line": 231, + "line": 243, "column": 6 }, "end": { - "line": 241, + "line": 253, "column": 7 } } } ], "range": [ - 7549, - 8285 + 7784, + 8520 ], "loc": { "start": { - "line": 230, + "line": 242, "column": 21 }, "end": { - "line": 242, + "line": 254, "column": 5 } } @@ -16758,16 +17157,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 8295, - 8306 + 8530, + 8541 ], "loc": { "start": { - "line": 242, + "line": 254, "column": 15 }, "end": { - "line": 242, + "line": 254, "column": 26 } } @@ -16776,31 +17175,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 8307, - 8314 + 8542, + 8549 ], "loc": { "start": { - "line": 242, + "line": 254, "column": 27 }, "end": { - "line": 242, + "line": 254, "column": 34 } } }, "range": [ - 8295, - 8314 + 8530, + 8549 ], "loc": { "start": { - "line": 242, + "line": 254, "column": 15 }, "end": { - "line": 242, + "line": 254, "column": 34 } } @@ -16816,16 +17215,16 @@ "type": "Identifier", "name": "Error", "range": [ - 8334, - 8339 + 8569, + 8574 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 16 }, "end": { - "line": 243, + "line": 255, "column": 21 } } @@ -16842,16 +17241,16 @@ }, "tail": false, "range": [ - 8340, - 8377 + 8575, + 8612 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 22 }, "end": { - "line": 243, + "line": 255, "column": 59 } } @@ -16864,16 +17263,16 @@ }, "tail": false, "range": [ - 8392, - 8410 + 8627, + 8645 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 74 }, "end": { - "line": 243, + "line": 255, "column": 92 } } @@ -16886,16 +17285,16 @@ }, "tail": true, "range": [ - 8429, - 8433 + 8664, + 8668 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 111 }, "end": { - "line": 243, + "line": 255, "column": 115 } } @@ -16906,16 +17305,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 8377, - 8392 + 8612, + 8627 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 59 }, "end": { - "line": 243, + "line": 255, "column": 74 } } @@ -16927,16 +17326,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 8410, - 8421 + 8645, + 8656 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 92 }, "end": { - "line": 243, + "line": 255, "column": 103 } } @@ -16945,141 +17344,141 @@ "type": "Identifier", "name": "inverse", "range": [ - 8422, - 8429 + 8657, + 8664 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 104 }, "end": { - "line": 243, + "line": 255, "column": 111 } } }, "range": [ - 8410, - 8429 + 8645, + 8664 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 92 }, "end": { - "line": 243, + "line": 255, "column": 111 } } } ], "range": [ - 8340, - 8433 + 8575, + 8668 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 22 }, "end": { - "line": 243, + "line": 255, "column": 115 } } } ], "range": [ - 8330, - 8434 + 8565, + 8669 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 12 }, "end": { - "line": 243, + "line": 255, "column": 116 } } }, "range": [ - 8324, - 8435 + 8559, + 8670 ], "loc": { "start": { - "line": 243, + "line": 255, "column": 6 }, "end": { - "line": 243, + "line": 255, "column": 117 } } } ], "range": [ - 8316, - 8441 + 8551, + 8676 ], "loc": { "start": { - "line": 242, + "line": 254, "column": 36 }, "end": { - "line": 244, + "line": 256, "column": 5 } } }, "alternate": null, "range": [ - 8291, - 8441 + 8526, + 8676 ], "loc": { "start": { - "line": 242, + "line": 254, "column": 11 }, "end": { - "line": 244, + "line": 256, "column": 5 } } }, "range": [ - 7532, - 8441 + 7767, + 8676 ], "loc": { "start": { - "line": 230, + "line": 242, "column": 4 }, "end": { - "line": 244, + "line": 256, "column": 5 } } } ], "range": [ - 7199, - 8445 + 7434, + 8680 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 88 }, "end": { - "line": 245, + "line": 257, "column": 3 } } @@ -17087,16 +17486,16 @@ "generator": false, "expression": false, "range": [ - 7136, - 8445 + 7371, + 8680 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 25 }, "end": { - "line": 245, + "line": 257, "column": 3 } } @@ -17104,16 +17503,16 @@ "kind": "method", "computed": false, "range": [ - 7113, - 8445 + 7348, + 8680 ], "loc": { "start": { - "line": 225, + "line": 237, "column": 2 }, "end": { - "line": 245, + "line": 257, "column": 3 } }, @@ -17125,16 +17524,16 @@ "type": "Identifier", "name": "_remove", "range": [ - 8449, - 8456 + 8684, + 8691 ], "loc": { "start": { - "line": 247, + "line": 259, "column": 2 }, "end": { - "line": 247, + "line": 259, "column": 9 } } @@ -17147,16 +17546,16 @@ "type": "Identifier", "name": "resource", "range": [ - 8457, - 8465 + 8692, + 8700 ], "loc": { "start": { - "line": 247, + "line": 259, "column": 10 }, "end": { - "line": 247, + "line": 259, "column": 18 } } @@ -17179,16 +17578,16 @@ "type": "Identifier", "name": "resource", "range": [ - 8473, - 8481 + 8708, + 8716 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 248, + "line": 260, "column": 12 } } @@ -17197,31 +17596,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 8482, - 8493 + 8717, + 8728 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 13 }, "end": { - "line": 248, + "line": 260, "column": 24 } } }, "range": [ - 8473, - 8493 + 8708, + 8728 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 248, + "line": 260, "column": 24 } } @@ -17230,31 +17629,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 8494, - 8501 + 8729, + 8736 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 25 }, "end": { - "line": 248, + "line": 260, "column": 32 } } }, "range": [ - 8473, - 8501 + 8708, + 8736 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 248, + "line": 260, "column": 32 } } @@ -17268,16 +17667,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8502, - 8511 + 8737, + 8746 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 33 }, "end": { - "line": 248, + "line": 260, "column": 42 } } @@ -17295,16 +17694,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 8527, - 8544 + 8762, + 8779 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 10 }, "end": { - "line": 249, + "line": 261, "column": 27 } } @@ -17321,16 +17720,16 @@ "object": { "type": "ThisExpression", "range": [ - 8547, - 8551 + 8782, + 8786 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 30 }, "end": { - "line": 249, + "line": 261, "column": 34 } } @@ -17339,31 +17738,31 @@ "type": "Identifier", "name": "_data", "range": [ - 8552, - 8557 + 8787, + 8792 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 35 }, "end": { - "line": 249, + "line": 261, "column": 40 } } }, "range": [ - 8547, - 8557 + 8782, + 8792 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 30 }, "end": { - "line": 249, + "line": 261, "column": 40 } } @@ -17375,16 +17774,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8558, - 8567 + 8793, + 8802 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 41 }, "end": { - "line": 249, + "line": 261, "column": 50 } } @@ -17393,46 +17792,46 @@ "type": "Identifier", "name": "type", "range": [ - 8568, - 8572 + 8803, + 8807 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 51 }, "end": { - "line": 249, + "line": 261, "column": 55 } } }, "range": [ - 8558, - 8572 + 8793, + 8807 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 41 }, "end": { - "line": 249, + "line": 261, "column": 55 } } }, "range": [ - 8547, - 8573 + 8782, + 8808 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 30 }, "end": { - "line": 249, + "line": 261, "column": 56 } } @@ -17444,16 +17843,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8574, - 8583 + 8809, + 8818 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 57 }, "end": { - "line": 249, + "line": 261, "column": 66 } } @@ -17462,61 +17861,61 @@ "type": "Identifier", "name": "id", "range": [ - 8584, - 8586 + 8819, + 8821 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 67 }, "end": { - "line": 249, + "line": 261, "column": 69 } } }, "range": [ - 8574, - 8586 + 8809, + 8821 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 57 }, "end": { - "line": 249, + "line": 261, "column": 69 } } }, "range": [ - 8547, - 8587 + 8782, + 8822 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 30 }, "end": { - "line": 249, + "line": 261, "column": 70 } } }, "range": [ - 8527, - 8587 + 8762, + 8822 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 10 }, "end": { - "line": 249, + "line": 261, "column": 70 } } @@ -17524,16 +17923,16 @@ ], "kind": "let", "range": [ - 8523, - 8588 + 8758, + 8823 ], "loc": { "start": { - "line": 249, + "line": 261, "column": 6 }, "end": { - "line": 249, + "line": 261, "column": 71 } } @@ -17553,52 +17952,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 8603, - 8608 + 8838, + 8842 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 14 }, "end": { - "line": 250, - "column": 19 + "line": 262, + "column": 18 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 8609, - 8614 + 8843, + 8849 ], "loc": { "start": { - "line": 250, - "column": 20 + "line": 262, + "column": 19 }, "end": { - "line": 250, + "line": 262, "column": 25 } } }, "range": [ - 8603, - 8614 + 8838, + 8849 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 14 }, "end": { - "line": 250, + "line": 262, "column": 25 } } @@ -17610,16 +18008,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8615, - 8624 + 8850, + 8859 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 26 }, "end": { - "line": 250, + "line": 262, "column": 35 } } @@ -17628,46 +18026,46 @@ "type": "Identifier", "name": "type", "range": [ - 8625, - 8629 + 8860, + 8864 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 36 }, "end": { - "line": 250, + "line": 262, "column": 40 } } }, "range": [ - 8615, - 8629 + 8850, + 8864 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 26 }, "end": { - "line": 250, + "line": 262, "column": 40 } } }, "range": [ - 8603, - 8630 + 8838, + 8865 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 14 }, "end": { - "line": 250, + "line": 262, "column": 41 } } @@ -17679,16 +18077,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8631, - 8640 + 8866, + 8875 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 42 }, "end": { - "line": 250, + "line": 262, "column": 51 } } @@ -17697,46 +18095,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 8641, - 8650 + 8876, + 8885 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 52 }, "end": { - "line": 250, + "line": 262, "column": 61 } } }, "range": [ - 8631, - 8650 + 8866, + 8885 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 42 }, "end": { - "line": 250, + "line": 262, "column": 61 } } }, "range": [ - 8603, - 8651 + 8838, + 8886 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 14 }, "end": { - "line": 250, + "line": 262, "column": 62 } } @@ -17745,31 +18143,31 @@ "type": "Identifier", "name": "type", "range": [ - 8652, - 8656 + 8887, + 8891 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 63 }, "end": { - "line": 250, + "line": 262, "column": 67 } } }, "range": [ - 8603, - 8656 + 8838, + 8891 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 14 }, "end": { - "line": 250, + "line": 262, "column": 67 } } @@ -17782,16 +18180,16 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 8673, - 8682 + 8908, + 8917 ], "loc": { "start": { - "line": 251, + "line": 263, "column": 13 }, "end": { - "line": 251, + "line": 263, "column": 22 } } @@ -17812,16 +18210,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 8696, - 8713 + 8931, + 8948 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 10 }, "end": { - "line": 252, + "line": 264, "column": 27 } } @@ -17833,16 +18231,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8714, - 8723 + 8949, + 8958 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 28 }, "end": { - "line": 252, + "line": 264, "column": 37 } } @@ -17851,46 +18249,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 8724, - 8733 + 8959, + 8968 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 38 }, "end": { - "line": 252, + "line": 264, "column": 47 } } }, "range": [ - 8714, - 8733 + 8949, + 8968 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 28 }, "end": { - "line": 252, + "line": 264, "column": 47 } } }, "range": [ - 8696, - 8734 + 8931, + 8969 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 10 }, "end": { - "line": 252, + "line": 264, "column": 48 } } @@ -17900,46 +18298,46 @@ "value": null, "raw": "null", "range": [ - 8737, - 8741 + 8972, + 8976 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 51 }, "end": { - "line": 252, + "line": 264, "column": 55 } } }, "range": [ - 8696, - 8741 + 8931, + 8976 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 10 }, "end": { - "line": 252, + "line": 264, "column": 55 } } }, "range": [ - 8696, - 8742 + 8931, + 8977 ], "loc": { "start": { - "line": 252, + "line": 264, "column": 10 }, "end": { - "line": 252, + "line": 264, "column": 56 } } @@ -17948,48 +18346,48 @@ "type": "BreakStatement", "label": null, "range": [ - 8753, - 8759 + 8988, + 8994 ], "loc": { "start": { - "line": 253, + "line": 265, "column": 10 }, "end": { - "line": 253, + "line": 265, "column": 16 } } } ], "range": [ - 8684, - 8769 + 8919, + 9004 ], "loc": { "start": { - "line": 251, + "line": 263, "column": 24 }, "end": { - "line": 254, + "line": 266, "column": 9 } } } ], "range": [ - 8668, - 8769 + 8903, + 9004 ], "loc": { "start": { - "line": 251, + "line": 263, "column": 8 }, "end": { - "line": 254, + "line": 266, "column": 9 } } @@ -18001,16 +18399,16 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 8783, - 8793 + 9018, + 9028 ], "loc": { "start": { - "line": 255, + "line": 267, "column": 13 }, "end": { - "line": 255, + "line": 267, "column": 23 } } @@ -18028,16 +18426,16 @@ "type": "Identifier", "name": "index", "range": [ - 8811, - 8816 + 9046, + 9051 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 14 }, "end": { - "line": 256, + "line": 268, "column": 19 } } @@ -18054,16 +18452,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 8819, - 8836 + 9054, + 9071 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 22 }, "end": { - "line": 256, + "line": 268, "column": 39 } } @@ -18075,16 +18473,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8837, - 8846 + 9072, + 9081 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 40 }, "end": { - "line": 256, + "line": 268, "column": 49 } } @@ -18093,46 +18491,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 8847, - 8856 + 9082, + 9091 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 50 }, "end": { - "line": 256, + "line": 268, "column": 59 } } }, "range": [ - 8837, - 8856 + 9072, + 9091 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 40 }, "end": { - "line": 256, + "line": 268, "column": 59 } } }, "range": [ - 8819, - 8857 + 9054, + 9092 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 22 }, "end": { - "line": 256, + "line": 268, "column": 60 } } @@ -18141,31 +18539,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 8858, - 8865 + 9093, + 9100 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 61 }, "end": { - "line": 256, + "line": 268, "column": 68 } } }, "range": [ - 8819, - 8865 + 9054, + 9100 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 22 }, "end": { - "line": 256, + "line": 268, "column": 68 } } @@ -18175,47 +18573,47 @@ "type": "Identifier", "name": "resource", "range": [ - 8866, - 8874 + 9101, + 9109 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 69 }, "end": { - "line": 256, + "line": 268, "column": 77 } } } ], "range": [ - 8819, - 8875 + 9054, + 9110 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 22 }, "end": { - "line": 256, + "line": 268, "column": 78 } } }, "range": [ - 8811, - 8875 + 9046, + 9110 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 14 }, "end": { - "line": 256, + "line": 268, "column": 78 } } @@ -18223,16 +18621,16 @@ ], "kind": "let", "range": [ - 8807, - 8876 + 9042, + 9111 ], "loc": { "start": { - "line": 256, + "line": 268, "column": 10 }, "end": { - "line": 256, + "line": 268, "column": 79 } } @@ -18246,16 +18644,16 @@ "type": "Identifier", "name": "index", "range": [ - 8891, - 8896 + 9126, + 9131 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 14 }, "end": { - "line": 257, + "line": 269, "column": 19 } } @@ -18268,47 +18666,47 @@ "value": 1, "raw": "1", "range": [ - 8902, - 8903 + 9137, + 9138 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 25 }, "end": { - "line": 257, + "line": 269, "column": 26 } } }, "prefix": true, "range": [ - 8901, - 8903 + 9136, + 9138 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 24 }, "end": { - "line": 257, + "line": 269, "column": 26 } } }, "range": [ - 8891, - 8903 + 9126, + 9138 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 14 }, "end": { - "line": 257, + "line": 269, "column": 26 } } @@ -18330,16 +18728,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 8919, - 8936 + 9154, + 9171 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 29 } } @@ -18351,16 +18749,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 8937, - 8946 + 9172, + 9181 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 30 }, "end": { - "line": 258, + "line": 270, "column": 39 } } @@ -18369,46 +18767,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 8947, - 8956 + 9182, + 9191 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 40 }, "end": { - "line": 258, + "line": 270, "column": 49 } } }, "range": [ - 8937, - 8956 + 9172, + 9191 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 30 }, "end": { - "line": 258, + "line": 270, "column": 49 } } }, "range": [ - 8919, - 8957 + 9154, + 9192 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 50 } } @@ -18417,31 +18815,31 @@ "type": "Identifier", "name": "splice", "range": [ - 8958, - 8964 + 9193, + 9199 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 51 }, "end": { - "line": 258, + "line": 270, "column": 57 } } }, "range": [ - 8919, - 8964 + 9154, + 9199 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 57 } } @@ -18451,16 +18849,16 @@ "type": "Identifier", "name": "index", "range": [ - 8965, - 8970 + 9200, + 9205 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 58 }, "end": { - "line": 258, + "line": 270, "column": 63 } } @@ -18470,79 +18868,79 @@ "value": 1, "raw": "1", "range": [ - 8972, - 8973 + 9207, + 9208 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 65 }, "end": { - "line": 258, + "line": 270, "column": 66 } } } ], "range": [ - 8919, - 8974 + 9154, + 9209 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 67 } } }, "range": [ - 8919, - 8975 + 9154, + 9210 ], "loc": { "start": { - "line": 258, + "line": 270, "column": 12 }, "end": { - "line": 258, + "line": 270, "column": 68 } } } ], "range": [ - 8905, - 8987 + 9140, + 9222 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 28 }, "end": { - "line": 259, + "line": 271, "column": 11 } } }, "alternate": null, "range": [ - 8887, - 8987 + 9122, + 9222 ], "loc": { "start": { - "line": 257, + "line": 269, "column": 10 }, "end": { - "line": 259, + "line": 271, "column": 11 } } @@ -18551,48 +18949,48 @@ "type": "BreakStatement", "label": null, "range": [ - 8998, - 9004 + 9233, + 9239 ], "loc": { "start": { - "line": 260, + "line": 272, "column": 10 }, "end": { - "line": 260, + "line": 272, "column": 16 } } } ], "range": [ - 8795, - 9014 + 9030, + 9249 ], "loc": { "start": { - "line": 255, + "line": 267, "column": 25 }, "end": { - "line": 261, + "line": 273, "column": 9 } } } ], "range": [ - 8778, - 9014 + 9013, + 9249 ], "loc": { "start": { - "line": 255, + "line": 267, "column": 8 }, "end": { - "line": 261, + "line": 273, "column": 9 } } @@ -18608,64 +19006,64 @@ "type": "BreakStatement", "label": null, "range": [ - 9044, - 9050 + 9279, + 9285 ], "loc": { "start": { - "line": 263, + "line": 275, "column": 10 }, "end": { - "line": 263, + "line": 275, "column": 16 } } } ], "range": [ - 9032, - 9060 + 9267, + 9295 ], "loc": { "start": { - "line": 262, + "line": 274, "column": 17 }, "end": { - "line": 264, + "line": 276, "column": 9 } } } ], "range": [ - 9023, - 9060 + 9258, + 9295 ], "loc": { "start": { - "line": 262, + "line": 274, "column": 8 }, "end": { - "line": 264, + "line": 276, "column": 9 } } } ], "range": [ - 8595, - 9068 + 8830, + 9303 ], "loc": { "start": { - "line": 250, + "line": 262, "column": 6 }, "end": { - "line": 265, + "line": 277, "column": 7 } }, @@ -18674,16 +19072,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 9075, - 9134 + 9310, + 9369 ], "loc": { "start": { - "line": 266, + "line": 278, "column": 6 }, "end": { - "line": 266, + "line": 278, "column": 65 } } @@ -18702,16 +19100,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 9141, - 9158 + 9376, + 9393 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 6 }, "end": { - "line": 267, + "line": 279, "column": 23 } } @@ -18720,31 +19118,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9159, - 9170 + 9394, + 9405 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 24 }, "end": { - "line": 267, + "line": 279, "column": 35 } } }, "range": [ - 9141, - 9170 + 9376, + 9405 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 6 }, "end": { - "line": 267, + "line": 279, "column": 35 } } @@ -18761,16 +19159,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 9173, - 9190 + 9408, + 9425 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 38 }, "end": { - "line": 267, + "line": 279, "column": 55 } } @@ -18779,31 +19177,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9191, - 9202 + 9426, + 9437 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 56 }, "end": { - "line": 267, + "line": 279, "column": 67 } } }, "range": [ - 9173, - 9202 + 9408, + 9437 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 38 }, "end": { - "line": 267, + "line": 279, "column": 67 } } @@ -18812,31 +19210,31 @@ "type": "Identifier", "name": "filter", "range": [ - 9203, - 9209 + 9438, + 9444 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 68 }, "end": { - "line": 267, + "line": 279, "column": 74 } } }, "range": [ - 9173, - 9209 + 9408, + 9444 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 38 }, "end": { - "line": 267, + "line": 279, "column": 74 } } @@ -18850,16 +19248,16 @@ "type": "Identifier", "name": "d", "range": [ - 9210, - 9211 + 9445, + 9446 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 75 }, "end": { - "line": 267, + "line": 279, "column": 76 } } @@ -18886,16 +19284,16 @@ "type": "Identifier", "name": "d", "range": [ - 9234, - 9235 + 9469, + 9470 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 17 }, "end": { - "line": 268, + "line": 280, "column": 18 } } @@ -18904,31 +19302,31 @@ "type": "Identifier", "name": "type", "range": [ - 9236, - 9240 + 9471, + 9475 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 19 }, "end": { - "line": 268, + "line": 280, "column": 23 } } }, "range": [ - 9234, - 9240 + 9469, + 9475 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 17 }, "end": { - "line": 268, + "line": 280, "column": 23 } } @@ -18940,16 +19338,16 @@ "type": "Identifier", "name": "resource", "range": [ - 9245, - 9253 + 9480, + 9488 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 28 }, "end": { - "line": 268, + "line": 280, "column": 36 } } @@ -18958,46 +19356,46 @@ "type": "Identifier", "name": "type", "range": [ - 9254, - 9258 + 9489, + 9493 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 37 }, "end": { - "line": 268, + "line": 280, "column": 41 } } }, "range": [ - 9245, - 9258 + 9480, + 9493 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 28 }, "end": { - "line": 268, + "line": 280, "column": 41 } } }, "range": [ - 9234, - 9258 + 9469, + 9493 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 17 }, "end": { - "line": 268, + "line": 280, "column": 41 } } @@ -19012,16 +19410,16 @@ "type": "Identifier", "name": "d", "range": [ - 9262, - 9263 + 9497, + 9498 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 45 }, "end": { - "line": 268, + "line": 280, "column": 46 } } @@ -19030,31 +19428,31 @@ "type": "Identifier", "name": "id", "range": [ - 9264, - 9266 + 9499, + 9501 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 47 }, "end": { - "line": 268, + "line": 280, "column": 49 } } }, "range": [ - 9262, - 9266 + 9497, + 9501 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 45 }, "end": { - "line": 268, + "line": 280, "column": 49 } } @@ -19066,16 +19464,16 @@ "type": "Identifier", "name": "resource", "range": [ - 9271, - 9279 + 9506, + 9514 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 54 }, "end": { - "line": 268, + "line": 280, "column": 62 } } @@ -19084,108 +19482,108 @@ "type": "Identifier", "name": "id", "range": [ - 9280, - 9282 + 9515, + 9517 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 63 }, "end": { - "line": 268, + "line": 280, "column": 65 } } }, "range": [ - 9271, - 9282 + 9506, + 9517 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 54 }, "end": { - "line": 268, + "line": 280, "column": 65 } } }, "range": [ - 9262, - 9282 + 9497, + 9517 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 45 }, "end": { - "line": 268, + "line": 280, "column": 65 } } }, "range": [ - 9234, - 9282 + 9469, + 9517 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 17 }, "end": { - "line": 268, + "line": 280, "column": 65 } } }, "prefix": true, "range": [ - 9232, - 9283 + 9467, + 9518 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 15 }, "end": { - "line": 268, + "line": 280, "column": 66 } } }, "range": [ - 9225, - 9284 + 9460, + 9519 ], "loc": { "start": { - "line": 268, + "line": 280, "column": 8 }, "end": { - "line": 268, + "line": 280, "column": 67 } } } ], "range": [ - 9215, - 9292 + 9450, + 9527 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 80 }, "end": { - "line": 269, + "line": 281, "column": 7 } } @@ -19193,62 +19591,62 @@ "generator": false, "expression": false, "range": [ - 9210, - 9292 + 9445, + 9527 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 75 }, "end": { - "line": 269, + "line": 281, "column": 7 } } } ], "range": [ - 9173, - 9293 + 9408, + 9528 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 38 }, "end": { - "line": 269, + "line": 281, "column": 8 } } }, "range": [ - 9141, - 9293 + 9376, + 9528 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 6 }, "end": { - "line": 269, + "line": 281, "column": 8 } } }, "range": [ - 9141, - 9294 + 9376, + 9529 ], "loc": { "start": { - "line": 267, + "line": 279, "column": 6 }, "end": { - "line": 269, + "line": 281, "column": 9 } }, @@ -19257,16 +19655,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 9075, - 9134 + 9310, + 9369 ], "loc": { "start": { - "line": 266, + "line": 278, "column": 6 }, "end": { - "line": 266, + "line": 278, "column": 65 } } @@ -19275,16 +19673,16 @@ } ], "range": [ - 8515, - 9300 + 8750, + 9535 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 46 }, "end": { - "line": 270, + "line": 282, "column": 5 } } @@ -19292,47 +19690,47 @@ "generator": false, "expression": false, "range": [ - 8502, - 9300 + 8737, + 9535 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 33 }, "end": { - "line": 270, + "line": 282, "column": 5 } } } ], "range": [ - 8473, - 9301 + 8708, + 9536 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 270, + "line": 282, "column": 6 } } }, "range": [ - 8473, - 9302 + 8708, + 9537 ], "loc": { "start": { - "line": 248, + "line": 260, "column": 4 }, "end": { - "line": 270, + "line": 282, "column": 7 } } @@ -19354,16 +19752,16 @@ "object": { "type": "ThisExpression", "range": [ - 9314, - 9318 + 9549, + 9553 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 11 }, "end": { - "line": 271, + "line": 283, "column": 15 } } @@ -19372,31 +19770,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9319, - 9324 + 9554, + 9559 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 16 }, "end": { - "line": 271, + "line": 283, "column": 21 } } }, "range": [ - 9314, - 9324 + 9549, + 9559 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 11 }, "end": { - "line": 271, + "line": 283, "column": 21 } } @@ -19408,16 +19806,16 @@ "type": "Identifier", "name": "resource", "range": [ - 9325, - 9333 + 9560, + 9568 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 22 }, "end": { - "line": 271, + "line": 283, "column": 30 } } @@ -19426,46 +19824,46 @@ "type": "Identifier", "name": "type", "range": [ - 9334, - 9338 + 9569, + 9573 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 31 }, "end": { - "line": 271, + "line": 283, "column": 35 } } }, "range": [ - 9325, - 9338 + 9560, + 9573 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 22 }, "end": { - "line": 271, + "line": 283, "column": 35 } } }, "range": [ - 9314, - 9339 + 9549, + 9574 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 11 }, "end": { - "line": 271, + "line": 283, "column": 36 } } @@ -19477,16 +19875,16 @@ "type": "Identifier", "name": "resource", "range": [ - 9340, - 9348 + 9575, + 9583 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 37 }, "end": { - "line": 271, + "line": 283, "column": 45 } } @@ -19495,93 +19893,93 @@ "type": "Identifier", "name": "id", "range": [ - 9349, - 9351 + 9584, + 9586 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 46 }, "end": { - "line": 271, + "line": 283, "column": 48 } } }, "range": [ - 9340, - 9351 + 9575, + 9586 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 37 }, "end": { - "line": 271, + "line": 283, "column": 48 } } }, "range": [ - 9314, - 9352 + 9549, + 9587 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 11 }, "end": { - "line": 271, + "line": 283, "column": 49 } } }, "prefix": true, "range": [ - 9307, - 9352 + 9542, + 9587 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 4 }, "end": { - "line": 271, + "line": 283, "column": 49 } } }, "range": [ - 9307, - 9353 + 9542, + 9588 ], "loc": { "start": { - "line": 271, + "line": 283, "column": 4 }, "end": { - "line": 271, + "line": 283, "column": 50 } } } ], "range": [ - 8467, - 9357 + 8702, + 9592 ], "loc": { "start": { - "line": 247, + "line": 259, "column": 20 }, "end": { - "line": 272, + "line": 284, "column": 3 } } @@ -19589,16 +19987,16 @@ "generator": false, "expression": false, "range": [ - 8456, - 9357 + 8691, + 9592 ], "loc": { "start": { - "line": 247, + "line": 259, "column": 9 }, "end": { - "line": 272, + "line": 284, "column": 3 } } @@ -19606,16 +20004,16 @@ "kind": "method", "computed": false, "range": [ - 8449, - 9357 + 8684, + 9592 ], "loc": { "start": { - "line": 247, + "line": 259, "column": 2 }, "end": { - "line": 272, + "line": 284, "column": 3 } }, @@ -19627,16 +20025,16 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 9361, - 9387 + 9596, + 9622 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 2 }, "end": { - "line": 274, + "line": 286, "column": 28 } } @@ -19649,16 +20047,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 9388, - 9402 + 9623, + 9637 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 29 }, "end": { - "line": 274, + "line": 286, "column": 43 } } @@ -19667,16 +20065,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 9404, - 9419 + 9639, + 9654 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 45 }, "end": { - "line": 274, + "line": 286, "column": 60 } } @@ -19685,16 +20083,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 9421, - 9435 + 9656, + 9670 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 62 }, "end": { - "line": 274, + "line": 286, "column": 76 } } @@ -19703,16 +20101,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 9437, - 9448 + 9672, + 9683 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 78 }, "end": { - "line": 274, + "line": 286, "column": 89 } } @@ -19730,16 +20128,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 9460, - 9476 + 9695, + 9711 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 8 }, "end": { - "line": 275, + "line": 287, "column": 24 } } @@ -19751,52 +20149,51 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Store", + "type": "ThisExpression", "range": [ - 9479, - 9484 + 9714, + 9718 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 27 }, "end": { - "line": 275, - "column": 32 + "line": 287, + "column": 31 } } }, "property": { "type": "Identifier", - "name": "types", + "name": "_types", "range": [ - 9485, - 9490 + 9719, + 9725 ], "loc": { "start": { - "line": 275, - "column": 33 + "line": 287, + "column": 32 }, "end": { - "line": 275, + "line": 287, "column": 38 } } }, "range": [ - 9479, - 9490 + 9714, + 9725 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 27 }, "end": { - "line": 275, + "line": 287, "column": 38 } } @@ -19808,16 +20205,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 9491, - 9505 + 9726, + 9740 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 39 }, "end": { - "line": 275, + "line": 287, "column": 53 } } @@ -19826,61 +20223,61 @@ "type": "Identifier", "name": "type", "range": [ - 9506, - 9510 + 9741, + 9745 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 54 }, "end": { - "line": 275, + "line": 287, "column": 58 } } }, "range": [ - 9491, - 9510 + 9726, + 9745 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 39 }, "end": { - "line": 275, + "line": 287, "column": 58 } } }, "range": [ - 9479, - 9511 + 9714, + 9746 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 27 }, "end": { - "line": 275, + "line": 287, "column": 59 } } }, "range": [ - 9460, - 9511 + 9695, + 9746 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 8 }, "end": { - "line": 275, + "line": 287, "column": 59 } } @@ -19888,16 +20285,16 @@ ], "kind": "var", "range": [ - 9456, - 9512 + 9691, + 9747 ], "loc": { "start": { - "line": 275, + "line": 287, "column": 4 }, "end": { - "line": 275, + "line": 287, "column": 60 } } @@ -19911,16 +20308,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 9521, - 9536 + 9756, + 9771 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 8 }, "end": { - "line": 276, + "line": 288, "column": 23 } } @@ -19935,16 +20332,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 9539, - 9550 + 9774, + 9785 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 26 }, "end": { - "line": 276, + "line": 288, "column": 37 } } @@ -19953,31 +20350,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 9551, - 9558 + 9786, + 9793 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 38 }, "end": { - "line": 276, + "line": 288, "column": 45 } } }, "range": [ - 9539, - 9558 + 9774, + 9793 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 26 }, "end": { - "line": 276, + "line": 288, "column": 45 } } @@ -19989,16 +20386,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 9562, - 9576 + 9797, + 9811 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 49 }, "end": { - "line": 276, + "line": 288, "column": 63 } } @@ -20007,61 +20404,61 @@ "type": "Identifier", "name": "type", "range": [ - 9577, - 9581 + 9812, + 9816 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 64 }, "end": { - "line": 276, + "line": 288, "column": 68 } } }, "range": [ - 9562, - 9581 + 9797, + 9816 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 49 }, "end": { - "line": 276, + "line": 288, "column": 68 } } }, "range": [ - 9539, - 9581 + 9774, + 9816 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 26 }, "end": { - "line": 276, + "line": 288, "column": 68 } } }, "range": [ - 9521, - 9581 + 9756, + 9816 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 8 }, "end": { - "line": 276, + "line": 288, "column": 68 } } @@ -20069,16 +20466,16 @@ ], "kind": "var", "range": [ - 9517, - 9582 + 9752, + 9817 ], "loc": { "start": { - "line": 276, + "line": 288, "column": 4 }, "end": { - "line": 276, + "line": 288, "column": 69 } } @@ -20092,16 +20489,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 9591, - 9602 + 9826, + 9837 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 8 }, "end": { - "line": 277, + "line": 289, "column": 19 } } @@ -20113,16 +20510,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 9605, - 9621 + 9840, + 9856 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 22 }, "end": { - "line": 277, + "line": 289, "column": 38 } } @@ -20134,16 +20531,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 9625, - 9641 + 9860, + 9876 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 42 }, "end": { - "line": 277, + "line": 289, "column": 58 } } @@ -20152,61 +20549,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 9642, - 9657 + 9877, + 9892 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 59 }, "end": { - "line": 277, + "line": 289, "column": 74 } } }, "range": [ - 9625, - 9658 + 9860, + 9893 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 42 }, "end": { - "line": 277, + "line": 289, "column": 75 } } }, "range": [ - 9605, - 9658 + 9840, + 9893 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 22 }, "end": { - "line": 277, + "line": 289, "column": 75 } } }, "range": [ - 9591, - 9658 + 9826, + 9893 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 8 }, "end": { - "line": 277, + "line": 289, "column": 75 } } @@ -20214,16 +20611,16 @@ ], "kind": "var", "range": [ - 9587, - 9659 + 9822, + 9894 ], "loc": { "start": { - "line": 277, + "line": 289, "column": 4 }, "end": { - "line": 277, + "line": 289, "column": 76 } } @@ -20240,16 +20637,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 9664, - 9678 + 9899, + 9913 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 4 }, "end": { - "line": 278, + "line": 290, "column": 18 } } @@ -20258,31 +20655,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9679, - 9690 + 9914, + 9925 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 19 }, "end": { - "line": 278, + "line": 290, "column": 30 } } }, "range": [ - 9664, - 9690 + 9899, + 9925 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 4 }, "end": { - "line": 278, + "line": 290, "column": 30 } } @@ -20299,16 +20696,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 9693, - 9707 + 9928, + 9942 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 33 }, "end": { - "line": 278, + "line": 290, "column": 47 } } @@ -20317,31 +20714,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9708, - 9719 + 9943, + 9954 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 48 }, "end": { - "line": 278, + "line": 290, "column": 59 } } }, "range": [ - 9693, - 9719 + 9928, + 9954 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 33 }, "end": { - "line": 278, + "line": 290, "column": 59 } } @@ -20350,31 +20747,31 @@ "type": "Identifier", "name": "filter", "range": [ - 9720, - 9726 + 9955, + 9961 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 60 }, "end": { - "line": 278, + "line": 290, "column": 66 } } }, "range": [ - 9693, - 9726 + 9928, + 9961 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 33 }, "end": { - "line": 278, + "line": 290, "column": 66 } } @@ -20388,16 +20785,16 @@ "type": "Identifier", "name": "r", "range": [ - 9727, - 9728 + 9962, + 9963 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 67 }, "end": { - "line": 278, + "line": 290, "column": 68 } } @@ -20427,16 +20824,16 @@ "type": "Identifier", "name": "r", "range": [ - 9749, - 9750 + 9984, + 9985 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 15 }, "end": { - "line": 279, + "line": 291, "column": 16 } } @@ -20445,31 +20842,31 @@ "type": "Identifier", "name": "type", "range": [ - 9751, - 9755 + 9986, + 9990 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 17 }, "end": { - "line": 279, + "line": 291, "column": 21 } } }, "range": [ - 9749, - 9755 + 9984, + 9990 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 15 }, "end": { - "line": 279, + "line": 291, "column": 21 } } @@ -20481,16 +20878,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 9760, - 9774 + 9995, + 10009 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 26 }, "end": { - "line": 279, + "line": 291, "column": 40 } } @@ -20499,46 +20896,46 @@ "type": "Identifier", "name": "type", "range": [ - 9775, - 9779 + 10010, + 10014 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 41 }, "end": { - "line": 279, + "line": 291, "column": 45 } } }, "range": [ - 9760, - 9779 + 9995, + 10014 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 26 }, "end": { - "line": 279, + "line": 291, "column": 45 } } }, "range": [ - 9749, - 9779 + 9984, + 10014 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 15 }, "end": { - "line": 279, + "line": 291, "column": 45 } } @@ -20553,16 +20950,16 @@ "type": "Identifier", "name": "r", "range": [ - 9783, - 9784 + 10018, + 10019 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 49 }, "end": { - "line": 279, + "line": 291, "column": 50 } } @@ -20571,31 +20968,31 @@ "type": "Identifier", "name": "id", "range": [ - 9785, - 9787 + 10020, + 10022 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 51 }, "end": { - "line": 279, + "line": 291, "column": 53 } } }, "range": [ - 9783, - 9787 + 10018, + 10022 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 49 }, "end": { - "line": 279, + "line": 291, "column": 53 } } @@ -20607,16 +21004,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 9792, - 9806 + 10027, + 10041 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 58 }, "end": { - "line": 279, + "line": 291, "column": 72 } } @@ -20625,61 +21022,61 @@ "type": "Identifier", "name": "id", "range": [ - 9807, - 9809 + 10042, + 10044 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 73 }, "end": { - "line": 279, + "line": 291, "column": 75 } } }, "range": [ - 9792, - 9809 + 10027, + 10044 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 58 }, "end": { - "line": 279, + "line": 291, "column": 75 } } }, "range": [ - 9783, - 9809 + 10018, + 10044 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 49 }, "end": { - "line": 279, + "line": 291, "column": 75 } } }, "range": [ - 9749, - 9809 + 9984, + 10044 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 15 }, "end": { - "line": 279, + "line": 291, "column": 75 } } @@ -20694,16 +21091,16 @@ "type": "Identifier", "name": "r", "range": [ - 9813, - 9814 + 10048, + 10049 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 79 }, "end": { - "line": 279, + "line": 291, "column": 80 } } @@ -20712,31 +21109,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 9815, - 9824 + 10050, + 10059 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 81 }, "end": { - "line": 279, + "line": 291, "column": 90 } } }, "range": [ - 9813, - 9824 + 10048, + 10059 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 79 }, "end": { - "line": 279, + "line": 291, "column": 90 } } @@ -20745,93 +21142,93 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 9829, - 9844 + 10064, + 10079 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 95 }, "end": { - "line": 279, + "line": 291, "column": 110 } } }, "range": [ - 9813, - 9844 + 10048, + 10079 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 79 }, "end": { - "line": 279, + "line": 291, "column": 110 } } }, "range": [ - 9749, - 9844 + 9984, + 10079 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 15 }, "end": { - "line": 279, + "line": 291, "column": 110 } } }, "prefix": true, "range": [ - 9747, - 9845 + 9982, + 10080 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 13 }, "end": { - "line": 279, + "line": 291, "column": 111 } } }, "range": [ - 9740, - 9846 + 9975, + 10081 ], "loc": { "start": { - "line": 279, + "line": 291, "column": 6 }, "end": { - "line": 279, + "line": 291, "column": 112 } } } ], "range": [ - 9732, - 9852 + 9967, + 10087 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 72 }, "end": { - "line": 280, + "line": 292, "column": 5 } } @@ -20839,62 +21236,62 @@ "generator": false, "expression": false, "range": [ - 9727, - 9852 + 9962, + 10087 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 67 }, "end": { - "line": 280, + "line": 292, "column": 5 } } } ], "range": [ - 9693, - 9853 + 9928, + 10088 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 33 }, "end": { - "line": 280, + "line": 292, "column": 6 } } }, "range": [ - 9664, - 9853 + 9899, + 10088 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 4 }, "end": { - "line": 280, + "line": 292, "column": 6 } } }, "range": [ - 9664, - 9854 + 9899, + 10089 ], "loc": { "start": { - "line": 278, + "line": 290, "column": 4 }, "end": { - "line": 280, + "line": 292, "column": 7 } } @@ -20905,16 +21302,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 9863, - 9874 + 10098, + 10109 ], "loc": { "start": { - "line": 281, + "line": 293, "column": 8 }, "end": { - "line": 281, + "line": 293, "column": 19 } } @@ -20934,16 +21331,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 9888, - 9899 + 10123, + 10134 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 10 }, "end": { - "line": 282, + "line": 294, "column": 21 } } @@ -20952,31 +21349,31 @@ "type": "Identifier", "name": "type", "range": [ - 9900, - 9904 + 10135, + 10139 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 22 }, "end": { - "line": 282, + "line": 294, "column": 26 } } }, "range": [ - 9888, - 9904 + 10123, + 10139 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 10 }, "end": { - "line": 282, + "line": 294, "column": 26 } } @@ -20986,31 +21383,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 9909, - 9918 + 10144, + 10153 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 31 }, "end": { - "line": 282, + "line": 294, "column": 40 } } }, "range": [ - 9888, - 9918 + 10123, + 10153 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 10 }, "end": { - "line": 282, + "line": 294, "column": 40 } } @@ -21030,16 +21427,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 9930, - 9944 + 10165, + 10179 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 8 }, "end": { - "line": 283, + "line": 295, "column": 22 } } @@ -21048,31 +21445,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9945, - 9956 + 10180, + 10191 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 23 }, "end": { - "line": 283, + "line": 295, "column": 34 } } }, "range": [ - 9930, - 9956 + 10165, + 10191 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 8 }, "end": { - "line": 283, + "line": 295, "column": 34 } } @@ -21089,16 +21486,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 9959, - 9973 + 10194, + 10208 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 37 }, "end": { - "line": 283, + "line": 295, "column": 51 } } @@ -21107,31 +21504,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9974, - 9985 + 10209, + 10220 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 52 }, "end": { - "line": 283, + "line": 295, "column": 63 } } }, "range": [ - 9959, - 9985 + 10194, + 10220 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 37 }, "end": { - "line": 283, + "line": 295, "column": 63 } } @@ -21140,31 +21537,31 @@ "type": "Identifier", "name": "filter", "range": [ - 9986, - 9992 + 10221, + 10227 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 64 }, "end": { - "line": 283, + "line": 295, "column": 70 } } }, "range": [ - 9959, - 9992 + 10194, + 10227 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 37 }, "end": { - "line": 283, + "line": 295, "column": 70 } } @@ -21178,16 +21575,16 @@ "type": "Identifier", "name": "r", "range": [ - 9993, - 9994 + 10228, + 10229 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 71 }, "end": { - "line": 283, + "line": 295, "column": 72 } } @@ -21217,16 +21614,16 @@ "type": "Identifier", "name": "r", "range": [ - 10019, - 10020 + 10254, + 10255 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 19 }, "end": { - "line": 284, + "line": 296, "column": 20 } } @@ -21235,31 +21632,31 @@ "type": "Identifier", "name": "type", "range": [ - 10021, - 10025 + 10256, + 10260 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 21 }, "end": { - "line": 284, + "line": 296, "column": 25 } } }, "range": [ - 10019, - 10025 + 10254, + 10260 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 19 }, "end": { - "line": 284, + "line": 296, "column": 25 } } @@ -21271,16 +21668,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10030, - 10044 + 10265, + 10279 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 30 }, "end": { - "line": 284, + "line": 296, "column": 44 } } @@ -21289,46 +21686,46 @@ "type": "Identifier", "name": "type", "range": [ - 10045, - 10049 + 10280, + 10284 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 45 }, "end": { - "line": 284, + "line": 296, "column": 49 } } }, "range": [ - 10030, - 10049 + 10265, + 10284 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 30 }, "end": { - "line": 284, + "line": 296, "column": 49 } } }, "range": [ - 10019, - 10049 + 10254, + 10284 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 19 }, "end": { - "line": 284, + "line": 296, "column": 49 } } @@ -21343,16 +21740,16 @@ "type": "Identifier", "name": "r", "range": [ - 10053, - 10054 + 10288, + 10289 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 53 }, "end": { - "line": 284, + "line": 296, "column": 54 } } @@ -21361,31 +21758,31 @@ "type": "Identifier", "name": "id", "range": [ - 10055, - 10057 + 10290, + 10292 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 55 }, "end": { - "line": 284, + "line": 296, "column": 57 } } }, "range": [ - 10053, - 10057 + 10288, + 10292 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 53 }, "end": { - "line": 284, + "line": 296, "column": 57 } } @@ -21397,16 +21794,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10062, - 10076 + 10297, + 10311 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 62 }, "end": { - "line": 284, + "line": 296, "column": 76 } } @@ -21415,61 +21812,61 @@ "type": "Identifier", "name": "id", "range": [ - 10077, - 10079 + 10312, + 10314 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 77 }, "end": { - "line": 284, + "line": 296, "column": 79 } } }, "range": [ - 10062, - 10079 + 10297, + 10314 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 62 }, "end": { - "line": 284, + "line": 296, "column": 79 } } }, "range": [ - 10053, - 10079 + 10288, + 10314 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 53 }, "end": { - "line": 284, + "line": 296, "column": 79 } } }, "range": [ - 10019, - 10079 + 10254, + 10314 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 19 }, "end": { - "line": 284, + "line": 296, "column": 79 } } @@ -21484,16 +21881,16 @@ "type": "Identifier", "name": "r", "range": [ - 10083, - 10084 + 10318, + 10319 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 83 }, "end": { - "line": 284, + "line": 296, "column": 84 } } @@ -21502,31 +21899,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 10085, - 10094 + 10320, + 10329 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 85 }, "end": { - "line": 284, + "line": 296, "column": 94 } } }, "range": [ - 10083, - 10094 + 10318, + 10329 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 83 }, "end": { - "line": 284, + "line": 296, "column": 94 } } @@ -21535,93 +21932,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10099, - 10114 + 10334, + 10349 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 99 }, "end": { - "line": 284, + "line": 296, "column": 114 } } }, "range": [ - 10083, - 10114 + 10318, + 10349 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 83 }, "end": { - "line": 284, + "line": 296, "column": 114 } } }, "range": [ - 10019, - 10114 + 10254, + 10349 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 19 }, "end": { - "line": 284, + "line": 296, "column": 114 } } }, "prefix": true, "range": [ - 10017, - 10115 + 10252, + 10350 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 17 }, "end": { - "line": 284, + "line": 296, "column": 115 } } }, "range": [ - 10010, - 10116 + 10245, + 10351 ], "loc": { "start": { - "line": 284, + "line": 296, "column": 10 }, "end": { - "line": 284, + "line": 296, "column": 116 } } } ], "range": [ - 9998, - 10126 + 10233, + 10361 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 76 }, "end": { - "line": 285, + "line": 297, "column": 9 } } @@ -21629,62 +22026,62 @@ "generator": false, "expression": false, "range": [ - 9993, - 10126 + 10228, + 10361 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 71 }, "end": { - "line": 285, + "line": 297, "column": 9 } } } ], "range": [ - 9959, - 10127 + 10194, + 10362 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 37 }, "end": { - "line": 285, + "line": 297, "column": 10 } } }, "range": [ - 9930, - 10127 + 10165, + 10362 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 8 }, "end": { - "line": 285, + "line": 297, "column": 10 } } }, "range": [ - 9930, - 10128 + 10165, + 10363 ], "loc": { "start": { - "line": 283, + "line": 295, "column": 8 }, "end": { - "line": 285, + "line": 297, "column": 11 } } @@ -21701,16 +22098,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10137, - 10151 + 10372, + 10386 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 8 }, "end": { - "line": 286, + "line": 298, "column": 22 } } @@ -21719,31 +22116,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10152, - 10167 + 10387, + 10402 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 23 }, "end": { - "line": 286, + "line": 298, "column": 38 } } }, "range": [ - 10137, - 10168 + 10372, + 10403 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 8 }, "end": { - "line": 286, + "line": 298, "column": 39 } } @@ -21753,62 +22150,62 @@ "value": null, "raw": "null", "range": [ - 10171, - 10175 + 10406, + 10410 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 42 }, "end": { - "line": 286, + "line": 298, "column": 46 } } }, "range": [ - 10137, - 10175 + 10372, + 10410 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 8 }, "end": { - "line": 286, + "line": 298, "column": 46 } } }, "range": [ - 10137, - 10176 + 10372, + 10411 ], "loc": { "start": { - "line": 286, + "line": 298, "column": 8 }, "end": { - "line": 286, + "line": 298, "column": 47 } } } ], "range": [ - 9920, - 10184 + 10155, + 10419 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 42 }, "end": { - "line": 287, + "line": 299, "column": 7 } } @@ -21825,16 +22222,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 10194, - 10205 + 10429, + 10440 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 17 }, "end": { - "line": 287, + "line": 299, "column": 28 } } @@ -21843,31 +22240,31 @@ "type": "Identifier", "name": "type", "range": [ - 10206, - 10210 + 10441, + 10445 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 29 }, "end": { - "line": 287, + "line": 299, "column": 33 } } }, "range": [ - 10194, - 10210 + 10429, + 10445 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 17 }, "end": { - "line": 287, + "line": 299, "column": 33 } } @@ -21877,31 +22274,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 10215, - 10225 + 10450, + 10460 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 38 }, "end": { - "line": 287, + "line": 299, "column": 48 } } }, "range": [ - 10194, - 10225 + 10429, + 10460 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 17 }, "end": { - "line": 287, + "line": 299, "column": 48 } } @@ -21921,16 +22318,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 10237, - 10251 + 10472, + 10486 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 8 }, "end": { - "line": 288, + "line": 300, "column": 22 } } @@ -21939,31 +22336,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 10252, - 10263 + 10487, + 10498 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 23 }, "end": { - "line": 288, + "line": 300, "column": 34 } } }, "range": [ - 10237, - 10263 + 10472, + 10498 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 8 }, "end": { - "line": 288, + "line": 300, "column": 34 } } @@ -21980,16 +22377,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 10266, - 10280 + 10501, + 10515 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 37 }, "end": { - "line": 288, + "line": 300, "column": 51 } } @@ -21998,31 +22395,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 10281, - 10292 + 10516, + 10527 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 52 }, "end": { - "line": 288, + "line": 300, "column": 63 } } }, "range": [ - 10266, - 10292 + 10501, + 10527 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 37 }, "end": { - "line": 288, + "line": 300, "column": 63 } } @@ -22031,31 +22428,31 @@ "type": "Identifier", "name": "filter", "range": [ - 10293, - 10299 + 10528, + 10534 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 64 }, "end": { - "line": 288, + "line": 300, "column": 70 } } }, "range": [ - 10266, - 10299 + 10501, + 10534 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 37 }, "end": { - "line": 288, + "line": 300, "column": 70 } } @@ -22069,16 +22466,16 @@ "type": "Identifier", "name": "r", "range": [ - 10300, - 10301 + 10535, + 10536 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 71 }, "end": { - "line": 288, + "line": 300, "column": 72 } } @@ -22108,16 +22505,16 @@ "type": "Identifier", "name": "r", "range": [ - 10326, - 10327 + 10561, + 10562 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 20 } } @@ -22126,31 +22523,31 @@ "type": "Identifier", "name": "type", "range": [ - 10328, - 10332 + 10563, + 10567 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 21 }, "end": { - "line": 289, + "line": 301, "column": 25 } } }, "range": [ - 10326, - 10332 + 10561, + 10567 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 25 } } @@ -22162,16 +22559,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10337, - 10351 + 10572, + 10586 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 30 }, "end": { - "line": 289, + "line": 301, "column": 44 } } @@ -22180,46 +22577,46 @@ "type": "Identifier", "name": "type", "range": [ - 10352, - 10356 + 10587, + 10591 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 45 }, "end": { - "line": 289, + "line": 301, "column": 49 } } }, "range": [ - 10337, - 10356 + 10572, + 10591 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 30 }, "end": { - "line": 289, + "line": 301, "column": 49 } } }, "range": [ - 10326, - 10356 + 10561, + 10591 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 49 } } @@ -22234,16 +22631,16 @@ "type": "Identifier", "name": "r", "range": [ - 10360, - 10361 + 10595, + 10596 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 53 }, "end": { - "line": 289, + "line": 301, "column": 54 } } @@ -22252,31 +22649,31 @@ "type": "Identifier", "name": "id", "range": [ - 10362, - 10364 + 10597, + 10599 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 55 }, "end": { - "line": 289, + "line": 301, "column": 57 } } }, "range": [ - 10360, - 10364 + 10595, + 10599 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 53 }, "end": { - "line": 289, + "line": 301, "column": 57 } } @@ -22288,16 +22685,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10369, - 10383 + 10604, + 10618 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 62 }, "end": { - "line": 289, + "line": 301, "column": 76 } } @@ -22306,61 +22703,61 @@ "type": "Identifier", "name": "id", "range": [ - 10384, - 10386 + 10619, + 10621 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 77 }, "end": { - "line": 289, + "line": 301, "column": 79 } } }, "range": [ - 10369, - 10386 + 10604, + 10621 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 62 }, "end": { - "line": 289, + "line": 301, "column": 79 } } }, "range": [ - 10360, - 10386 + 10595, + 10621 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 53 }, "end": { - "line": 289, + "line": 301, "column": 79 } } }, "range": [ - 10326, - 10386 + 10561, + 10621 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 79 } } @@ -22375,16 +22772,16 @@ "type": "Identifier", "name": "r", "range": [ - 10390, - 10391 + 10625, + 10626 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 83 }, "end": { - "line": 289, + "line": 301, "column": 84 } } @@ -22393,31 +22790,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 10392, - 10401 + 10627, + 10636 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 85 }, "end": { - "line": 289, + "line": 301, "column": 94 } } }, "range": [ - 10390, - 10401 + 10625, + 10636 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 83 }, "end": { - "line": 289, + "line": 301, "column": 94 } } @@ -22426,93 +22823,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10406, - 10421 + 10641, + 10656 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 99 }, "end": { - "line": 289, + "line": 301, "column": 114 } } }, "range": [ - 10390, - 10421 + 10625, + 10656 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 83 }, "end": { - "line": 289, + "line": 301, "column": 114 } } }, "range": [ - 10326, - 10421 + 10561, + 10656 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 19 }, "end": { - "line": 289, + "line": 301, "column": 114 } } }, "prefix": true, "range": [ - 10324, - 10422 + 10559, + 10657 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 17 }, "end": { - "line": 289, + "line": 301, "column": 115 } } }, "range": [ - 10317, - 10423 + 10552, + 10658 ], "loc": { "start": { - "line": 289, + "line": 301, "column": 10 }, "end": { - "line": 289, + "line": 301, "column": 116 } } } ], "range": [ - 10305, - 10433 + 10540, + 10668 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 76 }, "end": { - "line": 290, + "line": 302, "column": 9 } } @@ -22520,62 +22917,62 @@ "generator": false, "expression": false, "range": [ - 10300, - 10433 + 10535, + 10668 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 71 }, "end": { - "line": 290, + "line": 302, "column": 9 } } } ], "range": [ - 10266, - 10434 + 10501, + 10669 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 37 }, "end": { - "line": 290, + "line": 302, "column": 10 } } }, "range": [ - 10237, - 10434 + 10472, + 10669 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 8 }, "end": { - "line": 290, + "line": 302, "column": 10 } } }, "range": [ - 10237, - 10435 + 10472, + 10670 ], "loc": { "start": { - "line": 288, + "line": 300, "column": 8 }, "end": { - "line": 290, + "line": 302, "column": 11 } } @@ -22592,16 +22989,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10444, - 10458 + 10679, + 10693 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 8 }, "end": { - "line": 291, + "line": 303, "column": 22 } } @@ -22610,31 +23007,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10459, - 10474 + 10694, + 10709 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 23 }, "end": { - "line": 291, + "line": 303, "column": 38 } } }, "range": [ - 10444, - 10475 + 10679, + 10710 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 8 }, "end": { - "line": 291, + "line": 303, "column": 39 } } @@ -22651,16 +23048,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 10478, - 10492 + 10713, + 10727 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 42 }, "end": { - "line": 291, + "line": 303, "column": 56 } } @@ -22669,31 +23066,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10493, - 10508 + 10728, + 10743 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 57 }, "end": { - "line": 291, + "line": 303, "column": 72 } } }, "range": [ - 10478, - 10509 + 10713, + 10744 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 42 }, "end": { - "line": 291, + "line": 303, "column": 73 } } @@ -22702,31 +23099,31 @@ "type": "Identifier", "name": "filter", "range": [ - 10510, - 10516 + 10745, + 10751 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 74 }, "end": { - "line": 291, + "line": 303, "column": 80 } } }, "range": [ - 10478, - 10516 + 10713, + 10751 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 42 }, "end": { - "line": 291, + "line": 303, "column": 80 } } @@ -22740,16 +23137,16 @@ "type": "Identifier", "name": "r", "range": [ - 10517, - 10518 + 10752, + 10753 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 81 }, "end": { - "line": 291, + "line": 303, "column": 82 } } @@ -22767,16 +23164,16 @@ "type": "Identifier", "name": "r", "range": [ - 10541, - 10542 + 10776, + 10777 ], "loc": { "start": { - "line": 292, + "line": 304, "column": 17 }, "end": { - "line": 292, + "line": 304, "column": 18 } } @@ -22785,62 +23182,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 10547, - 10561 + 10782, + 10796 ], "loc": { "start": { - "line": 292, + "line": 304, "column": 23 }, "end": { - "line": 292, + "line": 304, "column": 37 } } }, "range": [ - 10541, - 10561 + 10776, + 10796 ], "loc": { "start": { - "line": 292, + "line": 304, "column": 17 }, "end": { - "line": 292, + "line": 304, "column": 37 } } }, "range": [ - 10534, - 10562 + 10769, + 10797 ], "loc": { "start": { - "line": 292, + "line": 304, "column": 10 }, "end": { - "line": 292, + "line": 304, "column": 38 } } } ], "range": [ - 10522, - 10572 + 10757, + 10807 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 86 }, "end": { - "line": 293, + "line": 305, "column": 9 } } @@ -22848,78 +23245,78 @@ "generator": false, "expression": false, "range": [ - 10517, - 10572 + 10752, + 10807 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 81 }, "end": { - "line": 293, + "line": 305, "column": 9 } } } ], "range": [ - 10478, - 10573 + 10713, + 10808 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 42 }, "end": { - "line": 293, + "line": 305, "column": 10 } } }, "range": [ - 10444, - 10573 + 10679, + 10808 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 8 }, "end": { - "line": 293, + "line": 305, "column": 10 } } }, "range": [ - 10444, - 10574 + 10679, + 10809 ], "loc": { "start": { - "line": 291, + "line": 303, "column": 8 }, "end": { - "line": 293, + "line": 305, "column": 11 } } } ], "range": [ - 10227, - 10582 + 10462, + 10817 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 50 }, "end": { - "line": 294, + "line": 306, "column": 7 } } @@ -22936,16 +23333,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 10592, - 10603 + 10827, + 10838 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 17 }, "end": { - "line": 294, + "line": 306, "column": 28 } } @@ -22954,31 +23351,31 @@ "type": "Identifier", "name": "type", "range": [ - 10604, - 10608 + 10839, + 10843 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 29 }, "end": { - "line": 294, + "line": 306, "column": 33 } } }, "range": [ - 10592, - 10608 + 10827, + 10843 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 17 }, "end": { - "line": 294, + "line": 306, "column": 33 } } @@ -22988,31 +23385,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 10613, - 10619 + 10848, + 10854 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 38 }, "end": { - "line": 294, + "line": 306, "column": 44 } } }, "range": [ - 10592, - 10619 + 10827, + 10854 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 17 }, "end": { - "line": 294, + "line": 306, "column": 44 } } @@ -23028,16 +23425,16 @@ "type": "Identifier", "name": "Error", "range": [ - 10641, - 10646 + 10876, + 10881 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 18 }, "end": { - "line": 295, + "line": 307, "column": 23 } } @@ -23054,16 +23451,16 @@ }, "tail": false, "range": [ - 10647, - 10684 + 10882, + 10919 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 24 }, "end": { - "line": 295, + "line": 307, "column": 61 } } @@ -23076,16 +23473,16 @@ }, "tail": false, "range": [ - 10699, - 10722 + 10934, + 10957 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 76 }, "end": { - "line": 295, + "line": 307, "column": 99 } } @@ -23098,16 +23495,16 @@ }, "tail": true, "range": [ - 10737, - 10741 + 10972, + 10976 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 114 }, "end": { - "line": 295, + "line": 307, "column": 118 } } @@ -23118,16 +23515,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 10684, - 10699 + 10919, + 10934 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 61 }, "end": { - "line": 295, + "line": 307, "column": 76 } } @@ -23136,141 +23533,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 10722, - 10737 + 10957, + 10972 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 99 }, "end": { - "line": 295, + "line": 307, "column": 114 } } } ], "range": [ - 10647, - 10741 + 10882, + 10976 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 24 }, "end": { - "line": 295, + "line": 307, "column": 118 } } } ], "range": [ - 10637, - 10742 + 10872, + 10977 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 14 }, "end": { - "line": 295, + "line": 307, "column": 119 } } }, "range": [ - 10631, - 10743 + 10866, + 10978 ], "loc": { "start": { - "line": 295, + "line": 307, "column": 8 }, "end": { - "line": 295, + "line": 307, "column": 120 } } } ], "range": [ - 10621, - 10751 + 10856, + 10986 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 46 }, "end": { - "line": 296, + "line": 308, "column": 7 } } }, "alternate": null, "range": [ - 10588, - 10751 + 10823, + 10986 ], "loc": { "start": { - "line": 294, + "line": 306, "column": 13 }, "end": { - "line": 296, + "line": 308, "column": 7 } } }, "range": [ - 10190, - 10751 + 10425, + 10986 ], "loc": { "start": { - "line": 287, + "line": 299, "column": 13 }, "end": { - "line": 296, + "line": 308, "column": 7 } } }, "range": [ - 9884, - 10751 + 10119, + 10986 ], "loc": { "start": { - "line": 282, + "line": 294, "column": 6 }, "end": { - "line": 296, + "line": 308, "column": 7 } } } ], "range": [ - 9876, - 10757 + 10111, + 10992 ], "loc": { "start": { - "line": 281, + "line": 293, "column": 21 }, "end": { - "line": 297, + "line": 309, "column": 5 } } @@ -23284,16 +23681,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 10767, - 10778 + 11002, + 11013 ], "loc": { "start": { - "line": 297, + "line": 309, "column": 15 }, "end": { - "line": 297, + "line": 309, "column": 26 } } @@ -23302,31 +23699,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 10779, - 10786 + 11014, + 11021 ], "loc": { "start": { - "line": 297, + "line": 309, "column": 27 }, "end": { - "line": 297, + "line": 309, "column": 34 } } }, "range": [ - 10767, - 10786 + 11002, + 11021 ], "loc": { "start": { - "line": 297, + "line": 309, "column": 15 }, "end": { - "line": 297, + "line": 309, "column": 34 } } @@ -23342,16 +23739,16 @@ "type": "Identifier", "name": "Error", "range": [ - 10806, - 10811 + 11041, + 11046 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 16 }, "end": { - "line": 298, + "line": 310, "column": 21 } } @@ -23368,16 +23765,16 @@ }, "tail": false, "range": [ - 10812, - 10849 + 11047, + 11084 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 22 }, "end": { - "line": 298, + "line": 310, "column": 59 } } @@ -23390,16 +23787,16 @@ }, "tail": false, "range": [ - 10864, - 10882 + 11099, + 11117 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 74 }, "end": { - "line": 298, + "line": 310, "column": 92 } } @@ -23412,16 +23809,16 @@ }, "tail": true, "range": [ - 10901, - 10905 + 11136, + 11140 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 111 }, "end": { - "line": 298, + "line": 310, "column": 115 } } @@ -23432,16 +23829,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 10849, - 10864 + 11084, + 11099 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 59 }, "end": { - "line": 298, + "line": 310, "column": 74 } } @@ -23453,16 +23850,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 10882, - 10893 + 11117, + 11128 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 92 }, "end": { - "line": 298, + "line": 310, "column": 103 } } @@ -23471,141 +23868,141 @@ "type": "Identifier", "name": "inverse", "range": [ - 10894, - 10901 + 11129, + 11136 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 104 }, "end": { - "line": 298, + "line": 310, "column": 111 } } }, "range": [ - 10882, - 10901 + 11117, + 11136 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 92 }, "end": { - "line": 298, + "line": 310, "column": 111 } } } ], "range": [ - 10812, - 10905 + 11047, + 11140 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 22 }, "end": { - "line": 298, + "line": 310, "column": 115 } } } ], "range": [ - 10802, - 10906 + 11037, + 11141 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 12 }, "end": { - "line": 298, + "line": 310, "column": 116 } } }, "range": [ - 10796, - 10907 + 11031, + 11142 ], "loc": { "start": { - "line": 298, + "line": 310, "column": 6 }, "end": { - "line": 298, + "line": 310, "column": 117 } } } ], "range": [ - 10788, - 10913 + 11023, + 11148 ], "loc": { "start": { - "line": 297, + "line": 309, "column": 36 }, "end": { - "line": 299, + "line": 311, "column": 5 } } }, "alternate": null, "range": [ - 10763, - 10913 + 10998, + 11148 ], "loc": { "start": { - "line": 297, + "line": 309, "column": 11 }, "end": { - "line": 299, + "line": 311, "column": 5 } } }, "range": [ - 9859, - 10913 + 10094, + 11148 ], "loc": { "start": { - "line": 281, + "line": 293, "column": 4 }, "end": { - "line": 299, + "line": 311, "column": 5 } } } ], "range": [ - 9450, - 10917 + 9685, + 11152 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 91 }, "end": { - "line": 300, + "line": 312, "column": 3 } } @@ -23613,16 +24010,16 @@ "generator": false, "expression": false, "range": [ - 9387, - 10917 + 9622, + 11152 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 28 }, "end": { - "line": 300, + "line": 312, "column": 3 } } @@ -23630,16 +24027,16 @@ "kind": "method", "computed": false, "range": [ - 9361, - 10917 + 9596, + 11152 ], "loc": { "start": { - "line": 274, + "line": 286, "column": 2 }, "end": { - "line": 300, + "line": 312, "column": 3 } }, @@ -23648,7 +24045,7 @@ ], "range": [ 27, - 10920 + 11155 ], "loc": { "start": { @@ -23656,14 +24053,14 @@ "column": 27 }, "end": { - "line": 302, + "line": 314, "column": 1 } } }, "range": [ 15, - 10920 + 11155 ], "loc": { "start": { @@ -23671,7 +24068,7 @@ "column": 15 }, "end": { - "line": 302, + "line": 314, "column": 1 } }, @@ -23680,7 +24077,7 @@ }, "range": [ 0, - 10920 + 11155 ], "loc": { "start": { @@ -23688,123 +24085,16 @@ "column": 0 }, "end": { - "line": 302, + "line": 314, "column": 1 } } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "Store", - "range": [ - 10922, - 10927 - ], - "loc": { - "start": { - "line": 304, - "column": 0 - }, - "end": { - "line": 304, - "column": 5 - } - } - }, - "property": { - "type": "Identifier", - "name": "types", - "range": [ - 10928, - 10933 - ], - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 11 - } - } - }, - "range": [ - 10922, - 10933 - ], - "loc": { - "start": { - "line": 304, - "column": 0 - }, - "end": { - "line": 304, - "column": 11 - } - } - }, - "right": { - "type": "ObjectExpression", - "properties": [], - "range": [ - 10936, - 10938 - ], - "loc": { - "start": { - "line": 304, - "column": 14 - }, - "end": { - "line": 304, - "column": 16 - } - } - }, - "range": [ - 10922, - 10938 - ], - "loc": { - "start": { - "line": 304, - "column": 0 - }, - "end": { - "line": 304, - "column": 16 - } - } - }, - "range": [ - 10922, - 10939 - ], - "loc": { - "start": { - "line": 304, - "column": 0 - }, - "end": { - "line": 304, - "column": 17 - } - } } ], "sourceType": "module", "range": [ 0, - 10939 + 11155 ], "loc": { "start": { @@ -23812,8 +24102,8 @@ "column": 0 }, "end": { - "line": 304, - "column": 17 + "line": 314, + "column": 1 } }, "comments": [ @@ -23873,72 +24163,90 @@ }, { "type": "Block", - "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n ", "range": [ - 2727, - 3032 + 2749, + 3038 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 5 } } }, { "type": "Block", - "value": "*\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n ", + "value": "*\n * Defines a type of resource.\n *\n * @param {string} name - Name of the resource.\n * @param {Object} defition - The resource's definition.\n * @return {undefined} - Nothing.\n ", "range": [ - 3521, - 4013 + 3527, + 3719 ], "loc": { "start": { - "line": 114, + "line": 115, "column": 2 }, "end": { - "line": 124, + "line": 121, "column": 5 } } }, { "type": "Block", - "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n ", "range": [ - 4819, - 5151 + 3788, + 4280 ], "loc": { "start": { - "line": 154, + "line": 126, "column": 2 }, "end": { - "line": 161, + "line": 136, "column": 5 } } }, { "type": "Block", - "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Doesn't return anything.\n ", + "value": "*\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 5384, - 5724 + 5086, + 5402 ], "loc": { "start": { + "line": 166, + "column": 2 + }, + "end": { "line": 173, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n ", + "range": [ + 5635, + 5959 + ], + "loc": { + "start": { + "line": 185, "column": 2 }, "end": { - "line": 180, + "line": 192, "column": 5 } } @@ -23947,16 +24255,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 9075, - 9134 + 9310, + 9369 ], "loc": { "start": { - "line": 266, + "line": 278, "column": 6 }, "end": { - "line": 266, + "line": 278, "column": 65 } } diff --git a/docs/badge.svg b/docs/badge.svg index c44d5ab..5e1ca25 100644 --- a/docs/badge.svg +++ b/docs/badge.svg @@ -11,7 +11,7 @@ document document - 77% - 77% + 80% + 80% diff --git a/docs/class/src/store.js~Store.html b/docs/class/src/store.js~Store.html index f6c3ffd..90bb2a8 100644 --- a/docs/class/src/store.js~Store.html +++ b/docs/class/src/store.js~Store.html @@ -235,6 +235,31 @@ + + + +
+

+ define(name: string, defition: Object): undefined +

+
+
+ + +

Defines a type of resource.

+
+ + + + + + + + + public + + + @@ -620,7 +645,7 @@ - source + source @@ -659,7 +684,83 @@ - + +
undefined

Doesn't return anything.

+

Nothing.

+
+
+
+ + + + + + + + + + + + + + + +
+

+ public + + + + + define(name: string, defition: Object): undefined + + + + source + +

+ + + + +

Defines a type of resource.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
namestring

Name of the resource.

+
defitionObject

The resource's definition.

+
+
+
+ +
+

Return:

+ + + +
undefined

Nothing.

@@ -691,7 +792,7 @@ - source + source @@ -770,7 +871,7 @@ will be automatically created when find is called.

- source + source @@ -809,7 +910,7 @@ successful GET or POST response from the server.

-
undefined

Doesn't return anything.

+

Nothing.

@@ -841,7 +942,7 @@ successful GET or POST response from the server.

- source + source @@ -886,7 +987,7 @@ successful GET or POST response from the server.

-
undefined

Doesn't return anything.

+

Nothing.

diff --git a/docs/coverage.json b/docs/coverage.json index 6a09681..a3138b2 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,11 +1,11 @@ { - "coverage": "77.77%", - "expectCount": 9, - "actualCount": 7, + "coverage": "80%", + "expectCount": 10, + "actualCount": 8, "files": { "src/store.js": { - "expectCount": 9, - "actualCount": 7 + "expectCount": 10, + "actualCount": 8 } } } \ No newline at end of file diff --git a/docs/dump.json b/docs/dump.json index 41c8873..172aa3f 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -9,7 +9,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "export default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.default] - Default value for this field.\n * @return {Object} - Field definition.\n */\n static attr(name, options) {\n if (name && typeof name === 'object') {\n return Store.attr(null, name);\n } else {\n return {\n type: \"attr\",\n default: options && options.default,\n deserialize: function (data, key) {\n return data.attributes && data.attributes[name || key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasOne(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasOne(null, name);\n } else {\n return {\n type: \"has-one\",\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return null;\n } else if (data.relationships[name].data) {\n return this.find(data.relationships[name].data.type, data.relationships[name].data.id);\n }\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasMany(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasMany(null, name);\n } else {\n return {\n type: \"has-many\",\n default: [],\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return [];\n } else if (data.relationships[name].data) {\n return data.relationships[name].data.map((c) => {\n return this.find(c.type, c.id);\n });\n }\n }\n }\n };\n }\n }\n\n constructor() {\n this._data = {};\n }\n\n /**\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Doesn't return anything.\n */\n add(object) {\n if (object) {\n if (object.type && object.id) {\n let resource = this.find(object.type, object.id);\n let definition = Store.types[object.type];\n Object.keys(definition).forEach(fieldName => {\n this._addField(object, resource, definition, fieldName);\n });\n } else {\n throw new TypeError(`The data must have a type and id`);\n }\n } else {\n throw new TypeError(`You must provide data to add`);\n }\n }\n\n /**\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n */\n find(type, id) {\n var definition;\n if (type) {\n definition = Store.types[type];\n if (definition) {\n this._data[type] = this._data[type] || {};\n if (id) {\n if (!this._data[type][id]) {\n this._data[type][id] = {\n _dependents: [],\n type: type,\n id: id\n };\n Object.keys(definition).forEach(key => {\n this._data[type][id][key] = definition[key].default;\n });\n }\n return this._data[type][id];\n } else {\n return Object.keys(this._data[type]).map(x => this._data[type][x]);\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type`);\n }\n }\n\n /**\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Doesn't return anything.\n */\n push(root) {\n if (root.data.constructor === Array) {\n root.data.forEach(x => this.add(x));\n } else {\n this.add(root.data);\n }\n if (root.included) {\n root.included.forEach(x => this.add(x));\n }\n }\n\n /**\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Doesn't return anything.\n */\n remove(type, id) {\n if (type) {\n if (Store.types[type]) {\n if (id) {\n let resource = this._data[type][id];\n if (resource) {\n this._remove(resource);\n }\n } else {\n Object.keys(this._data[type]).forEach(id => this.remove(type, id));\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type to remove`);\n }\n }\n\n _addField(object, resource, definition, fieldName) {\n var field = definition[fieldName];\n var newValue = field.deserialize.call(this, object, fieldName);\n if (typeof newValue !== \"undefined\") {\n if (field.type === \"has-one\") {\n if (resource[fieldName]) {\n this._removeInverseRelationship(resource, fieldName, resource[fieldName], field);\n }\n if (newValue) {\n this._addInverseRelationship(resource, fieldName, newValue, field);\n }\n } else if (field.type === \"has-many\") {\n resource[fieldName].forEach(r => {\n if (resource[fieldName].indexOf(r) !== -1) {\n this._removeInverseRelationship(resource, fieldName, r, field);\n }\n });\n newValue.forEach(r => {\n this._addInverseRelationship(resource, fieldName, r, field);\n });\n }\n resource[fieldName] = newValue;\n }\n }\n\n _addInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = Store.types[targetResource.type];\n var targetFieldName = sourceField.inverse || targetResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents.push({ type: sourceResource.type, id: sourceResource.id, fieldName: sourceFieldName });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n targetResource[targetFieldName] = sourceResource;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n if (targetResource[targetFieldName].indexOf(sourceResource) === -1) {\n targetResource[targetFieldName].push(sourceResource);\n }\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n _remove(resource) {\n resource._dependents.forEach(dependent => {\n let dependentResource = this._data[dependent.type][dependent.id];\n switch (Store.types[dependent.type][dependent.fieldName].type) {\n case \"has-one\": {\n dependentResource[dependent.fieldName] = null;\n break;\n }\n case \"has-many\": {\n let index = dependentResource[dependent.fieldName].indexOf(resource);\n if (index !== -1) {\n dependentResource[dependent.fieldName].splice(index, 1);\n }\n break;\n }\n default: {\n break;\n }\n }\n // TODO: This only needs to be run once for each dependent.\n dependentResource._dependents = dependentResource._dependents.filter(d => {\n return !(d.type === resource.type && d.id === resource.id);\n });\n });\n delete this._data[resource.type][resource.id];\n }\n\n _removeInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = Store.types[targetResource.type];\n var targetFieldName = sourceField.inverse || targetResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents = targetResource._dependents.filter(r => {\n return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);\n });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = null;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = targetResource[targetFieldName].filter(r => {\n return r !== sourceResource;\n });\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n}\n\nStore.types = {};\n" + "content": "export default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.default] - Default value for this field.\n * @return {Object} - Field definition.\n */\n static attr(name, options) {\n if (name && typeof name === 'object') {\n return Store.attr(null, name);\n } else {\n return {\n type: \"attr\",\n default: options && options.default,\n deserialize: function (data, key) {\n return data.attributes && data.attributes[name || key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasOne(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasOne(null, name);\n } else {\n return {\n type: \"has-one\",\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return null;\n } else if (data.relationships[name].data) {\n return this.find(data.relationships[name].data.type, data.relationships[name].data.id);\n }\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @param {string} [name] - Name of the property to map this field from.\n * @param {Object} [options] - An options object.\n * @param {string} [options.inverse] - Name of the inverse relationship.\n * @return {Object} - Field definition.\n */\n static hasMany(name, options) {\n if (name && typeof name === 'object') {\n return Store.hasMany(null, name);\n } else {\n return {\n type: \"has-many\",\n default: [],\n inverse: options && options.inverse,\n deserialize: function (data, key) {\n name = name || key;\n if (data.relationships && data.relationships[name]) {\n if (data.relationships[name].data === null) {\n return [];\n } else if (data.relationships[name].data) {\n return data.relationships[name].data.map((c) => {\n return this.find(c.type, c.id);\n });\n }\n }\n }\n };\n }\n }\n\n constructor() {\n this._data = {};\n this._types = {};\n }\n\n /**\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @param {Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n */\n add(object) {\n if (object) {\n if (object.type && object.id) {\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n this._addField(object, resource, definition, fieldName);\n });\n } else {\n throw new TypeError(`The data must have a type and id`);\n }\n } else {\n throw new TypeError(`You must provide data to add`);\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @param {string} name - Name of the resource.\n * @param {Object} defition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(name, defition) {\n this._types[name] = defition;\n }\n\n /**\n * Find a resource or entire collection of resources.\n *\n * NOTE: If the resource hasn't been loaded via an add() or push() call it\n * will be automatically created when find is called.\n *\n * @param {!string} type - Type of the resource(s) to find.\n * @param {string} [id] - The id of the resource to find. If omitted all\n * resources of the type will be returned.\n * @return {Object|Object[]} - Either the resource or an array of resources.\n */\n find(type, id) {\n var definition;\n if (type) {\n definition = this._types[type];\n if (definition) {\n this._data[type] = this._data[type] || {};\n if (id) {\n if (!this._data[type][id]) {\n this._data[type][id] = {\n _dependents: [],\n type: type,\n id: id\n };\n Object.keys(definition).forEach(key => {\n this._data[type][id][key] = definition[key].default;\n });\n }\n return this._data[type][id];\n } else {\n return Object.keys(this._data[type]).map(x => this._data[type][x]);\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type`);\n }\n }\n\n /**\n * Add a JSON API response to the store. This method can be used to handle a\n * successful GET or POST response from the server.\n *\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n */\n push(root) {\n if (root.data.constructor === Array) {\n root.data.forEach(x => this.add(x));\n } else {\n this.add(root.data);\n }\n if (root.included) {\n root.included.forEach(x => this.add(x));\n }\n }\n\n /**\n * Remove a resource or collection of resources from the store.\n *\n * @param {!string} type - Type of the resource(s) to remove.\n * @param {string} [id] - The id of the resource to remove. If omitted all\n * resources of the type will be removed.\n * @return {undefined} - Nothing.\n */\n remove(type, id) {\n if (type) {\n if (this._types[type]) {\n if (id) {\n let resource = this._data[type][id];\n if (resource) {\n this._remove(resource);\n }\n } else {\n Object.keys(this._data[type]).forEach(id => this.remove(type, id));\n }\n } else {\n throw new TypeError(`Unknown type '${type}'`);\n }\n } else {\n throw new TypeError(`You must provide a type to remove`);\n }\n }\n\n _addField(object, resource, definition, fieldName) {\n var field = definition[fieldName];\n var newValue = field.deserialize.call(this, object, fieldName);\n if (typeof newValue !== \"undefined\") {\n if (field.type === \"has-one\") {\n if (resource[fieldName]) {\n this._removeInverseRelationship(resource, fieldName, resource[fieldName], field);\n }\n if (newValue) {\n this._addInverseRelationship(resource, fieldName, newValue, field);\n }\n } else if (field.type === \"has-many\") {\n resource[fieldName].forEach(r => {\n if (resource[fieldName].indexOf(r) !== -1) {\n this._removeInverseRelationship(resource, fieldName, r, field);\n }\n });\n newValue.forEach(r => {\n this._addInverseRelationship(resource, fieldName, r, field);\n });\n }\n resource[fieldName] = newValue;\n }\n }\n\n _addInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var targetFieldName = sourceField.inverse || targetResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents.push({ type: sourceResource.type, id: sourceResource.id, fieldName: sourceFieldName });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n targetResource[targetFieldName] = sourceResource;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents.push({ type: targetResource.type, id: targetResource.id, fieldName: targetFieldName });\n if (targetResource[targetFieldName].indexOf(sourceResource) === -1) {\n targetResource[targetFieldName].push(sourceResource);\n }\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n _remove(resource) {\n resource._dependents.forEach(dependent => {\n let dependentResource = this._data[dependent.type][dependent.id];\n switch (this._types[dependent.type][dependent.fieldName].type) {\n case \"has-one\": {\n dependentResource[dependent.fieldName] = null;\n break;\n }\n case \"has-many\": {\n let index = dependentResource[dependent.fieldName].indexOf(resource);\n if (index !== -1) {\n dependentResource[dependent.fieldName].splice(index, 1);\n }\n break;\n }\n default: {\n break;\n }\n }\n // TODO: This only needs to be run once for each dependent.\n dependentResource._dependents = dependentResource._dependents.filter(d => {\n return !(d.type === resource.type && d.id === resource.id);\n });\n });\n delete this._data[resource.type][resource.id];\n }\n\n _removeInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) {\n var targetDefinition = this._types[targetResource.type];\n var targetFieldName = sourceField.inverse || targetResource.type;\n var targetField = targetDefinition && targetDefinition[targetFieldName];\n targetResource._dependents = targetResource._dependents.filter(r => {\n return !(r.type === sourceResource.type && r.id === sourceResource.id && r.fieldName === sourceFieldName);\n });\n if (targetField) {\n if (targetField.type === \"has-one\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = null;\n } else if (targetField.type === \"has-many\") {\n sourceResource._dependents = sourceResource._dependents.filter(r => {\n return !(r.type === targetResource.type && r.id === targetResource.id && r.fieldName === targetFieldName);\n });\n targetResource[targetFieldName] = targetResource[targetFieldName].filter(r => {\n return r !== sourceResource;\n });\n } else if (targetField.type === \"attr\") {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is an attribute ('${targetFieldName}')`);\n }\n } else if (sourceField.inverse) {\n throw new Error(`The the inverse relationship for '${sourceFieldName}' is missing ('${sourceField.inverse}')`);\n }\n }\n\n}\n" }, { "kind": "class", @@ -214,6 +214,23 @@ ] } }, + { + "kind": "member", + "static": false, + "variation": null, + "name": "_types", + "memberof": "src/store.js~Store", + "longname": "src/store.js~Store#_types", + "access": null, + "description": null, + "lineNumber": 88, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, { "kind": "method", "static": false, @@ -223,7 +240,7 @@ "longname": "src/store.js~Store#add", "access": null, "description": "Add an individual resource to the store. This is used internally by the\n`push()` method.", - "lineNumber": 98, + "lineNumber": 99, "params": [ { "nullable": null, @@ -242,7 +259,49 @@ "undefined" ], "spread": false, - "description": "Doesn't return anything." + "description": "Nothing." + }, + "generator": false + }, + { + "kind": "method", + "static": false, + "variation": null, + "name": "define", + "memberof": "src/store.js~Store", + "longname": "src/store.js~Store#define", + "access": null, + "description": "Defines a type of resource.", + "lineNumber": 122, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "Name of the resource." + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "defition", + "description": "The resource's definition." + } + ], + "return": { + "nullable": null, + "types": [ + "undefined" + ], + "spread": false, + "description": "Nothing." }, "generator": false }, @@ -255,7 +314,7 @@ "longname": "src/store.js~Store#find", "access": null, "description": "Find a resource or entire collection of resources.\n\nNOTE: If the resource hasn't been loaded via an add() or push() call it\nwill be automatically created when find is called.", - "lineNumber": 125, + "lineNumber": 137, "params": [ { "nullable": false, @@ -298,7 +357,7 @@ "longname": "src/store.js~Store#push", "access": null, "description": "Add a JSON API response to the store. This method can be used to handle a\nsuccessful GET or POST response from the server.", - "lineNumber": 162, + "lineNumber": 174, "params": [ { "nullable": null, @@ -317,7 +376,7 @@ "undefined" ], "spread": false, - "description": "Doesn't return anything." + "description": "Nothing." }, "generator": false }, @@ -330,7 +389,7 @@ "longname": "src/store.js~Store#remove", "access": null, "description": "Remove a resource or collection of resources from the store.", - "lineNumber": 181, + "lineNumber": 193, "params": [ { "nullable": false, @@ -359,7 +418,7 @@ "undefined" ], "spread": false, - "description": "Doesn't return anything." + "description": "Nothing." }, "generator": false }, @@ -372,7 +431,7 @@ "longname": "src/store.js~Store#_addField", "access": null, "description": null, - "lineNumber": 200, + "lineNumber": 212, "undocument": true, "params": [ { @@ -411,7 +470,7 @@ "longname": "src/store.js~Store#_addInverseRelationship", "access": null, "description": null, - "lineNumber": 225, + "lineNumber": 237, "undocument": true, "params": [ { @@ -450,7 +509,7 @@ "longname": "src/store.js~Store#_remove", "access": null, "description": null, - "lineNumber": 247, + "lineNumber": 259, "undocument": true, "params": [ { @@ -471,7 +530,7 @@ "longname": "src/store.js~Store#_removeInverseRelationship", "access": null, "description": null, - "lineNumber": 274, + "lineNumber": 286, "undocument": true, "params": [ { diff --git a/docs/file/src/store.js.html b/docs/file/src/store.js.html index b9ed169..a80dc59 100644 --- a/docs/file/src/store.js.html +++ b/docs/file/src/store.js.html @@ -134,6 +134,7 @@ constructor() { this._data = {}; + this._types = {}; } /** @@ -142,13 +143,13 @@ * * @param {Object} object - Resource Object to add. See: http://jsonapi.org/format/#document-resource-objects - * @return {undefined} - Doesn't return anything. + * @return {undefined} - Nothing. */ add(object) { if (object) { if (object.type && object.id) { let resource = this.find(object.type, object.id); - let definition = Store.types[object.type]; + let definition = this._types[object.type]; Object.keys(definition).forEach(fieldName => { this._addField(object, resource, definition, fieldName); }); @@ -160,6 +161,17 @@ } } + /** + * Defines a type of resource. + * + * @param {string} name - Name of the resource. + * @param {Object} defition - The resource's definition. + * @return {undefined} - Nothing. + */ + define(name, defition) { + this._types[name] = defition; + } + /** * Find a resource or entire collection of resources. * @@ -174,7 +186,7 @@ find(type, id) { var definition; if (type) { - definition = Store.types[type]; + definition = this._types[type]; if (definition) { this._data[type] = this._data[type] || {}; if (id) { @@ -206,7 +218,7 @@ * * @param {Object} root - Top Level Object to push. See: http://jsonapi.org/format/#document-top-level - * @return {undefined} - Doesn't return anything. + * @return {undefined} - Nothing. */ push(root) { if (root.data.constructor === Array) { @@ -225,11 +237,11 @@ * @param {!string} type - Type of the resource(s) to remove. * @param {string} [id] - The id of the resource to remove. If omitted all * resources of the type will be removed. - * @return {undefined} - Doesn't return anything. + * @return {undefined} - Nothing. */ remove(type, id) { if (type) { - if (Store.types[type]) { + if (this._types[type]) { if (id) { let resource = this._data[type][id]; if (resource) { @@ -272,7 +284,7 @@ } _addInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) { - var targetDefinition = Store.types[targetResource.type]; + var targetDefinition = this._types[targetResource.type]; var targetFieldName = sourceField.inverse || targetResource.type; var targetField = targetDefinition && targetDefinition[targetFieldName]; targetResource._dependents.push({ type: sourceResource.type, id: sourceResource.id, fieldName: sourceFieldName }); @@ -296,7 +308,7 @@ _remove(resource) { resource._dependents.forEach(dependent => { let dependentResource = this._data[dependent.type][dependent.id]; - switch (Store.types[dependent.type][dependent.fieldName].type) { + switch (this._types[dependent.type][dependent.fieldName].type) { case "has-one": { dependentResource[dependent.fieldName] = null; break; @@ -321,7 +333,7 @@ } _removeInverseRelationship(sourceResource, sourceFieldName, targetResource, sourceField) { - var targetDefinition = Store.types[targetResource.type]; + var targetDefinition = this._types[targetResource.type]; var targetFieldName = sourceField.inverse || targetResource.type; var targetField = targetDefinition && targetDefinition[targetFieldName]; targetResource._dependents = targetResource._dependents.filter(r => { @@ -349,8 +361,6 @@ } } - -Store.types = {};
diff --git a/docs/index.html b/docs/index.html index cf81ba5..cfa8180 100644 --- a/docs/index.html +++ b/docs/index.html @@ -46,25 +46,30 @@ -

JSON API Store

-

JSON API Store (JAS) is browser store that implements the JSON API specification (version 1.0).

-

Example Usage

-

At the moment you need to do your own AJAX requests, but JAS will store you data and maintain the relationships.

+

JSON API Store Build Status

+

JSON API Store takes JSON API data and creates plain +JavaScript objects for the resources it describes. It will link-up +relationships automatically and update both sides of reciprocal relationships +when either side is modified.

+

Usage

+

At the moment you need to do your own AJAX requests, but there are plans to add +AJAX methods to create, read, update and destroy resources in the future. For +now you can just push the responses from your own requests to the store:


+// Create a new store instance.
+var store = new Store();
+
 // Define the "categories" type.
-Store.type["categories"] = {
+store.define("categories", {
   title: Store.attr(),
   products: Store.hasMany({ inverse: "category" })
-};
+});
 
 // Define the "products" type.
-Store.type["products"] = {
+store.define("products", {
   title: Store.attr(),
   category: Store.hasOne()
-};
-
-// Create a new store instance.
-var store = new Store();
+});
 
 // Add data - this can just be the response from a GET request to your API.
 store.push({
@@ -105,19 +110,33 @@ category.title; // "Books"
 product.category === category; // true
 category.products[0] === product; // true
-

Tests

+

Installing

+

Grab the dist/store.js file (Bower / NPM options coming soon).

+

Documentation

+

Documentation is available in the docs directory. It can be re-generated with +esdoc:

+
esdoc -c esdoc.json
+

Tests

You can run tests once-off with NPM:

npm test
-

Alternatively, you can run tests in watch mode using nodemon:

+

Alternatively, you can run tests in watch mode using +nodemon:

nodemon node_modules/jasmine/bin/jasmine.js
+

Building

+

You can rebuild the the output from the source using +babel:

+
babel src/store.js -m umd --module-id Store --compact true --no-comments -o dist/store.js

Roadmap

    -
  • documentation
  • +
  • better type definitions (define per instance and optionally use classes)
  • +
  • support for pluralisations/pseudonyms
  • +
  • online documentation / website
  • +
  • NPM/Bower packages
  • +
  • automated release process
  • create, read, update & destroy AJAX methods
  • event listeners for listening to changes
  • -
  • type definitions using classes (aka, models)
  • -
  • simple support for pluralisations/pseudonyms
  • -
  • maybe a way to query the local data
  • +
  • a way to query the local data?
  • +
  • isomorphic?
  • support for links & pagination
diff --git a/docs/script/search_index.js b/docs/script/search_index.js index 54485ad..230320a 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -347,6 +347,12 @@ window.esdocSearchIndex = [ "src/store.js~Store#constructor", "method" ], + [ + "src/store.js~store#define", + "class/src/store.js~Store.html#instance-method-define", + "src/store.js~Store#define", + "method" + ], [ "src/store.js~store#find", "class/src/store.js~Store.html#instance-method-find", diff --git a/docs/source.html b/docs/source.html index 9d3559a..b2f0f6c 100644 --- a/docs/source.html +++ b/docs/source.html @@ -46,7 +46,7 @@ -

Source 7/9

+

Source 8/10

@@ -64,10 +64,10 @@ - - - - + + + +
src/store.js Store77 %7/910940 byte3042015-08-06 08:07:42 (UTC)80 %8/1011156 byte3142015-08-04 00:22:37 (UTC)
diff --git a/example/index.html b/example/index.html index f44ab5f..c7f9165 100644 --- a/example/index.html +++ b/example/index.html @@ -26,13 +26,17 @@
- - - + + +