From 210c9e62e8c9b10ec0206813c754ba2a7671ebaf Mon Sep 17 00:00:00 2001 From: Haydn Ewers Date: Fri, 2 Oct 2015 11:18:03 +0930 Subject: [PATCH] Release v0.5.3. --- bower.json | 2 +- dist/store.dev.js | 21 + dist/store.dev.js.map | 4 +- dist/store.js | 21 + dist/store.prod.js | 2 +- docs/ast/source/src/store.js.json | 21442 +++++++++++++++------------ docs/class/src/store.js~Store.html | 28 +- docs/dump.json | 48 +- docs/file/src/store.js.html | 21 + docs/package.json | 2 +- docs/source.html | 8 +- package.json | 2 +- 12 files changed, 11780 insertions(+), 9821 deletions(-) diff --git a/bower.json b/bower.json index ebe5a15..cf12a17 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "json-api-store", - "version": "0.5.2", + "version": "0.5.3", "homepage": "https://github.com/haydn/json-api-store", "authors": [ "Haydn Ewers " diff --git a/dist/store.dev.js b/dist/store.dev.js index 2dc9794..b9ecde1 100644 --- a/dist/store.dev.js +++ b/dist/store.dev.js @@ -328,6 +328,18 @@ var Store = (function () { return this.find(data.relationships[name].data.type, data.relationships[name].data.id); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key] === null) { + data.relationships[name || key] = null; + } else if (resource[key]) { + data.relationships[name || key] = { + data: { + type: resource[key].type, + id: resource[key].id + } + }; + } } }; } @@ -365,6 +377,15 @@ var Store = (function () { }); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key]) { + data.relationships[name || key] = { + data: resource[key].map(function (x) { + return { type: x.type, id: x.id }; + }) + }; + } } }; } diff --git a/dist/store.dev.js.map b/dist/store.dev.js.map index 9cfcbca..5dc194a 100644 --- a/dist/store.dev.js.map +++ b/dist/store.dev.js.map @@ -7,13 +7,13 @@ "../src/store.js" ], "names": [], - "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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CAAC,MAAM,CAAC,UAAA,CAAC,EAAI;AAClE,mBAAO,EAAE,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,KAAK,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC,SAAS,KAAK,eAAe,CAAA,AAAC,CAAC;WAC3G,CAAC,CAAC;AACH,wBAAc,CAAC,eAAe,CAAC,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,UAAA,CAAC,EAAI;AAC5E,mBAAO,CAAC,KAAK,cAAc,CAAC;WAC7B,CAAC,CAAC;SACJ,MAAM,IAAI,WAAW,CAAC,IAAI,KAAK,MAAM,EAAE;AACtC,gBAAM,IAAI,KAAK,wCAAsC,eAAe,4BAAuB,eAAe,QAAK,CAAC;SACjH;OACF,MAAM,IAAI,WAAW,CAAC,OAAO,EAAE;AAC9B,cAAM,IAAI,KAAK,wCAAsC,eAAe,uBAAkB,WAAW,CAAC,OAAO,QAAK,CAAC;OAChH;KACF;;;SA3lBkB,KAAK;;;qBAAL,KAAK;;AA+lB1B,KAAK,CAAC,WAAW,2BAAc,CAAC", "file": "generated.js", "sourceRoot": "", "sourcesContent": [ "(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o\n// For all details and docs: https://github.com/paulmillr/array.prototype.find\n// Fixes and tests supplied by Duncan Hall \n(function(globals){\n if (Array.prototype.find) return;\n\n var find = function(predicate) {\n var list = Object(this);\n var length = list.length < 0 ? 0 : list.length >>> 0; // ES.ToUint32;\n if (length === 0) return undefined;\n if (typeof predicate !== 'function' || Object.prototype.toString.call(predicate) !== '[object Function]') {\n throw new TypeError('Array#find: predicate must be a function');\n }\n var thisArg = arguments[1];\n for (var i = 0, value; i < length; i++) {\n value = list[i];\n if (predicate.call(thisArg, value, i, list)) return value;\n }\n return undefined;\n };\n\n if (Object.defineProperty) {\n try {\n Object.defineProperty(Array.prototype, 'find', {\n value: find, configurable: true, enumerable: false, writable: true\n });\n } catch(e) {}\n }\n\n if (!Array.prototype.find) {\n Array.prototype.find = find;\n }\n})(this);\n", "export default class AjaxAdapter {\n\n constructor(options) {\n this._base = (options && options.base) || \"\";\n };\n\n create(store, type, partial, success, error, context) {\n\n if (error && {}.toString.call(error) !== '[object Function]') {\n\n this.create(store, type, partial, success, null, error);\n\n } else if (store._types[type]) {\n\n let request = new XMLHttpRequest();\n\n request.open('POST', `${this._base}/${type}`, true);\n\n request.setRequestHeader(\"Content-Type\", \"application/vnd.api+json\");\n\n request.onload = function () {\n if (request.status >= 200 && request.status < 300) {\n let response = JSON.parse(request.responseText);\n try {\n store.push(response);\n if (success) {\n success.call(context, store.find(response.data.type, response.data.id));\n }\n } catch (e) {\n if (error) {\n error.call(context, e);\n }\n }\n } else {\n if (error) {\n error.call(context);\n }\n }\n };\n\n request.send(JSON.stringify({\n data: store.convert(type, partial)\n }));\n\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n\n }\n\n destroy(store, type, id, success, error, context) {\n\n if (error && {}.toString.call(error) !== '[object Function]') {\n\n this.destroy(store, type, id, success, null, error);\n\n } else if (store._types[type]) {\n\n let request = new XMLHttpRequest();\n\n request.open('DELETE', `${this._base}/${type}/${id}`, true);\n\n request.setRequestHeader(\"Content-Type\", \"application/vnd.api+json\");\n\n request.onload = function () {\n if (request.status >= 200 && request.status < 300) {\n try {\n store.remove(type, id);\n if (success) {\n success.call(context);\n }\n } catch (e) {\n error.call(context, e);\n }\n } else if (error) {\n error.call(context);\n }\n };\n\n request.send();\n\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n\n }\n\n load(store, type, id, options, success, error, context) {\n\n if (id && {}.toString.call(id) === '[object Function]') {\n this.load(store, type, null, null, id, options, success);\n } else if (id && typeof id === \"object\") {\n this.load(store, type, null, id, options, success, error);\n } else if (options && {}.toString.call(options) === '[object Function]') {\n this.load(store, type, id, {}, options, success, error);\n } else if (error && {}.toString.call(error) !== '[object Function]') {\n this.load(store, type, id, options, success, null, error);\n } else if (store._types[type]) {\n\n let request = new XMLHttpRequest();\n let url;\n\n options = options || {};\n url = id ? `${this._base}/${type}/${id}` : `${this._base}/${type}`;\n\n if (options) {\n\n let params = [];\n\n if (options.fields) {\n Object.keys(options.fields).forEach(field => {\n options[`fields[${field}]`] = options.fields[field];\n });\n delete options.fields;\n }\n\n params = Object.keys(options).map(key => {\n return key + \"=\" + encodeURIComponent(options[key]);\n }).sort();\n\n if (params.length) {\n url = `${url}?${params.join(\"&\")}`;\n }\n\n }\n\n request.open('GET', url, true);\n\n request.setRequestHeader(\"Content-Type\", \"application/vnd.api+json\");\n\n request.onload = function () {\n if (request.status >= 200 && request.status < 300) {\n try {\n store.push(JSON.parse(request.responseText));\n if (success) {\n success.call(context, id ? store.find(type, id) : store.find(type));\n }\n } catch (e) {\n error.call({}, e);\n }\n } else if (error) {\n error.call(context);\n }\n };\n\n request.send();\n\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n\n }\n\n update(store, type, id, partial, success, error, context) {\n\n if (error && {}.toString.call(error) !== '[object Function]') {\n\n this.update(store, type, id, partial, success, null, error);\n\n } else if (store._types[type]) {\n\n let request = new XMLHttpRequest();\n let data = store.convert(type, id, partial);\n\n request.open('PATCH', `${this._base}/${type}/${id}`, true);\n\n request.setRequestHeader(\"Content-Type\", \"application/vnd.api+json\");\n\n request.onload = function () {\n if (request.status >= 200 && request.status < 300) {\n try {\n store.add(data);\n if (success) {\n success.call(context, store.find(data.type, data.id));\n }\n } catch (e) {\n if (error) {\n error.call(context, e);\n }\n }\n } else if (error) {\n error.call(context);\n }\n };\n\n request.send(JSON.stringify({\n data: data\n }));\n\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n\n }\n\n}\n", - "import \"array.prototype.find\";\nimport AjaxAdapter from \"./ajax-adapter\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\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 serialize: function (resource, data, key) {\n data.attributes[name || key] = resource[key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\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 * @since 0.1.0\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(adapter) {\n this._adapter = adapter;\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\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 * @since 0.1.0\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 event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\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 * Converts the given partial into a JSON API compliant representation.\n *\n * @since 0.5.0\n * @param {!string} [type] - The type of the resource. This can be omitted if the partial includes a type property.\n * @param {!string} [id] - The id of the resource. This can be omitted if the partial includes an id property.\n * @param {!object} partial - The data to convert.\n * @return {object} - JSON API version of the object.\n */\n convert(type, id, partial) {\n if (type && typeof type === \"object\") {\n return this.convert(type.type, type.id, type);\n } else if (id && typeof id === \"object\") {\n return this.convert(type, id.id, id);\n } else {\n let data = {\n type: type,\n attributes: {},\n relationships: {}\n };\n if (id) {\n data.id = id;\n }\n let definition = this._types[data.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n definition[fieldName].serialize(partial, data, fieldName);\n }\n });\n return data;\n }\n }\n\n /**\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n */\n create(type, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.create(this, type, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n if (definition) {\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n } else {\n throw new Error(`You must provide a definition for the type '${names[0]}'.`);\n }\n }\n\n /**\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n */\n destroy(type, id, success, error, context) {\n if (this._adapter) {\n this._adapter.destroy(this, type, id, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 * @since 0.1.0\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 if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\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 if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\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 * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n */\n load(type, id, options, success, error, context) {\n if (this._adapter) {\n this._adapter.load(this, type, id, options, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) {\n this._resourceListeners[event][type][id].push([ callback, context ]);\n }\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n if (!this._collectionListeners[event][type].find(x => x[0] === callback)) {\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\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 * @since 0.1.0\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 * @since 0.1.0\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] && this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\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 /**\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n */\n update(type, id, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.update(this, type, id, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let 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\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 || sourceResource.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.AjaxAdapter = AjaxAdapter;\n" + "import \"array.prototype.find\";\nimport AjaxAdapter from \"./ajax-adapter\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\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 serialize: function (resource, data, key) {\n data.attributes[name || key] = resource[key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\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 serialize: function serialize(resource, data, key) {\n if (resource[key] === null) {\n data.relationships[name || key] = null;\n } else if (resource[key]) {\n data.relationships[name || key] = {\n data: {\n type: resource[key].type,\n id: resource[key].id\n }\n };\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @since 0.1.0\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 serialize: function serialize(resource, data, key) {\n if (resource[key]) {\n data.relationships[name || key] = {\n data: resource[key].map(x => {\n return { type: x.type, id: x.id };\n })\n };\n }\n }\n };\n }\n }\n\n constructor(adapter) {\n this._adapter = adapter;\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\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 * @since 0.1.0\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 event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\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 * Converts the given partial into a JSON API compliant representation.\n *\n * @since 0.5.0\n * @param {!string} [type] - The type of the resource. This can be omitted if the partial includes a type property.\n * @param {!string} [id] - The id of the resource. This can be omitted if the partial includes an id property.\n * @param {!object} partial - The data to convert.\n * @return {object} - JSON API version of the object.\n */\n convert(type, id, partial) {\n if (type && typeof type === \"object\") {\n return this.convert(type.type, type.id, type);\n } else if (id && typeof id === \"object\") {\n return this.convert(type, id.id, id);\n } else {\n let data = {\n type: type,\n attributes: {},\n relationships: {}\n };\n if (id) {\n data.id = id;\n }\n let definition = this._types[data.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n definition[fieldName].serialize(partial, data, fieldName);\n }\n });\n return data;\n }\n }\n\n /**\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n */\n create(type, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.create(this, type, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n if (definition) {\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n } else {\n throw new Error(`You must provide a definition for the type '${names[0]}'.`);\n }\n }\n\n /**\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n */\n destroy(type, id, success, error, context) {\n if (this._adapter) {\n this._adapter.destroy(this, type, id, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 * @since 0.1.0\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 if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\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 if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\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 * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n */\n load(type, id, options, success, error, context) {\n if (this._adapter) {\n this._adapter.load(this, type, id, options, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) {\n this._resourceListeners[event][type][id].push([ callback, context ]);\n }\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n if (!this._collectionListeners[event][type].find(x => x[0] === callback)) {\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\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 * @since 0.1.0\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 * @since 0.1.0\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] && this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\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 /**\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n */\n update(type, id, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.update(this, type, id, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let 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\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 || sourceResource.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.AjaxAdapter = AjaxAdapter;\n" ] } \ No newline at end of file diff --git a/dist/store.js b/dist/store.js index ac21d33..50c77ad 100644 --- a/dist/store.js +++ b/dist/store.js @@ -73,6 +73,18 @@ var Store = (function () { return this.find(data.relationships[name].data.type, data.relationships[name].data.id); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key] === null) { + data.relationships[name || key] = null; + } else if (resource[key]) { + data.relationships[name || key] = { + data: { + type: resource[key].type, + id: resource[key].id + } + }; + } } }; } @@ -110,6 +122,15 @@ var Store = (function () { }); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key]) { + data.relationships[name || key] = { + data: resource[key].map(function (x) { + return { type: x.type, id: x.id }; + }) + }; + } } }; } diff --git a/dist/store.prod.js b/dist/store.prod.js index 95d71c0..d2aabf2 100644 --- a/dist/store.prod.js +++ b/dist/store.prod.js @@ -37,7 +37,7 @@ "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,t){for(var n=0;n=200&&i.status<300){var t=JSON.parse(i.responseText);try{e.push(t),a&&a.call(s,e.find(t.data.type,t.data.id))}catch(n){o&&o.call(s,n)}}else o&&o.call(s)},i.send(JSON.stringify({data:e.convert(t,n)}))}()}}},{key:"destroy",value:function(e,t,n,a,o,s){var l=this;if(o&&"[object Function]"!=={}.toString.call(o))this.destroy(e,t,n,a,null,o);else{if(!e._types[t])throw new Error("Unknown type '"+t+"'");!function(){var i=new XMLHttpRequest;i.open("DELETE",l._base+"/"+t+"/"+n,!0),i.setRequestHeader("Content-Type","application/vnd.api+json"),i.onload=function(){if(i.status>=200&&i.status<300)try{e.remove(t,n),a&&a.call(s)}catch(l){o.call(s,l)}else o&&o.call(s)},i.send()}()}}},{key:"load",value:function(e,t,n,a,o,s,l){var i=this;if(n&&"[object Function]"==={}.toString.call(n))this.load(e,t,null,null,n,a,o);else if(n&&"object"==typeof n)this.load(e,t,null,n,a,o,s);else if(a&&"[object Function]"==={}.toString.call(a))this.load(e,t,n,{},a,o,s);else if(s&&"[object Function]"!=={}.toString.call(s))this.load(e,t,n,a,o,null,s);else{if(!e._types[t])throw new Error("Unknown type '"+t+"'");!function(){var r=new XMLHttpRequest,c=void 0;if(a=a||{},c=n?i._base+"/"+t+"/"+n:i._base+"/"+t,a){var u=[];a.fields&&(Object.keys(a.fields).forEach(function(e){a["fields["+e+"]"]=a.fields[e]}),delete a.fields),u=Object.keys(a).map(function(e){return e+"="+encodeURIComponent(a[e])}).sort(),u.length&&(c=c+"?"+u.join("&"))}r.open("GET",c,!0),r.setRequestHeader("Content-Type","application/vnd.api+json"),r.onload=function(){if(r.status>=200&&r.status<300)try{e.push(JSON.parse(r.responseText)),o&&o.call(l,n?e.find(t,n):e.find(t))}catch(a){s.call({},a)}else s&&s.call(l)},r.send()}()}}},{key:"update",value:function(e,t,n,a,o,s,l){var i=this;if(s&&"[object Function]"!=={}.toString.call(s))this.update(e,t,n,a,o,null,s);else{if(!e._types[t])throw new Error("Unknown type '"+t+"'");!function(){var r=new XMLHttpRequest,c=e.convert(t,n,a);r.open("PATCH",i._base+"/"+t+"/"+n,!0),r.setRequestHeader("Content-Type","application/vnd.api+json"),r.onload=function(){if(r.status>=200&&r.status<300)try{e.add(c),o&&o.call(l,e.find(c.type,c.id))}catch(t){s&&s.call(l,t)}else s&&s.call(l)},r.send(JSON.stringify({data:c}))}()}}}]),e}();exports["default"]=AjaxAdapter,module.exports=exports["default"]; },{}],3:[function(require,module,exports){ -"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,t){for(var r=0;r {\n * console.log(product.title);\n * });\n ", "range": [ - 5608, - 6269 + 6293, + 6954 ], "loc": { "start": { - "line": 170, + "line": 191, "column": 2 }, "end": { - "line": 188, + "line": 209, "column": 5 } } @@ -11995,16 +13891,16 @@ "type": "Identifier", "name": "create", "range": [ - 6272, - 6278 + 6957, + 6963 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 2 }, "end": { - "line": 189, + "line": 210, "column": 8 } } @@ -12017,16 +13913,16 @@ "type": "Identifier", "name": "type", "range": [ - 6279, - 6283 + 6964, + 6968 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 9 }, "end": { - "line": 189, + "line": 210, "column": 13 } } @@ -12035,16 +13931,16 @@ "type": "Identifier", "name": "partial", "range": [ - 6285, - 6292 + 6970, + 6977 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 15 }, "end": { - "line": 189, + "line": 210, "column": 22 } } @@ -12053,16 +13949,16 @@ "type": "Identifier", "name": "success", "range": [ - 6294, - 6301 + 6979, + 6986 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 24 }, "end": { - "line": 189, + "line": 210, "column": 31 } } @@ -12071,16 +13967,16 @@ "type": "Identifier", "name": "error", "range": [ - 6303, - 6308 + 6988, + 6993 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 33 }, "end": { - "line": 189, + "line": 210, "column": 38 } } @@ -12089,16 +13985,16 @@ "type": "Identifier", "name": "context", "range": [ - 6310, - 6317 + 6995, + 7002 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 40 }, "end": { - "line": 189, + "line": 210, "column": 47 } } @@ -12115,16 +14011,16 @@ "object": { "type": "ThisExpression", "range": [ - 6329, - 6333 + 7014, + 7018 ], "loc": { "start": { - "line": 190, + "line": 211, "column": 8 }, "end": { - "line": 190, + "line": 211, "column": 12 } } @@ -12133,31 +14029,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 6334, - 6342 + 7019, + 7027 ], "loc": { "start": { - "line": 190, + "line": 211, "column": 13 }, "end": { - "line": 190, + "line": 211, "column": 21 } } }, "range": [ - 6329, - 6342 + 7014, + 7027 ], "loc": { "start": { - "line": 190, + "line": 211, "column": 8 }, "end": { - "line": 190, + "line": 211, "column": 21 } } @@ -12178,16 +14074,16 @@ "object": { "type": "ThisExpression", "range": [ - 6352, - 6356 + 7037, + 7041 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 6 }, "end": { - "line": 191, + "line": 212, "column": 10 } } @@ -12196,31 +14092,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 6357, - 6365 + 7042, + 7050 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 11 }, "end": { - "line": 191, + "line": 212, "column": 19 } } }, "range": [ - 6352, - 6365 + 7037, + 7050 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 6 }, "end": { - "line": 191, + "line": 212, "column": 19 } } @@ -12229,31 +14125,31 @@ "type": "Identifier", "name": "create", "range": [ - 6366, - 6372 + 7051, + 7057 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 20 }, "end": { - "line": 191, + "line": 212, "column": 26 } } }, "range": [ - 6352, - 6372 + 7037, + 7057 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 6 }, "end": { - "line": 191, + "line": 212, "column": 26 } } @@ -12262,16 +14158,16 @@ { "type": "ThisExpression", "range": [ - 6373, - 6377 + 7058, + 7062 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 27 }, "end": { - "line": 191, + "line": 212, "column": 31 } } @@ -12280,16 +14176,16 @@ "type": "Identifier", "name": "type", "range": [ - 6379, - 6383 + 7064, + 7068 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 33 }, "end": { - "line": 191, + "line": 212, "column": 37 } } @@ -12298,16 +14194,16 @@ "type": "Identifier", "name": "partial", "range": [ - 6385, - 6392 + 7070, + 7077 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 39 }, "end": { - "line": 191, + "line": 212, "column": 46 } } @@ -12316,16 +14212,16 @@ "type": "Identifier", "name": "success", "range": [ - 6394, - 6401 + 7079, + 7086 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 48 }, "end": { - "line": 191, + "line": 212, "column": 55 } } @@ -12334,16 +14230,16 @@ "type": "Identifier", "name": "error", "range": [ - 6403, - 6408 + 7088, + 7093 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 57 }, "end": { - "line": 191, + "line": 212, "column": 62 } } @@ -12352,63 +14248,63 @@ "type": "Identifier", "name": "context", "range": [ - 6410, - 6417 + 7095, + 7102 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 64 }, "end": { - "line": 191, + "line": 212, "column": 71 } } } ], "range": [ - 6352, - 6418 + 7037, + 7103 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 6 }, "end": { - "line": 191, + "line": 212, "column": 72 } } }, "range": [ - 6352, - 6419 + 7037, + 7104 ], "loc": { "start": { - "line": 191, + "line": 212, "column": 6 }, "end": { - "line": 191, + "line": 212, "column": 73 } } } ], "range": [ - 6344, - 6425 + 7029, + 7110 ], "loc": { "start": { - "line": 190, + "line": 211, "column": 23 }, "end": { - "line": 192, + "line": 213, "column": 5 } } @@ -12424,16 +14320,16 @@ "type": "Identifier", "name": "Error", "range": [ - 6449, - 6454 + 7134, + 7139 ], "loc": { "start": { - "line": 193, + "line": 214, "column": 16 }, "end": { - "line": 193, + "line": 214, "column": 21 } } @@ -12444,94 +14340,94 @@ "value": "Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`", "raw": "\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\"", "range": [ - 6455, - 6551 + 7140, + 7236 ], "loc": { "start": { - "line": 193, + "line": 214, "column": 22 }, "end": { - "line": 193, + "line": 214, "column": 118 } } } ], "range": [ - 6445, - 6552 + 7130, + 7237 ], "loc": { "start": { - "line": 193, + "line": 214, "column": 12 }, "end": { - "line": 193, + "line": 214, "column": 119 } } }, "range": [ - 6439, - 6553 + 7124, + 7238 ], "loc": { "start": { - "line": 193, + "line": 214, "column": 6 }, "end": { - "line": 193, + "line": 214, "column": 120 } } } ], "range": [ - 6431, - 6559 + 7116, + 7244 ], "loc": { "start": { - "line": 192, + "line": 213, "column": 11 }, "end": { - "line": 194, + "line": 215, "column": 5 } } }, "range": [ - 6325, - 6559 + 7010, + 7244 ], "loc": { "start": { - "line": 190, + "line": 211, "column": 4 }, "end": { - "line": 194, + "line": 215, "column": 5 } } } ], "range": [ - 6319, - 6563 + 7004, + 7248 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 49 }, "end": { - "line": 195, + "line": 216, "column": 3 } } @@ -12539,16 +14435,16 @@ "generator": false, "expression": false, "range": [ - 6278, - 6563 + 6963, + 7248 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 8 }, "end": { - "line": 195, + "line": 216, "column": 3 } } @@ -12556,16 +14452,16 @@ "kind": "method", "computed": false, "range": [ - 6272, - 6563 + 6957, + 7248 ], "loc": { "start": { - "line": 189, + "line": 210, "column": 2 }, "end": { - "line": 195, + "line": 216, "column": 3 } }, @@ -12574,16 +14470,16 @@ "type": "Block", "value": "*\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 5608, - 6269 + 6293, + 6954 ], "loc": { "start": { - "line": 170, + "line": 191, "column": 2 }, "end": { - "line": 188, + "line": 209, "column": 5 } } @@ -12594,16 +14490,16 @@ "type": "Block", "value": "*\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n ", "range": [ - 6567, - 6794 + 7252, + 7479 ], "loc": { "start": { - "line": 197, + "line": 218, "column": 2 }, "end": { - "line": 204, + "line": 225, "column": 5 } } @@ -12617,16 +14513,16 @@ "type": "Identifier", "name": "define", "range": [ - 6797, - 6803 + 7482, + 7488 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 2 }, "end": { - "line": 205, + "line": 226, "column": 8 } } @@ -12639,16 +14535,16 @@ "type": "Identifier", "name": "names", "range": [ - 6804, - 6809 + 7489, + 7494 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 9 }, "end": { - "line": 205, + "line": 226, "column": 14 } } @@ -12657,16 +14553,16 @@ "type": "Identifier", "name": "definition", "range": [ - 6811, - 6821 + 7496, + 7506 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 16 }, "end": { - "line": 205, + "line": 226, "column": 26 } } @@ -12684,16 +14580,16 @@ "type": "Identifier", "name": "names", "range": [ - 6829, - 6834 + 7514, + 7519 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 4 }, "end": { - "line": 206, + "line": 227, "column": 9 } } @@ -12710,16 +14606,16 @@ "type": "Identifier", "name": "names", "range": [ - 6838, - 6843 + 7523, + 7528 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 13 }, "end": { - "line": 206, + "line": 227, "column": 18 } } @@ -12728,31 +14624,31 @@ "type": "Identifier", "name": "constructor", "range": [ - 6844, - 6855 + 7529, + 7540 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 19 }, "end": { - "line": 206, + "line": 227, "column": 30 } } }, "range": [ - 6838, - 6855 + 7523, + 7540 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 13 }, "end": { - "line": 206, + "line": 227, "column": 30 } } @@ -12761,31 +14657,31 @@ "type": "Identifier", "name": "Array", "range": [ - 6860, - 6865 + 7545, + 7550 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 35 }, "end": { - "line": 206, + "line": 227, "column": 40 } } }, "range": [ - 6838, - 6865 + 7523, + 7550 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 13 }, "end": { - "line": 206, + "line": 227, "column": 40 } } @@ -12794,16 +14690,16 @@ "type": "Identifier", "name": "names", "range": [ - 6869, - 6874 + 7554, + 7559 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 44 }, "end": { - "line": 206, + "line": 227, "column": 49 } } @@ -12815,77 +14711,77 @@ "type": "Identifier", "name": "names", "range": [ - 6879, - 6884 + 7564, + 7569 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 54 }, "end": { - "line": 206, + "line": 227, "column": 59 } } } ], "range": [ - 6877, - 6886 + 7562, + 7571 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 52 }, "end": { - "line": 206, + "line": 227, "column": 61 } } }, "range": [ - 6837, - 6886 + 7522, + 7571 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 12 }, "end": { - "line": 206, + "line": 227, "column": 61 } } }, "range": [ - 6829, - 6886 + 7514, + 7571 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 4 }, "end": { - "line": 206, + "line": 227, "column": 61 } } }, "range": [ - 6829, - 6887 + 7514, + 7572 ], "loc": { "start": { - "line": 206, + "line": 227, "column": 4 }, "end": { - "line": 206, + "line": 227, "column": 62 } } @@ -12896,16 +14792,16 @@ "type": "Identifier", "name": "definition", "range": [ - 6896, - 6906 + 7581, + 7591 ], "loc": { "start": { - "line": 207, + "line": 228, "column": 8 }, "end": { - "line": 207, + "line": 228, "column": 18 } } @@ -12925,16 +14821,16 @@ "type": "Identifier", "name": "definition", "range": [ - 6916, - 6926 + 7601, + 7611 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 6 }, "end": { - "line": 208, + "line": 229, "column": 16 } } @@ -12943,31 +14839,31 @@ "type": "Identifier", "name": "_names", "range": [ - 6927, - 6933 + 7612, + 7618 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 17 }, "end": { - "line": 208, + "line": 229, "column": 23 } } }, "range": [ - 6916, - 6933 + 7601, + 7618 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 6 }, "end": { - "line": 208, + "line": 229, "column": 23 } } @@ -12976,46 +14872,46 @@ "type": "Identifier", "name": "names", "range": [ - 6936, - 6941 + 7621, + 7626 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 26 }, "end": { - "line": 208, + "line": 229, "column": 31 } } }, "range": [ - 6916, - 6941 + 7601, + 7626 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 6 }, "end": { - "line": 208, + "line": 229, "column": 31 } } }, "range": [ - 6916, - 6942 + 7601, + 7627 ], "loc": { "start": { - "line": 208, + "line": 229, "column": 6 }, "end": { - "line": 208, + "line": 229, "column": 32 } } @@ -13031,16 +14927,16 @@ "type": "Identifier", "name": "names", "range": [ - 6949, - 6954 + 7634, + 7639 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 6 }, "end": { - "line": 209, + "line": 230, "column": 11 } } @@ -13049,31 +14945,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 6955, - 6962 + 7640, + 7647 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 12 }, "end": { - "line": 209, + "line": 230, "column": 19 } } }, "range": [ - 6949, - 6962 + 7634, + 7647 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 6 }, "end": { - "line": 209, + "line": 230, "column": 19 } } @@ -13087,16 +14983,16 @@ "type": "Identifier", "name": "name", "range": [ - 6963, - 6967 + 7648, + 7652 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 20 }, "end": { - "line": 209, + "line": 230, "column": 24 } } @@ -13119,16 +15015,16 @@ "object": { "type": "ThisExpression", "range": [ - 6986, - 6990 + 7671, + 7675 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 13 }, "end": { - "line": 210, + "line": 231, "column": 17 } } @@ -13137,31 +15033,31 @@ "type": "Identifier", "name": "_types", "range": [ - 6991, - 6997 + 7676, + 7682 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 18 }, "end": { - "line": 210, + "line": 231, "column": 24 } } }, "range": [ - 6986, - 6997 + 7671, + 7682 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 13 }, "end": { - "line": 210, + "line": 231, "column": 24 } } @@ -13170,47 +15066,47 @@ "type": "Identifier", "name": "name", "range": [ - 6998, - 7002 + 7683, + 7687 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 25 }, "end": { - "line": 210, + "line": 231, "column": 29 } } }, "range": [ - 6986, - 7003 + 7671, + 7688 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 13 }, "end": { - "line": 210, + "line": 231, "column": 30 } } }, "prefix": true, "range": [ - 6985, - 7003 + 7670, + 7688 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 12 }, "end": { - "line": 210, + "line": 231, "column": 30 } } @@ -13232,16 +15128,16 @@ "object": { "type": "ThisExpression", "range": [ - 7017, - 7021 + 7702, + 7706 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 10 }, "end": { - "line": 211, + "line": 232, "column": 14 } } @@ -13250,31 +15146,31 @@ "type": "Identifier", "name": "_types", "range": [ - 7022, - 7028 + 7707, + 7713 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 15 }, "end": { - "line": 211, + "line": 232, "column": 21 } } }, "range": [ - 7017, - 7028 + 7702, + 7713 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 10 }, "end": { - "line": 211, + "line": 232, "column": 21 } } @@ -13283,31 +15179,31 @@ "type": "Identifier", "name": "name", "range": [ - 7029, - 7033 + 7714, + 7718 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 22 }, "end": { - "line": 211, + "line": 232, "column": 26 } } }, "range": [ - 7017, - 7034 + 7702, + 7719 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 10 }, "end": { - "line": 211, + "line": 232, "column": 27 } } @@ -13316,62 +15212,62 @@ "type": "Identifier", "name": "definition", "range": [ - 7037, - 7047 + 7722, + 7732 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 30 }, "end": { - "line": 211, + "line": 232, "column": 40 } } }, "range": [ - 7017, - 7047 + 7702, + 7732 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 10 }, "end": { - "line": 211, + "line": 232, "column": 40 } } }, "range": [ - 7017, - 7048 + 7702, + 7733 ], "loc": { "start": { - "line": 211, + "line": 232, "column": 10 }, "end": { - "line": 211, + "line": 232, "column": 41 } } } ], "range": [ - 7005, - 7058 + 7690, + 7743 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 32 }, "end": { - "line": 212, + "line": 233, "column": 9 } } @@ -13387,16 +15283,16 @@ "type": "Identifier", "name": "Error", "range": [ - 7086, - 7091 + 7771, + 7776 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 20 }, "end": { - "line": 213, + "line": 234, "column": 25 } } @@ -13413,16 +15309,16 @@ }, "tail": false, "range": [ - 7092, - 7105 + 7777, + 7790 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 26 }, "end": { - "line": 213, + "line": 234, "column": 39 } } @@ -13435,16 +15331,16 @@ }, "tail": true, "range": [ - 7109, - 7138 + 7794, + 7823 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 43 }, "end": { - "line": 213, + "line": 234, "column": 72 } } @@ -13455,110 +15351,110 @@ "type": "Identifier", "name": "name", "range": [ - 7105, - 7109 + 7790, + 7794 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 39 }, "end": { - "line": 213, + "line": 234, "column": 43 } } } ], "range": [ - 7092, - 7138 + 7777, + 7823 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 26 }, "end": { - "line": 213, + "line": 234, "column": 72 } } } ], "range": [ - 7082, - 7139 + 7767, + 7824 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 16 }, "end": { - "line": 213, + "line": 234, "column": 73 } } }, "range": [ - 7076, - 7140 + 7761, + 7825 ], "loc": { "start": { - "line": 213, + "line": 234, "column": 10 }, "end": { - "line": 213, + "line": 234, "column": 74 } } } ], "range": [ - 7064, - 7150 + 7749, + 7835 ], "loc": { "start": { - "line": 212, + "line": 233, "column": 15 }, "end": { - "line": 214, + "line": 235, "column": 9 } } }, "range": [ - 6981, - 7150 + 7666, + 7835 ], "loc": { "start": { - "line": 210, + "line": 231, "column": 8 }, "end": { - "line": 214, + "line": 235, "column": 9 } } } ], "range": [ - 6971, - 7158 + 7656, + 7843 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 28 }, "end": { - "line": 215, + "line": 236, "column": 7 } } @@ -13566,63 +15462,63 @@ "generator": false, "expression": false, "range": [ - 6963, - 7158 + 7648, + 7843 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 20 }, "end": { - "line": 215, + "line": 236, "column": 7 } } } ], "range": [ - 6949, - 7159 + 7634, + 7844 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 6 }, "end": { - "line": 215, + "line": 236, "column": 8 } } }, "range": [ - 6949, - 7160 + 7634, + 7845 ], "loc": { "start": { - "line": 209, + "line": 230, "column": 6 }, "end": { - "line": 215, + "line": 236, "column": 9 } } } ], "range": [ - 6908, - 7166 + 7593, + 7851 ], "loc": { "start": { - "line": 207, + "line": 228, "column": 20 }, "end": { - "line": 216, + "line": 237, "column": 5 } } @@ -13638,16 +15534,16 @@ "type": "Identifier", "name": "Error", "range": [ - 7190, - 7195 + 7875, + 7880 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 16 }, "end": { - "line": 217, + "line": 238, "column": 21 } } @@ -13664,16 +15560,16 @@ }, "tail": false, "range": [ - 7196, - 7243 + 7881, + 7928 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 22 }, "end": { - "line": 217, + "line": 238, "column": 69 } } @@ -13686,16 +15582,16 @@ }, "tail": true, "range": [ - 7251, - 7255 + 7936, + 7940 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 77 }, "end": { - "line": 217, + "line": 238, "column": 81 } } @@ -13709,16 +15605,16 @@ "type": "Identifier", "name": "names", "range": [ - 7243, - 7248 + 7928, + 7933 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 69 }, "end": { - "line": 217, + "line": 238, "column": 74 } } @@ -13728,125 +15624,125 @@ "value": 0, "raw": "0", "range": [ - 7249, - 7250 + 7934, + 7935 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 75 }, "end": { - "line": 217, + "line": 238, "column": 76 } } }, "range": [ - 7243, - 7251 + 7928, + 7936 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 69 }, "end": { - "line": 217, + "line": 238, "column": 77 } } } ], "range": [ - 7196, - 7255 + 7881, + 7940 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 22 }, "end": { - "line": 217, + "line": 238, "column": 81 } } } ], "range": [ - 7186, - 7256 + 7871, + 7941 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 12 }, "end": { - "line": 217, + "line": 238, "column": 82 } } }, "range": [ - 7180, - 7257 + 7865, + 7942 ], "loc": { "start": { - "line": 217, + "line": 238, "column": 6 }, "end": { - "line": 217, + "line": 238, "column": 83 } } } ], "range": [ - 7172, - 7263 + 7857, + 7948 ], "loc": { "start": { - "line": 216, + "line": 237, "column": 11 }, "end": { - "line": 218, + "line": 239, "column": 5 } } }, "range": [ - 6892, - 7263 + 7577, + 7948 ], "loc": { "start": { - "line": 207, + "line": 228, "column": 4 }, "end": { - "line": 218, + "line": 239, "column": 5 } } } ], "range": [ - 6823, - 7267 + 7508, + 7952 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 28 }, "end": { - "line": 219, + "line": 240, "column": 3 } } @@ -13854,16 +15750,16 @@ "generator": false, "expression": false, "range": [ - 6803, - 7267 + 7488, + 7952 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 8 }, "end": { - "line": 219, + "line": 240, "column": 3 } } @@ -13871,16 +15767,16 @@ "kind": "method", "computed": false, "range": [ - 6797, - 7267 + 7482, + 7952 ], "loc": { "start": { - "line": 205, + "line": 226, "column": 2 }, "end": { - "line": 219, + "line": 240, "column": 3 } }, @@ -13889,16 +15785,16 @@ "type": "Block", "value": "*\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n ", "range": [ - 6567, - 6794 + 7252, + 7479 ], "loc": { "start": { - "line": 197, + "line": 218, "column": 2 }, "end": { - "line": 204, + "line": 225, "column": 5 } } @@ -13909,16 +15805,16 @@ "type": "Block", "value": "*\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n ", "range": [ - 7271, - 7890 + 7956, + 8575 ], "loc": { "start": { - "line": 221, + "line": 242, "column": 2 }, "end": { - "line": 239, + "line": 260, "column": 5 } } @@ -13932,16 +15828,16 @@ "type": "Identifier", "name": "destroy", "range": [ - 7893, - 7900 + 8578, + 8585 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 2 }, "end": { - "line": 240, + "line": 261, "column": 9 } } @@ -13954,16 +15850,16 @@ "type": "Identifier", "name": "type", "range": [ - 7901, - 7905 + 8586, + 8590 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 10 }, "end": { - "line": 240, + "line": 261, "column": 14 } } @@ -13972,16 +15868,16 @@ "type": "Identifier", "name": "id", "range": [ - 7907, - 7909 + 8592, + 8594 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 16 }, "end": { - "line": 240, + "line": 261, "column": 18 } } @@ -13990,16 +15886,16 @@ "type": "Identifier", "name": "success", "range": [ - 7911, - 7918 + 8596, + 8603 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 20 }, "end": { - "line": 240, + "line": 261, "column": 27 } } @@ -14008,16 +15904,16 @@ "type": "Identifier", "name": "error", "range": [ - 7920, - 7925 + 8605, + 8610 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 29 }, "end": { - "line": 240, + "line": 261, "column": 34 } } @@ -14026,16 +15922,16 @@ "type": "Identifier", "name": "context", "range": [ - 7927, - 7934 + 8612, + 8619 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 36 }, "end": { - "line": 240, + "line": 261, "column": 43 } } @@ -14052,16 +15948,16 @@ "object": { "type": "ThisExpression", "range": [ - 7946, - 7950 + 8631, + 8635 ], "loc": { "start": { - "line": 241, + "line": 262, "column": 8 }, "end": { - "line": 241, + "line": 262, "column": 12 } } @@ -14070,31 +15966,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 7951, - 7959 + 8636, + 8644 ], "loc": { "start": { - "line": 241, + "line": 262, "column": 13 }, "end": { - "line": 241, + "line": 262, "column": 21 } } }, "range": [ - 7946, - 7959 + 8631, + 8644 ], "loc": { "start": { - "line": 241, + "line": 262, "column": 8 }, "end": { - "line": 241, + "line": 262, "column": 21 } } @@ -14115,16 +16011,16 @@ "object": { "type": "ThisExpression", "range": [ - 7969, - 7973 + 8654, + 8658 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 6 }, "end": { - "line": 242, + "line": 263, "column": 10 } } @@ -14133,31 +16029,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 7974, - 7982 + 8659, + 8667 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 11 }, "end": { - "line": 242, + "line": 263, "column": 19 } } }, "range": [ - 7969, - 7982 + 8654, + 8667 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 6 }, "end": { - "line": 242, + "line": 263, "column": 19 } } @@ -14166,31 +16062,31 @@ "type": "Identifier", "name": "destroy", "range": [ - 7983, - 7990 + 8668, + 8675 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 20 }, "end": { - "line": 242, + "line": 263, "column": 27 } } }, "range": [ - 7969, - 7990 + 8654, + 8675 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 6 }, "end": { - "line": 242, + "line": 263, "column": 27 } } @@ -14199,16 +16095,16 @@ { "type": "ThisExpression", "range": [ - 7991, - 7995 + 8676, + 8680 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 28 }, "end": { - "line": 242, + "line": 263, "column": 32 } } @@ -14217,16 +16113,16 @@ "type": "Identifier", "name": "type", "range": [ - 7997, - 8001 + 8682, + 8686 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 34 }, "end": { - "line": 242, + "line": 263, "column": 38 } } @@ -14235,16 +16131,16 @@ "type": "Identifier", "name": "id", "range": [ - 8003, - 8005 + 8688, + 8690 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 40 }, "end": { - "line": 242, + "line": 263, "column": 42 } } @@ -14253,16 +16149,16 @@ "type": "Identifier", "name": "success", "range": [ - 8007, - 8014 + 8692, + 8699 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 44 }, "end": { - "line": 242, + "line": 263, "column": 51 } } @@ -14271,16 +16167,16 @@ "type": "Identifier", "name": "error", "range": [ - 8016, - 8021 + 8701, + 8706 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 53 }, "end": { - "line": 242, + "line": 263, "column": 58 } } @@ -14289,63 +16185,63 @@ "type": "Identifier", "name": "context", "range": [ - 8023, - 8030 + 8708, + 8715 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 60 }, "end": { - "line": 242, + "line": 263, "column": 67 } } } ], "range": [ - 7969, - 8031 + 8654, + 8716 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 6 }, "end": { - "line": 242, + "line": 263, "column": 68 } } }, "range": [ - 7969, - 8032 + 8654, + 8717 ], "loc": { "start": { - "line": 242, + "line": 263, "column": 6 }, "end": { - "line": 242, + "line": 263, "column": 69 } } } ], "range": [ - 7961, - 8038 + 8646, + 8723 ], "loc": { "start": { - "line": 241, + "line": 262, "column": 23 }, "end": { - "line": 243, + "line": 264, "column": 5 } } @@ -14361,16 +16257,16 @@ "type": "Identifier", "name": "Error", "range": [ - 8062, - 8067 + 8747, + 8752 ], "loc": { "start": { - "line": 244, + "line": 265, "column": 16 }, "end": { - "line": 244, + "line": 265, "column": 21 } } @@ -14381,94 +16277,94 @@ "value": "Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`", "raw": "\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\"", "range": [ - 8068, - 8164 + 8753, + 8849 ], "loc": { "start": { - "line": 244, + "line": 265, "column": 22 }, "end": { - "line": 244, + "line": 265, "column": 118 } } } ], "range": [ - 8058, - 8165 + 8743, + 8850 ], "loc": { "start": { - "line": 244, + "line": 265, "column": 12 }, "end": { - "line": 244, + "line": 265, "column": 119 } } }, "range": [ - 8052, - 8166 + 8737, + 8851 ], "loc": { "start": { - "line": 244, + "line": 265, "column": 6 }, "end": { - "line": 244, + "line": 265, "column": 120 } } } ], "range": [ - 8044, - 8172 + 8729, + 8857 ], "loc": { "start": { - "line": 243, + "line": 264, "column": 11 }, "end": { - "line": 245, + "line": 266, "column": 5 } } }, "range": [ - 7942, - 8172 + 8627, + 8857 ], "loc": { "start": { - "line": 241, + "line": 262, "column": 4 }, "end": { - "line": 245, + "line": 266, "column": 5 } } } ], "range": [ - 7936, - 8176 + 8621, + 8861 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 45 }, "end": { - "line": 246, + "line": 267, "column": 3 } } @@ -14476,16 +16372,16 @@ "generator": false, "expression": false, "range": [ - 7900, - 8176 + 8585, + 8861 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 9 }, "end": { - "line": 246, + "line": 267, "column": 3 } } @@ -14493,16 +16389,16 @@ "kind": "method", "computed": false, "range": [ - 7893, - 8176 + 8578, + 8861 ], "loc": { "start": { - "line": 240, + "line": 261, "column": 2 }, "end": { - "line": 246, + "line": 267, "column": 3 } }, @@ -14511,16 +16407,16 @@ "type": "Block", "value": "*\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n ", "range": [ - 7271, - 7890 + 7956, + 8575 ], "loc": { "start": { - "line": 221, + "line": 242, "column": 2 }, "end": { - "line": 239, + "line": 260, "column": 5 } } @@ -14531,16 +16427,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 * @since 0.1.0\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": [ - 8180, - 8690 + 8865, + 9375 ], "loc": { "start": { - "line": 248, + "line": 269, "column": 2 }, "end": { - "line": 259, + "line": 280, "column": 5 } } @@ -14554,16 +16450,16 @@ "type": "Identifier", "name": "find", "range": [ - 8693, - 8697 + 9378, + 9382 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 2 }, "end": { - "line": 260, + "line": 281, "column": 6 } } @@ -14576,16 +16472,16 @@ "type": "Identifier", "name": "type", "range": [ - 8698, - 8702 + 9383, + 9387 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 7 }, "end": { - "line": 260, + "line": 281, "column": 11 } } @@ -14594,16 +16490,16 @@ "type": "Identifier", "name": "id", "range": [ - 8704, - 8706 + 9389, + 9391 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 13 }, "end": { - "line": 260, + "line": 281, "column": 15 } } @@ -14618,16 +16514,16 @@ "type": "Identifier", "name": "type", "range": [ - 8718, - 8722 + 9403, + 9407 ], "loc": { "start": { - "line": 261, + "line": 282, "column": 8 }, "end": { - "line": 261, + "line": 282, "column": 12 } } @@ -14644,16 +16540,16 @@ "type": "Identifier", "name": "definition", "range": [ - 8736, - 8746 + 9421, + 9431 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 10 }, "end": { - "line": 262, + "line": 283, "column": 20 } } @@ -14667,16 +16563,16 @@ "object": { "type": "ThisExpression", "range": [ - 8749, - 8753 + 9434, + 9438 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 23 }, "end": { - "line": 262, + "line": 283, "column": 27 } } @@ -14685,31 +16581,31 @@ "type": "Identifier", "name": "_types", "range": [ - 8754, - 8760 + 9439, + 9445 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 28 }, "end": { - "line": 262, + "line": 283, "column": 34 } } }, "range": [ - 8749, - 8760 + 9434, + 9445 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 23 }, "end": { - "line": 262, + "line": 283, "column": 34 } } @@ -14718,46 +16614,46 @@ "type": "Identifier", "name": "type", "range": [ - 8761, - 8765 + 9446, + 9450 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 35 }, "end": { - "line": 262, + "line": 283, "column": 39 } } }, "range": [ - 8749, - 8766 + 9434, + 9451 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 23 }, "end": { - "line": 262, + "line": 283, "column": 40 } } }, "range": [ - 8736, - 8766 + 9421, + 9451 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 10 }, "end": { - "line": 262, + "line": 283, "column": 40 } } @@ -14765,16 +16661,16 @@ ], "kind": "let", "range": [ - 8732, - 8767 + 9417, + 9452 ], "loc": { "start": { - "line": 262, + "line": 283, "column": 6 }, "end": { - "line": 262, + "line": 283, "column": 41 } } @@ -14785,16 +16681,16 @@ "type": "Identifier", "name": "definition", "range": [ - 8778, - 8788 + 9463, + 9473 ], "loc": { "start": { - "line": 263, + "line": 284, "column": 10 }, "end": { - "line": 263, + "line": 284, "column": 20 } } @@ -14816,16 +16712,16 @@ "object": { "type": "ThisExpression", "range": [ - 8805, - 8809 + 9490, + 9494 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 13 }, "end": { - "line": 264, + "line": 285, "column": 17 } } @@ -14834,31 +16730,31 @@ "type": "Identifier", "name": "_data", "range": [ - 8810, - 8815 + 9495, + 9500 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 18 }, "end": { - "line": 264, + "line": 285, "column": 23 } } }, "range": [ - 8805, - 8815 + 9490, + 9500 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 13 }, "end": { - "line": 264, + "line": 285, "column": 23 } } @@ -14867,47 +16763,47 @@ "type": "Identifier", "name": "type", "range": [ - 8816, - 8820 + 9501, + 9505 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 24 }, "end": { - "line": 264, + "line": 285, "column": 28 } } }, "range": [ - 8805, - 8821 + 9490, + 9506 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 13 }, "end": { - "line": 264, + "line": 285, "column": 29 } } }, "prefix": true, "range": [ - 8804, - 8821 + 9489, + 9506 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 12 }, "end": { - "line": 264, + "line": 285, "column": 29 } } @@ -14924,16 +16820,16 @@ "type": "Identifier", "name": "collection", "range": [ - 8839, - 8849 + 9524, + 9534 ], "loc": { "start": { - "line": 265, + "line": 286, "column": 14 }, "end": { - "line": 265, + "line": 286, "column": 24 } } @@ -14942,31 +16838,31 @@ "type": "ObjectExpression", "properties": [], "range": [ - 8852, - 8854 + 9537, + 9539 ], "loc": { "start": { - "line": 265, + "line": 286, "column": 27 }, "end": { - "line": 265, + "line": 286, "column": 29 } } }, "range": [ - 8839, - 8854 + 9524, + 9539 ], "loc": { "start": { - "line": 265, + "line": 286, "column": 14 }, "end": { - "line": 265, + "line": 286, "column": 29 } } @@ -14974,16 +16870,16 @@ ], "kind": "let", "range": [ - 8835, - 8855 + 9520, + 9540 ], "loc": { "start": { - "line": 265, + "line": 286, "column": 10 }, "end": { - "line": 265, + "line": 286, "column": 30 } } @@ -15002,16 +16898,16 @@ "type": "Identifier", "name": "definition", "range": [ - 8866, - 8876 + 9551, + 9561 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 10 }, "end": { - "line": 266, + "line": 287, "column": 20 } } @@ -15020,31 +16916,31 @@ "type": "Identifier", "name": "_names", "range": [ - 8877, - 8883 + 9562, + 9568 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 21 }, "end": { - "line": 266, + "line": 287, "column": 27 } } }, "range": [ - 8866, - 8883 + 9551, + 9568 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 10 }, "end": { - "line": 266, + "line": 287, "column": 27 } } @@ -15053,31 +16949,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 8884, - 8891 + 9569, + 9576 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 28 }, "end": { - "line": 266, + "line": 287, "column": 35 } } }, "range": [ - 8866, - 8891 + 9551, + 9576 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 10 }, "end": { - "line": 266, + "line": 287, "column": 35 } } @@ -15091,16 +16987,16 @@ "type": "Identifier", "name": "t", "range": [ - 8892, - 8893 + 9577, + 9578 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 36 }, "end": { - "line": 266, + "line": 287, "column": 37 } } @@ -15118,16 +17014,16 @@ "object": { "type": "ThisExpression", "range": [ - 8897, - 8901 + 9582, + 9586 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 41 }, "end": { - "line": 266, + "line": 287, "column": 45 } } @@ -15136,31 +17032,31 @@ "type": "Identifier", "name": "_data", "range": [ - 8902, - 8907 + 9587, + 9592 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 46 }, "end": { - "line": 266, + "line": 287, "column": 51 } } }, "range": [ - 8897, - 8907 + 9582, + 9592 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 41 }, "end": { - "line": 266, + "line": 287, "column": 51 } } @@ -15169,31 +17065,31 @@ "type": "Identifier", "name": "t", "range": [ - 8908, - 8909 + 9593, + 9594 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 52 }, "end": { - "line": 266, + "line": 287, "column": 53 } } }, "range": [ - 8897, - 8910 + 9582, + 9595 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 41 }, "end": { - "line": 266, + "line": 287, "column": 54 } } @@ -15202,31 +17098,31 @@ "type": "Identifier", "name": "collection", "range": [ - 8913, - 8923 + 9598, + 9608 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 57 }, "end": { - "line": 266, + "line": 287, "column": 67 } } }, "range": [ - 8897, - 8923 + 9582, + 9608 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 41 }, "end": { - "line": 266, + "line": 287, "column": 67 } } @@ -15234,79 +17130,79 @@ "generator": false, "expression": true, "range": [ - 8892, - 8923 + 9577, + 9608 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 36 }, "end": { - "line": 266, + "line": 287, "column": 67 } } } ], "range": [ - 8866, - 8924 + 9551, + 9609 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 10 }, "end": { - "line": 266, + "line": 287, "column": 68 } } }, "range": [ - 8866, - 8925 + 9551, + 9610 ], "loc": { "start": { - "line": 266, + "line": 287, "column": 10 }, "end": { - "line": 266, + "line": 287, "column": 69 } } } ], "range": [ - 8823, - 8935 + 9508, + 9620 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 31 }, "end": { - "line": 267, + "line": 288, "column": 9 } } }, "alternate": null, "range": [ - 8800, - 8935 + 9485, + 9620 ], "loc": { "start": { - "line": 264, + "line": 285, "column": 8 }, "end": { - "line": 267, + "line": 288, "column": 9 } } @@ -15317,16 +17213,16 @@ "type": "Identifier", "name": "id", "range": [ - 8948, - 8950 + 9633, + 9635 ], "loc": { "start": { - "line": 268, + "line": 289, "column": 12 }, "end": { - "line": 268, + "line": 289, "column": 14 } } @@ -15351,16 +17247,16 @@ "object": { "type": "ThisExpression", "range": [ - 8969, - 8973 + 9654, + 9658 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 15 }, "end": { - "line": 269, + "line": 290, "column": 19 } } @@ -15369,31 +17265,31 @@ "type": "Identifier", "name": "_data", "range": [ - 8974, - 8979 + 9659, + 9664 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 20 }, "end": { - "line": 269, + "line": 290, "column": 25 } } }, "range": [ - 8969, - 8979 + 9654, + 9664 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 15 }, "end": { - "line": 269, + "line": 290, "column": 25 } } @@ -15402,31 +17298,31 @@ "type": "Identifier", "name": "type", "range": [ - 8980, - 8984 + 9665, + 9669 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 26 }, "end": { - "line": 269, + "line": 290, "column": 30 } } }, "range": [ - 8969, - 8985 + 9654, + 9670 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 15 }, "end": { - "line": 269, + "line": 290, "column": 31 } } @@ -15435,47 +17331,47 @@ "type": "Identifier", "name": "id", "range": [ - 8986, - 8988 + 9671, + 9673 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 32 }, "end": { - "line": 269, + "line": 290, "column": 34 } } }, "range": [ - 8969, - 8989 + 9654, + 9674 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 15 }, "end": { - "line": 269, + "line": 290, "column": 35 } } }, "prefix": true, "range": [ - 8968, - 8989 + 9653, + 9674 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 14 }, "end": { - "line": 269, + "line": 290, "column": 35 } } @@ -15500,16 +17396,16 @@ "object": { "type": "ThisExpression", "range": [ - 9005, - 9009 + 9690, + 9694 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 270, + "line": 291, "column": 16 } } @@ -15518,31 +17414,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9010, - 9015 + 9695, + 9700 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 17 }, "end": { - "line": 270, + "line": 291, "column": 22 } } }, "range": [ - 9005, - 9015 + 9690, + 9700 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 270, + "line": 291, "column": 22 } } @@ -15551,31 +17447,31 @@ "type": "Identifier", "name": "type", "range": [ - 9016, - 9020 + 9701, + 9705 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 23 }, "end": { - "line": 270, + "line": 291, "column": 27 } } }, "range": [ - 9005, - 9021 + 9690, + 9706 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 270, + "line": 291, "column": 28 } } @@ -15584,31 +17480,31 @@ "type": "Identifier", "name": "id", "range": [ - 9022, - 9024 + 9707, + 9709 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 29 }, "end": { - "line": 270, + "line": 291, "column": 31 } } }, "range": [ - 9005, - 9025 + 9690, + 9710 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 270, + "line": 291, "column": 32 } } @@ -15622,16 +17518,16 @@ "type": "Identifier", "name": "_dependents", "range": [ - 9044, - 9055 + 9729, + 9740 ], "loc": { "start": { - "line": 271, + "line": 292, "column": 14 }, "end": { - "line": 271, + "line": 292, "column": 25 } } @@ -15640,16 +17536,16 @@ "type": "ArrayExpression", "elements": [], "range": [ - 9057, - 9059 + 9742, + 9744 ], "loc": { "start": { - "line": 271, + "line": 292, "column": 27 }, "end": { - "line": 271, + "line": 292, "column": 29 } } @@ -15659,16 +17555,16 @@ "shorthand": false, "computed": false, "range": [ - 9044, - 9059 + 9729, + 9744 ], "loc": { "start": { - "line": 271, + "line": 292, "column": 14 }, "end": { - "line": 271, + "line": 292, "column": 29 } } @@ -15679,16 +17575,16 @@ "type": "Identifier", "name": "type", "range": [ - 9075, - 9079 + 9760, + 9764 ], "loc": { "start": { - "line": 272, + "line": 293, "column": 14 }, "end": { - "line": 272, + "line": 293, "column": 18 } } @@ -15697,16 +17593,16 @@ "type": "Identifier", "name": "type", "range": [ - 9081, - 9085 + 9766, + 9770 ], "loc": { "start": { - "line": 272, + "line": 293, "column": 20 }, "end": { - "line": 272, + "line": 293, "column": 24 } } @@ -15716,16 +17612,16 @@ "shorthand": false, "computed": false, "range": [ - 9075, - 9085 + 9760, + 9770 ], "loc": { "start": { - "line": 272, + "line": 293, "column": 14 }, "end": { - "line": 272, + "line": 293, "column": 24 } } @@ -15736,16 +17632,16 @@ "type": "Identifier", "name": "id", "range": [ - 9101, - 9103 + 9786, + 9788 ], "loc": { "start": { - "line": 273, + "line": 294, "column": 14 }, "end": { - "line": 273, + "line": 294, "column": 16 } } @@ -15754,16 +17650,16 @@ "type": "Identifier", "name": "id", "range": [ - 9105, - 9107 + 9790, + 9792 ], "loc": { "start": { - "line": 273, + "line": 294, "column": 18 }, "end": { - "line": 273, + "line": 294, "column": 20 } } @@ -15773,62 +17669,62 @@ "shorthand": false, "computed": false, "range": [ - 9101, - 9107 + 9786, + 9792 ], "loc": { "start": { - "line": 273, + "line": 294, "column": 14 }, "end": { - "line": 273, + "line": 294, "column": 20 } } } ], "range": [ - 9028, - 9121 + 9713, + 9806 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 35 }, "end": { - "line": 274, + "line": 295, "column": 13 } } }, "range": [ - 9005, - 9121 + 9690, + 9806 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 274, + "line": 295, "column": 13 } } }, "range": [ - 9005, - 9122 + 9690, + 9807 ], "loc": { "start": { - "line": 270, + "line": 291, "column": 12 }, "end": { - "line": 274, + "line": 295, "column": 14 } } @@ -15849,16 +17745,16 @@ "type": "Identifier", "name": "Object", "range": [ - 9135, - 9141 + 9820, + 9826 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 275, + "line": 296, "column": 18 } } @@ -15867,31 +17763,31 @@ "type": "Identifier", "name": "keys", "range": [ - 9142, - 9146 + 9827, + 9831 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 19 }, "end": { - "line": 275, + "line": 296, "column": 23 } } }, "range": [ - 9135, - 9146 + 9820, + 9831 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 275, + "line": 296, "column": 23 } } @@ -15901,32 +17797,32 @@ "type": "Identifier", "name": "definition", "range": [ - 9147, - 9157 + 9832, + 9842 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 24 }, "end": { - "line": 275, + "line": 296, "column": 34 } } } ], "range": [ - 9135, - 9158 + 9820, + 9843 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 275, + "line": 296, "column": 35 } } @@ -15935,31 +17831,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 9159, - 9166 + 9844, + 9851 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 36 }, "end": { - "line": 275, + "line": 296, "column": 43 } } }, "range": [ - 9135, - 9166 + 9820, + 9851 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 275, + "line": 296, "column": 43 } } @@ -15973,16 +17869,16 @@ "type": "Identifier", "name": "key", "range": [ - 9167, - 9170 + 9852, + 9855 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 44 }, "end": { - "line": 275, + "line": 296, "column": 47 } } @@ -16003,16 +17899,16 @@ "type": "Identifier", "name": "key", "range": [ - 9194, - 9197 + 9879, + 9882 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 18 }, "end": { - "line": 276, + "line": 297, "column": 21 } } @@ -16022,31 +17918,31 @@ "value": 0, "raw": "0", "range": [ - 9198, - 9199 + 9883, + 9884 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 22 }, "end": { - "line": 276, + "line": 297, "column": 23 } } }, "range": [ - 9194, - 9200 + 9879, + 9885 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 18 }, "end": { - "line": 276, + "line": 297, "column": 24 } } @@ -16056,31 +17952,31 @@ "value": "_", "raw": "\"_\"", "range": [ - 9205, - 9208 + 9890, + 9893 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 29 }, "end": { - "line": 276, + "line": 297, "column": 32 } } }, "range": [ - 9194, - 9208 + 9879, + 9893 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 18 }, "end": { - "line": 276, + "line": 297, "column": 32 } } @@ -16108,16 +18004,16 @@ "object": { "type": "ThisExpression", "range": [ - 9228, - 9232 + 9913, + 9917 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 20 } } @@ -16126,31 +18022,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9233, - 9238 + 9918, + 9923 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 21 }, "end": { - "line": 277, + "line": 298, "column": 26 } } }, "range": [ - 9228, - 9238 + 9913, + 9923 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 26 } } @@ -16159,31 +18055,31 @@ "type": "Identifier", "name": "type", "range": [ - 9239, - 9243 + 9924, + 9928 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 27 }, "end": { - "line": 277, + "line": 298, "column": 31 } } }, "range": [ - 9228, - 9244 + 9913, + 9929 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 32 } } @@ -16192,31 +18088,31 @@ "type": "Identifier", "name": "id", "range": [ - 9245, - 9247 + 9930, + 9932 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 33 }, "end": { - "line": 277, + "line": 298, "column": 35 } } }, "range": [ - 9228, - 9248 + 9913, + 9933 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 36 } } @@ -16225,31 +18121,31 @@ "type": "Identifier", "name": "key", "range": [ - 9249, - 9252 + 9934, + 9937 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 37 }, "end": { - "line": 277, + "line": 298, "column": 40 } } }, "range": [ - 9228, - 9253 + 9913, + 9938 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 41 } } @@ -16264,16 +18160,16 @@ "type": "Identifier", "name": "definition", "range": [ - 9256, - 9266 + 9941, + 9951 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 44 }, "end": { - "line": 277, + "line": 298, "column": 54 } } @@ -16282,31 +18178,31 @@ "type": "Identifier", "name": "key", "range": [ - 9267, - 9270 + 9952, + 9955 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 55 }, "end": { - "line": 277, + "line": 298, "column": 58 } } }, "range": [ - 9256, - 9271 + 9941, + 9956 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 44 }, "end": { - "line": 277, + "line": 298, "column": 59 } } @@ -16315,109 +18211,109 @@ "type": "Identifier", "name": "default", "range": [ - 9272, - 9279 + 9957, + 9964 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 60 }, "end": { - "line": 277, + "line": 298, "column": 67 } } }, "range": [ - 9256, - 9279 + 9941, + 9964 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 44 }, "end": { - "line": 277, + "line": 298, "column": 67 } } }, "range": [ - 9228, - 9279 + 9913, + 9964 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 67 } } }, "range": [ - 9228, - 9280 + 9913, + 9965 ], "loc": { "start": { - "line": 277, + "line": 298, "column": 16 }, "end": { - "line": 277, + "line": 298, "column": 68 } } } ], "range": [ - 9210, - 9296 + 9895, + 9981 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 34 }, "end": { - "line": 278, + "line": 299, "column": 15 } } }, "alternate": null, "range": [ - 9190, - 9296 + 9875, + 9981 ], "loc": { "start": { - "line": 276, + "line": 297, "column": 14 }, "end": { - "line": 278, + "line": 299, "column": 15 } } } ], "range": [ - 9174, - 9310 + 9859, + 9995 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 51 }, "end": { - "line": 279, + "line": 300, "column": 13 } } @@ -16425,79 +18321,79 @@ "generator": false, "expression": false, "range": [ - 9167, - 9310 + 9852, + 9995 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 44 }, "end": { - "line": 279, + "line": 300, "column": 13 } } } ], "range": [ - 9135, - 9311 + 9820, + 9996 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 279, + "line": 300, "column": 14 } } }, "range": [ - 9135, - 9312 + 9820, + 9997 ], "loc": { "start": { - "line": 275, + "line": 296, "column": 12 }, "end": { - "line": 279, + "line": 300, "column": 15 } } } ], "range": [ - 8991, - 9324 + 9676, + 10009 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 37 }, "end": { - "line": 280, + "line": 301, "column": 11 } } }, "alternate": null, "range": [ - 8964, - 9324 + 9649, + 10009 ], "loc": { "start": { - "line": 269, + "line": 290, "column": 10 }, "end": { - "line": 280, + "line": 301, "column": 11 } } @@ -16516,16 +18412,16 @@ "object": { "type": "ThisExpression", "range": [ - 9342, - 9346 + 10027, + 10031 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 17 }, "end": { - "line": 281, + "line": 302, "column": 21 } } @@ -16534,31 +18430,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9347, - 9352 + 10032, + 10037 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 22 }, "end": { - "line": 281, + "line": 302, "column": 27 } } }, "range": [ - 9342, - 9352 + 10027, + 10037 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 17 }, "end": { - "line": 281, + "line": 302, "column": 27 } } @@ -16567,31 +18463,31 @@ "type": "Identifier", "name": "type", "range": [ - 9353, - 9357 + 10038, + 10042 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 28 }, "end": { - "line": 281, + "line": 302, "column": 32 } } }, "range": [ - 9342, - 9358 + 10027, + 10043 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 17 }, "end": { - "line": 281, + "line": 302, "column": 33 } } @@ -16600,62 +18496,62 @@ "type": "Identifier", "name": "id", "range": [ - 9359, - 9361 + 10044, + 10046 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 34 }, "end": { - "line": 281, + "line": 302, "column": 36 } } }, "range": [ - 9342, - 9362 + 10027, + 10047 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 17 }, "end": { - "line": 281, + "line": 302, "column": 37 } } }, "range": [ - 9335, - 9363 + 10020, + 10048 ], "loc": { "start": { - "line": 281, + "line": 302, "column": 10 }, "end": { - "line": 281, + "line": 302, "column": 38 } } } ], "range": [ - 8952, - 9373 + 9637, + 10058 ], "loc": { "start": { - "line": 268, + "line": 289, "column": 16 }, "end": { - "line": 282, + "line": 303, "column": 9 } } @@ -16679,16 +18575,16 @@ "type": "Identifier", "name": "Object", "range": [ - 9398, - 9404 + 10083, + 10089 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 17 }, "end": { - "line": 283, + "line": 304, "column": 23 } } @@ -16697,31 +18593,31 @@ "type": "Identifier", "name": "keys", "range": [ - 9405, - 9409 + 10090, + 10094 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 24 }, "end": { - "line": 283, + "line": 304, "column": 28 } } }, "range": [ - 9398, - 9409 + 10083, + 10094 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 17 }, "end": { - "line": 283, + "line": 304, "column": 28 } } @@ -16736,16 +18632,16 @@ "object": { "type": "ThisExpression", "range": [ - 9410, - 9414 + 10095, + 10099 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 29 }, "end": { - "line": 283, + "line": 304, "column": 33 } } @@ -16754,31 +18650,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9415, - 9420 + 10100, + 10105 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 34 }, "end": { - "line": 283, + "line": 304, "column": 39 } } }, "range": [ - 9410, - 9420 + 10095, + 10105 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 29 }, "end": { - "line": 283, + "line": 304, "column": 39 } } @@ -16787,47 +18683,47 @@ "type": "Identifier", "name": "type", "range": [ - 9421, - 9425 + 10106, + 10110 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 40 }, "end": { - "line": 283, + "line": 304, "column": 44 } } }, "range": [ - 9410, - 9426 + 10095, + 10111 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 29 }, "end": { - "line": 283, + "line": 304, "column": 45 } } } ], "range": [ - 9398, - 9427 + 10083, + 10112 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 17 }, "end": { - "line": 283, + "line": 304, "column": 46 } } @@ -16836,31 +18732,31 @@ "type": "Identifier", "name": "map", "range": [ - 9428, - 9431 + 10113, + 10116 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 47 }, "end": { - "line": 283, + "line": 304, "column": 50 } } }, "range": [ - 9398, - 9431 + 10083, + 10116 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 17 }, "end": { - "line": 283, + "line": 304, "column": 50 } } @@ -16874,16 +18770,16 @@ "type": "Identifier", "name": "x", "range": [ - 9432, - 9433 + 10117, + 10118 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 51 }, "end": { - "line": 283, + "line": 304, "column": 52 } } @@ -16901,16 +18797,16 @@ "object": { "type": "ThisExpression", "range": [ - 9437, - 9441 + 10122, + 10126 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 56 }, "end": { - "line": 283, + "line": 304, "column": 60 } } @@ -16919,31 +18815,31 @@ "type": "Identifier", "name": "_data", "range": [ - 9442, - 9447 + 10127, + 10132 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 61 }, "end": { - "line": 283, + "line": 304, "column": 66 } } }, "range": [ - 9437, - 9447 + 10122, + 10132 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 56 }, "end": { - "line": 283, + "line": 304, "column": 66 } } @@ -16952,31 +18848,31 @@ "type": "Identifier", "name": "type", "range": [ - 9448, - 9452 + 10133, + 10137 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 67 }, "end": { - "line": 283, + "line": 304, "column": 71 } } }, "range": [ - 9437, - 9453 + 10122, + 10138 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 56 }, "end": { - "line": 283, + "line": 304, "column": 72 } } @@ -16985,31 +18881,31 @@ "type": "Identifier", "name": "x", "range": [ - 9454, - 9455 + 10139, + 10140 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 73 }, "end": { - "line": 283, + "line": 304, "column": 74 } } }, "range": [ - 9437, - 9456 + 10122, + 10141 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 56 }, "end": { - "line": 283, + "line": 304, "column": 75 } } @@ -17017,94 +18913,94 @@ "generator": false, "expression": true, "range": [ - 9432, - 9456 + 10117, + 10141 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 51 }, "end": { - "line": 283, + "line": 304, "column": 75 } } } ], "range": [ - 9398, - 9457 + 10083, + 10142 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 17 }, "end": { - "line": 283, + "line": 304, "column": 76 } } }, "range": [ - 9391, - 9458 + 10076, + 10143 ], "loc": { "start": { - "line": 283, + "line": 304, "column": 10 }, "end": { - "line": 283, + "line": 304, "column": 77 } } } ], "range": [ - 9379, - 9468 + 10064, + 10153 ], "loc": { "start": { - "line": 282, + "line": 303, "column": 15 }, "end": { - "line": 284, + "line": 305, "column": 9 } } }, "range": [ - 8944, - 9468 + 9629, + 10153 ], "loc": { "start": { - "line": 268, + "line": 289, "column": 8 }, "end": { - "line": 284, + "line": 305, "column": 9 } } } ], "range": [ - 8790, - 9476 + 9475, + 10161 ], "loc": { "start": { - "line": 263, + "line": 284, "column": 22 }, "end": { - "line": 285, + "line": 306, "column": 7 } } @@ -17120,16 +19016,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 9502, - 9511 + 10187, + 10196 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 18 }, "end": { - "line": 286, + "line": 307, "column": 27 } } @@ -17146,16 +19042,16 @@ }, "tail": false, "range": [ - 9512, - 9529 + 10197, + 10214 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 28 }, "end": { - "line": 286, + "line": 307, "column": 45 } } @@ -17168,16 +19064,16 @@ }, "tail": true, "range": [ - 9533, - 9536 + 10218, + 10221 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 49 }, "end": { - "line": 286, + "line": 307, "column": 52 } } @@ -17188,110 +19084,110 @@ "type": "Identifier", "name": "type", "range": [ - 9529, - 9533 + 10214, + 10218 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 45 }, "end": { - "line": 286, + "line": 307, "column": 49 } } } ], "range": [ - 9512, - 9536 + 10197, + 10221 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 28 }, "end": { - "line": 286, + "line": 307, "column": 52 } } } ], "range": [ - 9498, - 9537 + 10183, + 10222 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 14 }, "end": { - "line": 286, + "line": 307, "column": 53 } } }, "range": [ - 9492, - 9538 + 10177, + 10223 ], "loc": { "start": { - "line": 286, + "line": 307, "column": 8 }, "end": { - "line": 286, + "line": 307, "column": 54 } } } ], "range": [ - 9482, - 9546 + 10167, + 10231 ], "loc": { "start": { - "line": 285, + "line": 306, "column": 13 }, "end": { - "line": 287, + "line": 308, "column": 7 } } }, "range": [ - 8774, - 9546 + 9459, + 10231 ], "loc": { "start": { - "line": 263, + "line": 284, "column": 6 }, "end": { - "line": 287, + "line": 308, "column": 7 } } } ], "range": [ - 8724, - 9552 + 9409, + 10237 ], "loc": { "start": { - "line": 261, + "line": 282, "column": 14 }, "end": { - "line": 288, + "line": 309, "column": 5 } } @@ -17307,16 +19203,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 9576, - 9585 + 10261, + 10270 ], "loc": { "start": { - "line": 289, + "line": 310, "column": 16 }, "end": { - "line": 289, + "line": 310, "column": 25 } } @@ -17333,16 +19229,16 @@ }, "tail": true, "range": [ - 9586, - 9611 + 10271, + 10296 ], "loc": { "start": { - "line": 289, + "line": 310, "column": 26 }, "end": { - "line": 289, + "line": 310, "column": 51 } } @@ -17350,94 +19246,94 @@ ], "expressions": [], "range": [ - 9586, - 9611 + 10271, + 10296 ], "loc": { "start": { - "line": 289, + "line": 310, "column": 26 }, "end": { - "line": 289, + "line": 310, "column": 51 } } } ], "range": [ - 9572, - 9612 + 10257, + 10297 ], "loc": { "start": { - "line": 289, + "line": 310, "column": 12 }, "end": { - "line": 289, + "line": 310, "column": 52 } } }, "range": [ - 9566, - 9613 + 10251, + 10298 ], "loc": { "start": { - "line": 289, + "line": 310, "column": 6 }, "end": { - "line": 289, + "line": 310, "column": 53 } } } ], "range": [ - 9558, - 9619 + 10243, + 10304 ], "loc": { "start": { - "line": 288, + "line": 309, "column": 11 }, "end": { - "line": 290, + "line": 311, "column": 5 } } }, "range": [ - 8714, - 9619 + 9399, + 10304 ], "loc": { "start": { - "line": 261, + "line": 282, "column": 4 }, "end": { - "line": 290, + "line": 311, "column": 5 } } } ], "range": [ - 8708, - 9623 + 9393, + 10308 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 17 }, "end": { - "line": 291, + "line": 312, "column": 3 } } @@ -17445,16 +19341,16 @@ "generator": false, "expression": false, "range": [ - 8697, - 9623 + 9382, + 10308 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 6 }, "end": { - "line": 291, + "line": 312, "column": 3 } } @@ -17462,16 +19358,16 @@ "kind": "method", "computed": false, "range": [ - 8693, - 9623 + 9378, + 10308 ], "loc": { "start": { - "line": 260, + "line": 281, "column": 2 }, "end": { - "line": 291, + "line": 312, "column": 3 } }, @@ -17480,16 +19376,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 * @since 0.1.0\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": [ - 8180, - 8690 + 8865, + 9375 ], "loc": { "start": { - "line": 248, + "line": 269, "column": 2 }, "end": { - "line": 259, + "line": 280, "column": 5 } } @@ -17500,16 +19396,16 @@ "type": "Block", "value": "*\n * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 9627, - 10373 + 10312, + 11058 ], "loc": { "start": { - "line": 293, + "line": 314, "column": 2 }, "end": { - "line": 312, + "line": 333, "column": 5 } } @@ -17523,16 +19419,16 @@ "type": "Identifier", "name": "load", "range": [ - 10376, - 10380 + 11061, + 11065 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 2 }, "end": { - "line": 313, + "line": 334, "column": 6 } } @@ -17545,16 +19441,16 @@ "type": "Identifier", "name": "type", "range": [ - 10381, - 10385 + 11066, + 11070 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 7 }, "end": { - "line": 313, + "line": 334, "column": 11 } } @@ -17563,16 +19459,16 @@ "type": "Identifier", "name": "id", "range": [ - 10387, - 10389 + 11072, + 11074 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 13 }, "end": { - "line": 313, + "line": 334, "column": 15 } } @@ -17581,16 +19477,16 @@ "type": "Identifier", "name": "options", "range": [ - 10391, - 10398 + 11076, + 11083 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 17 }, "end": { - "line": 313, + "line": 334, "column": 24 } } @@ -17599,16 +19495,16 @@ "type": "Identifier", "name": "success", "range": [ - 10400, - 10407 + 11085, + 11092 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 26 }, "end": { - "line": 313, + "line": 334, "column": 33 } } @@ -17617,16 +19513,16 @@ "type": "Identifier", "name": "error", "range": [ - 10409, - 10414 + 11094, + 11099 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 35 }, "end": { - "line": 313, + "line": 334, "column": 40 } } @@ -17635,16 +19531,16 @@ "type": "Identifier", "name": "context", "range": [ - 10416, - 10423 + 11101, + 11108 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 42 }, "end": { - "line": 313, + "line": 334, "column": 49 } } @@ -17661,16 +19557,16 @@ "object": { "type": "ThisExpression", "range": [ - 10435, - 10439 + 11120, + 11124 ], "loc": { "start": { - "line": 314, + "line": 335, "column": 8 }, "end": { - "line": 314, + "line": 335, "column": 12 } } @@ -17679,31 +19575,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 10440, - 10448 + 11125, + 11133 ], "loc": { "start": { - "line": 314, + "line": 335, "column": 13 }, "end": { - "line": 314, + "line": 335, "column": 21 } } }, "range": [ - 10435, - 10448 + 11120, + 11133 ], "loc": { "start": { - "line": 314, + "line": 335, "column": 8 }, "end": { - "line": 314, + "line": 335, "column": 21 } } @@ -17724,16 +19620,16 @@ "object": { "type": "ThisExpression", "range": [ - 10458, - 10462 + 11143, + 11147 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 6 }, "end": { - "line": 315, + "line": 336, "column": 10 } } @@ -17742,31 +19638,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 10463, - 10471 + 11148, + 11156 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 11 }, "end": { - "line": 315, + "line": 336, "column": 19 } } }, "range": [ - 10458, - 10471 + 11143, + 11156 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 6 }, "end": { - "line": 315, + "line": 336, "column": 19 } } @@ -17775,31 +19671,31 @@ "type": "Identifier", "name": "load", "range": [ - 10472, - 10476 + 11157, + 11161 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 20 }, "end": { - "line": 315, + "line": 336, "column": 24 } } }, "range": [ - 10458, - 10476 + 11143, + 11161 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 6 }, "end": { - "line": 315, + "line": 336, "column": 24 } } @@ -17808,16 +19704,16 @@ { "type": "ThisExpression", "range": [ - 10477, - 10481 + 11162, + 11166 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 25 }, "end": { - "line": 315, + "line": 336, "column": 29 } } @@ -17826,16 +19722,16 @@ "type": "Identifier", "name": "type", "range": [ - 10483, - 10487 + 11168, + 11172 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 31 }, "end": { - "line": 315, + "line": 336, "column": 35 } } @@ -17844,16 +19740,16 @@ "type": "Identifier", "name": "id", "range": [ - 10489, - 10491 + 11174, + 11176 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 37 }, "end": { - "line": 315, + "line": 336, "column": 39 } } @@ -17862,16 +19758,16 @@ "type": "Identifier", "name": "options", "range": [ - 10493, - 10500 + 11178, + 11185 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 41 }, "end": { - "line": 315, + "line": 336, "column": 48 } } @@ -17880,16 +19776,16 @@ "type": "Identifier", "name": "success", "range": [ - 10502, - 10509 + 11187, + 11194 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 50 }, "end": { - "line": 315, + "line": 336, "column": 57 } } @@ -17898,16 +19794,16 @@ "type": "Identifier", "name": "error", "range": [ - 10511, - 10516 + 11196, + 11201 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 59 }, "end": { - "line": 315, + "line": 336, "column": 64 } } @@ -17916,63 +19812,63 @@ "type": "Identifier", "name": "context", "range": [ - 10518, - 10525 + 11203, + 11210 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 66 }, "end": { - "line": 315, + "line": 336, "column": 73 } } } ], "range": [ - 10458, - 10526 + 11143, + 11211 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 6 }, "end": { - "line": 315, + "line": 336, "column": 74 } } }, "range": [ - 10458, - 10527 + 11143, + 11212 ], "loc": { "start": { - "line": 315, + "line": 336, "column": 6 }, "end": { - "line": 315, + "line": 336, "column": 75 } } } ], "range": [ - 10450, - 10533 + 11135, + 11218 ], "loc": { "start": { - "line": 314, + "line": 335, "column": 23 }, "end": { - "line": 316, + "line": 337, "column": 5 } } @@ -17988,16 +19884,16 @@ "type": "Identifier", "name": "Error", "range": [ - 10557, - 10562 + 11242, + 11247 ], "loc": { "start": { - "line": 317, + "line": 338, "column": 16 }, "end": { - "line": 317, + "line": 338, "column": 21 } } @@ -18008,94 +19904,94 @@ "value": "Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`", "raw": "\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\"", "range": [ - 10563, - 10659 + 11248, + 11344 ], "loc": { "start": { - "line": 317, + "line": 338, "column": 22 }, "end": { - "line": 317, + "line": 338, "column": 118 } } } ], "range": [ - 10553, - 10660 + 11238, + 11345 ], "loc": { "start": { - "line": 317, + "line": 338, "column": 12 }, "end": { - "line": 317, + "line": 338, "column": 119 } } }, "range": [ - 10547, - 10661 + 11232, + 11346 ], "loc": { "start": { - "line": 317, + "line": 338, "column": 6 }, "end": { - "line": 317, + "line": 338, "column": 120 } } } ], "range": [ - 10539, - 10667 + 11224, + 11352 ], "loc": { "start": { - "line": 316, + "line": 337, "column": 11 }, "end": { - "line": 318, + "line": 339, "column": 5 } } }, "range": [ - 10431, - 10667 + 11116, + 11352 ], "loc": { "start": { - "line": 314, + "line": 335, "column": 4 }, "end": { - "line": 318, + "line": 339, "column": 5 } } } ], "range": [ - 10425, - 10671 + 11110, + 11356 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 51 }, "end": { - "line": 319, + "line": 340, "column": 3 } } @@ -18103,16 +19999,16 @@ "generator": false, "expression": false, "range": [ - 10380, - 10671 + 11065, + 11356 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 6 }, "end": { - "line": 319, + "line": 340, "column": 3 } } @@ -18120,16 +20016,16 @@ "kind": "method", "computed": false, "range": [ - 10376, - 10671 + 11061, + 11356 ], "loc": { "start": { - "line": 313, + "line": 334, "column": 2 }, "end": { - "line": 319, + "line": 340, "column": 3 } }, @@ -18138,16 +20034,16 @@ "type": "Block", "value": "*\n * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 9627, - 10373 + 10312, + 11058 ], "loc": { "start": { - "line": 293, + "line": 314, "column": 2 }, "end": { - "line": 312, + "line": 333, "column": 5 } } @@ -18158,16 +20054,16 @@ "type": "Block", "value": "*\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n ", "range": [ - 10675, - 11078 + 11360, + 11763 ], "loc": { "start": { - "line": 321, + "line": 342, "column": 2 }, "end": { - "line": 330, + "line": 351, "column": 5 } } @@ -18181,16 +20077,16 @@ "type": "Identifier", "name": "off", "range": [ - 11081, - 11084 + 11766, + 11769 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 2 }, "end": { - "line": 331, + "line": 352, "column": 5 } } @@ -18203,16 +20099,16 @@ "type": "Identifier", "name": "event", "range": [ - 11085, - 11090 + 11770, + 11775 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 6 }, "end": { - "line": 331, + "line": 352, "column": 11 } } @@ -18221,16 +20117,16 @@ "type": "Identifier", "name": "type", "range": [ - 11092, - 11096 + 11777, + 11781 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 13 }, "end": { - "line": 331, + "line": 352, "column": 17 } } @@ -18239,16 +20135,16 @@ "type": "Identifier", "name": "id", "range": [ - 11098, - 11100 + 11783, + 11785 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 19 }, "end": { - "line": 331, + "line": 352, "column": 21 } } @@ -18257,16 +20153,16 @@ "type": "Identifier", "name": "callback", "range": [ - 11102, - 11110 + 11787, + 11795 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 23 }, "end": { - "line": 331, + "line": 352, "column": 31 } } @@ -18289,16 +20185,16 @@ "object": { "type": "ThisExpression", "range": [ - 11122, - 11126 + 11807, + 11811 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 8 }, "end": { - "line": 332, + "line": 353, "column": 12 } } @@ -18307,31 +20203,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 11127, - 11145 + 11812, + 11830 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 13 }, "end": { - "line": 332, + "line": 353, "column": 31 } } }, "range": [ - 11122, - 11145 + 11807, + 11830 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 8 }, "end": { - "line": 332, + "line": 353, "column": 31 } } @@ -18340,31 +20236,31 @@ "type": "Identifier", "name": "event", "range": [ - 11146, - 11151 + 11831, + 11836 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 32 }, "end": { - "line": 332, + "line": 353, "column": 37 } } }, "range": [ - 11122, - 11152 + 11807, + 11837 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 8 }, "end": { - "line": 332, + "line": 353, "column": 38 } } @@ -18378,16 +20274,16 @@ "object": { "type": "ThisExpression", "range": [ - 11156, - 11160 + 11841, + 11845 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 42 }, "end": { - "line": 332, + "line": 353, "column": 46 } } @@ -18396,31 +20292,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 11161, - 11181 + 11846, + 11866 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 47 }, "end": { - "line": 332, + "line": 353, "column": 67 } } }, "range": [ - 11156, - 11181 + 11841, + 11866 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 42 }, "end": { - "line": 332, + "line": 353, "column": 67 } } @@ -18429,46 +20325,46 @@ "type": "Identifier", "name": "event", "range": [ - 11182, - 11187 + 11867, + 11872 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 68 }, "end": { - "line": 332, + "line": 353, "column": 73 } } }, "range": [ - 11156, - 11188 + 11841, + 11873 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 42 }, "end": { - "line": 332, + "line": 353, "column": 74 } } }, "range": [ - 11122, - 11188 + 11807, + 11873 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 8 }, "end": { - "line": 332, + "line": 353, "column": 74 } } @@ -18487,16 +20383,16 @@ "object": { "type": "ThisExpression", "range": [ - 11202, - 11206 + 11887, + 11891 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 10 }, "end": { - "line": 333, + "line": 354, "column": 14 } } @@ -18505,31 +20401,31 @@ "type": "Identifier", "name": "_types", "range": [ - 11207, - 11213 + 11892, + 11898 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 15 }, "end": { - "line": 333, + "line": 354, "column": 21 } } }, "range": [ - 11202, - 11213 + 11887, + 11898 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 10 }, "end": { - "line": 333, + "line": 354, "column": 21 } } @@ -18538,31 +20434,31 @@ "type": "Identifier", "name": "type", "range": [ - 11214, - 11218 + 11899, + 11903 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 22 }, "end": { - "line": 333, + "line": 354, "column": 26 } } }, "range": [ - 11202, - 11219 + 11887, + 11904 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 10 }, "end": { - "line": 333, + "line": 354, "column": 27 } } @@ -18579,16 +20475,16 @@ "type": "Identifier", "name": "id", "range": [ - 11235, - 11237 + 11920, + 11922 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 12 }, "end": { - "line": 334, + "line": 355, "column": 14 } } @@ -18608,16 +20504,16 @@ "type": "ObjectExpression", "properties": [], "range": [ - 11242, - 11244 + 11927, + 11929 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 19 }, "end": { - "line": 334, + "line": 355, "column": 21 } } @@ -18626,31 +20522,31 @@ "type": "Identifier", "name": "toString", "range": [ - 11246, - 11254 + 11931, + 11939 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 23 }, "end": { - "line": 334, + "line": 355, "column": 31 } } }, "range": [ - 11241, - 11254 + 11926, + 11939 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 18 }, "end": { - "line": 334, + "line": 355, "column": 31 } } @@ -18659,31 +20555,31 @@ "type": "Identifier", "name": "call", "range": [ - 11255, - 11259 + 11940, + 11944 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 32 }, "end": { - "line": 334, + "line": 355, "column": 36 } } }, "range": [ - 11241, - 11259 + 11926, + 11944 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 18 }, "end": { - "line": 334, + "line": 355, "column": 36 } } @@ -18693,32 +20589,32 @@ "type": "Identifier", "name": "id", "range": [ - 11260, - 11262 + 11945, + 11947 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 37 }, "end": { - "line": 334, + "line": 355, "column": 39 } } } ], "range": [ - 11241, - 11263 + 11926, + 11948 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 18 }, "end": { - "line": 334, + "line": 355, "column": 40 } } @@ -18728,46 +20624,46 @@ "value": "[object Function]", "raw": "'[object Function]'", "range": [ - 11268, - 11287 + 11953, + 11972 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 45 }, "end": { - "line": 334, + "line": 355, "column": 64 } } }, "range": [ - 11241, - 11287 + 11926, + 11972 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 18 }, "end": { - "line": 334, + "line": 355, "column": 64 } } }, "range": [ - 11235, - 11287 + 11920, + 11972 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 12 }, "end": { - "line": 334, + "line": 355, "column": 64 } } @@ -18788,16 +20684,16 @@ "object": { "type": "ThisExpression", "range": [ - 11301, - 11305 + 11986, + 11990 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 10 }, "end": { - "line": 335, + "line": 356, "column": 14 } } @@ -18806,31 +20702,31 @@ "type": "Identifier", "name": "off", "range": [ - 11306, - 11309 + 11991, + 11994 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 15 }, "end": { - "line": 335, + "line": 356, "column": 18 } } }, "range": [ - 11301, - 11309 + 11986, + 11994 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 10 }, "end": { - "line": 335, + "line": 356, "column": 18 } } @@ -18839,31 +20735,31 @@ "type": "Identifier", "name": "call", "range": [ - 11310, - 11314 + 11995, + 11999 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 19 }, "end": { - "line": 335, + "line": 356, "column": 23 } } }, "range": [ - 11301, - 11314 + 11986, + 11999 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 10 }, "end": { - "line": 335, + "line": 356, "column": 23 } } @@ -18872,16 +20768,16 @@ { "type": "ThisExpression", "range": [ - 11315, - 11319 + 12000, + 12004 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 24 }, "end": { - "line": 335, + "line": 356, "column": 28 } } @@ -18890,16 +20786,16 @@ "type": "Identifier", "name": "event", "range": [ - 11321, - 11326 + 12006, + 12011 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 30 }, "end": { - "line": 335, + "line": 356, "column": 35 } } @@ -18908,16 +20804,16 @@ "type": "Identifier", "name": "type", "range": [ - 11328, - 11332 + 12013, + 12017 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 37 }, "end": { - "line": 335, + "line": 356, "column": 41 } } @@ -18927,16 +20823,16 @@ "value": null, "raw": "null", "range": [ - 11334, - 11338 + 12019, + 12023 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 43 }, "end": { - "line": 335, + "line": 356, "column": 47 } } @@ -18945,16 +20841,16 @@ "type": "Identifier", "name": "id", "range": [ - 11340, - 11342 + 12025, + 12027 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 49 }, "end": { - "line": 335, + "line": 356, "column": 51 } } @@ -18963,63 +20859,63 @@ "type": "Identifier", "name": "callback", "range": [ - 11344, - 11352 + 12029, + 12037 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 53 }, "end": { - "line": 335, + "line": 356, "column": 61 } } } ], "range": [ - 11301, - 11353 + 11986, + 12038 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 10 }, "end": { - "line": 335, + "line": 356, "column": 62 } } }, "range": [ - 11301, - 11354 + 11986, + 12039 ], "loc": { "start": { - "line": 335, + "line": 356, "column": 10 }, "end": { - "line": 335, + "line": 356, "column": 63 } } } ], "range": [ - 11289, - 11364 + 11974, + 12049 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 66 }, "end": { - "line": 336, + "line": 357, "column": 9 } } @@ -19046,16 +20942,16 @@ "object": { "type": "ThisExpression", "range": [ - 11502, - 11506 + 12187, + 12191 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 338, + "line": 359, "column": 14 } } @@ -19064,31 +20960,31 @@ "type": "Identifier", "name": "_types", "range": [ - 11507, - 11513 + 12192, + 12198 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 15 }, "end": { - "line": 338, + "line": 359, "column": 21 } } }, "range": [ - 11502, - 11513 + 12187, + 12198 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 338, + "line": 359, "column": 21 } } @@ -19097,31 +20993,31 @@ "type": "Identifier", "name": "type", "range": [ - 11514, - 11518 + 12199, + 12203 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 22 }, "end": { - "line": 338, + "line": 359, "column": 26 } } }, "range": [ - 11502, - 11519 + 12187, + 12204 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 338, + "line": 359, "column": 27 } } @@ -19130,31 +21026,31 @@ "type": "Identifier", "name": "_names", "range": [ - 11520, - 11526 + 12205, + 12211 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 28 }, "end": { - "line": 338, + "line": 359, "column": 34 } } }, "range": [ - 11502, - 11526 + 12187, + 12211 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 338, + "line": 359, "column": 34 } } @@ -19163,31 +21059,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 11527, - 11534 + 12212, + 12219 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 35 }, "end": { - "line": 338, + "line": 359, "column": 42 } } }, "range": [ - 11502, - 11534 + 12187, + 12219 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 338, + "line": 359, "column": 42 } } @@ -19201,16 +21097,16 @@ "type": "Identifier", "name": "type", "range": [ - 11535, - 11539 + 12220, + 12224 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 43 }, "end": { - "line": 338, + "line": 359, "column": 47 } } @@ -19225,16 +21121,16 @@ "type": "Identifier", "name": "id", "range": [ - 11561, - 11563 + 12246, + 12248 ], "loc": { "start": { - "line": 339, + "line": 360, "column": 16 }, "end": { - "line": 339, + "line": 360, "column": 18 } } @@ -19259,16 +21155,16 @@ "object": { "type": "ThisExpression", "range": [ - 11585, - 11589 + 12270, + 12274 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 18 }, "end": { - "line": 340, + "line": 361, "column": 22 } } @@ -19277,31 +21173,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 11590, - 11608 + 12275, + 12293 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 23 }, "end": { - "line": 340, + "line": 361, "column": 41 } } }, "range": [ - 11585, - 11608 + 12270, + 12293 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 18 }, "end": { - "line": 340, + "line": 361, "column": 41 } } @@ -19310,31 +21206,31 @@ "type": "Identifier", "name": "event", "range": [ - 11609, - 11614 + 12294, + 12299 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 42 }, "end": { - "line": 340, + "line": 361, "column": 47 } } }, "range": [ - 11585, - 11615 + 12270, + 12300 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 18 }, "end": { - "line": 340, + "line": 361, "column": 48 } } @@ -19343,31 +21239,31 @@ "type": "Identifier", "name": "type", "range": [ - 11616, - 11620 + 12301, + 12305 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 49 }, "end": { - "line": 340, + "line": 361, "column": 53 } } }, "range": [ - 11585, - 11621 + 12270, + 12306 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 18 }, "end": { - "line": 340, + "line": 361, "column": 54 } } @@ -19387,16 +21283,16 @@ "object": { "type": "ThisExpression", "range": [ - 11625, - 11629 + 12310, + 12314 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 58 }, "end": { - "line": 340, + "line": 361, "column": 62 } } @@ -19405,31 +21301,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 11630, - 11648 + 12315, + 12333 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 63 }, "end": { - "line": 340, + "line": 361, "column": 81 } } }, "range": [ - 11625, - 11648 + 12310, + 12333 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 58 }, "end": { - "line": 340, + "line": 361, "column": 81 } } @@ -19438,31 +21334,31 @@ "type": "Identifier", "name": "event", "range": [ - 11649, - 11654 + 12334, + 12339 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 82 }, "end": { - "line": 340, + "line": 361, "column": 87 } } }, "range": [ - 11625, - 11655 + 12310, + 12340 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 58 }, "end": { - "line": 340, + "line": 361, "column": 88 } } @@ -19471,31 +21367,31 @@ "type": "Identifier", "name": "type", "range": [ - 11656, - 11660 + 12341, + 12345 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 89 }, "end": { - "line": 340, + "line": 361, "column": 93 } } }, "range": [ - 11625, - 11661 + 12310, + 12346 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 58 }, "end": { - "line": 340, + "line": 361, "column": 94 } } @@ -19504,46 +21400,46 @@ "type": "Identifier", "name": "id", "range": [ - 11662, - 11664 + 12347, + 12349 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 95 }, "end": { - "line": 340, + "line": 361, "column": 97 } } }, "range": [ - 11625, - 11665 + 12310, + 12350 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 58 }, "end": { - "line": 340, + "line": 361, "column": 98 } } }, "range": [ - 11585, - 11665 + 12270, + 12350 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 18 }, "end": { - "line": 340, + "line": 361, "column": 98 } } @@ -19571,16 +21467,16 @@ "object": { "type": "ThisExpression", "range": [ - 11685, - 11689 + 12370, + 12374 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 341, + "line": 362, "column": 20 } } @@ -19589,31 +21485,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 11690, - 11708 + 12375, + 12393 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 21 }, "end": { - "line": 341, + "line": 362, "column": 39 } } }, "range": [ - 11685, - 11708 + 12370, + 12393 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 341, + "line": 362, "column": 39 } } @@ -19622,31 +21518,31 @@ "type": "Identifier", "name": "event", "range": [ - 11709, - 11714 + 12394, + 12399 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 40 }, "end": { - "line": 341, + "line": 362, "column": 45 } } }, "range": [ - 11685, - 11715 + 12370, + 12400 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 341, + "line": 362, "column": 46 } } @@ -19655,31 +21551,31 @@ "type": "Identifier", "name": "type", "range": [ - 11716, - 11720 + 12401, + 12405 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 47 }, "end": { - "line": 341, + "line": 362, "column": 51 } } }, "range": [ - 11685, - 11721 + 12370, + 12406 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 341, + "line": 362, "column": 52 } } @@ -19688,31 +21584,31 @@ "type": "Identifier", "name": "id", "range": [ - 11722, - 11724 + 12407, + 12409 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 53 }, "end": { - "line": 341, + "line": 362, "column": 55 } } }, "range": [ - 11685, - 11725 + 12370, + 12410 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 341, + "line": 362, "column": 56 } } @@ -19737,16 +21633,16 @@ "object": { "type": "ThisExpression", "range": [ - 11728, - 11732 + 12413, + 12417 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 63 } } @@ -19755,31 +21651,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 11733, - 11751 + 12418, + 12436 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 64 }, "end": { - "line": 341, + "line": 362, "column": 82 } } }, "range": [ - 11728, - 11751 + 12413, + 12436 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 82 } } @@ -19788,31 +21684,31 @@ "type": "Identifier", "name": "event", "range": [ - 11752, - 11757 + 12437, + 12442 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 83 }, "end": { - "line": 341, + "line": 362, "column": 88 } } }, "range": [ - 11728, - 11758 + 12413, + 12443 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 89 } } @@ -19821,31 +21717,31 @@ "type": "Identifier", "name": "type", "range": [ - 11759, - 11763 + 12444, + 12448 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 90 }, "end": { - "line": 341, + "line": 362, "column": 94 } } }, "range": [ - 11728, - 11764 + 12413, + 12449 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 95 } } @@ -19854,31 +21750,31 @@ "type": "Identifier", "name": "id", "range": [ - 11765, - 11767 + 12450, + 12452 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 96 }, "end": { - "line": 341, + "line": 362, "column": 98 } } }, "range": [ - 11728, - 11768 + 12413, + 12453 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 99 } } @@ -19887,31 +21783,31 @@ "type": "Identifier", "name": "filter", "range": [ - 11769, - 11775 + 12454, + 12460 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 100 }, "end": { - "line": 341, + "line": 362, "column": 106 } } }, "range": [ - 11728, - 11775 + 12413, + 12460 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 341, + "line": 362, "column": 106 } } @@ -19925,16 +21821,16 @@ "type": "Identifier", "name": "x", "range": [ - 11776, - 11777 + 12461, + 12462 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 107 }, "end": { - "line": 341, + "line": 362, "column": 108 } } @@ -19955,16 +21851,16 @@ "type": "Identifier", "name": "x", "range": [ - 11808, - 11809 + 12493, + 12494 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 25 }, "end": { - "line": 342, + "line": 363, "column": 26 } } @@ -19974,31 +21870,31 @@ "value": 0, "raw": "0", "range": [ - 11810, - 11811 + 12495, + 12496 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 27 }, "end": { - "line": 342, + "line": 363, "column": 28 } } }, "range": [ - 11808, - 11812 + 12493, + 12497 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 25 }, "end": { - "line": 342, + "line": 363, "column": 29 } } @@ -20007,62 +21903,62 @@ "type": "Identifier", "name": "callback", "range": [ - 11817, - 11825 + 12502, + 12510 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 34 }, "end": { - "line": 342, + "line": 363, "column": 42 } } }, "range": [ - 11808, - 11825 + 12493, + 12510 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 25 }, "end": { - "line": 342, + "line": 363, "column": 42 } } }, "range": [ - 11801, - 11826 + 12486, + 12511 ], "loc": { "start": { - "line": 342, + "line": 363, "column": 18 }, "end": { - "line": 342, + "line": 363, "column": 43 } } } ], "range": [ - 11781, - 11844 + 12466, + 12529 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 112 }, "end": { - "line": 343, + "line": 364, "column": 17 } } @@ -20070,110 +21966,110 @@ "generator": false, "expression": false, "range": [ - 11776, - 11844 + 12461, + 12529 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 107 }, "end": { - "line": 343, + "line": 364, "column": 17 } } } ], "range": [ - 11728, - 11845 + 12413, + 12530 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 59 }, "end": { - "line": 343, + "line": 364, "column": 18 } } }, "range": [ - 11685, - 11845 + 12370, + 12530 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 343, + "line": 364, "column": 18 } } }, "range": [ - 11685, - 11846 + 12370, + 12531 ], "loc": { "start": { - "line": 341, + "line": 362, "column": 16 }, "end": { - "line": 343, + "line": 364, "column": 19 } } } ], "range": [ - 11667, - 11862 + 12352, + 12547 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 100 }, "end": { - "line": 344, + "line": 365, "column": 15 } } }, "alternate": null, "range": [ - 11581, - 11862 + 12266, + 12547 ], "loc": { "start": { - "line": 340, + "line": 361, "column": 14 }, "end": { - "line": 344, + "line": 365, "column": 15 } } } ], "range": [ - 11565, - 11876 + 12250, + 12561 ], "loc": { "start": { - "line": 339, + "line": 360, "column": 20 }, "end": { - "line": 345, + "line": 366, "column": 13 } } @@ -20192,16 +22088,16 @@ "object": { "type": "ThisExpression", "range": [ - 11886, - 11890 + 12571, + 12575 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 23 }, "end": { - "line": 345, + "line": 366, "column": 27 } } @@ -20210,31 +22106,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 11891, - 11911 + 12576, + 12596 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 28 }, "end": { - "line": 345, + "line": 366, "column": 48 } } }, "range": [ - 11886, - 11911 + 12571, + 12596 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 23 }, "end": { - "line": 345, + "line": 366, "column": 48 } } @@ -20243,31 +22139,31 @@ "type": "Identifier", "name": "event", "range": [ - 11912, - 11917 + 12597, + 12602 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 49 }, "end": { - "line": 345, + "line": 366, "column": 54 } } }, "range": [ - 11886, - 11918 + 12571, + 12603 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 23 }, "end": { - "line": 345, + "line": 366, "column": 55 } } @@ -20276,31 +22172,31 @@ "type": "Identifier", "name": "type", "range": [ - 11919, - 11923 + 12604, + 12608 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 56 }, "end": { - "line": 345, + "line": 366, "column": 60 } } }, "range": [ - 11886, - 11924 + 12571, + 12609 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 23 }, "end": { - "line": 345, + "line": 366, "column": 61 } } @@ -20325,16 +22221,16 @@ "object": { "type": "ThisExpression", "range": [ - 11942, - 11946 + 12627, + 12631 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 346, + "line": 367, "column": 18 } } @@ -20343,31 +22239,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 11947, - 11967 + 12632, + 12652 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 19 }, "end": { - "line": 346, + "line": 367, "column": 39 } } }, "range": [ - 11942, - 11967 + 12627, + 12652 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 346, + "line": 367, "column": 39 } } @@ -20376,31 +22272,31 @@ "type": "Identifier", "name": "event", "range": [ - 11968, - 11973 + 12653, + 12658 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 40 }, "end": { - "line": 346, + "line": 367, "column": 45 } } }, "range": [ - 11942, - 11974 + 12627, + 12659 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 346, + "line": 367, "column": 46 } } @@ -20409,31 +22305,31 @@ "type": "Identifier", "name": "type", "range": [ - 11975, - 11979 + 12660, + 12664 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 47 }, "end": { - "line": 346, + "line": 367, "column": 51 } } }, "range": [ - 11942, - 11980 + 12627, + 12665 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 346, + "line": 367, "column": 52 } } @@ -20455,16 +22351,16 @@ "object": { "type": "ThisExpression", "range": [ - 11983, - 11987 + 12668, + 12672 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 346, + "line": 367, "column": 59 } } @@ -20473,31 +22369,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 11988, - 12008 + 12673, + 12693 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 60 }, "end": { - "line": 346, + "line": 367, "column": 80 } } }, "range": [ - 11983, - 12008 + 12668, + 12693 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 346, + "line": 367, "column": 80 } } @@ -20506,31 +22402,31 @@ "type": "Identifier", "name": "event", "range": [ - 12009, - 12014 + 12694, + 12699 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 81 }, "end": { - "line": 346, + "line": 367, "column": 86 } } }, "range": [ - 11983, - 12015 + 12668, + 12700 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 346, + "line": 367, "column": 87 } } @@ -20539,31 +22435,31 @@ "type": "Identifier", "name": "type", "range": [ - 12016, - 12020 + 12701, + 12705 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 88 }, "end": { - "line": 346, + "line": 367, "column": 92 } } }, "range": [ - 11983, - 12021 + 12668, + 12706 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 346, + "line": 367, "column": 93 } } @@ -20572,31 +22468,31 @@ "type": "Identifier", "name": "filter", "range": [ - 12022, - 12028 + 12707, + 12713 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 94 }, "end": { - "line": 346, + "line": 367, "column": 100 } } }, "range": [ - 11983, - 12028 + 12668, + 12713 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 346, + "line": 367, "column": 100 } } @@ -20610,16 +22506,16 @@ "type": "Identifier", "name": "x", "range": [ - 12029, - 12030 + 12714, + 12715 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 101 }, "end": { - "line": 346, + "line": 367, "column": 102 } } @@ -20640,16 +22536,16 @@ "type": "Identifier", "name": "x", "range": [ - 12059, - 12060 + 12744, + 12745 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 23 }, "end": { - "line": 347, + "line": 368, "column": 24 } } @@ -20659,31 +22555,31 @@ "value": 0, "raw": "0", "range": [ - 12061, - 12062 + 12746, + 12747 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 25 }, "end": { - "line": 347, + "line": 368, "column": 26 } } }, "range": [ - 12059, - 12063 + 12744, + 12748 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 23 }, "end": { - "line": 347, + "line": 368, "column": 27 } } @@ -20692,62 +22588,62 @@ "type": "Identifier", "name": "callback", "range": [ - 12068, - 12076 + 12753, + 12761 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 32 }, "end": { - "line": 347, + "line": 368, "column": 40 } } }, "range": [ - 12059, - 12076 + 12744, + 12761 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 23 }, "end": { - "line": 347, + "line": 368, "column": 40 } } }, "range": [ - 12052, - 12077 + 12737, + 12762 ], "loc": { "start": { - "line": 347, + "line": 368, "column": 16 }, "end": { - "line": 347, + "line": 368, "column": 41 } } } ], "range": [ - 12034, - 12093 + 12719, + 12778 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 106 }, "end": { - "line": 348, + "line": 369, "column": 15 } } @@ -20755,125 +22651,125 @@ "generator": false, "expression": false, "range": [ - 12029, - 12093 + 12714, + 12778 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 101 }, "end": { - "line": 348, + "line": 369, "column": 15 } } } ], "range": [ - 11983, - 12094 + 12668, + 12779 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 55 }, "end": { - "line": 348, + "line": 369, "column": 16 } } }, "range": [ - 11942, - 12094 + 12627, + 12779 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 348, + "line": 369, "column": 16 } } }, "range": [ - 11942, - 12095 + 12627, + 12780 ], "loc": { "start": { - "line": 346, + "line": 367, "column": 14 }, "end": { - "line": 348, + "line": 369, "column": 17 } } } ], "range": [ - 11926, - 12109 + 12611, + 12794 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 63 }, "end": { - "line": 349, + "line": 370, "column": 13 } } }, "alternate": null, "range": [ - 11882, - 12109 + 12567, + 12794 ], "loc": { "start": { - "line": 345, + "line": 366, "column": 19 }, "end": { - "line": 349, + "line": 370, "column": 13 } } }, "range": [ - 11557, - 12109 + 12242, + 12794 ], "loc": { "start": { - "line": 339, + "line": 360, "column": 12 }, "end": { - "line": 349, + "line": 370, "column": 13 } } } ], "range": [ - 11543, - 12121 + 12228, + 12806 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 51 }, "end": { - "line": 350, + "line": 371, "column": 11 } } @@ -20881,47 +22777,47 @@ "generator": false, "expression": false, "range": [ - 11535, - 12121 + 12220, + 12806 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 43 }, "end": { - "line": 350, + "line": 371, "column": 11 } } } ], "range": [ - 11502, - 12122 + 12187, + 12807 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 350, + "line": 371, "column": 12 } } }, "range": [ - 11502, - 12123 + 12187, + 12808 ], "loc": { "start": { - "line": 338, + "line": 359, "column": 10 }, "end": { - "line": 350, + "line": 371, "column": 13 } }, @@ -20930,16 +22826,16 @@ "type": "Line", "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", "range": [ - 11382, - 11491 + 12067, + 12176 ], "loc": { "start": { - "line": 337, + "line": 358, "column": 10 }, "end": { - "line": 337, + "line": 358, "column": 119 } } @@ -20948,47 +22844,47 @@ } ], "range": [ - 11370, - 12133 + 12055, + 12818 ], "loc": { "start": { - "line": 336, + "line": 357, "column": 15 }, "end": { - "line": 351, + "line": 372, "column": 9 } } }, "range": [ - 11231, - 12133 + 11916, + 12818 ], "loc": { "start": { - "line": 334, + "line": 355, "column": 8 }, "end": { - "line": 351, + "line": 372, "column": 9 } } } ], "range": [ - 11221, - 12141 + 11906, + 12826 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 29 }, "end": { - "line": 352, + "line": 373, "column": 7 } } @@ -21004,16 +22900,16 @@ "type": "Identifier", "name": "Error", "range": [ - 12167, - 12172 + 12852, + 12857 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 18 }, "end": { - "line": 353, + "line": 374, "column": 23 } } @@ -21030,16 +22926,16 @@ }, "tail": false, "range": [ - 12173, - 12190 + 12858, + 12875 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 24 }, "end": { - "line": 353, + "line": 374, "column": 41 } } @@ -21052,16 +22948,16 @@ }, "tail": true, "range": [ - 12194, - 12197 + 12879, + 12882 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 45 }, "end": { - "line": 353, + "line": 374, "column": 48 } } @@ -21072,110 +22968,110 @@ "type": "Identifier", "name": "type", "range": [ - 12190, - 12194 + 12875, + 12879 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 41 }, "end": { - "line": 353, + "line": 374, "column": 45 } } } ], "range": [ - 12173, - 12197 + 12858, + 12882 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 24 }, "end": { - "line": 353, + "line": 374, "column": 48 } } } ], "range": [ - 12163, - 12198 + 12848, + 12883 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 14 }, "end": { - "line": 353, + "line": 374, "column": 49 } } }, "range": [ - 12157, - 12199 + 12842, + 12884 ], "loc": { "start": { - "line": 353, + "line": 374, "column": 8 }, "end": { - "line": 353, + "line": 374, "column": 50 } } } ], "range": [ - 12147, - 12207 + 12832, + 12892 ], "loc": { "start": { - "line": 352, + "line": 373, "column": 13 }, "end": { - "line": 354, + "line": 375, "column": 7 } } }, "range": [ - 11198, - 12207 + 11883, + 12892 ], "loc": { "start": { - "line": 333, + "line": 354, "column": 6 }, "end": { - "line": 354, + "line": 375, "column": 7 } } } ], "range": [ - 11190, - 12213 + 11875, + 12898 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 76 }, "end": { - "line": 355, + "line": 376, "column": 5 } } @@ -21191,16 +23087,16 @@ "type": "Identifier", "name": "Error", "range": [ - 12237, - 12242 + 12922, + 12927 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 16 }, "end": { - "line": 356, + "line": 377, "column": 21 } } @@ -21217,16 +23113,16 @@ }, "tail": false, "range": [ - 12243, - 12261 + 12928, + 12946 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 22 }, "end": { - "line": 356, + "line": 377, "column": 40 } } @@ -21239,16 +23135,16 @@ }, "tail": true, "range": [ - 12266, - 12269 + 12951, + 12954 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 45 }, "end": { - "line": 356, + "line": 377, "column": 48 } } @@ -21259,110 +23155,110 @@ "type": "Identifier", "name": "event", "range": [ - 12261, - 12266 + 12946, + 12951 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 40 }, "end": { - "line": 356, + "line": 377, "column": 45 } } } ], "range": [ - 12243, - 12269 + 12928, + 12954 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 22 }, "end": { - "line": 356, + "line": 377, "column": 48 } } } ], "range": [ - 12233, - 12270 + 12918, + 12955 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 12 }, "end": { - "line": 356, + "line": 377, "column": 49 } } }, "range": [ - 12227, - 12271 + 12912, + 12956 ], "loc": { "start": { - "line": 356, + "line": 377, "column": 6 }, "end": { - "line": 356, + "line": 377, "column": 50 } } } ], "range": [ - 12219, - 12277 + 12904, + 12962 ], "loc": { "start": { - "line": 355, + "line": 376, "column": 11 }, "end": { - "line": 357, + "line": 378, "column": 5 } } }, "range": [ - 11118, - 12277 + 11803, + 12962 ], "loc": { "start": { - "line": 332, + "line": 353, "column": 4 }, "end": { - "line": 357, + "line": 378, "column": 5 } } } ], "range": [ - 11112, - 12281 + 11797, + 12966 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 33 }, "end": { - "line": 358, + "line": 379, "column": 3 } } @@ -21370,16 +23266,16 @@ "generator": false, "expression": false, "range": [ - 11084, - 12281 + 11769, + 12966 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 5 }, "end": { - "line": 358, + "line": 379, "column": 3 } } @@ -21387,16 +23283,16 @@ "kind": "method", "computed": false, "range": [ - 11081, - 12281 + 11766, + 12966 ], "loc": { "start": { - "line": 331, + "line": 352, "column": 2 }, "end": { - "line": 358, + "line": 379, "column": 3 } }, @@ -21405,16 +23301,16 @@ "type": "Block", "value": "*\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n ", "range": [ - 10675, - 11078 + 11360, + 11763 ], "loc": { "start": { - "line": 321, + "line": 342, "column": 2 }, "end": { - "line": 330, + "line": 351, "column": 5 } } @@ -21425,16 +23321,16 @@ "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 12285, - 12725 + 12970, + 13410 ], "loc": { "start": { - "line": 360, + "line": 381, "column": 2 }, "end": { - "line": 370, + "line": 391, "column": 5 } } @@ -21448,16 +23344,16 @@ "type": "Identifier", "name": "on", "range": [ - 12728, - 12730 + 13413, + 13415 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 2 }, "end": { - "line": 371, + "line": 392, "column": 4 } } @@ -21470,16 +23366,16 @@ "type": "Identifier", "name": "event", "range": [ - 12731, - 12736 + 13416, + 13421 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 5 }, "end": { - "line": 371, + "line": 392, "column": 10 } } @@ -21488,16 +23384,16 @@ "type": "Identifier", "name": "type", "range": [ - 12738, - 12742 + 13423, + 13427 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 12 }, "end": { - "line": 371, + "line": 392, "column": 16 } } @@ -21506,16 +23402,16 @@ "type": "Identifier", "name": "id", "range": [ - 12744, - 12746 + 13429, + 13431 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 18 }, "end": { - "line": 371, + "line": 392, "column": 20 } } @@ -21524,16 +23420,16 @@ "type": "Identifier", "name": "callback", "range": [ - 12748, - 12756 + 13433, + 13441 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 22 }, "end": { - "line": 371, + "line": 392, "column": 30 } } @@ -21542,16 +23438,16 @@ "type": "Identifier", "name": "context", "range": [ - 12758, - 12765 + 13443, + 13450 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 32 }, "end": { - "line": 371, + "line": 392, "column": 39 } } @@ -21574,16 +23470,16 @@ "object": { "type": "ThisExpression", "range": [ - 12777, - 12781 + 13462, + 13466 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 8 }, "end": { - "line": 372, + "line": 393, "column": 12 } } @@ -21592,31 +23488,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 12782, - 12800 + 13467, + 13485 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 13 }, "end": { - "line": 372, + "line": 393, "column": 31 } } }, "range": [ - 12777, - 12800 + 13462, + 13485 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 8 }, "end": { - "line": 372, + "line": 393, "column": 31 } } @@ -21625,31 +23521,31 @@ "type": "Identifier", "name": "event", "range": [ - 12801, - 12806 + 13486, + 13491 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 32 }, "end": { - "line": 372, + "line": 393, "column": 37 } } }, "range": [ - 12777, - 12807 + 13462, + 13492 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 8 }, "end": { - "line": 372, + "line": 393, "column": 38 } } @@ -21663,16 +23559,16 @@ "object": { "type": "ThisExpression", "range": [ - 12811, - 12815 + 13496, + 13500 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 42 }, "end": { - "line": 372, + "line": 393, "column": 46 } } @@ -21681,31 +23577,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 12816, - 12836 + 13501, + 13521 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 47 }, "end": { - "line": 372, + "line": 393, "column": 67 } } }, "range": [ - 12811, - 12836 + 13496, + 13521 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 42 }, "end": { - "line": 372, + "line": 393, "column": 67 } } @@ -21714,46 +23610,46 @@ "type": "Identifier", "name": "event", "range": [ - 12837, - 12842 + 13522, + 13527 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 68 }, "end": { - "line": 372, + "line": 393, "column": 73 } } }, "range": [ - 12811, - 12843 + 13496, + 13528 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 42 }, "end": { - "line": 372, + "line": 393, "column": 74 } } }, "range": [ - 12777, - 12843 + 13462, + 13528 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 8 }, "end": { - "line": 372, + "line": 393, "column": 74 } } @@ -21772,16 +23668,16 @@ "object": { "type": "ThisExpression", "range": [ - 12857, - 12861 + 13542, + 13546 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 10 }, "end": { - "line": 373, + "line": 394, "column": 14 } } @@ -21790,31 +23686,31 @@ "type": "Identifier", "name": "_types", "range": [ - 12862, - 12868 + 13547, + 13553 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 15 }, "end": { - "line": 373, + "line": 394, "column": 21 } } }, "range": [ - 12857, - 12868 + 13542, + 13553 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 10 }, "end": { - "line": 373, + "line": 394, "column": 21 } } @@ -21823,31 +23719,31 @@ "type": "Identifier", "name": "type", "range": [ - 12869, - 12873 + 13554, + 13558 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 22 }, "end": { - "line": 373, + "line": 394, "column": 26 } } }, "range": [ - 12857, - 12874 + 13542, + 13559 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 10 }, "end": { - "line": 373, + "line": 394, "column": 27 } } @@ -21864,16 +23760,16 @@ "type": "Identifier", "name": "id", "range": [ - 12890, - 12892 + 13575, + 13577 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 12 }, "end": { - "line": 374, + "line": 395, "column": 14 } } @@ -21893,16 +23789,16 @@ "type": "ObjectExpression", "properties": [], "range": [ - 12897, - 12899 + 13582, + 13584 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 19 }, "end": { - "line": 374, + "line": 395, "column": 21 } } @@ -21911,31 +23807,31 @@ "type": "Identifier", "name": "toString", "range": [ - 12901, - 12909 + 13586, + 13594 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 23 }, "end": { - "line": 374, + "line": 395, "column": 31 } } }, "range": [ - 12896, - 12909 + 13581, + 13594 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 18 }, "end": { - "line": 374, + "line": 395, "column": 31 } } @@ -21944,31 +23840,31 @@ "type": "Identifier", "name": "call", "range": [ - 12910, - 12914 + 13595, + 13599 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 32 }, "end": { - "line": 374, + "line": 395, "column": 36 } } }, "range": [ - 12896, - 12914 + 13581, + 13599 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 18 }, "end": { - "line": 374, + "line": 395, "column": 36 } } @@ -21978,32 +23874,32 @@ "type": "Identifier", "name": "id", "range": [ - 12915, - 12917 + 13600, + 13602 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 37 }, "end": { - "line": 374, + "line": 395, "column": 39 } } } ], "range": [ - 12896, - 12918 + 13581, + 13603 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 18 }, "end": { - "line": 374, + "line": 395, "column": 40 } } @@ -22013,46 +23909,46 @@ "value": "[object Function]", "raw": "'[object Function]'", "range": [ - 12923, - 12942 + 13608, + 13627 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 45 }, "end": { - "line": 374, + "line": 395, "column": 64 } } }, "range": [ - 12896, - 12942 + 13581, + 13627 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 18 }, "end": { - "line": 374, + "line": 395, "column": 64 } } }, "range": [ - 12890, - 12942 + 13575, + 13627 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 12 }, "end": { - "line": 374, + "line": 395, "column": 64 } } @@ -22073,16 +23969,16 @@ "object": { "type": "ThisExpression", "range": [ - 12956, - 12960 + 13641, + 13645 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 10 }, "end": { - "line": 375, + "line": 396, "column": 14 } } @@ -22091,31 +23987,31 @@ "type": "Identifier", "name": "on", "range": [ - 12961, - 12963 + 13646, + 13648 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 15 }, "end": { - "line": 375, + "line": 396, "column": 17 } } }, "range": [ - 12956, - 12963 + 13641, + 13648 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 10 }, "end": { - "line": 375, + "line": 396, "column": 17 } } @@ -22124,31 +24020,31 @@ "type": "Identifier", "name": "call", "range": [ - 12964, - 12968 + 13649, + 13653 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 18 }, "end": { - "line": 375, + "line": 396, "column": 22 } } }, "range": [ - 12956, - 12968 + 13641, + 13653 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 10 }, "end": { - "line": 375, + "line": 396, "column": 22 } } @@ -22157,16 +24053,16 @@ { "type": "ThisExpression", "range": [ - 12969, - 12973 + 13654, + 13658 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 23 }, "end": { - "line": 375, + "line": 396, "column": 27 } } @@ -22175,16 +24071,16 @@ "type": "Identifier", "name": "event", "range": [ - 12975, - 12980 + 13660, + 13665 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 29 }, "end": { - "line": 375, + "line": 396, "column": 34 } } @@ -22193,16 +24089,16 @@ "type": "Identifier", "name": "type", "range": [ - 12982, - 12986 + 13667, + 13671 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 36 }, "end": { - "line": 375, + "line": 396, "column": 40 } } @@ -22212,16 +24108,16 @@ "value": null, "raw": "null", "range": [ - 12988, - 12992 + 13673, + 13677 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 42 }, "end": { - "line": 375, + "line": 396, "column": 46 } } @@ -22230,16 +24126,16 @@ "type": "Identifier", "name": "id", "range": [ - 12994, - 12996 + 13679, + 13681 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 48 }, "end": { - "line": 375, + "line": 396, "column": 50 } } @@ -22248,63 +24144,63 @@ "type": "Identifier", "name": "callback", "range": [ - 12998, - 13006 + 13683, + 13691 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 52 }, "end": { - "line": 375, + "line": 396, "column": 60 } } } ], "range": [ - 12956, - 13007 + 13641, + 13692 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 10 }, "end": { - "line": 375, + "line": 396, "column": 61 } } }, "range": [ - 12956, - 13008 + 13641, + 13693 ], "loc": { "start": { - "line": 375, + "line": 396, "column": 10 }, "end": { - "line": 375, + "line": 396, "column": 62 } } } ], "range": [ - 12944, - 13018 + 13629, + 13703 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 66 }, "end": { - "line": 376, + "line": 397, "column": 9 } } @@ -22331,16 +24227,16 @@ "object": { "type": "ThisExpression", "range": [ - 13156, - 13160 + 13841, + 13845 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 378, + "line": 399, "column": 14 } } @@ -22349,31 +24245,31 @@ "type": "Identifier", "name": "_types", "range": [ - 13161, - 13167 + 13846, + 13852 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 15 }, "end": { - "line": 378, + "line": 399, "column": 21 } } }, "range": [ - 13156, - 13167 + 13841, + 13852 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 378, + "line": 399, "column": 21 } } @@ -22382,31 +24278,31 @@ "type": "Identifier", "name": "type", "range": [ - 13168, - 13172 + 13853, + 13857 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 22 }, "end": { - "line": 378, + "line": 399, "column": 26 } } }, "range": [ - 13156, - 13173 + 13841, + 13858 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 378, + "line": 399, "column": 27 } } @@ -22415,31 +24311,31 @@ "type": "Identifier", "name": "_names", "range": [ - 13174, - 13180 + 13859, + 13865 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 28 }, "end": { - "line": 378, + "line": 399, "column": 34 } } }, "range": [ - 13156, - 13180 + 13841, + 13865 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 378, + "line": 399, "column": 34 } } @@ -22448,31 +24344,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 13181, - 13188 + 13866, + 13873 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 35 }, "end": { - "line": 378, + "line": 399, "column": 42 } } }, "range": [ - 13156, - 13188 + 13841, + 13873 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 378, + "line": 399, "column": 42 } } @@ -22486,16 +24382,16 @@ "type": "Identifier", "name": "type", "range": [ - 13189, - 13193 + 13874, + 13878 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 43 }, "end": { - "line": 378, + "line": 399, "column": 47 } } @@ -22510,16 +24406,16 @@ "type": "Identifier", "name": "id", "range": [ - 13215, - 13217 + 13900, + 13902 ], "loc": { "start": { - "line": 379, + "line": 400, "column": 16 }, "end": { - "line": 379, + "line": 400, "column": 18 } } @@ -22544,16 +24440,16 @@ "object": { "type": "ThisExpression", "range": [ - 13235, - 13239 + 13920, + 13924 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 18 } } @@ -22562,31 +24458,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13240, - 13258 + 13925, + 13943 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 19 }, "end": { - "line": 380, + "line": 401, "column": 37 } } }, "range": [ - 13235, - 13258 + 13920, + 13943 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 37 } } @@ -22595,31 +24491,31 @@ "type": "Identifier", "name": "event", "range": [ - 13259, - 13264 + 13944, + 13949 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 38 }, "end": { - "line": 380, + "line": 401, "column": 43 } } }, "range": [ - 13235, - 13265 + 13920, + 13950 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 44 } } @@ -22628,31 +24524,31 @@ "type": "Identifier", "name": "type", "range": [ - 13266, - 13270 + 13951, + 13955 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 45 }, "end": { - "line": 380, + "line": 401, "column": 49 } } }, "range": [ - 13235, - 13271 + 13920, + 13956 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 50 } } @@ -22672,16 +24568,16 @@ "object": { "type": "ThisExpression", "range": [ - 13274, - 13278 + 13959, + 13963 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 53 }, "end": { - "line": 380, + "line": 401, "column": 57 } } @@ -22690,31 +24586,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13279, - 13297 + 13964, + 13982 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 58 }, "end": { - "line": 380, + "line": 401, "column": 76 } } }, "range": [ - 13274, - 13297 + 13959, + 13982 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 53 }, "end": { - "line": 380, + "line": 401, "column": 76 } } @@ -22723,31 +24619,31 @@ "type": "Identifier", "name": "event", "range": [ - 13298, - 13303 + 13983, + 13988 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 77 }, "end": { - "line": 380, + "line": 401, "column": 82 } } }, "range": [ - 13274, - 13304 + 13959, + 13989 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 53 }, "end": { - "line": 380, + "line": 401, "column": 83 } } @@ -22756,31 +24652,31 @@ "type": "Identifier", "name": "type", "range": [ - 13305, - 13309 + 13990, + 13994 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 84 }, "end": { - "line": 380, + "line": 401, "column": 88 } } }, "range": [ - 13274, - 13310 + 13959, + 13995 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 53 }, "end": { - "line": 380, + "line": 401, "column": 89 } } @@ -22789,61 +24685,61 @@ "type": "ObjectExpression", "properties": [], "range": [ - 13314, - 13316 + 13999, + 14001 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 93 }, "end": { - "line": 380, + "line": 401, "column": 95 } } }, "range": [ - 13274, - 13316 + 13959, + 14001 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 53 }, "end": { - "line": 380, + "line": 401, "column": 95 } } }, "range": [ - 13235, - 13316 + 13920, + 14001 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 95 } } }, "range": [ - 13235, - 13317 + 13920, + 14002 ], "loc": { "start": { - "line": 380, + "line": 401, "column": 14 }, "end": { - "line": 380, + "line": 401, "column": 96 } } @@ -22868,16 +24764,16 @@ "object": { "type": "ThisExpression", "range": [ - 13332, - 13336 + 14017, + 14021 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 18 } } @@ -22886,31 +24782,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13337, - 13355 + 14022, + 14040 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 19 }, "end": { - "line": 381, + "line": 402, "column": 37 } } }, "range": [ - 13332, - 13355 + 14017, + 14040 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 37 } } @@ -22919,31 +24815,31 @@ "type": "Identifier", "name": "event", "range": [ - 13356, - 13361 + 14041, + 14046 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 38 }, "end": { - "line": 381, + "line": 402, "column": 43 } } }, "range": [ - 13332, - 13362 + 14017, + 14047 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 44 } } @@ -22952,31 +24848,31 @@ "type": "Identifier", "name": "type", "range": [ - 13363, - 13367 + 14048, + 14052 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 45 }, "end": { - "line": 381, + "line": 402, "column": 49 } } }, "range": [ - 13332, - 13368 + 14017, + 14053 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 50 } } @@ -22985,31 +24881,31 @@ "type": "Identifier", "name": "id", "range": [ - 13369, - 13371 + 14054, + 14056 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 51 }, "end": { - "line": 381, + "line": 402, "column": 53 } } }, "range": [ - 13332, - 13372 + 14017, + 14057 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 54 } } @@ -23032,16 +24928,16 @@ "object": { "type": "ThisExpression", "range": [ - 13375, - 13379 + 14060, + 14064 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 61 } } @@ -23050,31 +24946,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13380, - 13398 + 14065, + 14083 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 62 }, "end": { - "line": 381, + "line": 402, "column": 80 } } }, "range": [ - 13375, - 13398 + 14060, + 14083 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 80 } } @@ -23083,31 +24979,31 @@ "type": "Identifier", "name": "event", "range": [ - 13399, - 13404 + 14084, + 14089 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 81 }, "end": { - "line": 381, + "line": 402, "column": 86 } } }, "range": [ - 13375, - 13405 + 14060, + 14090 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 87 } } @@ -23116,31 +25012,31 @@ "type": "Identifier", "name": "type", "range": [ - 13406, - 13410 + 14091, + 14095 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 88 }, "end": { - "line": 381, + "line": 402, "column": 92 } } }, "range": [ - 13375, - 13411 + 14060, + 14096 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 93 } } @@ -23149,31 +25045,31 @@ "type": "Identifier", "name": "id", "range": [ - 13412, - 13414 + 14097, + 14099 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 94 }, "end": { - "line": 381, + "line": 402, "column": 96 } } }, "range": [ - 13375, - 13415 + 14060, + 14100 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 97 } } @@ -23182,61 +25078,61 @@ "type": "ArrayExpression", "elements": [], "range": [ - 13419, - 13421 + 14104, + 14106 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 101 }, "end": { - "line": 381, + "line": 402, "column": 103 } } }, "range": [ - 13375, - 13421 + 14060, + 14106 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 57 }, "end": { - "line": 381, + "line": 402, "column": 103 } } }, "range": [ - 13332, - 13421 + 14017, + 14106 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 103 } } }, "range": [ - 13332, - 13422 + 14017, + 14107 ], "loc": { "start": { - "line": 381, + "line": 402, "column": 14 }, "end": { - "line": 381, + "line": 402, "column": 104 } } @@ -23266,16 +25162,16 @@ "object": { "type": "ThisExpression", "range": [ - 13442, - 13446 + 14127, + 14131 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 23 } } @@ -23284,31 +25180,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13447, - 13465 + 14132, + 14150 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 24 }, "end": { - "line": 382, + "line": 403, "column": 42 } } }, "range": [ - 13442, - 13465 + 14127, + 14150 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 42 } } @@ -23317,31 +25213,31 @@ "type": "Identifier", "name": "event", "range": [ - 13466, - 13471 + 14151, + 14156 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 43 }, "end": { - "line": 382, + "line": 403, "column": 48 } } }, "range": [ - 13442, - 13472 + 14127, + 14157 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 49 } } @@ -23350,31 +25246,31 @@ "type": "Identifier", "name": "type", "range": [ - 13473, - 13477 + 14158, + 14162 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 50 }, "end": { - "line": 382, + "line": 403, "column": 54 } } }, "range": [ - 13442, - 13478 + 14127, + 14163 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 55 } } @@ -23383,31 +25279,31 @@ "type": "Identifier", "name": "id", "range": [ - 13479, - 13481 + 14164, + 14166 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 56 }, "end": { - "line": 382, + "line": 403, "column": 58 } } }, "range": [ - 13442, - 13482 + 14127, + 14167 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 59 } } @@ -23416,31 +25312,31 @@ "type": "Identifier", "name": "find", "range": [ - 13483, - 13487 + 14168, + 14172 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 60 }, "end": { - "line": 382, + "line": 403, "column": 64 } } }, "range": [ - 13442, - 13487 + 14127, + 14172 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 64 } } @@ -23454,16 +25350,16 @@ "type": "Identifier", "name": "x", "range": [ - 13488, - 13489 + 14173, + 14174 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 65 }, "end": { - "line": 382, + "line": 403, "column": 66 } } @@ -23479,16 +25375,16 @@ "type": "Identifier", "name": "x", "range": [ - 13493, - 13494 + 14178, + 14179 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 70 }, "end": { - "line": 382, + "line": 403, "column": 71 } } @@ -23498,31 +25394,31 @@ "value": 0, "raw": "0", "range": [ - 13495, - 13496 + 14180, + 14181 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 72 }, "end": { - "line": 382, + "line": 403, "column": 73 } } }, "range": [ - 13493, - 13497 + 14178, + 14182 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 70 }, "end": { - "line": 382, + "line": 403, "column": 74 } } @@ -23531,31 +25427,31 @@ "type": "Identifier", "name": "callback", "range": [ - 13502, - 13510 + 14187, + 14195 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 79 }, "end": { - "line": 382, + "line": 403, "column": 87 } } }, "range": [ - 13493, - 13510 + 14178, + 14195 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 70 }, "end": { - "line": 382, + "line": 403, "column": 87 } } @@ -23563,48 +25459,48 @@ "generator": false, "expression": true, "range": [ - 13488, - 13510 + 14173, + 14195 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 65 }, "end": { - "line": 382, + "line": 403, "column": 87 } } } ], "range": [ - 13442, - 13511 + 14127, + 14196 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 19 }, "end": { - "line": 382, + "line": 403, "column": 88 } } }, "prefix": true, "range": [ - 13441, - 13511 + 14126, + 14196 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 18 }, "end": { - "line": 382, + "line": 403, "column": 88 } } @@ -23634,16 +25530,16 @@ "object": { "type": "ThisExpression", "range": [ - 13531, - 13535 + 14216, + 14220 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 20 } } @@ -23652,31 +25548,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 13536, - 13554 + 14221, + 14239 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 21 }, "end": { - "line": 383, + "line": 404, "column": 39 } } }, "range": [ - 13531, - 13554 + 14216, + 14239 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 39 } } @@ -23685,31 +25581,31 @@ "type": "Identifier", "name": "event", "range": [ - 13555, - 13560 + 14240, + 14245 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 40 }, "end": { - "line": 383, + "line": 404, "column": 45 } } }, "range": [ - 13531, - 13561 + 14216, + 14246 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 46 } } @@ -23718,31 +25614,31 @@ "type": "Identifier", "name": "type", "range": [ - 13562, - 13566 + 14247, + 14251 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 47 }, "end": { - "line": 383, + "line": 404, "column": 51 } } }, "range": [ - 13531, - 13567 + 14216, + 14252 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 52 } } @@ -23751,31 +25647,31 @@ "type": "Identifier", "name": "id", "range": [ - 13568, - 13570 + 14253, + 14255 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 53 }, "end": { - "line": 383, + "line": 404, "column": 55 } } }, "range": [ - 13531, - 13571 + 14216, + 14256 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 56 } } @@ -23784,31 +25680,31 @@ "type": "Identifier", "name": "push", "range": [ - 13572, - 13576 + 14257, + 14261 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 57 }, "end": { - "line": 383, + "line": 404, "column": 61 } } }, "range": [ - 13531, - 13576 + 14216, + 14261 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 61 } } @@ -23821,16 +25717,16 @@ "type": "Identifier", "name": "callback", "range": [ - 13579, - 13587 + 14264, + 14272 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 64 }, "end": { - "line": 383, + "line": 404, "column": 72 } } @@ -23839,111 +25735,111 @@ "type": "Identifier", "name": "context", "range": [ - 13589, - 13596 + 14274, + 14281 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 74 }, "end": { - "line": 383, + "line": 404, "column": 81 } } } ], "range": [ - 13577, - 13598 + 14262, + 14283 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 62 }, "end": { - "line": 383, + "line": 404, "column": 83 } } } ], "range": [ - 13531, - 13599 + 14216, + 14284 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 84 } } }, "range": [ - 13531, - 13600 + 14216, + 14285 ], "loc": { "start": { - "line": 383, + "line": 404, "column": 16 }, "end": { - "line": 383, + "line": 404, "column": 85 } } } ], "range": [ - 13513, - 13616 + 14198, + 14301 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 90 }, "end": { - "line": 384, + "line": 405, "column": 15 } } }, "alternate": null, "range": [ - 13437, - 13616 + 14122, + 14301 ], "loc": { "start": { - "line": 382, + "line": 403, "column": 14 }, "end": { - "line": 384, + "line": 405, "column": 15 } } } ], "range": [ - 13219, - 13630 + 13904, + 14315 ], "loc": { "start": { - "line": 379, + "line": 400, "column": 20 }, "end": { - "line": 385, + "line": 406, "column": 13 } } @@ -23968,16 +25864,16 @@ "object": { "type": "ThisExpression", "range": [ - 13652, - 13656 + 14337, + 14341 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 18 } } @@ -23986,31 +25882,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 13657, - 13677 + 14342, + 14362 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 19 }, "end": { - "line": 386, + "line": 407, "column": 39 } } }, "range": [ - 13652, - 13677 + 14337, + 14362 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 39 } } @@ -24019,31 +25915,31 @@ "type": "Identifier", "name": "event", "range": [ - 13678, - 13683 + 14363, + 14368 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 40 }, "end": { - "line": 386, + "line": 407, "column": 45 } } }, "range": [ - 13652, - 13684 + 14337, + 14369 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 46 } } @@ -24052,31 +25948,31 @@ "type": "Identifier", "name": "type", "range": [ - 13685, - 13689 + 14370, + 14374 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 47 }, "end": { - "line": 386, + "line": 407, "column": 51 } } }, "range": [ - 13652, - 13690 + 14337, + 14375 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 52 } } @@ -24096,16 +25992,16 @@ "object": { "type": "ThisExpression", "range": [ - 13693, - 13697 + 14378, + 14382 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 55 }, "end": { - "line": 386, + "line": 407, "column": 59 } } @@ -24114,31 +26010,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 13698, - 13718 + 14383, + 14403 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 60 }, "end": { - "line": 386, + "line": 407, "column": 80 } } }, "range": [ - 13693, - 13718 + 14378, + 14403 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 55 }, "end": { - "line": 386, + "line": 407, "column": 80 } } @@ -24147,31 +26043,31 @@ "type": "Identifier", "name": "event", "range": [ - 13719, - 13724 + 14404, + 14409 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 81 }, "end": { - "line": 386, + "line": 407, "column": 86 } } }, "range": [ - 13693, - 13725 + 14378, + 14410 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 55 }, "end": { - "line": 386, + "line": 407, "column": 87 } } @@ -24180,31 +26076,31 @@ "type": "Identifier", "name": "type", "range": [ - 13726, - 13730 + 14411, + 14415 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 88 }, "end": { - "line": 386, + "line": 407, "column": 92 } } }, "range": [ - 13693, - 13731 + 14378, + 14416 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 55 }, "end": { - "line": 386, + "line": 407, "column": 93 } } @@ -24213,61 +26109,61 @@ "type": "ArrayExpression", "elements": [], "range": [ - 13735, - 13737 + 14420, + 14422 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 97 }, "end": { - "line": 386, + "line": 407, "column": 99 } } }, "range": [ - 13693, - 13737 + 14378, + 14422 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 55 }, "end": { - "line": 386, + "line": 407, "column": 99 } } }, "range": [ - 13652, - 13737 + 14337, + 14422 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 99 } } }, "range": [ - 13652, - 13738 + 14337, + 14423 ], "loc": { "start": { - "line": 386, + "line": 407, "column": 14 }, "end": { - "line": 386, + "line": 407, "column": 100 } } @@ -24294,16 +26190,16 @@ "object": { "type": "ThisExpression", "range": [ - 13758, - 13762 + 14443, + 14447 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 23 } } @@ -24312,31 +26208,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 13763, - 13783 + 14448, + 14468 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 24 }, "end": { - "line": 387, + "line": 408, "column": 44 } } }, "range": [ - 13758, - 13783 + 14443, + 14468 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 44 } } @@ -24345,31 +26241,31 @@ "type": "Identifier", "name": "event", "range": [ - 13784, - 13789 + 14469, + 14474 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 45 }, "end": { - "line": 387, + "line": 408, "column": 50 } } }, "range": [ - 13758, - 13790 + 14443, + 14475 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 51 } } @@ -24378,31 +26274,31 @@ "type": "Identifier", "name": "type", "range": [ - 13791, - 13795 + 14476, + 14480 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 52 }, "end": { - "line": 387, + "line": 408, "column": 56 } } }, "range": [ - 13758, - 13796 + 14443, + 14481 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 57 } } @@ -24411,31 +26307,31 @@ "type": "Identifier", "name": "find", "range": [ - 13797, - 13801 + 14482, + 14486 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 58 }, "end": { - "line": 387, + "line": 408, "column": 62 } } }, "range": [ - 13758, - 13801 + 14443, + 14486 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 62 } } @@ -24449,16 +26345,16 @@ "type": "Identifier", "name": "x", "range": [ - 13802, - 13803 + 14487, + 14488 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 63 }, "end": { - "line": 387, + "line": 408, "column": 64 } } @@ -24474,16 +26370,16 @@ "type": "Identifier", "name": "x", "range": [ - 13807, - 13808 + 14492, + 14493 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 68 }, "end": { - "line": 387, + "line": 408, "column": 69 } } @@ -24493,31 +26389,31 @@ "value": 0, "raw": "0", "range": [ - 13809, - 13810 + 14494, + 14495 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 70 }, "end": { - "line": 387, + "line": 408, "column": 71 } } }, "range": [ - 13807, - 13811 + 14492, + 14496 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 68 }, "end": { - "line": 387, + "line": 408, "column": 72 } } @@ -24526,31 +26422,31 @@ "type": "Identifier", "name": "callback", "range": [ - 13816, - 13824 + 14501, + 14509 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 77 }, "end": { - "line": 387, + "line": 408, "column": 85 } } }, "range": [ - 13807, - 13824 + 14492, + 14509 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 68 }, "end": { - "line": 387, + "line": 408, "column": 85 } } @@ -24558,48 +26454,48 @@ "generator": false, "expression": true, "range": [ - 13802, - 13824 + 14487, + 14509 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 63 }, "end": { - "line": 387, + "line": 408, "column": 85 } } } ], "range": [ - 13758, - 13825 + 14443, + 14510 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 19 }, "end": { - "line": 387, + "line": 408, "column": 86 } } }, "prefix": true, "range": [ - 13757, - 13825 + 14442, + 14510 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 18 }, "end": { - "line": 387, + "line": 408, "column": 86 } } @@ -24626,16 +26522,16 @@ "object": { "type": "ThisExpression", "range": [ - 13845, - 13849 + 14530, + 14534 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 20 } } @@ -24644,31 +26540,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 13850, - 13870 + 14535, + 14555 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 21 }, "end": { - "line": 388, + "line": 409, "column": 41 } } }, "range": [ - 13845, - 13870 + 14530, + 14555 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 41 } } @@ -24677,31 +26573,31 @@ "type": "Identifier", "name": "event", "range": [ - 13871, - 13876 + 14556, + 14561 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 42 }, "end": { - "line": 388, + "line": 409, "column": 47 } } }, "range": [ - 13845, - 13877 + 14530, + 14562 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 48 } } @@ -24710,31 +26606,31 @@ "type": "Identifier", "name": "type", "range": [ - 13878, - 13882 + 14563, + 14567 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 49 }, "end": { - "line": 388, + "line": 409, "column": 53 } } }, "range": [ - 13845, - 13883 + 14530, + 14568 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 54 } } @@ -24743,31 +26639,31 @@ "type": "Identifier", "name": "push", "range": [ - 13884, - 13888 + 14569, + 14573 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 55 }, "end": { - "line": 388, + "line": 409, "column": 59 } } }, "range": [ - 13845, - 13888 + 14530, + 14573 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 59 } } @@ -24780,16 +26676,16 @@ "type": "Identifier", "name": "callback", "range": [ - 13891, - 13899 + 14576, + 14584 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 62 }, "end": { - "line": 388, + "line": 409, "column": 70 } } @@ -24798,142 +26694,142 @@ "type": "Identifier", "name": "context", "range": [ - 13901, - 13908 + 14586, + 14593 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 72 }, "end": { - "line": 388, + "line": 409, "column": 79 } } } ], "range": [ - 13889, - 13910 + 14574, + 14595 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 60 }, "end": { - "line": 388, + "line": 409, "column": 81 } } } ], "range": [ - 13845, - 13911 + 14530, + 14596 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 82 } } }, "range": [ - 13845, - 13912 + 14530, + 14597 ], "loc": { "start": { - "line": 388, + "line": 409, "column": 16 }, "end": { - "line": 388, + "line": 409, "column": 83 } } } ], "range": [ - 13827, - 13928 + 14512, + 14613 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 88 }, "end": { - "line": 389, + "line": 410, "column": 15 } } }, "alternate": null, "range": [ - 13753, - 13928 + 14438, + 14613 ], "loc": { "start": { - "line": 387, + "line": 408, "column": 14 }, "end": { - "line": 389, + "line": 410, "column": 15 } } } ], "range": [ - 13636, - 13942 + 14321, + 14627 ], "loc": { "start": { - "line": 385, + "line": 406, "column": 19 }, "end": { - "line": 390, + "line": 411, "column": 13 } } }, "range": [ - 13211, - 13942 + 13896, + 14627 ], "loc": { "start": { - "line": 379, + "line": 400, "column": 12 }, "end": { - "line": 390, + "line": 411, "column": 13 } } } ], "range": [ - 13197, - 13954 + 13882, + 14639 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 51 }, "end": { - "line": 391, + "line": 412, "column": 11 } } @@ -24941,47 +26837,47 @@ "generator": false, "expression": false, "range": [ - 13189, - 13954 + 13874, + 14639 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 43 }, "end": { - "line": 391, + "line": 412, "column": 11 } } } ], "range": [ - 13156, - 13955 + 13841, + 14640 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 391, + "line": 412, "column": 12 } } }, "range": [ - 13156, - 13956 + 13841, + 14641 ], "loc": { "start": { - "line": 378, + "line": 399, "column": 10 }, "end": { - "line": 391, + "line": 412, "column": 13 } }, @@ -24990,16 +26886,16 @@ "type": "Line", "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", "range": [ - 13036, - 13145 + 13721, + 13830 ], "loc": { "start": { - "line": 377, + "line": 398, "column": 10 }, "end": { - "line": 377, + "line": 398, "column": 119 } } @@ -25008,47 +26904,47 @@ } ], "range": [ - 13024, - 13966 + 13709, + 14651 ], "loc": { "start": { - "line": 376, + "line": 397, "column": 15 }, "end": { - "line": 392, + "line": 413, "column": 9 } } }, "range": [ - 12886, - 13966 + 13571, + 14651 ], "loc": { "start": { - "line": 374, + "line": 395, "column": 8 }, "end": { - "line": 392, + "line": 413, "column": 9 } } } ], "range": [ - 12876, - 13974 + 13561, + 14659 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 29 }, "end": { - "line": 393, + "line": 414, "column": 7 } } @@ -25064,16 +26960,16 @@ "type": "Identifier", "name": "Error", "range": [ - 14000, - 14005 + 14685, + 14690 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 18 }, "end": { - "line": 394, + "line": 415, "column": 23 } } @@ -25090,16 +26986,16 @@ }, "tail": false, "range": [ - 14006, - 14023 + 14691, + 14708 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 24 }, "end": { - "line": 394, + "line": 415, "column": 41 } } @@ -25112,16 +27008,16 @@ }, "tail": true, "range": [ - 14027, - 14030 + 14712, + 14715 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 45 }, "end": { - "line": 394, + "line": 415, "column": 48 } } @@ -25132,110 +27028,110 @@ "type": "Identifier", "name": "type", "range": [ - 14023, - 14027 + 14708, + 14712 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 41 }, "end": { - "line": 394, + "line": 415, "column": 45 } } } ], "range": [ - 14006, - 14030 + 14691, + 14715 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 24 }, "end": { - "line": 394, + "line": 415, "column": 48 } } } ], "range": [ - 13996, - 14031 + 14681, + 14716 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 14 }, "end": { - "line": 394, + "line": 415, "column": 49 } } }, "range": [ - 13990, - 14032 + 14675, + 14717 ], "loc": { "start": { - "line": 394, + "line": 415, "column": 8 }, "end": { - "line": 394, + "line": 415, "column": 50 } } } ], "range": [ - 13980, - 14040 + 14665, + 14725 ], "loc": { "start": { - "line": 393, + "line": 414, "column": 13 }, "end": { - "line": 395, + "line": 416, "column": 7 } } }, "range": [ - 12853, - 14040 + 13538, + 14725 ], "loc": { "start": { - "line": 373, + "line": 394, "column": 6 }, "end": { - "line": 395, + "line": 416, "column": 7 } } } ], "range": [ - 12845, - 14046 + 13530, + 14731 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 76 }, "end": { - "line": 396, + "line": 417, "column": 5 } } @@ -25251,16 +27147,16 @@ "type": "Identifier", "name": "Error", "range": [ - 14070, - 14075 + 14755, + 14760 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 16 }, "end": { - "line": 397, + "line": 418, "column": 21 } } @@ -25277,16 +27173,16 @@ }, "tail": false, "range": [ - 14076, - 14094 + 14761, + 14779 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 22 }, "end": { - "line": 397, + "line": 418, "column": 40 } } @@ -25299,16 +27195,16 @@ }, "tail": true, "range": [ - 14099, - 14102 + 14784, + 14787 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 45 }, "end": { - "line": 397, + "line": 418, "column": 48 } } @@ -25319,110 +27215,110 @@ "type": "Identifier", "name": "event", "range": [ - 14094, - 14099 + 14779, + 14784 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 40 }, "end": { - "line": 397, + "line": 418, "column": 45 } } } ], "range": [ - 14076, - 14102 + 14761, + 14787 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 22 }, "end": { - "line": 397, + "line": 418, "column": 48 } } } ], "range": [ - 14066, - 14103 + 14751, + 14788 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 12 }, "end": { - "line": 397, + "line": 418, "column": 49 } } }, "range": [ - 14060, - 14104 + 14745, + 14789 ], "loc": { "start": { - "line": 397, + "line": 418, "column": 6 }, "end": { - "line": 397, + "line": 418, "column": 50 } } } ], "range": [ - 14052, - 14110 + 14737, + 14795 ], "loc": { "start": { - "line": 396, + "line": 417, "column": 11 }, "end": { - "line": 398, + "line": 419, "column": 5 } } }, "range": [ - 12773, - 14110 + 13458, + 14795 ], "loc": { "start": { - "line": 372, + "line": 393, "column": 4 }, "end": { - "line": 398, + "line": 419, "column": 5 } } } ], "range": [ - 12767, - 14114 + 13452, + 14799 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 41 }, "end": { - "line": 399, + "line": 420, "column": 3 } } @@ -25430,16 +27326,16 @@ "generator": false, "expression": false, "range": [ - 12730, - 14114 + 13415, + 14799 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 4 }, "end": { - "line": 399, + "line": 420, "column": 3 } } @@ -25447,16 +27343,16 @@ "kind": "method", "computed": false, "range": [ - 12728, - 14114 + 13413, + 14799 ], "loc": { "start": { - "line": 371, + "line": 392, "column": 2 }, "end": { - "line": 399, + "line": 420, "column": 3 } }, @@ -25465,16 +27361,16 @@ "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 12285, - 12725 + 12970, + 13410 ], "loc": { "start": { - "line": 360, + "line": 381, "column": 2 }, "end": { - "line": 370, + "line": 391, "column": 5 } } @@ -25485,16 +27381,16 @@ "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 * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 14118, - 14452 + 14803, + 15137 ], "loc": { "start": { - "line": 401, + "line": 422, "column": 2 }, "end": { - "line": 409, + "line": 430, "column": 5 } } @@ -25508,16 +27404,16 @@ "type": "Identifier", "name": "push", "range": [ - 14455, - 14459 + 15140, + 15144 ], "loc": { "start": { - "line": 410, + "line": 431, "column": 2 }, "end": { - "line": 410, + "line": 431, "column": 6 } } @@ -25530,16 +27426,16 @@ "type": "Identifier", "name": "root", "range": [ - 14460, - 14464 + 15145, + 15149 ], "loc": { "start": { - "line": 410, + "line": 431, "column": 7 }, "end": { - "line": 410, + "line": 431, "column": 11 } } @@ -25563,16 +27459,16 @@ "type": "Identifier", "name": "root", "range": [ - 14476, - 14480 + 15161, + 15165 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 8 }, "end": { - "line": 411, + "line": 432, "column": 12 } } @@ -25581,31 +27477,31 @@ "type": "Identifier", "name": "data", "range": [ - 14481, - 14485 + 15166, + 15170 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 13 }, "end": { - "line": 411, + "line": 432, "column": 17 } } }, "range": [ - 14476, - 14485 + 15161, + 15170 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 8 }, "end": { - "line": 411, + "line": 432, "column": 17 } } @@ -25614,31 +27510,31 @@ "type": "Identifier", "name": "constructor", "range": [ - 14486, - 14497 + 15171, + 15182 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 18 }, "end": { - "line": 411, + "line": 432, "column": 29 } } }, "range": [ - 14476, - 14497 + 15161, + 15182 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 8 }, "end": { - "line": 411, + "line": 432, "column": 29 } } @@ -25647,31 +27543,31 @@ "type": "Identifier", "name": "Array", "range": [ - 14502, - 14507 + 15187, + 15192 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 34 }, "end": { - "line": 411, + "line": 432, "column": 39 } } }, "range": [ - 14476, - 14507 + 15161, + 15192 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 8 }, "end": { - "line": 411, + "line": 432, "column": 39 } } @@ -25693,16 +27589,16 @@ "type": "Identifier", "name": "root", "range": [ - 14517, - 14521 + 15202, + 15206 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 6 }, "end": { - "line": 412, + "line": 433, "column": 10 } } @@ -25711,31 +27607,31 @@ "type": "Identifier", "name": "data", "range": [ - 14522, - 14526 + 15207, + 15211 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 11 }, "end": { - "line": 412, + "line": 433, "column": 15 } } }, "range": [ - 14517, - 14526 + 15202, + 15211 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 6 }, "end": { - "line": 412, + "line": 433, "column": 15 } } @@ -25744,31 +27640,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 14527, - 14534 + 15212, + 15219 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 16 }, "end": { - "line": 412, + "line": 433, "column": 23 } } }, "range": [ - 14517, - 14534 + 15202, + 15219 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 6 }, "end": { - "line": 412, + "line": 433, "column": 23 } } @@ -25782,16 +27678,16 @@ "type": "Identifier", "name": "x", "range": [ - 14535, - 14536 + 15220, + 15221 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 24 }, "end": { - "line": 412, + "line": 433, "column": 25 } } @@ -25805,16 +27701,16 @@ "object": { "type": "ThisExpression", "range": [ - 14540, - 14544 + 15225, + 15229 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 29 }, "end": { - "line": 412, + "line": 433, "column": 33 } } @@ -25823,31 +27719,31 @@ "type": "Identifier", "name": "add", "range": [ - 14545, - 14548 + 15230, + 15233 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 34 }, "end": { - "line": 412, + "line": 433, "column": 37 } } }, "range": [ - 14540, - 14548 + 15225, + 15233 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 29 }, "end": { - "line": 412, + "line": 433, "column": 37 } } @@ -25857,32 +27753,32 @@ "type": "Identifier", "name": "x", "range": [ - 14549, - 14550 + 15234, + 15235 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 38 }, "end": { - "line": 412, + "line": 433, "column": 39 } } } ], "range": [ - 14540, - 14551 + 15225, + 15236 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 29 }, "end": { - "line": 412, + "line": 433, "column": 40 } } @@ -25890,63 +27786,63 @@ "generator": false, "expression": true, "range": [ - 14535, - 14551 + 15220, + 15236 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 24 }, "end": { - "line": 412, + "line": 433, "column": 40 } } } ], "range": [ - 14517, - 14552 + 15202, + 15237 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 6 }, "end": { - "line": 412, + "line": 433, "column": 41 } } }, "range": [ - 14517, - 14553 + 15202, + 15238 ], "loc": { "start": { - "line": 412, + "line": 433, "column": 6 }, "end": { - "line": 412, + "line": 433, "column": 42 } } } ], "range": [ - 14509, - 14559 + 15194, + 15244 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 41 }, "end": { - "line": 413, + "line": 434, "column": 5 } } @@ -25964,16 +27860,16 @@ "object": { "type": "ThisExpression", "range": [ - 14573, - 14577 + 15258, + 15262 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 6 }, "end": { - "line": 414, + "line": 435, "column": 10 } } @@ -25982,31 +27878,31 @@ "type": "Identifier", "name": "add", "range": [ - 14578, - 14581 + 15263, + 15266 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 11 }, "end": { - "line": 414, + "line": 435, "column": 14 } } }, "range": [ - 14573, - 14581 + 15258, + 15266 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 6 }, "end": { - "line": 414, + "line": 435, "column": 14 } } @@ -26019,16 +27915,16 @@ "type": "Identifier", "name": "root", "range": [ - 14582, - 14586 + 15267, + 15271 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 15 }, "end": { - "line": 414, + "line": 435, "column": 19 } } @@ -26037,93 +27933,93 @@ "type": "Identifier", "name": "data", "range": [ - 14587, - 14591 + 15272, + 15276 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 20 }, "end": { - "line": 414, + "line": 435, "column": 24 } } }, "range": [ - 14582, - 14591 + 15267, + 15276 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 15 }, "end": { - "line": 414, + "line": 435, "column": 24 } } } ], "range": [ - 14573, - 14592 + 15258, + 15277 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 6 }, "end": { - "line": 414, + "line": 435, "column": 25 } } }, "range": [ - 14573, - 14593 + 15258, + 15278 ], "loc": { "start": { - "line": 414, + "line": 435, "column": 6 }, "end": { - "line": 414, + "line": 435, "column": 26 } } } ], "range": [ - 14565, - 14599 + 15250, + 15284 ], "loc": { "start": { - "line": 413, + "line": 434, "column": 11 }, "end": { - "line": 415, + "line": 436, "column": 5 } } }, "range": [ - 14472, - 14599 + 15157, + 15284 ], "loc": { "start": { - "line": 411, + "line": 432, "column": 4 }, "end": { - "line": 415, + "line": 436, "column": 5 } } @@ -26137,16 +28033,16 @@ "type": "Identifier", "name": "root", "range": [ - 14608, - 14612 + 15293, + 15297 ], "loc": { "start": { - "line": 416, + "line": 437, "column": 8 }, "end": { - "line": 416, + "line": 437, "column": 12 } } @@ -26155,31 +28051,31 @@ "type": "Identifier", "name": "included", "range": [ - 14613, - 14621 + 15298, + 15306 ], "loc": { "start": { - "line": 416, + "line": 437, "column": 13 }, "end": { - "line": 416, + "line": 437, "column": 21 } } }, "range": [ - 14608, - 14621 + 15293, + 15306 ], "loc": { "start": { - "line": 416, + "line": 437, "column": 8 }, "end": { - "line": 416, + "line": 437, "column": 21 } } @@ -26201,16 +28097,16 @@ "type": "Identifier", "name": "root", "range": [ - 14631, - 14635 + 15316, + 15320 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 6 }, "end": { - "line": 417, + "line": 438, "column": 10 } } @@ -26219,31 +28115,31 @@ "type": "Identifier", "name": "included", "range": [ - 14636, - 14644 + 15321, + 15329 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 11 }, "end": { - "line": 417, + "line": 438, "column": 19 } } }, "range": [ - 14631, - 14644 + 15316, + 15329 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 6 }, "end": { - "line": 417, + "line": 438, "column": 19 } } @@ -26252,31 +28148,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 14645, - 14652 + 15330, + 15337 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 20 }, "end": { - "line": 417, + "line": 438, "column": 27 } } }, "range": [ - 14631, - 14652 + 15316, + 15337 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 6 }, "end": { - "line": 417, + "line": 438, "column": 27 } } @@ -26290,16 +28186,16 @@ "type": "Identifier", "name": "x", "range": [ - 14653, - 14654 + 15338, + 15339 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 28 }, "end": { - "line": 417, + "line": 438, "column": 29 } } @@ -26313,16 +28209,16 @@ "object": { "type": "ThisExpression", "range": [ - 14658, - 14662 + 15343, + 15347 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 33 }, "end": { - "line": 417, + "line": 438, "column": 37 } } @@ -26331,31 +28227,31 @@ "type": "Identifier", "name": "add", "range": [ - 14663, - 14666 + 15348, + 15351 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 38 }, "end": { - "line": 417, + "line": 438, "column": 41 } } }, "range": [ - 14658, - 14666 + 15343, + 15351 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 33 }, "end": { - "line": 417, + "line": 438, "column": 41 } } @@ -26365,32 +28261,32 @@ "type": "Identifier", "name": "x", "range": [ - 14667, - 14668 + 15352, + 15353 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 42 }, "end": { - "line": 417, + "line": 438, "column": 43 } } } ], "range": [ - 14658, - 14669 + 15343, + 15354 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 33 }, "end": { - "line": 417, + "line": 438, "column": 44 } } @@ -26398,95 +28294,95 @@ "generator": false, "expression": true, "range": [ - 14653, - 14669 + 15338, + 15354 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 28 }, "end": { - "line": 417, + "line": 438, "column": 44 } } } ], "range": [ - 14631, - 14670 + 15316, + 15355 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 6 }, "end": { - "line": 417, + "line": 438, "column": 45 } } }, "range": [ - 14631, - 14671 + 15316, + 15356 ], "loc": { "start": { - "line": 417, + "line": 438, "column": 6 }, "end": { - "line": 417, + "line": 438, "column": 46 } } } ], "range": [ - 14623, - 14677 + 15308, + 15362 ], "loc": { "start": { - "line": 416, + "line": 437, "column": 23 }, "end": { - "line": 418, + "line": 439, "column": 5 } } }, "alternate": null, "range": [ - 14604, - 14677 + 15289, + 15362 ], "loc": { "start": { - "line": 416, + "line": 437, "column": 4 }, "end": { - "line": 418, + "line": 439, "column": 5 } } } ], "range": [ - 14466, - 14681 + 15151, + 15366 ], "loc": { "start": { - "line": 410, + "line": 431, "column": 13 }, "end": { - "line": 419, + "line": 440, "column": 3 } } @@ -26494,16 +28390,16 @@ "generator": false, "expression": false, "range": [ - 14459, - 14681 + 15144, + 15366 ], "loc": { "start": { - "line": 410, + "line": 431, "column": 6 }, "end": { - "line": 419, + "line": 440, "column": 3 } } @@ -26511,16 +28407,16 @@ "kind": "method", "computed": false, "range": [ - 14455, - 14681 + 15140, + 15366 ], "loc": { "start": { - "line": 410, + "line": 431, "column": 2 }, "end": { - "line": 419, + "line": 440, "column": 3 } }, @@ -26529,16 +28425,16 @@ "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 * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 14118, - 14452 + 14803, + 15137 ], "loc": { "start": { - "line": 401, + "line": 422, "column": 2 }, "end": { - "line": 409, + "line": 430, "column": 5 } } @@ -26549,16 +28445,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\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": [ - 14685, - 15027 + 15370, + 15712 ], "loc": { "start": { - "line": 421, + "line": 442, "column": 2 }, "end": { - "line": 429, + "line": 450, "column": 5 } } @@ -26572,16 +28468,16 @@ "type": "Identifier", "name": "remove", "range": [ - 15030, - 15036 + 15715, + 15721 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 2 }, "end": { - "line": 430, + "line": 451, "column": 8 } } @@ -26594,16 +28490,16 @@ "type": "Identifier", "name": "type", "range": [ - 15037, - 15041 + 15722, + 15726 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 9 }, "end": { - "line": 430, + "line": 451, "column": 13 } } @@ -26612,16 +28508,16 @@ "type": "Identifier", "name": "id", "range": [ - 15043, - 15045 + 15728, + 15730 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 15 }, "end": { - "line": 430, + "line": 451, "column": 17 } } @@ -26636,16 +28532,16 @@ "type": "Identifier", "name": "type", "range": [ - 15057, - 15061 + 15742, + 15746 ], "loc": { "start": { - "line": 431, + "line": 452, "column": 8 }, "end": { - "line": 431, + "line": 452, "column": 12 } } @@ -26664,16 +28560,16 @@ "object": { "type": "ThisExpression", "range": [ - 15075, - 15079 + 15760, + 15764 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 10 }, "end": { - "line": 432, + "line": 453, "column": 14 } } @@ -26682,31 +28578,31 @@ "type": "Identifier", "name": "_types", "range": [ - 15080, - 15086 + 15765, + 15771 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 15 }, "end": { - "line": 432, + "line": 453, "column": 21 } } }, "range": [ - 15075, - 15086 + 15760, + 15771 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 10 }, "end": { - "line": 432, + "line": 453, "column": 21 } } @@ -26715,31 +28611,31 @@ "type": "Identifier", "name": "type", "range": [ - 15087, - 15091 + 15772, + 15776 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 22 }, "end": { - "line": 432, + "line": 453, "column": 26 } } }, "range": [ - 15075, - 15092 + 15760, + 15777 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 10 }, "end": { - "line": 432, + "line": 453, "column": 27 } } @@ -26753,16 +28649,16 @@ "type": "Identifier", "name": "id", "range": [ - 15108, - 15110 + 15793, + 15795 ], "loc": { "start": { - "line": 433, + "line": 454, "column": 12 }, "end": { - "line": 433, + "line": 454, "column": 14 } } @@ -26779,16 +28675,16 @@ "type": "Identifier", "name": "resource", "range": [ - 15128, - 15136 + 15813, + 15821 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 14 }, "end": { - "line": 434, + "line": 455, "column": 22 } } @@ -26805,16 +28701,16 @@ "object": { "type": "ThisExpression", "range": [ - 15139, - 15143 + 15824, + 15828 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 25 }, "end": { - "line": 434, + "line": 455, "column": 29 } } @@ -26823,31 +28719,31 @@ "type": "Identifier", "name": "_data", "range": [ - 15144, - 15149 + 15829, + 15834 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 30 }, "end": { - "line": 434, + "line": 455, "column": 35 } } }, "range": [ - 15139, - 15149 + 15824, + 15834 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 25 }, "end": { - "line": 434, + "line": 455, "column": 35 } } @@ -26856,31 +28752,31 @@ "type": "Identifier", "name": "type", "range": [ - 15150, - 15154 + 15835, + 15839 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 36 }, "end": { - "line": 434, + "line": 455, "column": 40 } } }, "range": [ - 15139, - 15155 + 15824, + 15840 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 25 }, "end": { - "line": 434, + "line": 455, "column": 41 } } @@ -26897,16 +28793,16 @@ "object": { "type": "ThisExpression", "range": [ - 15159, - 15163 + 15844, + 15848 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 45 }, "end": { - "line": 434, + "line": 455, "column": 49 } } @@ -26915,31 +28811,31 @@ "type": "Identifier", "name": "_data", "range": [ - 15164, - 15169 + 15849, + 15854 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 50 }, "end": { - "line": 434, + "line": 455, "column": 55 } } }, "range": [ - 15159, - 15169 + 15844, + 15854 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 45 }, "end": { - "line": 434, + "line": 455, "column": 55 } } @@ -26948,31 +28844,31 @@ "type": "Identifier", "name": "type", "range": [ - 15170, - 15174 + 15855, + 15859 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 56 }, "end": { - "line": 434, + "line": 455, "column": 60 } } }, "range": [ - 15159, - 15175 + 15844, + 15860 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 45 }, "end": { - "line": 434, + "line": 455, "column": 61 } } @@ -26981,61 +28877,61 @@ "type": "Identifier", "name": "id", "range": [ - 15176, - 15178 + 15861, + 15863 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 62 }, "end": { - "line": 434, + "line": 455, "column": 64 } } }, "range": [ - 15159, - 15179 + 15844, + 15864 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 45 }, "end": { - "line": 434, + "line": 455, "column": 65 } } }, "range": [ - 15139, - 15179 + 15824, + 15864 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 25 }, "end": { - "line": 434, + "line": 455, "column": 65 } } }, "range": [ - 15128, - 15179 + 15813, + 15864 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 14 }, "end": { - "line": 434, + "line": 455, "column": 65 } } @@ -27043,16 +28939,16 @@ ], "kind": "let", "range": [ - 15124, - 15180 + 15809, + 15865 ], "loc": { "start": { - "line": 434, + "line": 455, "column": 10 }, "end": { - "line": 434, + "line": 455, "column": 66 } } @@ -27063,16 +28959,16 @@ "type": "Identifier", "name": "resource", "range": [ - 15195, - 15203 + 15880, + 15888 ], "loc": { "start": { - "line": 435, + "line": 456, "column": 14 }, "end": { - "line": 435, + "line": 456, "column": 22 } } @@ -27090,16 +28986,16 @@ "object": { "type": "ThisExpression", "range": [ - 15219, - 15223 + 15904, + 15908 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 12 }, "end": { - "line": 436, + "line": 457, "column": 16 } } @@ -27108,31 +29004,31 @@ "type": "Identifier", "name": "_remove", "range": [ - 15224, - 15231 + 15909, + 15916 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 17 }, "end": { - "line": 436, + "line": 457, "column": 24 } } }, "range": [ - 15219, - 15231 + 15904, + 15916 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 12 }, "end": { - "line": 436, + "line": 457, "column": 24 } } @@ -27142,47 +29038,47 @@ "type": "Identifier", "name": "resource", "range": [ - 15232, - 15240 + 15917, + 15925 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 25 }, "end": { - "line": 436, + "line": 457, "column": 33 } } } ], "range": [ - 15219, - 15241 + 15904, + 15926 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 12 }, "end": { - "line": 436, + "line": 457, "column": 34 } } }, "range": [ - 15219, - 15242 + 15904, + 15927 ], "loc": { "start": { - "line": 436, + "line": 457, "column": 12 }, "end": { - "line": 436, + "line": 457, "column": 35 } } @@ -27204,16 +29100,16 @@ "object": { "type": "ThisExpression", "range": [ - 15259, - 15263 + 15944, + 15948 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 16 }, "end": { - "line": 437, + "line": 458, "column": 20 } } @@ -27222,31 +29118,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 15264, - 15282 + 15949, + 15967 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 21 }, "end": { - "line": 437, + "line": 458, "column": 39 } } }, "range": [ - 15259, - 15282 + 15944, + 15967 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 16 }, "end": { - "line": 437, + "line": 458, "column": 39 } } @@ -27256,31 +29152,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 15283, - 15292 + 15968, + 15977 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 40 }, "end": { - "line": 437, + "line": 458, "column": 49 } } }, "range": [ - 15259, - 15293 + 15944, + 15978 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 16 }, "end": { - "line": 437, + "line": 458, "column": 50 } } @@ -27289,31 +29185,31 @@ "type": "Identifier", "name": "type", "range": [ - 15294, - 15298 + 15979, + 15983 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 51 }, "end": { - "line": 437, + "line": 458, "column": 55 } } }, "range": [ - 15259, - 15299 + 15944, + 15984 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 16 }, "end": { - "line": 437, + "line": 458, "column": 56 } } @@ -27333,16 +29229,16 @@ "object": { "type": "ThisExpression", "range": [ - 15303, - 15307 + 15988, + 15992 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 60 }, "end": { - "line": 437, + "line": 458, "column": 64 } } @@ -27351,31 +29247,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 15308, - 15326 + 15993, + 16011 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 65 }, "end": { - "line": 437, + "line": 458, "column": 83 } } }, "range": [ - 15303, - 15326 + 15988, + 16011 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 60 }, "end": { - "line": 437, + "line": 458, "column": 83 } } @@ -27385,31 +29281,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 15327, - 15336 + 16012, + 16021 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 84 }, "end": { - "line": 437, + "line": 458, "column": 93 } } }, "range": [ - 15303, - 15337 + 15988, + 16022 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 60 }, "end": { - "line": 437, + "line": 458, "column": 94 } } @@ -27418,31 +29314,31 @@ "type": "Identifier", "name": "type", "range": [ - 15338, - 15342 + 16023, + 16027 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 95 }, "end": { - "line": 437, + "line": 458, "column": 99 } } }, "range": [ - 15303, - 15343 + 15988, + 16028 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 60 }, "end": { - "line": 437, + "line": 458, "column": 100 } } @@ -27451,46 +29347,46 @@ "type": "Identifier", "name": "id", "range": [ - 15344, - 15346 + 16029, + 16031 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 101 }, "end": { - "line": 437, + "line": 458, "column": 103 } } }, "range": [ - 15303, - 15347 + 15988, + 16032 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 60 }, "end": { - "line": 437, + "line": 458, "column": 104 } } }, "range": [ - 15259, - 15347 + 15944, + 16032 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 16 }, "end": { - "line": 437, + "line": 458, "column": 104 } } @@ -27520,16 +29416,16 @@ "object": { "type": "ThisExpression", "range": [ - 15366, - 15370 + 16051, + 16055 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 19 } } @@ -27538,31 +29434,31 @@ "type": "Identifier", "name": "_resourceListeners", "range": [ - 15371, - 15389 + 16056, + 16074 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 20 }, "end": { - "line": 438, + "line": 459, "column": 38 } } }, "range": [ - 15366, - 15389 + 16051, + 16074 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 38 } } @@ -27572,31 +29468,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 15390, - 15399 + 16075, + 16084 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 39 }, "end": { - "line": 438, + "line": 459, "column": 48 } } }, "range": [ - 15366, - 15400 + 16051, + 16085 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 49 } } @@ -27605,31 +29501,31 @@ "type": "Identifier", "name": "type", "range": [ - 15401, - 15405 + 16086, + 16090 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 50 }, "end": { - "line": 438, + "line": 459, "column": 54 } } }, "range": [ - 15366, - 15406 + 16051, + 16091 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 55 } } @@ -27638,31 +29534,31 @@ "type": "Identifier", "name": "id", "range": [ - 15407, - 15409 + 16092, + 16094 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 56 }, "end": { - "line": 438, + "line": 459, "column": 58 } } }, "range": [ - 15366, - 15410 + 16051, + 16095 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 59 } } @@ -27671,31 +29567,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 15411, - 15418 + 16096, + 16103 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 60 }, "end": { - "line": 438, + "line": 459, "column": 67 } } }, "range": [ - 15366, - 15418 + 16051, + 16103 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 67 } } @@ -27709,16 +29605,16 @@ "type": "Identifier", "name": "x", "range": [ - 15419, - 15420 + 16104, + 16105 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 68 }, "end": { - "line": 438, + "line": 459, "column": 69 } } @@ -27736,16 +29632,16 @@ "type": "Identifier", "name": "x", "range": [ - 15424, - 15425 + 16109, + 16110 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 73 }, "end": { - "line": 438, + "line": 459, "column": 74 } } @@ -27755,31 +29651,31 @@ "value": 0, "raw": "0", "range": [ - 15426, - 15427 + 16111, + 16112 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 75 }, "end": { - "line": 438, + "line": 459, "column": 76 } } }, "range": [ - 15424, - 15428 + 16109, + 16113 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 73 }, "end": { - "line": 438, + "line": 459, "column": 77 } } @@ -27788,31 +29684,31 @@ "type": "Identifier", "name": "call", "range": [ - 15429, - 15433 + 16114, + 16118 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 78 }, "end": { - "line": 438, + "line": 459, "column": 82 } } }, "range": [ - 15424, - 15433 + 16109, + 16118 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 73 }, "end": { - "line": 438, + "line": 459, "column": 82 } } @@ -27825,16 +29721,16 @@ "type": "Identifier", "name": "x", "range": [ - 15434, - 15435 + 16119, + 16120 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 83 }, "end": { - "line": 438, + "line": 459, "column": 84 } } @@ -27844,31 +29740,31 @@ "value": 1, "raw": "1", "range": [ - 15436, - 15437 + 16121, + 16122 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 85 }, "end": { - "line": 438, + "line": 459, "column": 86 } } }, "range": [ - 15434, - 15438 + 16119, + 16123 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 83 }, "end": { - "line": 438, + "line": 459, "column": 87 } } @@ -27877,32 +29773,32 @@ "type": "Identifier", "name": "resource", "range": [ - 15440, - 15448 + 16125, + 16133 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 89 }, "end": { - "line": 438, + "line": 459, "column": 97 } } } ], "range": [ - 15424, - 15449 + 16109, + 16134 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 73 }, "end": { - "line": 438, + "line": 459, "column": 98 } } @@ -27910,79 +29806,79 @@ "generator": false, "expression": true, "range": [ - 15419, - 15449 + 16104, + 16134 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 68 }, "end": { - "line": 438, + "line": 459, "column": 98 } } } ], "range": [ - 15366, - 15450 + 16051, + 16135 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 99 } } }, "range": [ - 15366, - 15451 + 16051, + 16136 ], "loc": { "start": { - "line": 438, + "line": 459, "column": 15 }, "end": { - "line": 438, + "line": 459, "column": 100 } } } ], "range": [ - 15349, - 15465 + 16034, + 16150 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 106 }, "end": { - "line": 439, + "line": 460, "column": 13 } } }, "alternate": null, "range": [ - 15255, - 15465 + 15940, + 16150 ], "loc": { "start": { - "line": 437, + "line": 458, "column": 12 }, "end": { - "line": 439, + "line": 460, "column": 13 } } @@ -28001,16 +29897,16 @@ "object": { "type": "ThisExpression", "range": [ - 15482, - 15486 + 16167, + 16171 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 16 }, "end": { - "line": 440, + "line": 461, "column": 20 } } @@ -28019,31 +29915,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 15487, - 15507 + 16172, + 16192 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 21 }, "end": { - "line": 440, + "line": 461, "column": 41 } } }, "range": [ - 15482, - 15507 + 16167, + 16192 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 16 }, "end": { - "line": 440, + "line": 461, "column": 41 } } @@ -28053,31 +29949,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 15508, - 15517 + 16193, + 16202 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 42 }, "end": { - "line": 440, + "line": 461, "column": 51 } } }, "range": [ - 15482, - 15518 + 16167, + 16203 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 16 }, "end": { - "line": 440, + "line": 461, "column": 52 } } @@ -28086,31 +29982,31 @@ "type": "Identifier", "name": "type", "range": [ - 15519, - 15523 + 16204, + 16208 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 53 }, "end": { - "line": 440, + "line": 461, "column": 57 } } }, "range": [ - 15482, - 15524 + 16167, + 16209 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 16 }, "end": { - "line": 440, + "line": 461, "column": 58 } } @@ -28137,16 +30033,16 @@ "object": { "type": "ThisExpression", "range": [ - 15542, - 15546 + 16227, + 16231 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 18 } } @@ -28155,31 +30051,31 @@ "type": "Identifier", "name": "_collectionListeners", "range": [ - 15547, - 15567 + 16232, + 16252 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 19 }, "end": { - "line": 441, + "line": 462, "column": 39 } } }, "range": [ - 15542, - 15567 + 16227, + 16252 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 39 } } @@ -28189,31 +30085,31 @@ "value": "removed", "raw": "\"removed\"", "range": [ - 15568, - 15577 + 16253, + 16262 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 40 }, "end": { - "line": 441, + "line": 462, "column": 49 } } }, "range": [ - 15542, - 15578 + 16227, + 16263 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 50 } } @@ -28222,31 +30118,31 @@ "type": "Identifier", "name": "type", "range": [ - 15579, - 15583 + 16264, + 16268 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 51 }, "end": { - "line": 441, + "line": 462, "column": 55 } } }, "range": [ - 15542, - 15584 + 16227, + 16269 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 56 } } @@ -28255,31 +30151,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 15585, - 15592 + 16270, + 16277 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 57 }, "end": { - "line": 441, + "line": 462, "column": 64 } } }, "range": [ - 15542, - 15592 + 16227, + 16277 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 64 } } @@ -28293,16 +30189,16 @@ "type": "Identifier", "name": "x", "range": [ - 15593, - 15594 + 16278, + 16279 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 65 }, "end": { - "line": 441, + "line": 462, "column": 66 } } @@ -28320,16 +30216,16 @@ "type": "Identifier", "name": "x", "range": [ - 15598, - 15599 + 16283, + 16284 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 70 }, "end": { - "line": 441, + "line": 462, "column": 71 } } @@ -28339,31 +30235,31 @@ "value": 0, "raw": "0", "range": [ - 15600, - 15601 + 16285, + 16286 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 72 }, "end": { - "line": 441, + "line": 462, "column": 73 } } }, "range": [ - 15598, - 15602 + 16283, + 16287 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 70 }, "end": { - "line": 441, + "line": 462, "column": 74 } } @@ -28372,31 +30268,31 @@ "type": "Identifier", "name": "call", "range": [ - 15603, - 15607 + 16288, + 16292 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 75 }, "end": { - "line": 441, + "line": 462, "column": 79 } } }, "range": [ - 15598, - 15607 + 16283, + 16292 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 70 }, "end": { - "line": 441, + "line": 462, "column": 79 } } @@ -28409,16 +30305,16 @@ "type": "Identifier", "name": "x", "range": [ - 15608, - 15609 + 16293, + 16294 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 80 }, "end": { - "line": 441, + "line": 462, "column": 81 } } @@ -28428,31 +30324,31 @@ "value": 1, "raw": "1", "range": [ - 15610, - 15611 + 16295, + 16296 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 82 }, "end": { - "line": 441, + "line": 462, "column": 83 } } }, "range": [ - 15608, - 15612 + 16293, + 16297 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 80 }, "end": { - "line": 441, + "line": 462, "column": 84 } } @@ -28461,32 +30357,32 @@ "type": "Identifier", "name": "resource", "range": [ - 15614, - 15622 + 16299, + 16307 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 86 }, "end": { - "line": 441, + "line": 462, "column": 94 } } } ], "range": [ - 15598, - 15623 + 16283, + 16308 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 70 }, "end": { - "line": 441, + "line": 462, "column": 95 } } @@ -28494,127 +30390,127 @@ "generator": false, "expression": true, "range": [ - 15593, - 15623 + 16278, + 16308 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 65 }, "end": { - "line": 441, + "line": 462, "column": 95 } } } ], "range": [ - 15542, - 15624 + 16227, + 16309 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 96 } } }, "range": [ - 15542, - 15625 + 16227, + 16310 ], "loc": { "start": { - "line": 441, + "line": 462, "column": 14 }, "end": { - "line": 441, + "line": 462, "column": 97 } } } ], "range": [ - 15526, - 15639 + 16211, + 16324 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 60 }, "end": { - "line": 442, + "line": 463, "column": 13 } } }, "alternate": null, "range": [ - 15478, - 15639 + 16163, + 16324 ], "loc": { "start": { - "line": 440, + "line": 461, "column": 12 }, "end": { - "line": 442, + "line": 463, "column": 13 } } } ], "range": [ - 15205, - 15651 + 15890, + 16336 ], "loc": { "start": { - "line": 435, + "line": 456, "column": 24 }, "end": { - "line": 443, + "line": 464, "column": 11 } } }, "alternate": null, "range": [ - 15191, - 15651 + 15876, + 16336 ], "loc": { "start": { - "line": 435, + "line": 456, "column": 10 }, "end": { - "line": 443, + "line": 464, "column": 11 } } } ], "range": [ - 15112, - 15661 + 15797, + 16346 ], "loc": { "start": { - "line": 433, + "line": 454, "column": 16 }, "end": { - "line": 444, + "line": 465, "column": 9 } } @@ -28638,16 +30534,16 @@ "type": "Identifier", "name": "Object", "range": [ - 15679, - 15685 + 16364, + 16370 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 16 } } @@ -28656,31 +30552,31 @@ "type": "Identifier", "name": "keys", "range": [ - 15686, - 15690 + 16371, + 16375 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 17 }, "end": { - "line": 445, + "line": 466, "column": 21 } } }, "range": [ - 15679, - 15690 + 16364, + 16375 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 21 } } @@ -28695,16 +30591,16 @@ "object": { "type": "ThisExpression", "range": [ - 15691, - 15695 + 16376, + 16380 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 22 }, "end": { - "line": 445, + "line": 466, "column": 26 } } @@ -28713,31 +30609,31 @@ "type": "Identifier", "name": "_data", "range": [ - 15696, - 15701 + 16381, + 16386 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 27 }, "end": { - "line": 445, + "line": 466, "column": 32 } } }, "range": [ - 15691, - 15701 + 16376, + 16386 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 22 }, "end": { - "line": 445, + "line": 466, "column": 32 } } @@ -28746,47 +30642,47 @@ "type": "Identifier", "name": "type", "range": [ - 15702, - 15706 + 16387, + 16391 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 33 }, "end": { - "line": 445, + "line": 466, "column": 37 } } }, "range": [ - 15691, - 15707 + 16376, + 16392 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 22 }, "end": { - "line": 445, + "line": 466, "column": 38 } } } ], "range": [ - 15679, - 15708 + 16364, + 16393 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 39 } } @@ -28795,31 +30691,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 15709, - 15716 + 16394, + 16401 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 40 }, "end": { - "line": 445, + "line": 466, "column": 47 } } }, "range": [ - 15679, - 15716 + 16364, + 16401 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 47 } } @@ -28833,16 +30729,16 @@ "type": "Identifier", "name": "id", "range": [ - 15717, - 15719 + 16402, + 16404 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 48 }, "end": { - "line": 445, + "line": 466, "column": 50 } } @@ -28856,16 +30752,16 @@ "object": { "type": "ThisExpression", "range": [ - 15723, - 15727 + 16408, + 16412 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 54 }, "end": { - "line": 445, + "line": 466, "column": 58 } } @@ -28874,31 +30770,31 @@ "type": "Identifier", "name": "remove", "range": [ - 15728, - 15734 + 16413, + 16419 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 59 }, "end": { - "line": 445, + "line": 466, "column": 65 } } }, "range": [ - 15723, - 15734 + 16408, + 16419 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 54 }, "end": { - "line": 445, + "line": 466, "column": 65 } } @@ -28908,16 +30804,16 @@ "type": "Identifier", "name": "type", "range": [ - 15735, - 15739 + 16420, + 16424 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 66 }, "end": { - "line": 445, + "line": 466, "column": 70 } } @@ -28926,32 +30822,32 @@ "type": "Identifier", "name": "id", "range": [ - 15741, - 15743 + 16426, + 16428 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 72 }, "end": { - "line": 445, + "line": 466, "column": 74 } } } ], "range": [ - 15723, - 15744 + 16408, + 16429 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 54 }, "end": { - "line": 445, + "line": 466, "column": 75 } } @@ -28959,94 +30855,94 @@ "generator": false, "expression": true, "range": [ - 15717, - 15744 + 16402, + 16429 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 48 }, "end": { - "line": 445, + "line": 466, "column": 75 } } } ], "range": [ - 15679, - 15745 + 16364, + 16430 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 76 } } }, "range": [ - 15679, - 15746 + 16364, + 16431 ], "loc": { "start": { - "line": 445, + "line": 466, "column": 10 }, "end": { - "line": 445, + "line": 466, "column": 77 } } } ], "range": [ - 15667, - 15756 + 16352, + 16441 ], "loc": { "start": { - "line": 444, + "line": 465, "column": 15 }, "end": { - "line": 446, + "line": 467, "column": 9 } } }, "range": [ - 15104, - 15756 + 15789, + 16441 ], "loc": { "start": { - "line": 433, + "line": 454, "column": 8 }, "end": { - "line": 446, + "line": 467, "column": 9 } } } ], "range": [ - 15094, - 15764 + 15779, + 16449 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 29 }, "end": { - "line": 447, + "line": 468, "column": 7 } } @@ -29062,16 +30958,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 15790, - 15799 + 16475, + 16484 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 18 }, "end": { - "line": 448, + "line": 469, "column": 27 } } @@ -29088,16 +30984,16 @@ }, "tail": false, "range": [ - 15800, - 15817 + 16485, + 16502 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 28 }, "end": { - "line": 448, + "line": 469, "column": 45 } } @@ -29110,16 +31006,16 @@ }, "tail": true, "range": [ - 15821, - 15824 + 16506, + 16509 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 49 }, "end": { - "line": 448, + "line": 469, "column": 52 } } @@ -29130,110 +31026,110 @@ "type": "Identifier", "name": "type", "range": [ - 15817, - 15821 + 16502, + 16506 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 45 }, "end": { - "line": 448, + "line": 469, "column": 49 } } } ], "range": [ - 15800, - 15824 + 16485, + 16509 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 28 }, "end": { - "line": 448, + "line": 469, "column": 52 } } } ], "range": [ - 15786, - 15825 + 16471, + 16510 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 14 }, "end": { - "line": 448, + "line": 469, "column": 53 } } }, "range": [ - 15780, - 15826 + 16465, + 16511 ], "loc": { "start": { - "line": 448, + "line": 469, "column": 8 }, "end": { - "line": 448, + "line": 469, "column": 54 } } } ], "range": [ - 15770, - 15834 + 16455, + 16519 ], "loc": { "start": { - "line": 447, + "line": 468, "column": 13 }, "end": { - "line": 449, + "line": 470, "column": 7 } } }, "range": [ - 15071, - 15834 + 15756, + 16519 ], "loc": { "start": { - "line": 432, + "line": 453, "column": 6 }, "end": { - "line": 449, + "line": 470, "column": 7 } } } ], "range": [ - 15063, - 15840 + 15748, + 16525 ], "loc": { "start": { - "line": 431, + "line": 452, "column": 14 }, "end": { - "line": 450, + "line": 471, "column": 5 } } @@ -29249,16 +31145,16 @@ "type": "Identifier", "name": "TypeError", "range": [ - 15864, - 15873 + 16549, + 16558 ], "loc": { "start": { - "line": 451, + "line": 472, "column": 16 }, "end": { - "line": 451, + "line": 472, "column": 25 } } @@ -29275,16 +31171,16 @@ }, "tail": true, "range": [ - 15874, - 15909 + 16559, + 16594 ], "loc": { "start": { - "line": 451, + "line": 472, "column": 26 }, "end": { - "line": 451, + "line": 472, "column": 61 } } @@ -29292,94 +31188,94 @@ ], "expressions": [], "range": [ - 15874, - 15909 + 16559, + 16594 ], "loc": { "start": { - "line": 451, + "line": 472, "column": 26 }, "end": { - "line": 451, + "line": 472, "column": 61 } } } ], "range": [ - 15860, - 15910 + 16545, + 16595 ], "loc": { "start": { - "line": 451, + "line": 472, "column": 12 }, "end": { - "line": 451, + "line": 472, "column": 62 } } }, "range": [ - 15854, - 15911 + 16539, + 16596 ], "loc": { "start": { - "line": 451, + "line": 472, "column": 6 }, "end": { - "line": 451, + "line": 472, "column": 63 } } } ], "range": [ - 15846, - 15917 + 16531, + 16602 ], "loc": { "start": { - "line": 450, + "line": 471, "column": 11 }, "end": { - "line": 452, + "line": 473, "column": 5 } } }, "range": [ - 15053, - 15917 + 15738, + 16602 ], "loc": { "start": { - "line": 431, + "line": 452, "column": 4 }, "end": { - "line": 452, + "line": 473, "column": 5 } } } ], "range": [ - 15047, - 15921 + 15732, + 16606 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 19 }, "end": { - "line": 453, + "line": 474, "column": 3 } } @@ -29387,16 +31283,16 @@ "generator": false, "expression": false, "range": [ - 15036, - 15921 + 15721, + 16606 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 8 }, "end": { - "line": 453, + "line": 474, "column": 3 } } @@ -29404,16 +31300,16 @@ "kind": "method", "computed": false, "range": [ - 15030, - 15921 + 15715, + 16606 ], "loc": { "start": { - "line": 430, + "line": 451, "column": 2 }, "end": { - "line": 453, + "line": 474, "column": 3 } }, @@ -29422,16 +31318,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\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": [ - 14685, - 15027 + 15370, + 15712 ], "loc": { "start": { - "line": 421, + "line": 442, "column": 2 }, "end": { - "line": 429, + "line": 450, "column": 5 } } @@ -29442,16 +31338,16 @@ "type": "Block", "value": "*\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 15925, - 16634 + 16610, + 17319 ], "loc": { "start": { - "line": 455, + "line": 476, "column": 2 }, "end": { - "line": 474, + "line": 495, "column": 5 } } @@ -29465,16 +31361,16 @@ "type": "Identifier", "name": "update", "range": [ - 16637, - 16643 + 17322, + 17328 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 2 }, "end": { - "line": 475, + "line": 496, "column": 8 } } @@ -29487,16 +31383,16 @@ "type": "Identifier", "name": "type", "range": [ - 16644, - 16648 + 17329, + 17333 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 9 }, "end": { - "line": 475, + "line": 496, "column": 13 } } @@ -29505,16 +31401,16 @@ "type": "Identifier", "name": "id", "range": [ - 16650, - 16652 + 17335, + 17337 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 15 }, "end": { - "line": 475, + "line": 496, "column": 17 } } @@ -29523,16 +31419,16 @@ "type": "Identifier", "name": "partial", "range": [ - 16654, - 16661 + 17339, + 17346 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 19 }, "end": { - "line": 475, + "line": 496, "column": 26 } } @@ -29541,16 +31437,16 @@ "type": "Identifier", "name": "success", "range": [ - 16663, - 16670 + 17348, + 17355 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 28 }, "end": { - "line": 475, + "line": 496, "column": 35 } } @@ -29559,16 +31455,16 @@ "type": "Identifier", "name": "error", "range": [ - 16672, - 16677 + 17357, + 17362 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 37 }, "end": { - "line": 475, + "line": 496, "column": 42 } } @@ -29577,16 +31473,16 @@ "type": "Identifier", "name": "context", "range": [ - 16679, - 16686 + 17364, + 17371 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 44 }, "end": { - "line": 475, + "line": 496, "column": 51 } } @@ -29603,16 +31499,16 @@ "object": { "type": "ThisExpression", "range": [ - 16698, - 16702 + 17383, + 17387 ], "loc": { "start": { - "line": 476, + "line": 497, "column": 8 }, "end": { - "line": 476, + "line": 497, "column": 12 } } @@ -29621,31 +31517,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 16703, - 16711 + 17388, + 17396 ], "loc": { "start": { - "line": 476, + "line": 497, "column": 13 }, "end": { - "line": 476, + "line": 497, "column": 21 } } }, "range": [ - 16698, - 16711 + 17383, + 17396 ], "loc": { "start": { - "line": 476, + "line": 497, "column": 8 }, "end": { - "line": 476, + "line": 497, "column": 21 } } @@ -29666,16 +31562,16 @@ "object": { "type": "ThisExpression", "range": [ - 16721, - 16725 + 17406, + 17410 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 6 }, "end": { - "line": 477, + "line": 498, "column": 10 } } @@ -29684,31 +31580,31 @@ "type": "Identifier", "name": "_adapter", "range": [ - 16726, - 16734 + 17411, + 17419 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 11 }, "end": { - "line": 477, + "line": 498, "column": 19 } } }, "range": [ - 16721, - 16734 + 17406, + 17419 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 6 }, "end": { - "line": 477, + "line": 498, "column": 19 } } @@ -29717,31 +31613,31 @@ "type": "Identifier", "name": "update", "range": [ - 16735, - 16741 + 17420, + 17426 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 20 }, "end": { - "line": 477, + "line": 498, "column": 26 } } }, "range": [ - 16721, - 16741 + 17406, + 17426 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 6 }, "end": { - "line": 477, + "line": 498, "column": 26 } } @@ -29750,16 +31646,16 @@ { "type": "ThisExpression", "range": [ - 16742, - 16746 + 17427, + 17431 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 27 }, "end": { - "line": 477, + "line": 498, "column": 31 } } @@ -29768,16 +31664,16 @@ "type": "Identifier", "name": "type", "range": [ - 16748, - 16752 + 17433, + 17437 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 33 }, "end": { - "line": 477, + "line": 498, "column": 37 } } @@ -29786,16 +31682,16 @@ "type": "Identifier", "name": "id", "range": [ - 16754, - 16756 + 17439, + 17441 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 39 }, "end": { - "line": 477, + "line": 498, "column": 41 } } @@ -29804,16 +31700,16 @@ "type": "Identifier", "name": "partial", "range": [ - 16758, - 16765 + 17443, + 17450 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 43 }, "end": { - "line": 477, + "line": 498, "column": 50 } } @@ -29822,16 +31718,16 @@ "type": "Identifier", "name": "success", "range": [ - 16767, - 16774 + 17452, + 17459 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 52 }, "end": { - "line": 477, + "line": 498, "column": 59 } } @@ -29840,16 +31736,16 @@ "type": "Identifier", "name": "error", "range": [ - 16776, - 16781 + 17461, + 17466 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 61 }, "end": { - "line": 477, + "line": 498, "column": 66 } } @@ -29858,63 +31754,63 @@ "type": "Identifier", "name": "context", "range": [ - 16783, - 16790 + 17468, + 17475 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 68 }, "end": { - "line": 477, + "line": 498, "column": 75 } } } ], "range": [ - 16721, - 16791 + 17406, + 17476 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 6 }, "end": { - "line": 477, + "line": 498, "column": 76 } } }, "range": [ - 16721, - 16792 + 17406, + 17477 ], "loc": { "start": { - "line": 477, + "line": 498, "column": 6 }, "end": { - "line": 477, + "line": 498, "column": 77 } } } ], "range": [ - 16713, - 16798 + 17398, + 17483 ], "loc": { "start": { - "line": 476, + "line": 497, "column": 23 }, "end": { - "line": 478, + "line": 499, "column": 5 } } @@ -29930,16 +31826,16 @@ "type": "Identifier", "name": "Error", "range": [ - 16822, - 16827 + 17507, + 17512 ], "loc": { "start": { - "line": 479, + "line": 500, "column": 16 }, "end": { - "line": 479, + "line": 500, "column": 21 } } @@ -29950,94 +31846,94 @@ "value": "Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`", "raw": "\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\"", "range": [ - 16828, - 16924 + 17513, + 17609 ], "loc": { "start": { - "line": 479, + "line": 500, "column": 22 }, "end": { - "line": 479, + "line": 500, "column": 118 } } } ], "range": [ - 16818, - 16925 + 17503, + 17610 ], "loc": { "start": { - "line": 479, + "line": 500, "column": 12 }, "end": { - "line": 479, + "line": 500, "column": 119 } } }, "range": [ - 16812, - 16926 + 17497, + 17611 ], "loc": { "start": { - "line": 479, + "line": 500, "column": 6 }, "end": { - "line": 479, + "line": 500, "column": 120 } } } ], "range": [ - 16804, - 16932 + 17489, + 17617 ], "loc": { "start": { - "line": 478, + "line": 499, "column": 11 }, "end": { - "line": 480, + "line": 501, "column": 5 } } }, "range": [ - 16694, - 16932 + 17379, + 17617 ], "loc": { "start": { - "line": 476, + "line": 497, "column": 4 }, "end": { - "line": 480, + "line": 501, "column": 5 } } } ], "range": [ - 16688, - 16936 + 17373, + 17621 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 53 }, "end": { - "line": 481, + "line": 502, "column": 3 } } @@ -30045,16 +31941,16 @@ "generator": false, "expression": false, "range": [ - 16643, - 16936 + 17328, + 17621 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 8 }, "end": { - "line": 481, + "line": 502, "column": 3 } } @@ -30062,16 +31958,16 @@ "kind": "method", "computed": false, "range": [ - 16637, - 16936 + 17322, + 17621 ], "loc": { "start": { - "line": 475, + "line": 496, "column": 2 }, "end": { - "line": 481, + "line": 502, "column": 3 } }, @@ -30080,16 +31976,16 @@ "type": "Block", "value": "*\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 15925, - 16634 + 16610, + 17319 ], "loc": { "start": { - "line": 455, + "line": 476, "column": 2 }, "end": { - "line": 474, + "line": 495, "column": 5 } } @@ -30103,16 +31999,16 @@ "type": "Identifier", "name": "_addField", "range": [ - 16940, - 16949 + 17625, + 17634 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 2 }, "end": { - "line": 483, + "line": 504, "column": 11 } } @@ -30125,16 +32021,16 @@ "type": "Identifier", "name": "object", "range": [ - 16950, - 16956 + 17635, + 17641 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 12 }, "end": { - "line": 483, + "line": 504, "column": 18 } } @@ -30143,16 +32039,16 @@ "type": "Identifier", "name": "resource", "range": [ - 16958, - 16966 + 17643, + 17651 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 20 }, "end": { - "line": 483, + "line": 504, "column": 28 } } @@ -30161,16 +32057,16 @@ "type": "Identifier", "name": "definition", "range": [ - 16968, - 16978 + 17653, + 17663 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 30 }, "end": { - "line": 483, + "line": 504, "column": 40 } } @@ -30179,16 +32075,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 16980, - 16989 + 17665, + 17674 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 42 }, "end": { - "line": 483, + "line": 504, "column": 51 } } @@ -30206,16 +32102,16 @@ "type": "Identifier", "name": "field", "range": [ - 17001, - 17006 + 17686, + 17691 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 8 }, "end": { - "line": 484, + "line": 505, "column": 13 } } @@ -30227,16 +32123,16 @@ "type": "Identifier", "name": "definition", "range": [ - 17009, - 17019 + 17694, + 17704 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 16 }, "end": { - "line": 484, + "line": 505, "column": 26 } } @@ -30245,46 +32141,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17020, - 17029 + 17705, + 17714 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 27 }, "end": { - "line": 484, + "line": 505, "column": 36 } } }, "range": [ - 17009, - 17030 + 17694, + 17715 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 16 }, "end": { - "line": 484, + "line": 505, "column": 37 } } }, "range": [ - 17001, - 17030 + 17686, + 17715 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 8 }, "end": { - "line": 484, + "line": 505, "column": 37 } } @@ -30292,16 +32188,16 @@ ], "kind": "var", "range": [ - 16997, - 17031 + 17682, + 17716 ], "loc": { "start": { - "line": 484, + "line": 505, "column": 4 }, "end": { - "line": 484, + "line": 505, "column": 38 } } @@ -30315,16 +32211,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 17040, - 17048 + 17725, + 17733 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 8 }, "end": { - "line": 485, + "line": 506, "column": 16 } } @@ -30341,16 +32237,16 @@ "type": "Identifier", "name": "field", "range": [ - 17051, - 17056 + 17736, + 17741 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 19 }, "end": { - "line": 485, + "line": 506, "column": 24 } } @@ -30359,31 +32255,31 @@ "type": "Identifier", "name": "deserialize", "range": [ - 17057, - 17068 + 17742, + 17753 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 25 }, "end": { - "line": 485, + "line": 506, "column": 36 } } }, "range": [ - 17051, - 17068 + 17736, + 17753 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 19 }, "end": { - "line": 485, + "line": 506, "column": 36 } } @@ -30392,31 +32288,31 @@ "type": "Identifier", "name": "call", "range": [ - 17069, - 17073 + 17754, + 17758 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 37 }, "end": { - "line": 485, + "line": 506, "column": 41 } } }, "range": [ - 17051, - 17073 + 17736, + 17758 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 19 }, "end": { - "line": 485, + "line": 506, "column": 41 } } @@ -30425,16 +32321,16 @@ { "type": "ThisExpression", "range": [ - 17074, - 17078 + 17759, + 17763 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 42 }, "end": { - "line": 485, + "line": 506, "column": 46 } } @@ -30443,16 +32339,16 @@ "type": "Identifier", "name": "object", "range": [ - 17080, - 17086 + 17765, + 17771 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 48 }, "end": { - "line": 485, + "line": 506, "column": 54 } } @@ -30461,47 +32357,47 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17088, - 17097 + 17773, + 17782 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 56 }, "end": { - "line": 485, + "line": 506, "column": 65 } } } ], "range": [ - 17051, - 17098 + 17736, + 17783 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 19 }, "end": { - "line": 485, + "line": 506, "column": 66 } } }, "range": [ - 17040, - 17098 + 17725, + 17783 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 8 }, "end": { - "line": 485, + "line": 506, "column": 66 } } @@ -30509,16 +32405,16 @@ ], "kind": "var", "range": [ - 17036, - 17099 + 17721, + 17784 ], "loc": { "start": { - "line": 485, + "line": 506, "column": 4 }, "end": { - "line": 485, + "line": 506, "column": 67 } } @@ -30535,32 +32431,32 @@ "type": "Identifier", "name": "newValue", "range": [ - 17115, - 17123 + 17800, + 17808 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 15 }, "end": { - "line": 486, + "line": 507, "column": 23 } } }, "prefix": true, "range": [ - 17108, - 17123 + 17793, + 17808 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 8 }, "end": { - "line": 486, + "line": 507, "column": 23 } } @@ -30570,31 +32466,31 @@ "value": "undefined", "raw": "\"undefined\"", "range": [ - 17128, - 17139 + 17813, + 17824 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 28 }, "end": { - "line": 486, + "line": 507, "column": 39 } } }, "range": [ - 17108, - 17139 + 17793, + 17824 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 8 }, "end": { - "line": 486, + "line": 507, "column": 39 } } @@ -30614,16 +32510,16 @@ "type": "Identifier", "name": "field", "range": [ - 17153, - 17158 + 17838, + 17843 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 10 }, "end": { - "line": 487, + "line": 508, "column": 15 } } @@ -30632,31 +32528,31 @@ "type": "Identifier", "name": "type", "range": [ - 17159, - 17163 + 17844, + 17848 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 16 }, "end": { - "line": 487, + "line": 508, "column": 20 } } }, "range": [ - 17153, - 17163 + 17838, + 17848 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 10 }, "end": { - "line": 487, + "line": 508, "column": 20 } } @@ -30666,31 +32562,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 17168, - 17177 + 17853, + 17862 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 25 }, "end": { - "line": 487, + "line": 508, "column": 34 } } }, "range": [ - 17153, - 17177 + 17838, + 17862 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 10 }, "end": { - "line": 487, + "line": 508, "column": 34 } } @@ -30707,16 +32603,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17193, - 17201 + 17878, + 17886 ], "loc": { "start": { - "line": 488, + "line": 509, "column": 12 }, "end": { - "line": 488, + "line": 509, "column": 20 } } @@ -30725,31 +32621,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17202, - 17211 + 17887, + 17896 ], "loc": { "start": { - "line": 488, + "line": 509, "column": 21 }, "end": { - "line": 488, + "line": 509, "column": 30 } } }, "range": [ - 17193, - 17212 + 17878, + 17897 ], "loc": { "start": { - "line": 488, + "line": 509, "column": 12 }, "end": { - "line": 488, + "line": 509, "column": 31 } } @@ -30767,16 +32663,16 @@ "object": { "type": "ThisExpression", "range": [ - 17226, - 17230 + 17911, + 17915 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 10 }, "end": { - "line": 489, + "line": 510, "column": 14 } } @@ -30785,31 +32681,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 17231, - 17257 + 17916, + 17942 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 15 }, "end": { - "line": 489, + "line": 510, "column": 41 } } }, "range": [ - 17226, - 17257 + 17911, + 17942 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 10 }, "end": { - "line": 489, + "line": 510, "column": 41 } } @@ -30819,16 +32715,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17258, - 17266 + 17943, + 17951 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 42 }, "end": { - "line": 489, + "line": 510, "column": 50 } } @@ -30837,16 +32733,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17268, - 17277 + 17953, + 17962 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 52 }, "end": { - "line": 489, + "line": 510, "column": 61 } } @@ -30858,16 +32754,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17279, - 17287 + 17964, + 17972 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 63 }, "end": { - "line": 489, + "line": 510, "column": 71 } } @@ -30876,31 +32772,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17288, - 17297 + 17973, + 17982 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 72 }, "end": { - "line": 489, + "line": 510, "column": 81 } } }, "range": [ - 17279, - 17298 + 17964, + 17983 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 63 }, "end": { - "line": 489, + "line": 510, "column": 82 } } @@ -30909,79 +32805,79 @@ "type": "Identifier", "name": "field", "range": [ - 17300, - 17305 + 17985, + 17990 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 84 }, "end": { - "line": 489, + "line": 510, "column": 89 } } } ], "range": [ - 17226, - 17306 + 17911, + 17991 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 10 }, "end": { - "line": 489, + "line": 510, "column": 90 } } }, "range": [ - 17226, - 17307 + 17911, + 17992 ], "loc": { "start": { - "line": 489, + "line": 510, "column": 10 }, "end": { - "line": 489, + "line": 510, "column": 91 } } } ], "range": [ - 17214, - 17317 + 17899, + 18002 ], "loc": { "start": { - "line": 488, + "line": 509, "column": 33 }, "end": { - "line": 490, + "line": 511, "column": 9 } } }, "alternate": null, "range": [ - 17189, - 17317 + 17874, + 18002 ], "loc": { "start": { - "line": 488, + "line": 509, "column": 8 }, "end": { - "line": 490, + "line": 511, "column": 9 } } @@ -30992,16 +32888,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 17330, - 17338 + 18015, + 18023 ], "loc": { "start": { - "line": 491, + "line": 512, "column": 12 }, "end": { - "line": 491, + "line": 512, "column": 20 } } @@ -31019,16 +32915,16 @@ "object": { "type": "ThisExpression", "range": [ - 17352, - 17356 + 18037, + 18041 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 10 }, "end": { - "line": 492, + "line": 513, "column": 14 } } @@ -31037,31 +32933,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 17357, - 17380 + 18042, + 18065 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 15 }, "end": { - "line": 492, + "line": 513, "column": 38 } } }, "range": [ - 17352, - 17380 + 18037, + 18065 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 10 }, "end": { - "line": 492, + "line": 513, "column": 38 } } @@ -31071,16 +32967,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17381, - 17389 + 18066, + 18074 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 39 }, "end": { - "line": 492, + "line": 513, "column": 47 } } @@ -31089,16 +32985,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17391, - 17400 + 18076, + 18085 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 49 }, "end": { - "line": 492, + "line": 513, "column": 58 } } @@ -31107,16 +33003,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 17402, - 17410 + 18087, + 18095 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 60 }, "end": { - "line": 492, + "line": 513, "column": 68 } } @@ -31125,95 +33021,95 @@ "type": "Identifier", "name": "field", "range": [ - 17412, - 17417 + 18097, + 18102 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 70 }, "end": { - "line": 492, + "line": 513, "column": 75 } } } ], "range": [ - 17352, - 17418 + 18037, + 18103 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 10 }, "end": { - "line": 492, + "line": 513, "column": 76 } } }, "range": [ - 17352, - 17419 + 18037, + 18104 ], "loc": { "start": { - "line": 492, + "line": 513, "column": 10 }, "end": { - "line": 492, + "line": 513, "column": 77 } } } ], "range": [ - 17340, - 17429 + 18025, + 18114 ], "loc": { "start": { - "line": 491, + "line": 512, "column": 22 }, "end": { - "line": 493, + "line": 514, "column": 9 } } }, "alternate": null, "range": [ - 17326, - 17429 + 18011, + 18114 ], "loc": { "start": { - "line": 491, + "line": 512, "column": 8 }, "end": { - "line": 493, + "line": 514, "column": 9 } } } ], "range": [ - 17179, - 17437 + 17864, + 18122 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 36 }, "end": { - "line": 494, + "line": 515, "column": 7 } } @@ -31230,16 +33126,16 @@ "type": "Identifier", "name": "field", "range": [ - 17447, - 17452 + 18132, + 18137 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 17 }, "end": { - "line": 494, + "line": 515, "column": 22 } } @@ -31248,31 +33144,31 @@ "type": "Identifier", "name": "type", "range": [ - 17453, - 17457 + 18138, + 18142 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 23 }, "end": { - "line": 494, + "line": 515, "column": 27 } } }, "range": [ - 17447, - 17457 + 18132, + 18142 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 17 }, "end": { - "line": 494, + "line": 515, "column": 27 } } @@ -31282,31 +33178,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 17462, - 17472 + 18147, + 18157 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 32 }, "end": { - "line": 494, + "line": 515, "column": 42 } } }, "range": [ - 17447, - 17472 + 18132, + 18157 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 17 }, "end": { - "line": 494, + "line": 515, "column": 42 } } @@ -31328,16 +33224,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17484, - 17492 + 18169, + 18177 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 8 }, "end": { - "line": 495, + "line": 516, "column": 16 } } @@ -31346,31 +33242,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17493, - 17502 + 18178, + 18187 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 17 }, "end": { - "line": 495, + "line": 516, "column": 26 } } }, "range": [ - 17484, - 17503 + 18169, + 18188 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 8 }, "end": { - "line": 495, + "line": 516, "column": 27 } } @@ -31379,31 +33275,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 17504, - 17511 + 18189, + 18196 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 28 }, "end": { - "line": 495, + "line": 516, "column": 35 } } }, "range": [ - 17484, - 17511 + 18169, + 18196 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 8 }, "end": { - "line": 495, + "line": 516, "column": 35 } } @@ -31417,16 +33313,16 @@ "type": "Identifier", "name": "r", "range": [ - 17512, - 17513 + 18197, + 18198 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 36 }, "end": { - "line": 495, + "line": 516, "column": 37 } } @@ -31452,16 +33348,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17533, - 17541 + 18218, + 18226 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 14 }, "end": { - "line": 496, + "line": 517, "column": 22 } } @@ -31470,31 +33366,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17542, - 17551 + 18227, + 18236 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 23 }, "end": { - "line": 496, + "line": 517, "column": 32 } } }, "range": [ - 17533, - 17552 + 18218, + 18237 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 14 }, "end": { - "line": 496, + "line": 517, "column": 33 } } @@ -31503,31 +33399,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 17553, - 17560 + 18238, + 18245 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 34 }, "end": { - "line": 496, + "line": 517, "column": 41 } } }, "range": [ - 17533, - 17560 + 18218, + 18245 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 14 }, "end": { - "line": 496, + "line": 517, "column": 41 } } @@ -31537,32 +33433,32 @@ "type": "Identifier", "name": "r", "range": [ - 17561, - 17562 + 18246, + 18247 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 42 }, "end": { - "line": 496, + "line": 517, "column": 43 } } } ], "range": [ - 17533, - 17563 + 18218, + 18248 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 14 }, "end": { - "line": 496, + "line": 517, "column": 44 } } @@ -31575,47 +33471,47 @@ "value": 1, "raw": "1", "range": [ - 17569, - 17570 + 18254, + 18255 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 50 }, "end": { - "line": 496, + "line": 517, "column": 51 } } }, "prefix": true, "range": [ - 17568, - 17570 + 18253, + 18255 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 49 }, "end": { - "line": 496, + "line": 517, "column": 51 } } }, "range": [ - 17533, - 17570 + 18218, + 18255 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 14 }, "end": { - "line": 496, + "line": 517, "column": 51 } } @@ -31633,16 +33529,16 @@ "object": { "type": "ThisExpression", "range": [ - 17586, - 17590 + 18271, + 18275 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 12 }, "end": { - "line": 497, + "line": 518, "column": 16 } } @@ -31651,31 +33547,31 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 17591, - 17617 + 18276, + 18302 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 17 }, "end": { - "line": 497, + "line": 518, "column": 43 } } }, "range": [ - 17586, - 17617 + 18271, + 18302 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 12 }, "end": { - "line": 497, + "line": 518, "column": 43 } } @@ -31685,16 +33581,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17618, - 17626 + 18303, + 18311 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 44 }, "end": { - "line": 497, + "line": 518, "column": 52 } } @@ -31703,16 +33599,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17628, - 17637 + 18313, + 18322 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 54 }, "end": { - "line": 497, + "line": 518, "column": 63 } } @@ -31721,16 +33617,16 @@ "type": "Identifier", "name": "r", "range": [ - 17639, - 17640 + 18324, + 18325 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 65 }, "end": { - "line": 497, + "line": 518, "column": 66 } } @@ -31739,95 +33635,95 @@ "type": "Identifier", "name": "field", "range": [ - 17642, - 17647 + 18327, + 18332 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 68 }, "end": { - "line": 497, + "line": 518, "column": 73 } } } ], "range": [ - 17586, - 17648 + 18271, + 18333 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 12 }, "end": { - "line": 497, + "line": 518, "column": 74 } } }, "range": [ - 17586, - 17649 + 18271, + 18334 ], "loc": { "start": { - "line": 497, + "line": 518, "column": 12 }, "end": { - "line": 497, + "line": 518, "column": 75 } } } ], "range": [ - 17572, - 17661 + 18257, + 18346 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 53 }, "end": { - "line": 498, + "line": 519, "column": 11 } } }, "alternate": null, "range": [ - 17529, - 17661 + 18214, + 18346 ], "loc": { "start": { - "line": 496, + "line": 517, "column": 10 }, "end": { - "line": 498, + "line": 519, "column": 11 } } } ], "range": [ - 17517, - 17671 + 18202, + 18356 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 41 }, "end": { - "line": 499, + "line": 520, "column": 9 } } @@ -31835,47 +33731,47 @@ "generator": false, "expression": false, "range": [ - 17512, - 17671 + 18197, + 18356 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 36 }, "end": { - "line": 499, + "line": 520, "column": 9 } } } ], "range": [ - 17484, - 17672 + 18169, + 18357 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 8 }, "end": { - "line": 499, + "line": 520, "column": 10 } } }, "range": [ - 17484, - 17673 + 18169, + 18358 ], "loc": { "start": { - "line": 495, + "line": 516, "column": 8 }, "end": { - "line": 499, + "line": 520, "column": 11 } } @@ -31891,16 +33787,16 @@ "type": "Identifier", "name": "newValue", "range": [ - 17682, - 17690 + 18367, + 18375 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 8 }, "end": { - "line": 500, + "line": 521, "column": 16 } } @@ -31909,31 +33805,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 17691, - 17698 + 18376, + 18383 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 17 }, "end": { - "line": 500, + "line": 521, "column": 24 } } }, "range": [ - 17682, - 17698 + 18367, + 18383 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 8 }, "end": { - "line": 500, + "line": 521, "column": 24 } } @@ -31947,16 +33843,16 @@ "type": "Identifier", "name": "r", "range": [ - 17699, - 17700 + 18384, + 18385 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 25 }, "end": { - "line": 500, + "line": 521, "column": 26 } } @@ -31975,16 +33871,16 @@ "object": { "type": "ThisExpression", "range": [ - 17716, - 17720 + 18401, + 18405 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 10 }, "end": { - "line": 501, + "line": 522, "column": 14 } } @@ -31993,31 +33889,31 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 17721, - 17744 + 18406, + 18429 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 15 }, "end": { - "line": 501, + "line": 522, "column": 38 } } }, "range": [ - 17716, - 17744 + 18401, + 18429 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 10 }, "end": { - "line": 501, + "line": 522, "column": 38 } } @@ -32027,16 +33923,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17745, - 17753 + 18430, + 18438 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 39 }, "end": { - "line": 501, + "line": 522, "column": 47 } } @@ -32045,16 +33941,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17755, - 17764 + 18440, + 18449 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 49 }, "end": { - "line": 501, + "line": 522, "column": 58 } } @@ -32063,16 +33959,16 @@ "type": "Identifier", "name": "r", "range": [ - 17766, - 17767 + 18451, + 18452 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 60 }, "end": { - "line": 501, + "line": 522, "column": 61 } } @@ -32081,63 +33977,63 @@ "type": "Identifier", "name": "field", "range": [ - 17769, - 17774 + 18454, + 18459 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 63 }, "end": { - "line": 501, + "line": 522, "column": 68 } } } ], "range": [ - 17716, - 17775 + 18401, + 18460 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 10 }, "end": { - "line": 501, + "line": 522, "column": 69 } } }, "range": [ - 17716, - 17776 + 18401, + 18461 ], "loc": { "start": { - "line": 501, + "line": 522, "column": 10 }, "end": { - "line": 501, + "line": 522, "column": 70 } } } ], "range": [ - 17704, - 17786 + 18389, + 18471 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 30 }, "end": { - "line": 502, + "line": 523, "column": 9 } } @@ -32145,94 +34041,94 @@ "generator": false, "expression": false, "range": [ - 17699, - 17786 + 18384, + 18471 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 25 }, "end": { - "line": 502, + "line": 523, "column": 9 } } } ], "range": [ - 17682, - 17787 + 18367, + 18472 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 8 }, "end": { - "line": 502, + "line": 523, "column": 10 } } }, "range": [ - 17682, - 17788 + 18367, + 18473 ], "loc": { "start": { - "line": 500, + "line": 521, "column": 8 }, "end": { - "line": 502, + "line": 523, "column": 11 } } } ], "range": [ - 17474, - 17796 + 18159, + 18481 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 44 }, "end": { - "line": 503, + "line": 524, "column": 7 } } }, "alternate": null, "range": [ - 17443, - 17796 + 18128, + 18481 ], "loc": { "start": { - "line": 494, + "line": 515, "column": 13 }, "end": { - "line": 503, + "line": 524, "column": 7 } } }, "range": [ - 17149, - 17796 + 17834, + 18481 ], "loc": { "start": { - "line": 487, + "line": 508, "column": 6 }, "end": { - "line": 503, + "line": 524, "column": 7 } } @@ -32249,16 +34145,16 @@ "type": "Identifier", "name": "resource", "range": [ - 17803, - 17811 + 18488, + 18496 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 6 }, "end": { - "line": 504, + "line": 525, "column": 14 } } @@ -32267,31 +34163,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 17812, - 17821 + 18497, + 18506 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 15 }, "end": { - "line": 504, + "line": 525, "column": 24 } } }, "range": [ - 17803, - 17822 + 18488, + 18507 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 6 }, "end": { - "line": 504, + "line": 525, "column": 25 } } @@ -32300,94 +34196,94 @@ "type": "Identifier", "name": "newValue", "range": [ - 17825, - 17833 + 18510, + 18518 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 28 }, "end": { - "line": 504, + "line": 525, "column": 36 } } }, "range": [ - 17803, - 17833 + 18488, + 18518 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 6 }, "end": { - "line": 504, + "line": 525, "column": 36 } } }, "range": [ - 17803, - 17834 + 18488, + 18519 ], "loc": { "start": { - "line": 504, + "line": 525, "column": 6 }, "end": { - "line": 504, + "line": 525, "column": 37 } } } ], "range": [ - 17141, - 17840 + 17826, + 18525 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 41 }, "end": { - "line": 505, + "line": 526, "column": 5 } } }, "alternate": null, "range": [ - 17104, - 17840 + 17789, + 18525 ], "loc": { "start": { - "line": 486, + "line": 507, "column": 4 }, "end": { - "line": 505, + "line": 526, "column": 5 } } } ], "range": [ - 16991, - 17844 + 17676, + 18529 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 53 }, "end": { - "line": 506, + "line": 527, "column": 3 } } @@ -32395,16 +34291,16 @@ "generator": false, "expression": false, "range": [ - 16949, - 17844 + 17634, + 18529 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 11 }, "end": { - "line": 506, + "line": 527, "column": 3 } } @@ -32412,16 +34308,16 @@ "kind": "method", "computed": false, "range": [ - 16940, - 17844 + 17625, + 18529 ], "loc": { "start": { - "line": 483, + "line": 504, "column": 2 }, "end": { - "line": 506, + "line": 527, "column": 3 } }, @@ -32433,16 +34329,16 @@ "type": "Identifier", "name": "_addInverseRelationship", "range": [ - 17848, - 17871 + 18533, + 18556 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 2 }, "end": { - "line": 508, + "line": 529, "column": 25 } } @@ -32455,16 +34351,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 17872, - 17886 + 18557, + 18571 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 26 }, "end": { - "line": 508, + "line": 529, "column": 40 } } @@ -32473,16 +34369,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 17888, - 17903 + 18573, + 18588 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 42 }, "end": { - "line": 508, + "line": 529, "column": 57 } } @@ -32491,16 +34387,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 17905, - 17919 + 18590, + 18604 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 59 }, "end": { - "line": 508, + "line": 529, "column": 73 } } @@ -32509,16 +34405,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 17921, - 17932 + 18606, + 18617 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 75 }, "end": { - "line": 508, + "line": 529, "column": 86 } } @@ -32536,16 +34432,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 17944, - 17960 + 18629, + 18645 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 8 }, "end": { - "line": 509, + "line": 530, "column": 24 } } @@ -32559,16 +34455,16 @@ "object": { "type": "ThisExpression", "range": [ - 17963, - 17967 + 18648, + 18652 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 27 }, "end": { - "line": 509, + "line": 530, "column": 31 } } @@ -32577,31 +34473,31 @@ "type": "Identifier", "name": "_types", "range": [ - 17968, - 17974 + 18653, + 18659 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 32 }, "end": { - "line": 509, + "line": 530, "column": 38 } } }, "range": [ - 17963, - 17974 + 18648, + 18659 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 27 }, "end": { - "line": 509, + "line": 530, "column": 38 } } @@ -32613,16 +34509,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 17975, - 17989 + 18660, + 18674 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 39 }, "end": { - "line": 509, + "line": 530, "column": 53 } } @@ -32631,61 +34527,61 @@ "type": "Identifier", "name": "type", "range": [ - 17990, - 17994 + 18675, + 18679 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 54 }, "end": { - "line": 509, + "line": 530, "column": 58 } } }, "range": [ - 17975, - 17994 + 18660, + 18679 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 39 }, "end": { - "line": 509, + "line": 530, "column": 58 } } }, "range": [ - 17963, - 17995 + 18648, + 18680 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 27 }, "end": { - "line": 509, + "line": 530, "column": 59 } } }, "range": [ - 17944, - 17995 + 18629, + 18680 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 8 }, "end": { - "line": 509, + "line": 530, "column": 59 } } @@ -32693,16 +34589,16 @@ ], "kind": "var", "range": [ - 17940, - 17996 + 18625, + 18681 ], "loc": { "start": { - "line": 509, + "line": 530, "column": 4 }, "end": { - "line": 509, + "line": 530, "column": 60 } } @@ -32716,16 +34612,16 @@ "type": "Identifier", "name": "sourceDefinition", "range": [ - 18005, - 18021 + 18690, + 18706 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 8 }, "end": { - "line": 510, + "line": 531, "column": 24 } } @@ -32739,16 +34635,16 @@ "object": { "type": "ThisExpression", "range": [ - 18024, - 18028 + 18709, + 18713 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 27 }, "end": { - "line": 510, + "line": 531, "column": 31 } } @@ -32757,31 +34653,31 @@ "type": "Identifier", "name": "_types", "range": [ - 18029, - 18035 + 18714, + 18720 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 32 }, "end": { - "line": 510, + "line": 531, "column": 38 } } }, "range": [ - 18024, - 18035 + 18709, + 18720 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 27 }, "end": { - "line": 510, + "line": 531, "column": 38 } } @@ -32793,16 +34689,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18036, - 18050 + 18721, + 18735 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 39 }, "end": { - "line": 510, + "line": 531, "column": 53 } } @@ -32811,61 +34707,61 @@ "type": "Identifier", "name": "type", "range": [ - 18051, - 18055 + 18736, + 18740 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 54 }, "end": { - "line": 510, + "line": 531, "column": 58 } } }, "range": [ - 18036, - 18055 + 18721, + 18740 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 39 }, "end": { - "line": 510, + "line": 531, "column": 58 } } }, "range": [ - 18024, - 18056 + 18709, + 18741 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 27 }, "end": { - "line": 510, + "line": 531, "column": 59 } } }, "range": [ - 18005, - 18056 + 18690, + 18741 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 8 }, "end": { - "line": 510, + "line": 531, "column": 59 } } @@ -32873,16 +34769,16 @@ ], "kind": "var", "range": [ - 18001, - 18057 + 18686, + 18742 ], "loc": { "start": { - "line": 510, + "line": 531, "column": 4 }, "end": { - "line": 510, + "line": 531, "column": 60 } } @@ -32893,16 +34789,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 18066, - 18082 + 18751, + 18767 ], "loc": { "start": { - "line": 511, + "line": 532, "column": 8 }, "end": { - "line": 511, + "line": 532, "column": 24 } } @@ -32919,16 +34815,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18096, - 18111 + 18781, + 18796 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 10 }, "end": { - "line": 512, + "line": 533, "column": 25 } } @@ -32953,16 +34849,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 18116, - 18127 + 18801, + 18812 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 30 }, "end": { - "line": 512, + "line": 533, "column": 41 } } @@ -32971,47 +34867,47 @@ "type": "Identifier", "name": "inverse", "range": [ - 18128, - 18135 + 18813, + 18820 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 42 }, "end": { - "line": 512, + "line": 533, "column": 49 } } }, "range": [ - 18116, - 18135 + 18801, + 18820 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 30 }, "end": { - "line": 512, + "line": 533, "column": 49 } } } ], "range": [ - 18114, - 18137 + 18799, + 18822 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 28 }, "end": { - "line": 512, + "line": 533, "column": 51 } } @@ -33020,31 +34916,31 @@ "type": "Identifier", "name": "concat", "range": [ - 18138, - 18144 + 18823, + 18829 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 52 }, "end": { - "line": 512, + "line": 533, "column": 58 } } }, "range": [ - 18114, - 18144 + 18799, + 18829 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 28 }, "end": { - "line": 512, + "line": 533, "column": 58 } } @@ -33057,16 +34953,16 @@ "type": "Identifier", "name": "sourceDefinition", "range": [ - 18145, - 18161 + 18830, + 18846 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 59 }, "end": { - "line": 512, + "line": 533, "column": 75 } } @@ -33075,47 +34971,47 @@ "type": "Identifier", "name": "_names", "range": [ - 18162, - 18168 + 18847, + 18853 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 76 }, "end": { - "line": 512, + "line": 533, "column": 82 } } }, "range": [ - 18145, - 18168 + 18830, + 18853 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 59 }, "end": { - "line": 512, + "line": 533, "column": 82 } } } ], "range": [ - 18114, - 18169 + 18799, + 18854 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 28 }, "end": { - "line": 512, + "line": 533, "column": 83 } } @@ -33124,31 +35020,31 @@ "type": "Identifier", "name": "find", "range": [ - 18170, - 18174 + 18855, + 18859 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 84 }, "end": { - "line": 512, + "line": 533, "column": 88 } } }, "range": [ - 18114, - 18174 + 18799, + 18859 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 28 }, "end": { - "line": 512, + "line": 533, "column": 88 } } @@ -33162,16 +35058,16 @@ "type": "Identifier", "name": "x", "range": [ - 18175, - 18176 + 18860, + 18861 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 89 }, "end": { - "line": 512, + "line": 533, "column": 90 } } @@ -33184,16 +35080,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 18180, - 18196 + 18865, + 18881 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 94 }, "end": { - "line": 512, + "line": 533, "column": 110 } } @@ -33202,31 +35098,31 @@ "type": "Identifier", "name": "x", "range": [ - 18197, - 18198 + 18882, + 18883 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 111 }, "end": { - "line": 512, + "line": 533, "column": 112 } } }, "range": [ - 18180, - 18199 + 18865, + 18884 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 94 }, "end": { - "line": 512, + "line": 533, "column": 113 } } @@ -33234,47 +35130,47 @@ "generator": false, "expression": true, "range": [ - 18175, - 18199 + 18860, + 18884 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 89 }, "end": { - "line": 512, + "line": 533, "column": 113 } } } ], "range": [ - 18114, - 18200 + 18799, + 18885 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 28 }, "end": { - "line": 512, + "line": 533, "column": 114 } } }, "range": [ - 18096, - 18200 + 18781, + 18885 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 10 }, "end": { - "line": 512, + "line": 533, "column": 114 } } @@ -33282,16 +35178,16 @@ ], "kind": "let", "range": [ - 18092, - 18201 + 18777, + 18886 ], "loc": { "start": { - "line": 512, + "line": 533, "column": 6 }, "end": { - "line": 512, + "line": 533, "column": 115 } } @@ -33305,16 +35201,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 18212, - 18223 + 18897, + 18908 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 10 }, "end": { - "line": 513, + "line": 534, "column": 21 } } @@ -33326,16 +35222,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 18226, - 18242 + 18911, + 18927 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 24 }, "end": { - "line": 513, + "line": 534, "column": 40 } } @@ -33347,16 +35243,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 18246, - 18262 + 18931, + 18947 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 44 }, "end": { - "line": 513, + "line": 534, "column": 60 } } @@ -33365,61 +35261,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18263, - 18278 + 18948, + 18963 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 61 }, "end": { - "line": 513, + "line": 534, "column": 76 } } }, "range": [ - 18246, - 18279 + 18931, + 18964 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 44 }, "end": { - "line": 513, + "line": 534, "column": 77 } } }, "range": [ - 18226, - 18279 + 18911, + 18964 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 24 }, "end": { - "line": 513, + "line": 534, "column": 77 } } }, "range": [ - 18212, - 18279 + 18897, + 18964 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 10 }, "end": { - "line": 513, + "line": 534, "column": 77 } } @@ -33427,16 +35323,16 @@ ], "kind": "let", "range": [ - 18208, - 18280 + 18893, + 18965 ], "loc": { "start": { - "line": 513, + "line": 534, "column": 6 }, "end": { - "line": 513, + "line": 534, "column": 78 } } @@ -33455,16 +35351,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18287, - 18301 + 18972, + 18986 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 6 }, "end": { - "line": 514, + "line": 535, "column": 20 } } @@ -33473,31 +35369,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 18302, - 18313 + 18987, + 18998 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 21 }, "end": { - "line": 514, + "line": 535, "column": 32 } } }, "range": [ - 18287, - 18313 + 18972, + 18998 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 6 }, "end": { - "line": 514, + "line": 535, "column": 32 } } @@ -33506,31 +35402,31 @@ "type": "Identifier", "name": "push", "range": [ - 18314, - 18318 + 18999, + 19003 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 33 }, "end": { - "line": 514, + "line": 535, "column": 37 } } }, "range": [ - 18287, - 18318 + 18972, + 19003 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 6 }, "end": { - "line": 514, + "line": 535, "column": 37 } } @@ -33545,16 +35441,16 @@ "type": "Identifier", "name": "type", "range": [ - 18321, - 18325 + 19006, + 19010 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 40 }, "end": { - "line": 514, + "line": 535, "column": 44 } } @@ -33566,16 +35462,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18327, - 18341 + 19012, + 19026 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 46 }, "end": { - "line": 514, + "line": 535, "column": 60 } } @@ -33584,31 +35480,31 @@ "type": "Identifier", "name": "type", "range": [ - 18342, - 18346 + 19027, + 19031 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 61 }, "end": { - "line": 514, + "line": 535, "column": 65 } } }, "range": [ - 18327, - 18346 + 19012, + 19031 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 46 }, "end": { - "line": 514, + "line": 535, "column": 65 } } @@ -33618,16 +35514,16 @@ "shorthand": false, "computed": false, "range": [ - 18321, - 18346 + 19006, + 19031 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 40 }, "end": { - "line": 514, + "line": 535, "column": 65 } } @@ -33638,16 +35534,16 @@ "type": "Identifier", "name": "id", "range": [ - 18348, - 18350 + 19033, + 19035 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 67 }, "end": { - "line": 514, + "line": 535, "column": 69 } } @@ -33659,16 +35555,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18352, - 18366 + 19037, + 19051 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 71 }, "end": { - "line": 514, + "line": 535, "column": 85 } } @@ -33677,31 +35573,31 @@ "type": "Identifier", "name": "id", "range": [ - 18367, - 18369 + 19052, + 19054 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 86 }, "end": { - "line": 514, + "line": 535, "column": 88 } } }, "range": [ - 18352, - 18369 + 19037, + 19054 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 71 }, "end": { - "line": 514, + "line": 535, "column": 88 } } @@ -33711,16 +35607,16 @@ "shorthand": false, "computed": false, "range": [ - 18348, - 18369 + 19033, + 19054 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 67 }, "end": { - "line": 514, + "line": 535, "column": 88 } } @@ -33731,16 +35627,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 18371, - 18380 + 19056, + 19065 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 90 }, "end": { - "line": 514, + "line": 535, "column": 99 } } @@ -33749,16 +35645,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 18382, - 18397 + 19067, + 19082 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 101 }, "end": { - "line": 514, + "line": 535, "column": 116 } } @@ -33768,63 +35664,63 @@ "shorthand": false, "computed": false, "range": [ - 18371, - 18397 + 19056, + 19082 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 90 }, "end": { - "line": 514, + "line": 535, "column": 116 } } } ], "range": [ - 18319, - 18399 + 19004, + 19084 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 38 }, "end": { - "line": 514, + "line": 535, "column": 118 } } } ], "range": [ - 18287, - 18400 + 18972, + 19085 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 6 }, "end": { - "line": 514, + "line": 535, "column": 119 } } }, "range": [ - 18287, - 18401 + 18972, + 19086 ], "loc": { "start": { - "line": 514, + "line": 535, "column": 6 }, "end": { - "line": 514, + "line": 535, "column": 120 } } @@ -33835,16 +35731,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 18412, - 18423 + 19097, + 19108 ], "loc": { "start": { - "line": 515, + "line": 536, "column": 10 }, "end": { - "line": 515, + "line": 536, "column": 21 } } @@ -33864,16 +35760,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 18439, - 18450 + 19124, + 19135 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 12 }, "end": { - "line": 516, + "line": 537, "column": 23 } } @@ -33882,31 +35778,31 @@ "type": "Identifier", "name": "type", "range": [ - 18451, - 18455 + 19136, + 19140 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 24 }, "end": { - "line": 516, + "line": 537, "column": 28 } } }, "range": [ - 18439, - 18455 + 19124, + 19140 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 12 }, "end": { - "line": 516, + "line": 537, "column": 28 } } @@ -33916,31 +35812,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 18460, - 18469 + 19145, + 19154 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 33 }, "end": { - "line": 516, + "line": 537, "column": 42 } } }, "range": [ - 18439, - 18469 + 19124, + 19154 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 12 }, "end": { - "line": 516, + "line": 537, "column": 42 } } @@ -33962,16 +35858,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18483, - 18497 + 19168, + 19182 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 10 }, "end": { - "line": 517, + "line": 538, "column": 24 } } @@ -33980,31 +35876,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 18498, - 18509 + 19183, + 19194 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 25 }, "end": { - "line": 517, + "line": 538, "column": 36 } } }, "range": [ - 18483, - 18509 + 19168, + 19194 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 10 }, "end": { - "line": 517, + "line": 538, "column": 36 } } @@ -34013,31 +35909,31 @@ "type": "Identifier", "name": "push", "range": [ - 18510, - 18514 + 19195, + 19199 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 37 }, "end": { - "line": 517, + "line": 538, "column": 41 } } }, "range": [ - 18483, - 18514 + 19168, + 19199 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 10 }, "end": { - "line": 517, + "line": 538, "column": 41 } } @@ -34052,16 +35948,16 @@ "type": "Identifier", "name": "type", "range": [ - 18517, - 18521 + 19202, + 19206 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 44 }, "end": { - "line": 517, + "line": 538, "column": 48 } } @@ -34073,16 +35969,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18523, - 18537 + 19208, + 19222 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 50 }, "end": { - "line": 517, + "line": 538, "column": 64 } } @@ -34091,31 +35987,31 @@ "type": "Identifier", "name": "type", "range": [ - 18538, - 18542 + 19223, + 19227 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 65 }, "end": { - "line": 517, + "line": 538, "column": 69 } } }, "range": [ - 18523, - 18542 + 19208, + 19227 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 50 }, "end": { - "line": 517, + "line": 538, "column": 69 } } @@ -34125,16 +36021,16 @@ "shorthand": false, "computed": false, "range": [ - 18517, - 18542 + 19202, + 19227 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 44 }, "end": { - "line": 517, + "line": 538, "column": 69 } } @@ -34145,16 +36041,16 @@ "type": "Identifier", "name": "id", "range": [ - 18544, - 18546 + 19229, + 19231 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 71 }, "end": { - "line": 517, + "line": 538, "column": 73 } } @@ -34166,16 +36062,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18548, - 18562 + 19233, + 19247 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 75 }, "end": { - "line": 517, + "line": 538, "column": 89 } } @@ -34184,31 +36080,31 @@ "type": "Identifier", "name": "id", "range": [ - 18563, - 18565 + 19248, + 19250 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 90 }, "end": { - "line": 517, + "line": 538, "column": 92 } } }, "range": [ - 18548, - 18565 + 19233, + 19250 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 75 }, "end": { - "line": 517, + "line": 538, "column": 92 } } @@ -34218,16 +36114,16 @@ "shorthand": false, "computed": false, "range": [ - 18544, - 18565 + 19229, + 19250 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 71 }, "end": { - "line": 517, + "line": 538, "column": 92 } } @@ -34238,16 +36134,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 18567, - 18576 + 19252, + 19261 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 94 }, "end": { - "line": 517, + "line": 538, "column": 103 } } @@ -34256,16 +36152,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18578, - 18593 + 19263, + 19278 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 105 }, "end": { - "line": 517, + "line": 538, "column": 120 } } @@ -34275,63 +36171,63 @@ "shorthand": false, "computed": false, "range": [ - 18567, - 18593 + 19252, + 19278 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 94 }, "end": { - "line": 517, + "line": 538, "column": 120 } } } ], "range": [ - 18515, - 18595 + 19200, + 19280 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 42 }, "end": { - "line": 517, + "line": 538, "column": 122 } } } ], "range": [ - 18483, - 18596 + 19168, + 19281 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 10 }, "end": { - "line": 517, + "line": 538, "column": 123 } } }, "range": [ - 18483, - 18597 + 19168, + 19282 ], "loc": { "start": { - "line": 517, + "line": 538, "column": 10 }, "end": { - "line": 517, + "line": 538, "column": 124 } } @@ -34348,16 +36244,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18608, - 18622 + 19293, + 19307 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 10 }, "end": { - "line": 518, + "line": 539, "column": 24 } } @@ -34366,31 +36262,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18623, - 18638 + 19308, + 19323 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 25 }, "end": { - "line": 518, + "line": 539, "column": 40 } } }, "range": [ - 18608, - 18639 + 19293, + 19324 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 10 }, "end": { - "line": 518, + "line": 539, "column": 41 } } @@ -34399,62 +36295,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18642, - 18656 + 19327, + 19341 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 44 }, "end": { - "line": 518, + "line": 539, "column": 58 } } }, "range": [ - 18608, - 18656 + 19293, + 19341 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 10 }, "end": { - "line": 518, + "line": 539, "column": 58 } } }, "range": [ - 18608, - 18657 + 19293, + 19342 ], "loc": { "start": { - "line": 518, + "line": 539, "column": 10 }, "end": { - "line": 518, + "line": 539, "column": 59 } } } ], "range": [ - 18471, - 18667 + 19156, + 19352 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 44 }, "end": { - "line": 519, + "line": 540, "column": 9 } } @@ -34471,16 +36367,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 18677, - 18688 + 19362, + 19373 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 19 }, "end": { - "line": 519, + "line": 540, "column": 30 } } @@ -34489,31 +36385,31 @@ "type": "Identifier", "name": "type", "range": [ - 18689, - 18693 + 19374, + 19378 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 31 }, "end": { - "line": 519, + "line": 540, "column": 35 } } }, "range": [ - 18677, - 18693 + 19362, + 19378 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 19 }, "end": { - "line": 519, + "line": 540, "column": 35 } } @@ -34523,31 +36419,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 18698, - 18708 + 19383, + 19393 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 40 }, "end": { - "line": 519, + "line": 540, "column": 50 } } }, "range": [ - 18677, - 18708 + 19362, + 19393 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 19 }, "end": { - "line": 519, + "line": 540, "column": 50 } } @@ -34569,16 +36465,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18722, - 18736 + 19407, + 19421 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 10 }, "end": { - "line": 520, + "line": 541, "column": 24 } } @@ -34587,31 +36483,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 18737, - 18748 + 19422, + 19433 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 25 }, "end": { - "line": 520, + "line": 541, "column": 36 } } }, "range": [ - 18722, - 18748 + 19407, + 19433 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 10 }, "end": { - "line": 520, + "line": 541, "column": 36 } } @@ -34620,31 +36516,31 @@ "type": "Identifier", "name": "push", "range": [ - 18749, - 18753 + 19434, + 19438 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 37 }, "end": { - "line": 520, + "line": 541, "column": 41 } } }, "range": [ - 18722, - 18753 + 19407, + 19438 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 10 }, "end": { - "line": 520, + "line": 541, "column": 41 } } @@ -34659,16 +36555,16 @@ "type": "Identifier", "name": "type", "range": [ - 18756, - 18760 + 19441, + 19445 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 44 }, "end": { - "line": 520, + "line": 541, "column": 48 } } @@ -34680,16 +36576,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18762, - 18776 + 19447, + 19461 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 50 }, "end": { - "line": 520, + "line": 541, "column": 64 } } @@ -34698,31 +36594,31 @@ "type": "Identifier", "name": "type", "range": [ - 18777, - 18781 + 19462, + 19466 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 65 }, "end": { - "line": 520, + "line": 541, "column": 69 } } }, "range": [ - 18762, - 18781 + 19447, + 19466 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 50 }, "end": { - "line": 520, + "line": 541, "column": 69 } } @@ -34732,16 +36628,16 @@ "shorthand": false, "computed": false, "range": [ - 18756, - 18781 + 19441, + 19466 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 44 }, "end": { - "line": 520, + "line": 541, "column": 69 } } @@ -34752,16 +36648,16 @@ "type": "Identifier", "name": "id", "range": [ - 18783, - 18785 + 19468, + 19470 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 71 }, "end": { - "line": 520, + "line": 541, "column": 73 } } @@ -34773,16 +36669,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18787, - 18801 + 19472, + 19486 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 75 }, "end": { - "line": 520, + "line": 541, "column": 89 } } @@ -34791,31 +36687,31 @@ "type": "Identifier", "name": "id", "range": [ - 18802, - 18804 + 19487, + 19489 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 90 }, "end": { - "line": 520, + "line": 541, "column": 92 } } }, "range": [ - 18787, - 18804 + 19472, + 19489 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 75 }, "end": { - "line": 520, + "line": 541, "column": 92 } } @@ -34825,16 +36721,16 @@ "shorthand": false, "computed": false, "range": [ - 18783, - 18804 + 19468, + 19489 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 71 }, "end": { - "line": 520, + "line": 541, "column": 92 } } @@ -34845,16 +36741,16 @@ "type": "Identifier", "name": "fieldName", "range": [ - 18806, - 18815 + 19491, + 19500 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 94 }, "end": { - "line": 520, + "line": 541, "column": 103 } } @@ -34863,16 +36759,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18817, - 18832 + 19502, + 19517 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 105 }, "end": { - "line": 520, + "line": 541, "column": 120 } } @@ -34882,63 +36778,63 @@ "shorthand": false, "computed": false, "range": [ - 18806, - 18832 + 19491, + 19517 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 94 }, "end": { - "line": 520, + "line": 541, "column": 120 } } } ], "range": [ - 18754, - 18834 + 19439, + 19519 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 42 }, "end": { - "line": 520, + "line": 541, "column": 122 } } } ], "range": [ - 18722, - 18835 + 19407, + 19520 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 10 }, "end": { - "line": 520, + "line": 541, "column": 123 } } }, "range": [ - 18722, - 18836 + 19407, + 19521 ], "loc": { "start": { - "line": 520, + "line": 541, "column": 10 }, "end": { - "line": 520, + "line": 541, "column": 124 } } @@ -34960,16 +36856,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18851, - 18865 + 19536, + 19550 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 14 }, "end": { - "line": 521, + "line": 542, "column": 28 } } @@ -34978,31 +36874,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18866, - 18881 + 19551, + 19566 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 29 }, "end": { - "line": 521, + "line": 542, "column": 44 } } }, "range": [ - 18851, - 18882 + 19536, + 19567 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 14 }, "end": { - "line": 521, + "line": 542, "column": 45 } } @@ -35011,31 +36907,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 18883, - 18890 + 19568, + 19575 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 46 }, "end": { - "line": 521, + "line": 542, "column": 53 } } }, "range": [ - 18851, - 18890 + 19536, + 19575 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 14 }, "end": { - "line": 521, + "line": 542, "column": 53 } } @@ -35045,32 +36941,32 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18891, - 18905 + 19576, + 19590 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 54 }, "end": { - "line": 521, + "line": 542, "column": 68 } } } ], "range": [ - 18851, - 18906 + 19536, + 19591 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 14 }, "end": { - "line": 521, + "line": 542, "column": 69 } } @@ -35083,47 +36979,47 @@ "value": 1, "raw": "1", "range": [ - 18912, - 18913 + 19597, + 19598 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 75 }, "end": { - "line": 521, + "line": 542, "column": 76 } } }, "prefix": true, "range": [ - 18911, - 18913 + 19596, + 19598 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 74 }, "end": { - "line": 521, + "line": 542, "column": 76 } } }, "range": [ - 18851, - 18913 + 19536, + 19598 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 14 }, "end": { - "line": 521, + "line": 542, "column": 76 } } @@ -35145,16 +37041,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 18929, - 18943 + 19614, + 19628 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 12 }, "end": { - "line": 522, + "line": 543, "column": 26 } } @@ -35163,31 +37059,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 18944, - 18959 + 19629, + 19644 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 27 }, "end": { - "line": 522, + "line": 543, "column": 42 } } }, "range": [ - 18929, - 18960 + 19614, + 19645 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 12 }, "end": { - "line": 522, + "line": 543, "column": 43 } } @@ -35196,31 +37092,31 @@ "type": "Identifier", "name": "push", "range": [ - 18961, - 18965 + 19646, + 19650 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 44 }, "end": { - "line": 522, + "line": 543, "column": 48 } } }, "range": [ - 18929, - 18965 + 19614, + 19650 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 12 }, "end": { - "line": 522, + "line": 543, "column": 48 } } @@ -35230,95 +37126,95 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 18966, - 18980 + 19651, + 19665 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 49 }, "end": { - "line": 522, + "line": 543, "column": 63 } } } ], "range": [ - 18929, - 18981 + 19614, + 19666 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 12 }, "end": { - "line": 522, + "line": 543, "column": 64 } } }, "range": [ - 18929, - 18982 + 19614, + 19667 ], "loc": { "start": { - "line": 522, + "line": 543, "column": 12 }, "end": { - "line": 522, + "line": 543, "column": 65 } } } ], "range": [ - 18915, - 18994 + 19600, + 19679 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 78 }, "end": { - "line": 523, + "line": 544, "column": 11 } } }, "alternate": null, "range": [ - 18847, - 18994 + 19532, + 19679 ], "loc": { "start": { - "line": 521, + "line": 542, "column": 10 }, "end": { - "line": 523, + "line": 544, "column": 11 } } } ], "range": [ - 18710, - 19004 + 19395, + 19689 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 52 }, "end": { - "line": 524, + "line": 545, "column": 9 } } @@ -35335,16 +37231,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 19014, - 19025 + 19699, + 19710 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 19 }, "end": { - "line": 524, + "line": 545, "column": 30 } } @@ -35353,31 +37249,31 @@ "type": "Identifier", "name": "type", "range": [ - 19026, - 19030 + 19711, + 19715 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 31 }, "end": { - "line": 524, + "line": 545, "column": 35 } } }, "range": [ - 19014, - 19030 + 19699, + 19715 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 19 }, "end": { - "line": 524, + "line": 545, "column": 35 } } @@ -35387,31 +37283,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 19035, - 19041 + 19720, + 19726 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 40 }, "end": { - "line": 524, + "line": 545, "column": 46 } } }, "range": [ - 19014, - 19041 + 19699, + 19726 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 19 }, "end": { - "line": 524, + "line": 545, "column": 46 } } @@ -35427,16 +37323,16 @@ "type": "Identifier", "name": "Error", "range": [ - 19065, - 19070 + 19750, + 19755 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 20 }, "end": { - "line": 525, + "line": 546, "column": 25 } } @@ -35453,16 +37349,16 @@ }, "tail": false, "range": [ - 19071, - 19108 + 19756, + 19793 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 26 }, "end": { - "line": 525, + "line": 546, "column": 63 } } @@ -35475,16 +37371,16 @@ }, "tail": false, "range": [ - 19123, - 19146 + 19808, + 19831 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 78 }, "end": { - "line": 525, + "line": 546, "column": 101 } } @@ -35497,16 +37393,16 @@ }, "tail": true, "range": [ - 19161, - 19165 + 19846, + 19850 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 116 }, "end": { - "line": 525, + "line": 546, "column": 120 } } @@ -35517,16 +37413,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 19108, - 19123 + 19793, + 19808 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 63 }, "end": { - "line": 525, + "line": 546, "column": 78 } } @@ -35535,141 +37431,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 19146, - 19161 + 19831, + 19846 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 101 }, "end": { - "line": 525, + "line": 546, "column": 116 } } } ], "range": [ - 19071, - 19165 + 19756, + 19850 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 26 }, "end": { - "line": 525, + "line": 546, "column": 120 } } } ], "range": [ - 19061, - 19166 + 19746, + 19851 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 16 }, "end": { - "line": 525, + "line": 546, "column": 121 } } }, "range": [ - 19055, - 19167 + 19740, + 19852 ], "loc": { "start": { - "line": 525, + "line": 546, "column": 10 }, "end": { - "line": 525, + "line": 546, "column": 122 } } } ], "range": [ - 19043, - 19177 + 19728, + 19862 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 48 }, "end": { - "line": 526, + "line": 547, "column": 9 } } }, "alternate": null, "range": [ - 19010, - 19177 + 19695, + 19862 ], "loc": { "start": { - "line": 524, + "line": 545, "column": 15 }, "end": { - "line": 526, + "line": 547, "column": 9 } } }, "range": [ - 18673, - 19177 + 19358, + 19862 ], "loc": { "start": { - "line": 519, + "line": 540, "column": 15 }, "end": { - "line": 526, + "line": 547, "column": 9 } } }, "range": [ - 18435, - 19177 + 19120, + 19862 ], "loc": { "start": { - "line": 516, + "line": 537, "column": 8 }, "end": { - "line": 526, + "line": 547, "column": 9 } } } ], "range": [ - 18425, - 19185 + 19110, + 19870 ], "loc": { "start": { - "line": 515, + "line": 536, "column": 23 }, "end": { - "line": 527, + "line": 548, "column": 7 } } @@ -35683,16 +37579,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 19195, - 19206 + 19880, + 19891 ], "loc": { "start": { - "line": 527, + "line": 548, "column": 17 }, "end": { - "line": 527, + "line": 548, "column": 28 } } @@ -35701,31 +37597,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 19207, - 19214 + 19892, + 19899 ], "loc": { "start": { - "line": 527, + "line": 548, "column": 29 }, "end": { - "line": 527, + "line": 548, "column": 36 } } }, "range": [ - 19195, - 19214 + 19880, + 19899 ], "loc": { "start": { - "line": 527, + "line": 548, "column": 17 }, "end": { - "line": 527, + "line": 548, "column": 36 } } @@ -35741,16 +37637,16 @@ "type": "Identifier", "name": "Error", "range": [ - 19236, - 19241 + 19921, + 19926 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 18 }, "end": { - "line": 528, + "line": 549, "column": 23 } } @@ -35767,16 +37663,16 @@ }, "tail": false, "range": [ - 19242, - 19279 + 19927, + 19964 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 24 }, "end": { - "line": 528, + "line": 549, "column": 61 } } @@ -35789,16 +37685,16 @@ }, "tail": false, "range": [ - 19294, - 19312 + 19979, + 19997 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 76 }, "end": { - "line": 528, + "line": 549, "column": 94 } } @@ -35811,16 +37707,16 @@ }, "tail": true, "range": [ - 19331, - 19335 + 20016, + 20020 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 113 }, "end": { - "line": 528, + "line": 549, "column": 117 } } @@ -35831,16 +37727,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 19279, - 19294 + 19964, + 19979 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 61 }, "end": { - "line": 528, + "line": 549, "column": 76 } } @@ -35852,16 +37748,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 19312, - 19323 + 19997, + 20008 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 94 }, "end": { - "line": 528, + "line": 549, "column": 105 } } @@ -35870,173 +37766,173 @@ "type": "Identifier", "name": "inverse", "range": [ - 19324, - 19331 + 20009, + 20016 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 106 }, "end": { - "line": 528, + "line": 549, "column": 113 } } }, "range": [ - 19312, - 19331 + 19997, + 20016 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 94 }, "end": { - "line": 528, + "line": 549, "column": 113 } } } ], "range": [ - 19242, - 19335 + 19927, + 20020 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 24 }, "end": { - "line": 528, + "line": 549, "column": 117 } } } ], "range": [ - 19232, - 19336 + 19917, + 20021 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 14 }, "end": { - "line": 528, + "line": 549, "column": 118 } } }, "range": [ - 19226, - 19337 + 19911, + 20022 ], "loc": { "start": { - "line": 528, + "line": 549, "column": 8 }, "end": { - "line": 528, + "line": 549, "column": 119 } } } ], "range": [ - 19216, - 19345 + 19901, + 20030 ], "loc": { "start": { - "line": 527, + "line": 548, "column": 38 }, "end": { - "line": 529, + "line": 550, "column": 7 } } }, "alternate": null, "range": [ - 19191, - 19345 + 19876, + 20030 ], "loc": { "start": { - "line": 527, + "line": 548, "column": 13 }, "end": { - "line": 529, + "line": 550, "column": 7 } } }, "range": [ - 18408, - 19345 + 19093, + 20030 ], "loc": { "start": { - "line": 515, + "line": 536, "column": 6 }, "end": { - "line": 529, + "line": 550, "column": 7 } } } ], "range": [ - 18084, - 19351 + 18769, + 20036 ], "loc": { "start": { - "line": 511, + "line": 532, "column": 26 }, "end": { - "line": 530, + "line": 551, "column": 5 } } }, "alternate": null, "range": [ - 18062, - 19351 + 18747, + 20036 ], "loc": { "start": { - "line": 511, + "line": 532, "column": 4 }, "end": { - "line": 530, + "line": 551, "column": 5 } } } ], "range": [ - 17934, - 19355 + 18619, + 20040 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 88 }, "end": { - "line": 531, + "line": 552, "column": 3 } } @@ -36044,16 +37940,16 @@ "generator": false, "expression": false, "range": [ - 17871, - 19355 + 18556, + 20040 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 25 }, "end": { - "line": 531, + "line": 552, "column": 3 } } @@ -36061,16 +37957,16 @@ "kind": "method", "computed": false, "range": [ - 17848, - 19355 + 18533, + 20040 ], "loc": { "start": { - "line": 508, + "line": 529, "column": 2 }, "end": { - "line": 531, + "line": 552, "column": 3 } }, @@ -36082,16 +37978,16 @@ "type": "Identifier", "name": "_remove", "range": [ - 19359, - 19366 + 20044, + 20051 ], "loc": { "start": { - "line": 533, + "line": 554, "column": 2 }, "end": { - "line": 533, + "line": 554, "column": 9 } } @@ -36104,16 +38000,16 @@ "type": "Identifier", "name": "resource", "range": [ - 19367, - 19375 + 20052, + 20060 ], "loc": { "start": { - "line": 533, + "line": 554, "column": 10 }, "end": { - "line": 533, + "line": 554, "column": 18 } } @@ -36136,16 +38032,16 @@ "type": "Identifier", "name": "resource", "range": [ - 19383, - 19391 + 20068, + 20076 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 4 }, "end": { - "line": 534, + "line": 555, "column": 12 } } @@ -36154,31 +38050,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 19392, - 19403 + 20077, + 20088 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 13 }, "end": { - "line": 534, + "line": 555, "column": 24 } } }, "range": [ - 19383, - 19403 + 20068, + 20088 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 4 }, "end": { - "line": 534, + "line": 555, "column": 24 } } @@ -36187,31 +38083,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 19404, - 19411 + 20089, + 20096 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 25 }, "end": { - "line": 534, + "line": 555, "column": 32 } } }, "range": [ - 19383, - 19411 + 20068, + 20096 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 4 }, "end": { - "line": 534, + "line": 555, "column": 32 } } @@ -36225,16 +38121,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19412, - 19421 + 20097, + 20106 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 33 }, "end": { - "line": 534, + "line": 555, "column": 42 } } @@ -36252,16 +38148,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 19437, - 19454 + 20122, + 20139 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 10 }, "end": { - "line": 535, + "line": 556, "column": 27 } } @@ -36278,16 +38174,16 @@ "object": { "type": "ThisExpression", "range": [ - 19457, - 19461 + 20142, + 20146 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 30 }, "end": { - "line": 535, + "line": 556, "column": 34 } } @@ -36296,31 +38192,31 @@ "type": "Identifier", "name": "_data", "range": [ - 19462, - 19467 + 20147, + 20152 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 35 }, "end": { - "line": 535, + "line": 556, "column": 40 } } }, "range": [ - 19457, - 19467 + 20142, + 20152 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 30 }, "end": { - "line": 535, + "line": 556, "column": 40 } } @@ -36332,16 +38228,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19468, - 19477 + 20153, + 20162 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 41 }, "end": { - "line": 535, + "line": 556, "column": 50 } } @@ -36350,46 +38246,46 @@ "type": "Identifier", "name": "type", "range": [ - 19478, - 19482 + 20163, + 20167 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 51 }, "end": { - "line": 535, + "line": 556, "column": 55 } } }, "range": [ - 19468, - 19482 + 20153, + 20167 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 41 }, "end": { - "line": 535, + "line": 556, "column": 55 } } }, "range": [ - 19457, - 19483 + 20142, + 20168 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 30 }, "end": { - "line": 535, + "line": 556, "column": 56 } } @@ -36401,16 +38297,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19484, - 19493 + 20169, + 20178 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 57 }, "end": { - "line": 535, + "line": 556, "column": 66 } } @@ -36419,61 +38315,61 @@ "type": "Identifier", "name": "id", "range": [ - 19494, - 19496 + 20179, + 20181 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 67 }, "end": { - "line": 535, + "line": 556, "column": 69 } } }, "range": [ - 19484, - 19496 + 20169, + 20181 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 57 }, "end": { - "line": 535, + "line": 556, "column": 69 } } }, "range": [ - 19457, - 19497 + 20142, + 20182 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 30 }, "end": { - "line": 535, + "line": 556, "column": 70 } } }, "range": [ - 19437, - 19497 + 20122, + 20182 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 10 }, "end": { - "line": 535, + "line": 556, "column": 70 } } @@ -36481,16 +38377,16 @@ ], "kind": "let", "range": [ - 19433, - 19498 + 20118, + 20183 ], "loc": { "start": { - "line": 535, + "line": 556, "column": 6 }, "end": { - "line": 535, + "line": 556, "column": 71 } } @@ -36512,16 +38408,16 @@ "object": { "type": "ThisExpression", "range": [ - 19513, - 19517 + 20198, + 20202 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 14 }, "end": { - "line": 536, + "line": 557, "column": 18 } } @@ -36530,31 +38426,31 @@ "type": "Identifier", "name": "_types", "range": [ - 19518, - 19524 + 20203, + 20209 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 19 }, "end": { - "line": 536, + "line": 557, "column": 25 } } }, "range": [ - 19513, - 19524 + 20198, + 20209 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 14 }, "end": { - "line": 536, + "line": 557, "column": 25 } } @@ -36566,16 +38462,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19525, - 19534 + 20210, + 20219 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 26 }, "end": { - "line": 536, + "line": 557, "column": 35 } } @@ -36584,46 +38480,46 @@ "type": "Identifier", "name": "type", "range": [ - 19535, - 19539 + 20220, + 20224 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 36 }, "end": { - "line": 536, + "line": 557, "column": 40 } } }, "range": [ - 19525, - 19539 + 20210, + 20224 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 26 }, "end": { - "line": 536, + "line": 557, "column": 40 } } }, "range": [ - 19513, - 19540 + 20198, + 20225 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 14 }, "end": { - "line": 536, + "line": 557, "column": 41 } } @@ -36635,16 +38531,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19541, - 19550 + 20226, + 20235 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 42 }, "end": { - "line": 536, + "line": 557, "column": 51 } } @@ -36653,46 +38549,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 19551, - 19560 + 20236, + 20245 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 52 }, "end": { - "line": 536, + "line": 557, "column": 61 } } }, "range": [ - 19541, - 19560 + 20226, + 20245 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 42 }, "end": { - "line": 536, + "line": 557, "column": 61 } } }, "range": [ - 19513, - 19561 + 20198, + 20246 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 14 }, "end": { - "line": 536, + "line": 557, "column": 62 } } @@ -36701,31 +38597,31 @@ "type": "Identifier", "name": "type", "range": [ - 19562, - 19566 + 20247, + 20251 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 63 }, "end": { - "line": 536, + "line": 557, "column": 67 } } }, "range": [ - 19513, - 19566 + 20198, + 20251 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 14 }, "end": { - "line": 536, + "line": 557, "column": 67 } } @@ -36738,16 +38634,16 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 19583, - 19592 + 20268, + 20277 ], "loc": { "start": { - "line": 537, + "line": 558, "column": 13 }, "end": { - "line": 537, + "line": 558, "column": 22 } } @@ -36768,16 +38664,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 19606, - 19623 + 20291, + 20308 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 10 }, "end": { - "line": 538, + "line": 559, "column": 27 } } @@ -36789,16 +38685,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19624, - 19633 + 20309, + 20318 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 28 }, "end": { - "line": 538, + "line": 559, "column": 37 } } @@ -36807,46 +38703,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 19634, - 19643 + 20319, + 20328 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 38 }, "end": { - "line": 538, + "line": 559, "column": 47 } } }, "range": [ - 19624, - 19643 + 20309, + 20328 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 28 }, "end": { - "line": 538, + "line": 559, "column": 47 } } }, "range": [ - 19606, - 19644 + 20291, + 20329 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 10 }, "end": { - "line": 538, + "line": 559, "column": 48 } } @@ -36856,46 +38752,46 @@ "value": null, "raw": "null", "range": [ - 19647, - 19651 + 20332, + 20336 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 51 }, "end": { - "line": 538, + "line": 559, "column": 55 } } }, "range": [ - 19606, - 19651 + 20291, + 20336 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 10 }, "end": { - "line": 538, + "line": 559, "column": 55 } } }, "range": [ - 19606, - 19652 + 20291, + 20337 ], "loc": { "start": { - "line": 538, + "line": 559, "column": 10 }, "end": { - "line": 538, + "line": 559, "column": 56 } } @@ -36904,48 +38800,48 @@ "type": "BreakStatement", "label": null, "range": [ - 19663, - 19669 + 20348, + 20354 ], "loc": { "start": { - "line": 539, + "line": 560, "column": 10 }, "end": { - "line": 539, + "line": 560, "column": 16 } } } ], "range": [ - 19594, - 19679 + 20279, + 20364 ], "loc": { "start": { - "line": 537, + "line": 558, "column": 24 }, "end": { - "line": 540, + "line": 561, "column": 9 } } } ], "range": [ - 19578, - 19679 + 20263, + 20364 ], "loc": { "start": { - "line": 537, + "line": 558, "column": 8 }, "end": { - "line": 540, + "line": 561, "column": 9 } } @@ -36957,16 +38853,16 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 19693, - 19703 + 20378, + 20388 ], "loc": { "start": { - "line": 541, + "line": 562, "column": 13 }, "end": { - "line": 541, + "line": 562, "column": 23 } } @@ -36984,16 +38880,16 @@ "type": "Identifier", "name": "index", "range": [ - 19721, - 19726 + 20406, + 20411 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 14 }, "end": { - "line": 542, + "line": 563, "column": 19 } } @@ -37010,16 +38906,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 19729, - 19746 + 20414, + 20431 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 22 }, "end": { - "line": 542, + "line": 563, "column": 39 } } @@ -37031,16 +38927,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19747, - 19756 + 20432, + 20441 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 40 }, "end": { - "line": 542, + "line": 563, "column": 49 } } @@ -37049,46 +38945,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 19757, - 19766 + 20442, + 20451 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 50 }, "end": { - "line": 542, + "line": 563, "column": 59 } } }, "range": [ - 19747, - 19766 + 20432, + 20451 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 40 }, "end": { - "line": 542, + "line": 563, "column": 59 } } }, "range": [ - 19729, - 19767 + 20414, + 20452 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 22 }, "end": { - "line": 542, + "line": 563, "column": 60 } } @@ -37097,31 +38993,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 19768, - 19775 + 20453, + 20460 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 61 }, "end": { - "line": 542, + "line": 563, "column": 68 } } }, "range": [ - 19729, - 19775 + 20414, + 20460 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 22 }, "end": { - "line": 542, + "line": 563, "column": 68 } } @@ -37131,47 +39027,47 @@ "type": "Identifier", "name": "resource", "range": [ - 19776, - 19784 + 20461, + 20469 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 69 }, "end": { - "line": 542, + "line": 563, "column": 77 } } } ], "range": [ - 19729, - 19785 + 20414, + 20470 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 22 }, "end": { - "line": 542, + "line": 563, "column": 78 } } }, "range": [ - 19721, - 19785 + 20406, + 20470 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 14 }, "end": { - "line": 542, + "line": 563, "column": 78 } } @@ -37179,16 +39075,16 @@ ], "kind": "let", "range": [ - 19717, - 19786 + 20402, + 20471 ], "loc": { "start": { - "line": 542, + "line": 563, "column": 10 }, "end": { - "line": 542, + "line": 563, "column": 79 } } @@ -37202,16 +39098,16 @@ "type": "Identifier", "name": "index", "range": [ - 19801, - 19806 + 20486, + 20491 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 14 }, "end": { - "line": 543, + "line": 564, "column": 19 } } @@ -37224,47 +39120,47 @@ "value": 1, "raw": "1", "range": [ - 19812, - 19813 + 20497, + 20498 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 25 }, "end": { - "line": 543, + "line": 564, "column": 26 } } }, "prefix": true, "range": [ - 19811, - 19813 + 20496, + 20498 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 24 }, "end": { - "line": 543, + "line": 564, "column": 26 } } }, "range": [ - 19801, - 19813 + 20486, + 20498 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 14 }, "end": { - "line": 543, + "line": 564, "column": 26 } } @@ -37286,16 +39182,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 19829, - 19846 + 20514, + 20531 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 12 }, "end": { - "line": 544, + "line": 565, "column": 29 } } @@ -37307,16 +39203,16 @@ "type": "Identifier", "name": "dependent", "range": [ - 19847, - 19856 + 20532, + 20541 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 30 }, "end": { - "line": 544, + "line": 565, "column": 39 } } @@ -37325,46 +39221,46 @@ "type": "Identifier", "name": "fieldName", "range": [ - 19857, - 19866 + 20542, + 20551 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 40 }, "end": { - "line": 544, + "line": 565, "column": 49 } } }, "range": [ - 19847, - 19866 + 20532, + 20551 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 30 }, "end": { - "line": 544, + "line": 565, "column": 49 } } }, "range": [ - 19829, - 19867 + 20514, + 20552 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 12 }, "end": { - "line": 544, + "line": 565, "column": 50 } } @@ -37373,31 +39269,31 @@ "type": "Identifier", "name": "splice", "range": [ - 19868, - 19874 + 20553, + 20559 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 51 }, "end": { - "line": 544, + "line": 565, "column": 57 } } }, "range": [ - 19829, - 19874 + 20514, + 20559 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 12 }, "end": { - "line": 544, + "line": 565, "column": 57 } } @@ -37407,16 +39303,16 @@ "type": "Identifier", "name": "index", "range": [ - 19875, - 19880 + 20560, + 20565 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 58 }, "end": { - "line": 544, + "line": 565, "column": 63 } } @@ -37426,79 +39322,79 @@ "value": 1, "raw": "1", "range": [ - 19882, - 19883 + 20567, + 20568 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 65 }, "end": { - "line": 544, + "line": 565, "column": 66 } } } ], "range": [ - 19829, - 19884 + 20514, + 20569 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 12 }, "end": { - "line": 544, + "line": 565, "column": 67 } } }, "range": [ - 19829, - 19885 + 20514, + 20570 ], "loc": { "start": { - "line": 544, + "line": 565, "column": 12 }, "end": { - "line": 544, + "line": 565, "column": 68 } } } ], "range": [ - 19815, - 19897 + 20500, + 20582 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 28 }, "end": { - "line": 545, + "line": 566, "column": 11 } } }, "alternate": null, "range": [ - 19797, - 19897 + 20482, + 20582 ], "loc": { "start": { - "line": 543, + "line": 564, "column": 10 }, "end": { - "line": 545, + "line": 566, "column": 11 } } @@ -37507,48 +39403,48 @@ "type": "BreakStatement", "label": null, "range": [ - 19908, - 19914 + 20593, + 20599 ], "loc": { "start": { - "line": 546, + "line": 567, "column": 10 }, "end": { - "line": 546, + "line": 567, "column": 16 } } } ], "range": [ - 19705, - 19924 + 20390, + 20609 ], "loc": { "start": { - "line": 541, + "line": 562, "column": 25 }, "end": { - "line": 547, + "line": 568, "column": 9 } } } ], "range": [ - 19688, - 19924 + 20373, + 20609 ], "loc": { "start": { - "line": 541, + "line": 562, "column": 8 }, "end": { - "line": 547, + "line": 568, "column": 9 } } @@ -37564,64 +39460,64 @@ "type": "BreakStatement", "label": null, "range": [ - 19954, - 19960 + 20639, + 20645 ], "loc": { "start": { - "line": 549, + "line": 570, "column": 10 }, "end": { - "line": 549, + "line": 570, "column": 16 } } } ], "range": [ - 19942, - 19970 + 20627, + 20655 ], "loc": { "start": { - "line": 548, + "line": 569, "column": 17 }, "end": { - "line": 550, + "line": 571, "column": 9 } } } ], "range": [ - 19933, - 19970 + 20618, + 20655 ], "loc": { "start": { - "line": 548, + "line": 569, "column": 8 }, "end": { - "line": 550, + "line": 571, "column": 9 } } } ], "range": [ - 19505, - 19978 + 20190, + 20663 ], "loc": { "start": { - "line": 536, + "line": 557, "column": 6 }, "end": { - "line": 551, + "line": 572, "column": 7 } }, @@ -37630,16 +39526,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 19985, - 20044 + 20670, + 20729 ], "loc": { "start": { - "line": 552, + "line": 573, "column": 6 }, "end": { - "line": 552, + "line": 573, "column": 65 } } @@ -37658,16 +39554,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 20051, - 20068 + 20736, + 20753 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 6 }, "end": { - "line": 553, + "line": 574, "column": 23 } } @@ -37676,31 +39572,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20069, - 20080 + 20754, + 20765 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 24 }, "end": { - "line": 553, + "line": 574, "column": 35 } } }, "range": [ - 20051, - 20080 + 20736, + 20765 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 6 }, "end": { - "line": 553, + "line": 574, "column": 35 } } @@ -37717,16 +39613,16 @@ "type": "Identifier", "name": "dependentResource", "range": [ - 20083, - 20100 + 20768, + 20785 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 38 }, "end": { - "line": 553, + "line": 574, "column": 55 } } @@ -37735,31 +39631,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20101, - 20112 + 20786, + 20797 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 56 }, "end": { - "line": 553, + "line": 574, "column": 67 } } }, "range": [ - 20083, - 20112 + 20768, + 20797 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 38 }, "end": { - "line": 553, + "line": 574, "column": 67 } } @@ -37768,31 +39664,31 @@ "type": "Identifier", "name": "filter", "range": [ - 20113, - 20119 + 20798, + 20804 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 68 }, "end": { - "line": 553, + "line": 574, "column": 74 } } }, "range": [ - 20083, - 20119 + 20768, + 20804 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 38 }, "end": { - "line": 553, + "line": 574, "column": 74 } } @@ -37806,16 +39702,16 @@ "type": "Identifier", "name": "d", "range": [ - 20120, - 20121 + 20805, + 20806 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 75 }, "end": { - "line": 553, + "line": 574, "column": 76 } } @@ -37842,16 +39738,16 @@ "type": "Identifier", "name": "d", "range": [ - 20144, - 20145 + 20829, + 20830 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 17 }, "end": { - "line": 554, + "line": 575, "column": 18 } } @@ -37860,31 +39756,31 @@ "type": "Identifier", "name": "type", "range": [ - 20146, - 20150 + 20831, + 20835 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 19 }, "end": { - "line": 554, + "line": 575, "column": 23 } } }, "range": [ - 20144, - 20150 + 20829, + 20835 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 17 }, "end": { - "line": 554, + "line": 575, "column": 23 } } @@ -37896,16 +39792,16 @@ "type": "Identifier", "name": "resource", "range": [ - 20155, - 20163 + 20840, + 20848 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 28 }, "end": { - "line": 554, + "line": 575, "column": 36 } } @@ -37914,46 +39810,46 @@ "type": "Identifier", "name": "type", "range": [ - 20164, - 20168 + 20849, + 20853 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 37 }, "end": { - "line": 554, + "line": 575, "column": 41 } } }, "range": [ - 20155, - 20168 + 20840, + 20853 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 28 }, "end": { - "line": 554, + "line": 575, "column": 41 } } }, "range": [ - 20144, - 20168 + 20829, + 20853 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 17 }, "end": { - "line": 554, + "line": 575, "column": 41 } } @@ -37968,16 +39864,16 @@ "type": "Identifier", "name": "d", "range": [ - 20172, - 20173 + 20857, + 20858 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 45 }, "end": { - "line": 554, + "line": 575, "column": 46 } } @@ -37986,31 +39882,31 @@ "type": "Identifier", "name": "id", "range": [ - 20174, - 20176 + 20859, + 20861 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 47 }, "end": { - "line": 554, + "line": 575, "column": 49 } } }, "range": [ - 20172, - 20176 + 20857, + 20861 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 45 }, "end": { - "line": 554, + "line": 575, "column": 49 } } @@ -38022,16 +39918,16 @@ "type": "Identifier", "name": "resource", "range": [ - 20181, - 20189 + 20866, + 20874 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 54 }, "end": { - "line": 554, + "line": 575, "column": 62 } } @@ -38040,108 +39936,108 @@ "type": "Identifier", "name": "id", "range": [ - 20190, - 20192 + 20875, + 20877 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 63 }, "end": { - "line": 554, + "line": 575, "column": 65 } } }, "range": [ - 20181, - 20192 + 20866, + 20877 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 54 }, "end": { - "line": 554, + "line": 575, "column": 65 } } }, "range": [ - 20172, - 20192 + 20857, + 20877 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 45 }, "end": { - "line": 554, + "line": 575, "column": 65 } } }, "range": [ - 20144, - 20192 + 20829, + 20877 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 17 }, "end": { - "line": 554, + "line": 575, "column": 65 } } }, "prefix": true, "range": [ - 20142, - 20193 + 20827, + 20878 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 15 }, "end": { - "line": 554, + "line": 575, "column": 66 } } }, "range": [ - 20135, - 20194 + 20820, + 20879 ], "loc": { "start": { - "line": 554, + "line": 575, "column": 8 }, "end": { - "line": 554, + "line": 575, "column": 67 } } } ], "range": [ - 20125, - 20202 + 20810, + 20887 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 80 }, "end": { - "line": 555, + "line": 576, "column": 7 } } @@ -38149,62 +40045,62 @@ "generator": false, "expression": false, "range": [ - 20120, - 20202 + 20805, + 20887 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 75 }, "end": { - "line": 555, + "line": 576, "column": 7 } } } ], "range": [ - 20083, - 20203 + 20768, + 20888 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 38 }, "end": { - "line": 555, + "line": 576, "column": 8 } } }, "range": [ - 20051, - 20203 + 20736, + 20888 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 6 }, "end": { - "line": 555, + "line": 576, "column": 8 } } }, "range": [ - 20051, - 20204 + 20736, + 20889 ], "loc": { "start": { - "line": 553, + "line": 574, "column": 6 }, "end": { - "line": 555, + "line": 576, "column": 9 } }, @@ -38213,16 +40109,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 19985, - 20044 + 20670, + 20729 ], "loc": { "start": { - "line": 552, + "line": 573, "column": 6 }, "end": { - "line": 552, + "line": 573, "column": 65 } } @@ -38231,16 +40127,16 @@ } ], "range": [ - 19425, - 20210 + 20110, + 20895 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 46 }, "end": { - "line": 556, + "line": 577, "column": 5 } } @@ -38248,47 +40144,47 @@ "generator": false, "expression": false, "range": [ - 19412, - 20210 + 20097, + 20895 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 33 }, "end": { - "line": 556, + "line": 577, "column": 5 } } } ], "range": [ - 19383, - 20211 + 20068, + 20896 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 4 }, "end": { - "line": 556, + "line": 577, "column": 6 } } }, "range": [ - 19383, - 20212 + 20068, + 20897 ], "loc": { "start": { - "line": 534, + "line": 555, "column": 4 }, "end": { - "line": 556, + "line": 577, "column": 7 } } @@ -38310,16 +40206,16 @@ "object": { "type": "ThisExpression", "range": [ - 20224, - 20228 + 20909, + 20913 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 11 }, "end": { - "line": 557, + "line": 578, "column": 15 } } @@ -38328,31 +40224,31 @@ "type": "Identifier", "name": "_data", "range": [ - 20229, - 20234 + 20914, + 20919 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 16 }, "end": { - "line": 557, + "line": 578, "column": 21 } } }, "range": [ - 20224, - 20234 + 20909, + 20919 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 11 }, "end": { - "line": 557, + "line": 578, "column": 21 } } @@ -38364,16 +40260,16 @@ "type": "Identifier", "name": "resource", "range": [ - 20235, - 20243 + 20920, + 20928 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 22 }, "end": { - "line": 557, + "line": 578, "column": 30 } } @@ -38382,46 +40278,46 @@ "type": "Identifier", "name": "type", "range": [ - 20244, - 20248 + 20929, + 20933 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 31 }, "end": { - "line": 557, + "line": 578, "column": 35 } } }, "range": [ - 20235, - 20248 + 20920, + 20933 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 22 }, "end": { - "line": 557, + "line": 578, "column": 35 } } }, "range": [ - 20224, - 20249 + 20909, + 20934 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 11 }, "end": { - "line": 557, + "line": 578, "column": 36 } } @@ -38433,16 +40329,16 @@ "type": "Identifier", "name": "resource", "range": [ - 20250, - 20258 + 20935, + 20943 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 37 }, "end": { - "line": 557, + "line": 578, "column": 45 } } @@ -38451,93 +40347,93 @@ "type": "Identifier", "name": "id", "range": [ - 20259, - 20261 + 20944, + 20946 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 46 }, "end": { - "line": 557, + "line": 578, "column": 48 } } }, "range": [ - 20250, - 20261 + 20935, + 20946 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 37 }, "end": { - "line": 557, + "line": 578, "column": 48 } } }, "range": [ - 20224, - 20262 + 20909, + 20947 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 11 }, "end": { - "line": 557, + "line": 578, "column": 49 } } }, "prefix": true, "range": [ - 20217, - 20262 + 20902, + 20947 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 4 }, "end": { - "line": 557, + "line": 578, "column": 49 } } }, "range": [ - 20217, - 20263 + 20902, + 20948 ], "loc": { "start": { - "line": 557, + "line": 578, "column": 4 }, "end": { - "line": 557, + "line": 578, "column": 50 } } } ], "range": [ - 19377, - 20267 + 20062, + 20952 ], "loc": { "start": { - "line": 533, + "line": 554, "column": 20 }, "end": { - "line": 558, + "line": 579, "column": 3 } } @@ -38545,16 +40441,16 @@ "generator": false, "expression": false, "range": [ - 19366, - 20267 + 20051, + 20952 ], "loc": { "start": { - "line": 533, + "line": 554, "column": 9 }, "end": { - "line": 558, + "line": 579, "column": 3 } } @@ -38562,16 +40458,16 @@ "kind": "method", "computed": false, "range": [ - 19359, - 20267 + 20044, + 20952 ], "loc": { "start": { - "line": 533, + "line": 554, "column": 2 }, "end": { - "line": 558, + "line": 579, "column": 3 } }, @@ -38583,16 +40479,16 @@ "type": "Identifier", "name": "_removeInverseRelationship", "range": [ - 20271, - 20297 + 20956, + 20982 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 2 }, "end": { - "line": 560, + "line": 581, "column": 28 } } @@ -38605,16 +40501,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20298, - 20312 + 20983, + 20997 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 29 }, "end": { - "line": 560, + "line": 581, "column": 43 } } @@ -38623,16 +40519,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 20314, - 20329 + 20999, + 21014 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 45 }, "end": { - "line": 560, + "line": 581, "column": 60 } } @@ -38641,16 +40537,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20331, - 20345 + 21016, + 21030 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 62 }, "end": { - "line": 560, + "line": 581, "column": 76 } } @@ -38659,16 +40555,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 20347, - 20358 + 21032, + 21043 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 78 }, "end": { - "line": 560, + "line": 581, "column": 89 } } @@ -38686,16 +40582,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 20370, - 20386 + 21055, + 21071 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 8 }, "end": { - "line": 561, + "line": 582, "column": 24 } } @@ -38709,16 +40605,16 @@ "object": { "type": "ThisExpression", "range": [ - 20389, - 20393 + 21074, + 21078 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 27 }, "end": { - "line": 561, + "line": 582, "column": 31 } } @@ -38727,31 +40623,31 @@ "type": "Identifier", "name": "_types", "range": [ - 20394, - 20400 + 21079, + 21085 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 32 }, "end": { - "line": 561, + "line": 582, "column": 38 } } }, "range": [ - 20389, - 20400 + 21074, + 21085 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 27 }, "end": { - "line": 561, + "line": 582, "column": 38 } } @@ -38763,16 +40659,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20401, - 20415 + 21086, + 21100 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 39 }, "end": { - "line": 561, + "line": 582, "column": 53 } } @@ -38781,61 +40677,61 @@ "type": "Identifier", "name": "type", "range": [ - 20416, - 20420 + 21101, + 21105 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 54 }, "end": { - "line": 561, + "line": 582, "column": 58 } } }, "range": [ - 20401, - 20420 + 21086, + 21105 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 39 }, "end": { - "line": 561, + "line": 582, "column": 58 } } }, "range": [ - 20389, - 20421 + 21074, + 21106 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 27 }, "end": { - "line": 561, + "line": 582, "column": 59 } } }, "range": [ - 20370, - 20421 + 21055, + 21106 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 8 }, "end": { - "line": 561, + "line": 582, "column": 59 } } @@ -38843,16 +40739,16 @@ ], "kind": "var", "range": [ - 20366, - 20422 + 21051, + 21107 ], "loc": { "start": { - "line": 561, + "line": 582, "column": 4 }, "end": { - "line": 561, + "line": 582, "column": 60 } } @@ -38866,16 +40762,16 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 20431, - 20446 + 21116, + 21131 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 8 }, "end": { - "line": 562, + "line": 583, "column": 23 } } @@ -38890,16 +40786,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 20449, - 20460 + 21134, + 21145 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 26 }, "end": { - "line": 562, + "line": 583, "column": 37 } } @@ -38908,31 +40804,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 20461, - 20468 + 21146, + 21153 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 38 }, "end": { - "line": 562, + "line": 583, "column": 45 } } }, "range": [ - 20449, - 20468 + 21134, + 21153 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 26 }, "end": { - "line": 562, + "line": 583, "column": 45 } } @@ -38944,16 +40840,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20472, - 20486 + 21157, + 21171 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 49 }, "end": { - "line": 562, + "line": 583, "column": 63 } } @@ -38962,61 +40858,61 @@ "type": "Identifier", "name": "type", "range": [ - 20487, - 20491 + 21172, + 21176 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 64 }, "end": { - "line": 562, + "line": 583, "column": 68 } } }, "range": [ - 20472, - 20491 + 21157, + 21176 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 49 }, "end": { - "line": 562, + "line": 583, "column": 68 } } }, "range": [ - 20449, - 20491 + 21134, + 21176 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 26 }, "end": { - "line": 562, + "line": 583, "column": 68 } } }, "range": [ - 20431, - 20491 + 21116, + 21176 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 8 }, "end": { - "line": 562, + "line": 583, "column": 68 } } @@ -39024,16 +40920,16 @@ ], "kind": "var", "range": [ - 20427, - 20492 + 21112, + 21177 ], "loc": { "start": { - "line": 562, + "line": 583, "column": 4 }, "end": { - "line": 562, + "line": 583, "column": 69 } } @@ -39047,16 +40943,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 20501, - 20512 + 21186, + 21197 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 8 }, "end": { - "line": 563, + "line": 584, "column": 19 } } @@ -39068,16 +40964,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 20515, - 20531 + 21200, + 21216 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 22 }, "end": { - "line": 563, + "line": 584, "column": 38 } } @@ -39089,16 +40985,16 @@ "type": "Identifier", "name": "targetDefinition", "range": [ - 20535, - 20551 + 21220, + 21236 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 42 }, "end": { - "line": 563, + "line": 584, "column": 58 } } @@ -39107,61 +41003,61 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 20552, - 20567 + 21237, + 21252 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 59 }, "end": { - "line": 563, + "line": 584, "column": 74 } } }, "range": [ - 20535, - 20568 + 21220, + 21253 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 42 }, "end": { - "line": 563, + "line": 584, "column": 75 } } }, "range": [ - 20515, - 20568 + 21200, + 21253 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 22 }, "end": { - "line": 563, + "line": 584, "column": 75 } } }, "range": [ - 20501, - 20568 + 21186, + 21253 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 8 }, "end": { - "line": 563, + "line": 584, "column": 75 } } @@ -39169,16 +41065,16 @@ ], "kind": "var", "range": [ - 20497, - 20569 + 21182, + 21254 ], "loc": { "start": { - "line": 563, + "line": 584, "column": 4 }, "end": { - "line": 563, + "line": 584, "column": 76 } } @@ -39195,16 +41091,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20574, - 20588 + 21259, + 21273 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 4 }, "end": { - "line": 564, + "line": 585, "column": 18 } } @@ -39213,31 +41109,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20589, - 20600 + 21274, + 21285 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 19 }, "end": { - "line": 564, + "line": 585, "column": 30 } } }, "range": [ - 20574, - 20600 + 21259, + 21285 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 4 }, "end": { - "line": 564, + "line": 585, "column": 30 } } @@ -39254,16 +41150,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20603, - 20617 + 21288, + 21302 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 33 }, "end": { - "line": 564, + "line": 585, "column": 47 } } @@ -39272,31 +41168,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20618, - 20629 + 21303, + 21314 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 48 }, "end": { - "line": 564, + "line": 585, "column": 59 } } }, "range": [ - 20603, - 20629 + 21288, + 21314 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 33 }, "end": { - "line": 564, + "line": 585, "column": 59 } } @@ -39305,31 +41201,31 @@ "type": "Identifier", "name": "filter", "range": [ - 20630, - 20636 + 21315, + 21321 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 60 }, "end": { - "line": 564, + "line": 585, "column": 66 } } }, "range": [ - 20603, - 20636 + 21288, + 21321 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 33 }, "end": { - "line": 564, + "line": 585, "column": 66 } } @@ -39343,16 +41239,16 @@ "type": "Identifier", "name": "r", "range": [ - 20637, - 20638 + 21322, + 21323 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 67 }, "end": { - "line": 564, + "line": 585, "column": 68 } } @@ -39382,16 +41278,16 @@ "type": "Identifier", "name": "r", "range": [ - 20659, - 20660 + 21344, + 21345 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 15 }, "end": { - "line": 565, + "line": 586, "column": 16 } } @@ -39400,31 +41296,31 @@ "type": "Identifier", "name": "type", "range": [ - 20661, - 20665 + 21346, + 21350 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 17 }, "end": { - "line": 565, + "line": 586, "column": 21 } } }, "range": [ - 20659, - 20665 + 21344, + 21350 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 15 }, "end": { - "line": 565, + "line": 586, "column": 21 } } @@ -39436,16 +41332,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20670, - 20684 + 21355, + 21369 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 26 }, "end": { - "line": 565, + "line": 586, "column": 40 } } @@ -39454,46 +41350,46 @@ "type": "Identifier", "name": "type", "range": [ - 20685, - 20689 + 21370, + 21374 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 41 }, "end": { - "line": 565, + "line": 586, "column": 45 } } }, "range": [ - 20670, - 20689 + 21355, + 21374 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 26 }, "end": { - "line": 565, + "line": 586, "column": 45 } } }, "range": [ - 20659, - 20689 + 21344, + 21374 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 15 }, "end": { - "line": 565, + "line": 586, "column": 45 } } @@ -39508,16 +41404,16 @@ "type": "Identifier", "name": "r", "range": [ - 20693, - 20694 + 21378, + 21379 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 49 }, "end": { - "line": 565, + "line": 586, "column": 50 } } @@ -39526,31 +41422,31 @@ "type": "Identifier", "name": "id", "range": [ - 20695, - 20697 + 21380, + 21382 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 51 }, "end": { - "line": 565, + "line": 586, "column": 53 } } }, "range": [ - 20693, - 20697 + 21378, + 21382 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 49 }, "end": { - "line": 565, + "line": 586, "column": 53 } } @@ -39562,16 +41458,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20702, - 20716 + 21387, + 21401 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 58 }, "end": { - "line": 565, + "line": 586, "column": 72 } } @@ -39580,61 +41476,61 @@ "type": "Identifier", "name": "id", "range": [ - 20717, - 20719 + 21402, + 21404 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 73 }, "end": { - "line": 565, + "line": 586, "column": 75 } } }, "range": [ - 20702, - 20719 + 21387, + 21404 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 58 }, "end": { - "line": 565, + "line": 586, "column": 75 } } }, "range": [ - 20693, - 20719 + 21378, + 21404 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 49 }, "end": { - "line": 565, + "line": 586, "column": 75 } } }, "range": [ - 20659, - 20719 + 21344, + 21404 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 15 }, "end": { - "line": 565, + "line": 586, "column": 75 } } @@ -39649,16 +41545,16 @@ "type": "Identifier", "name": "r", "range": [ - 20723, - 20724 + 21408, + 21409 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 79 }, "end": { - "line": 565, + "line": 586, "column": 80 } } @@ -39667,31 +41563,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 20725, - 20734 + 21410, + 21419 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 81 }, "end": { - "line": 565, + "line": 586, "column": 90 } } }, "range": [ - 20723, - 20734 + 21408, + 21419 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 79 }, "end": { - "line": 565, + "line": 586, "column": 90 } } @@ -39700,93 +41596,93 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 20739, - 20754 + 21424, + 21439 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 95 }, "end": { - "line": 565, + "line": 586, "column": 110 } } }, "range": [ - 20723, - 20754 + 21408, + 21439 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 79 }, "end": { - "line": 565, + "line": 586, "column": 110 } } }, "range": [ - 20659, - 20754 + 21344, + 21439 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 15 }, "end": { - "line": 565, + "line": 586, "column": 110 } } }, "prefix": true, "range": [ - 20657, - 20755 + 21342, + 21440 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 13 }, "end": { - "line": 565, + "line": 586, "column": 111 } } }, "range": [ - 20650, - 20756 + 21335, + 21441 ], "loc": { "start": { - "line": 565, + "line": 586, "column": 6 }, "end": { - "line": 565, + "line": 586, "column": 112 } } } ], "range": [ - 20642, - 20762 + 21327, + 21447 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 72 }, "end": { - "line": 566, + "line": 587, "column": 5 } } @@ -39794,62 +41690,62 @@ "generator": false, "expression": false, "range": [ - 20637, - 20762 + 21322, + 21447 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 67 }, "end": { - "line": 566, + "line": 587, "column": 5 } } } ], "range": [ - 20603, - 20763 + 21288, + 21448 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 33 }, "end": { - "line": 566, + "line": 587, "column": 6 } } }, "range": [ - 20574, - 20763 + 21259, + 21448 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 4 }, "end": { - "line": 566, + "line": 587, "column": 6 } } }, "range": [ - 20574, - 20764 + 21259, + 21449 ], "loc": { "start": { - "line": 564, + "line": 585, "column": 4 }, "end": { - "line": 566, + "line": 587, "column": 7 } } @@ -39860,16 +41756,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 20773, - 20784 + 21458, + 21469 ], "loc": { "start": { - "line": 567, + "line": 588, "column": 8 }, "end": { - "line": 567, + "line": 588, "column": 19 } } @@ -39889,16 +41785,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 20798, - 20809 + 21483, + 21494 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 10 }, "end": { - "line": 568, + "line": 589, "column": 21 } } @@ -39907,31 +41803,31 @@ "type": "Identifier", "name": "type", "range": [ - 20810, - 20814 + 21495, + 21499 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 22 }, "end": { - "line": 568, + "line": 589, "column": 26 } } }, "range": [ - 20798, - 20814 + 21483, + 21499 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 10 }, "end": { - "line": 568, + "line": 589, "column": 26 } } @@ -39941,31 +41837,31 @@ "value": "has-one", "raw": "\"has-one\"", "range": [ - 20819, - 20828 + 21504, + 21513 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 31 }, "end": { - "line": 568, + "line": 589, "column": 40 } } }, "range": [ - 20798, - 20828 + 21483, + 21513 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 10 }, "end": { - "line": 568, + "line": 589, "column": 40 } } @@ -39985,16 +41881,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20840, - 20854 + 21525, + 21539 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 8 }, "end": { - "line": 569, + "line": 590, "column": 22 } } @@ -40003,31 +41899,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20855, - 20866 + 21540, + 21551 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 23 }, "end": { - "line": 569, + "line": 590, "column": 34 } } }, "range": [ - 20840, - 20866 + 21525, + 21551 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 8 }, "end": { - "line": 569, + "line": 590, "column": 34 } } @@ -40044,16 +41940,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 20869, - 20883 + 21554, + 21568 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 37 }, "end": { - "line": 569, + "line": 590, "column": 51 } } @@ -40062,31 +41958,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 20884, - 20895 + 21569, + 21580 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 52 }, "end": { - "line": 569, + "line": 590, "column": 63 } } }, "range": [ - 20869, - 20895 + 21554, + 21580 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 37 }, "end": { - "line": 569, + "line": 590, "column": 63 } } @@ -40095,31 +41991,31 @@ "type": "Identifier", "name": "filter", "range": [ - 20896, - 20902 + 21581, + 21587 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 64 }, "end": { - "line": 569, + "line": 590, "column": 70 } } }, "range": [ - 20869, - 20902 + 21554, + 21587 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 37 }, "end": { - "line": 569, + "line": 590, "column": 70 } } @@ -40133,16 +42029,16 @@ "type": "Identifier", "name": "r", "range": [ - 20903, - 20904 + 21588, + 21589 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 71 }, "end": { - "line": 569, + "line": 590, "column": 72 } } @@ -40172,16 +42068,16 @@ "type": "Identifier", "name": "r", "range": [ - 20929, - 20930 + 21614, + 21615 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 19 }, "end": { - "line": 570, + "line": 591, "column": 20 } } @@ -40190,31 +42086,31 @@ "type": "Identifier", "name": "type", "range": [ - 20931, - 20935 + 21616, + 21620 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 21 }, "end": { - "line": 570, + "line": 591, "column": 25 } } }, "range": [ - 20929, - 20935 + 21614, + 21620 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 19 }, "end": { - "line": 570, + "line": 591, "column": 25 } } @@ -40226,16 +42122,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20940, - 20954 + 21625, + 21639 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 30 }, "end": { - "line": 570, + "line": 591, "column": 44 } } @@ -40244,46 +42140,46 @@ "type": "Identifier", "name": "type", "range": [ - 20955, - 20959 + 21640, + 21644 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 45 }, "end": { - "line": 570, + "line": 591, "column": 49 } } }, "range": [ - 20940, - 20959 + 21625, + 21644 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 30 }, "end": { - "line": 570, + "line": 591, "column": 49 } } }, "range": [ - 20929, - 20959 + 21614, + 21644 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 19 }, "end": { - "line": 570, + "line": 591, "column": 49 } } @@ -40298,16 +42194,16 @@ "type": "Identifier", "name": "r", "range": [ - 20963, - 20964 + 21648, + 21649 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 53 }, "end": { - "line": 570, + "line": 591, "column": 54 } } @@ -40316,31 +42212,31 @@ "type": "Identifier", "name": "id", "range": [ - 20965, - 20967 + 21650, + 21652 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 55 }, "end": { - "line": 570, + "line": 591, "column": 57 } } }, "range": [ - 20963, - 20967 + 21648, + 21652 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 53 }, "end": { - "line": 570, + "line": 591, "column": 57 } } @@ -40352,16 +42248,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 20972, - 20986 + 21657, + 21671 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 62 }, "end": { - "line": 570, + "line": 591, "column": 76 } } @@ -40370,61 +42266,61 @@ "type": "Identifier", "name": "id", "range": [ - 20987, - 20989 + 21672, + 21674 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 77 }, "end": { - "line": 570, + "line": 591, "column": 79 } } }, "range": [ - 20972, - 20989 + 21657, + 21674 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 62 }, "end": { - "line": 570, + "line": 591, "column": 79 } } }, "range": [ - 20963, - 20989 + 21648, + 21674 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 53 }, "end": { - "line": 570, + "line": 591, "column": 79 } } }, "range": [ - 20929, - 20989 + 21614, + 21674 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 19 }, "end": { - "line": 570, + "line": 591, "column": 79 } } @@ -40439,16 +42335,16 @@ "type": "Identifier", "name": "r", "range": [ - 20993, - 20994 + 21678, + 21679 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 83 }, "end": { - "line": 570, + "line": 591, "column": 84 } } @@ -40457,31 +42353,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 20995, - 21004 + 21680, + 21689 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 85 }, "end": { - "line": 570, + "line": 591, "column": 94 } } }, "range": [ - 20993, - 21004 + 21678, + 21689 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 83 }, "end": { - "line": 570, + "line": 591, "column": 94 } } @@ -40490,93 +42386,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21009, - 21024 + 21694, + 21709 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 99 }, "end": { - "line": 570, + "line": 591, "column": 114 } } }, "range": [ - 20993, - 21024 + 21678, + 21709 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 83 }, "end": { - "line": 570, + "line": 591, "column": 114 } } }, "range": [ - 20929, - 21024 + 21614, + 21709 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 19 }, "end": { - "line": 570, + "line": 591, "column": 114 } } }, "prefix": true, "range": [ - 20927, - 21025 + 21612, + 21710 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 17 }, "end": { - "line": 570, + "line": 591, "column": 115 } } }, "range": [ - 20920, - 21026 + 21605, + 21711 ], "loc": { "start": { - "line": 570, + "line": 591, "column": 10 }, "end": { - "line": 570, + "line": 591, "column": 116 } } } ], "range": [ - 20908, - 21036 + 21593, + 21721 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 76 }, "end": { - "line": 571, + "line": 592, "column": 9 } } @@ -40584,62 +42480,62 @@ "generator": false, "expression": false, "range": [ - 20903, - 21036 + 21588, + 21721 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 71 }, "end": { - "line": 571, + "line": 592, "column": 9 } } } ], "range": [ - 20869, - 21037 + 21554, + 21722 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 37 }, "end": { - "line": 571, + "line": 592, "column": 10 } } }, "range": [ - 20840, - 21037 + 21525, + 21722 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 8 }, "end": { - "line": 571, + "line": 592, "column": 10 } } }, "range": [ - 20840, - 21038 + 21525, + 21723 ], "loc": { "start": { - "line": 569, + "line": 590, "column": 8 }, "end": { - "line": 571, + "line": 592, "column": 11 } } @@ -40656,16 +42552,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 21047, - 21061 + 21732, + 21746 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 8 }, "end": { - "line": 572, + "line": 593, "column": 22 } } @@ -40674,31 +42570,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21062, - 21077 + 21747, + 21762 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 23 }, "end": { - "line": 572, + "line": 593, "column": 38 } } }, "range": [ - 21047, - 21078 + 21732, + 21763 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 8 }, "end": { - "line": 572, + "line": 593, "column": 39 } } @@ -40708,62 +42604,62 @@ "value": null, "raw": "null", "range": [ - 21081, - 21085 + 21766, + 21770 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 42 }, "end": { - "line": 572, + "line": 593, "column": 46 } } }, "range": [ - 21047, - 21085 + 21732, + 21770 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 8 }, "end": { - "line": 572, + "line": 593, "column": 46 } } }, "range": [ - 21047, - 21086 + 21732, + 21771 ], "loc": { "start": { - "line": 572, + "line": 593, "column": 8 }, "end": { - "line": 572, + "line": 593, "column": 47 } } } ], "range": [ - 20830, - 21094 + 21515, + 21779 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 42 }, "end": { - "line": 573, + "line": 594, "column": 7 } } @@ -40780,16 +42676,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 21104, - 21115 + 21789, + 21800 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 17 }, "end": { - "line": 573, + "line": 594, "column": 28 } } @@ -40798,31 +42694,31 @@ "type": "Identifier", "name": "type", "range": [ - 21116, - 21120 + 21801, + 21805 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 29 }, "end": { - "line": 573, + "line": 594, "column": 33 } } }, "range": [ - 21104, - 21120 + 21789, + 21805 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 17 }, "end": { - "line": 573, + "line": 594, "column": 33 } } @@ -40832,31 +42728,31 @@ "value": "has-many", "raw": "\"has-many\"", "range": [ - 21125, - 21135 + 21810, + 21820 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 38 }, "end": { - "line": 573, + "line": 594, "column": 48 } } }, "range": [ - 21104, - 21135 + 21789, + 21820 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 17 }, "end": { - "line": 573, + "line": 594, "column": 48 } } @@ -40876,16 +42772,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 21147, - 21161 + 21832, + 21846 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 8 }, "end": { - "line": 574, + "line": 595, "column": 22 } } @@ -40894,31 +42790,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 21162, - 21173 + 21847, + 21858 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 23 }, "end": { - "line": 574, + "line": 595, "column": 34 } } }, "range": [ - 21147, - 21173 + 21832, + 21858 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 8 }, "end": { - "line": 574, + "line": 595, "column": 34 } } @@ -40935,16 +42831,16 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 21176, - 21190 + 21861, + 21875 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 37 }, "end": { - "line": 574, + "line": 595, "column": 51 } } @@ -40953,31 +42849,31 @@ "type": "Identifier", "name": "_dependents", "range": [ - 21191, - 21202 + 21876, + 21887 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 52 }, "end": { - "line": 574, + "line": 595, "column": 63 } } }, "range": [ - 21176, - 21202 + 21861, + 21887 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 37 }, "end": { - "line": 574, + "line": 595, "column": 63 } } @@ -40986,31 +42882,31 @@ "type": "Identifier", "name": "filter", "range": [ - 21203, - 21209 + 21888, + 21894 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 64 }, "end": { - "line": 574, + "line": 595, "column": 70 } } }, "range": [ - 21176, - 21209 + 21861, + 21894 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 37 }, "end": { - "line": 574, + "line": 595, "column": 70 } } @@ -41024,16 +42920,16 @@ "type": "Identifier", "name": "r", "range": [ - 21210, - 21211 + 21895, + 21896 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 71 }, "end": { - "line": 574, + "line": 595, "column": 72 } } @@ -41063,16 +42959,16 @@ "type": "Identifier", "name": "r", "range": [ - 21236, - 21237 + 21921, + 21922 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 19 }, "end": { - "line": 575, + "line": 596, "column": 20 } } @@ -41081,31 +42977,31 @@ "type": "Identifier", "name": "type", "range": [ - 21238, - 21242 + 21923, + 21927 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 21 }, "end": { - "line": 575, + "line": 596, "column": 25 } } }, "range": [ - 21236, - 21242 + 21921, + 21927 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 19 }, "end": { - "line": 575, + "line": 596, "column": 25 } } @@ -41117,16 +43013,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 21247, - 21261 + 21932, + 21946 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 30 }, "end": { - "line": 575, + "line": 596, "column": 44 } } @@ -41135,46 +43031,46 @@ "type": "Identifier", "name": "type", "range": [ - 21262, - 21266 + 21947, + 21951 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 45 }, "end": { - "line": 575, + "line": 596, "column": 49 } } }, "range": [ - 21247, - 21266 + 21932, + 21951 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 30 }, "end": { - "line": 575, + "line": 596, "column": 49 } } }, "range": [ - 21236, - 21266 + 21921, + 21951 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 19 }, "end": { - "line": 575, + "line": 596, "column": 49 } } @@ -41189,16 +43085,16 @@ "type": "Identifier", "name": "r", "range": [ - 21270, - 21271 + 21955, + 21956 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 53 }, "end": { - "line": 575, + "line": 596, "column": 54 } } @@ -41207,31 +43103,31 @@ "type": "Identifier", "name": "id", "range": [ - 21272, - 21274 + 21957, + 21959 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 55 }, "end": { - "line": 575, + "line": 596, "column": 57 } } }, "range": [ - 21270, - 21274 + 21955, + 21959 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 53 }, "end": { - "line": 575, + "line": 596, "column": 57 } } @@ -41243,16 +43139,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 21279, - 21293 + 21964, + 21978 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 62 }, "end": { - "line": 575, + "line": 596, "column": 76 } } @@ -41261,61 +43157,61 @@ "type": "Identifier", "name": "id", "range": [ - 21294, - 21296 + 21979, + 21981 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 77 }, "end": { - "line": 575, + "line": 596, "column": 79 } } }, "range": [ - 21279, - 21296 + 21964, + 21981 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 62 }, "end": { - "line": 575, + "line": 596, "column": 79 } } }, "range": [ - 21270, - 21296 + 21955, + 21981 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 53 }, "end": { - "line": 575, + "line": 596, "column": 79 } } }, "range": [ - 21236, - 21296 + 21921, + 21981 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 19 }, "end": { - "line": 575, + "line": 596, "column": 79 } } @@ -41330,16 +43226,16 @@ "type": "Identifier", "name": "r", "range": [ - 21300, - 21301 + 21985, + 21986 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 83 }, "end": { - "line": 575, + "line": 596, "column": 84 } } @@ -41348,31 +43244,31 @@ "type": "Identifier", "name": "fieldName", "range": [ - 21302, - 21311 + 21987, + 21996 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 85 }, "end": { - "line": 575, + "line": 596, "column": 94 } } }, "range": [ - 21300, - 21311 + 21985, + 21996 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 83 }, "end": { - "line": 575, + "line": 596, "column": 94 } } @@ -41381,93 +43277,93 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21316, - 21331 + 22001, + 22016 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 99 }, "end": { - "line": 575, + "line": 596, "column": 114 } } }, "range": [ - 21300, - 21331 + 21985, + 22016 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 83 }, "end": { - "line": 575, + "line": 596, "column": 114 } } }, "range": [ - 21236, - 21331 + 21921, + 22016 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 19 }, "end": { - "line": 575, + "line": 596, "column": 114 } } }, "prefix": true, "range": [ - 21234, - 21332 + 21919, + 22017 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 17 }, "end": { - "line": 575, + "line": 596, "column": 115 } } }, "range": [ - 21227, - 21333 + 21912, + 22018 ], "loc": { "start": { - "line": 575, + "line": 596, "column": 10 }, "end": { - "line": 575, + "line": 596, "column": 116 } } } ], "range": [ - 21215, - 21343 + 21900, + 22028 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 76 }, "end": { - "line": 576, + "line": 597, "column": 9 } } @@ -41475,62 +43371,62 @@ "generator": false, "expression": false, "range": [ - 21210, - 21343 + 21895, + 22028 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 71 }, "end": { - "line": 576, + "line": 597, "column": 9 } } } ], "range": [ - 21176, - 21344 + 21861, + 22029 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 37 }, "end": { - "line": 576, + "line": 597, "column": 10 } } }, "range": [ - 21147, - 21344 + 21832, + 22029 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 8 }, "end": { - "line": 576, + "line": 597, "column": 10 } } }, "range": [ - 21147, - 21345 + 21832, + 22030 ], "loc": { "start": { - "line": 574, + "line": 595, "column": 8 }, "end": { - "line": 576, + "line": 597, "column": 11 } } @@ -41547,16 +43443,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 21354, - 21368 + 22039, + 22053 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 8 }, "end": { - "line": 577, + "line": 598, "column": 22 } } @@ -41565,31 +43461,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21369, - 21384 + 22054, + 22069 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 23 }, "end": { - "line": 577, + "line": 598, "column": 38 } } }, "range": [ - 21354, - 21385 + 22039, + 22070 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 8 }, "end": { - "line": 577, + "line": 598, "column": 39 } } @@ -41606,16 +43502,16 @@ "type": "Identifier", "name": "targetResource", "range": [ - 21388, - 21402 + 22073, + 22087 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 42 }, "end": { - "line": 577, + "line": 598, "column": 56 } } @@ -41624,31 +43520,31 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21403, - 21418 + 22088, + 22103 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 57 }, "end": { - "line": 577, + "line": 598, "column": 72 } } }, "range": [ - 21388, - 21419 + 22073, + 22104 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 42 }, "end": { - "line": 577, + "line": 598, "column": 73 } } @@ -41657,31 +43553,31 @@ "type": "Identifier", "name": "filter", "range": [ - 21420, - 21426 + 22105, + 22111 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 74 }, "end": { - "line": 577, + "line": 598, "column": 80 } } }, "range": [ - 21388, - 21426 + 22073, + 22111 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 42 }, "end": { - "line": 577, + "line": 598, "column": 80 } } @@ -41695,16 +43591,16 @@ "type": "Identifier", "name": "r", "range": [ - 21427, - 21428 + 22112, + 22113 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 81 }, "end": { - "line": 577, + "line": 598, "column": 82 } } @@ -41722,16 +43618,16 @@ "type": "Identifier", "name": "r", "range": [ - 21451, - 21452 + 22136, + 22137 ], "loc": { "start": { - "line": 578, + "line": 599, "column": 17 }, "end": { - "line": 578, + "line": 599, "column": 18 } } @@ -41740,62 +43636,62 @@ "type": "Identifier", "name": "sourceResource", "range": [ - 21457, - 21471 + 22142, + 22156 ], "loc": { "start": { - "line": 578, + "line": 599, "column": 23 }, "end": { - "line": 578, + "line": 599, "column": 37 } } }, "range": [ - 21451, - 21471 + 22136, + 22156 ], "loc": { "start": { - "line": 578, + "line": 599, "column": 17 }, "end": { - "line": 578, + "line": 599, "column": 37 } } }, "range": [ - 21444, - 21472 + 22129, + 22157 ], "loc": { "start": { - "line": 578, + "line": 599, "column": 10 }, "end": { - "line": 578, + "line": 599, "column": 38 } } } ], "range": [ - 21432, - 21482 + 22117, + 22167 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 86 }, "end": { - "line": 579, + "line": 600, "column": 9 } } @@ -41803,78 +43699,78 @@ "generator": false, "expression": false, "range": [ - 21427, - 21482 + 22112, + 22167 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 81 }, "end": { - "line": 579, + "line": 600, "column": 9 } } } ], "range": [ - 21388, - 21483 + 22073, + 22168 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 42 }, "end": { - "line": 579, + "line": 600, "column": 10 } } }, "range": [ - 21354, - 21483 + 22039, + 22168 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 8 }, "end": { - "line": 579, + "line": 600, "column": 10 } } }, "range": [ - 21354, - 21484 + 22039, + 22169 ], "loc": { "start": { - "line": 577, + "line": 598, "column": 8 }, "end": { - "line": 579, + "line": 600, "column": 11 } } } ], "range": [ - 21137, - 21492 + 21822, + 22177 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 50 }, "end": { - "line": 580, + "line": 601, "column": 7 } } @@ -41891,16 +43787,16 @@ "type": "Identifier", "name": "targetField", "range": [ - 21502, - 21513 + 22187, + 22198 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 17 }, "end": { - "line": 580, + "line": 601, "column": 28 } } @@ -41909,31 +43805,31 @@ "type": "Identifier", "name": "type", "range": [ - 21514, - 21518 + 22199, + 22203 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 29 }, "end": { - "line": 580, + "line": 601, "column": 33 } } }, "range": [ - 21502, - 21518 + 22187, + 22203 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 17 }, "end": { - "line": 580, + "line": 601, "column": 33 } } @@ -41943,31 +43839,31 @@ "value": "attr", "raw": "\"attr\"", "range": [ - 21523, - 21529 + 22208, + 22214 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 38 }, "end": { - "line": 580, + "line": 601, "column": 44 } } }, "range": [ - 21502, - 21529 + 22187, + 22214 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 17 }, "end": { - "line": 580, + "line": 601, "column": 44 } } @@ -41983,16 +43879,16 @@ "type": "Identifier", "name": "Error", "range": [ - 21551, - 21556 + 22236, + 22241 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 18 }, "end": { - "line": 581, + "line": 602, "column": 23 } } @@ -42009,16 +43905,16 @@ }, "tail": false, "range": [ - 21557, - 21594 + 22242, + 22279 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 24 }, "end": { - "line": 581, + "line": 602, "column": 61 } } @@ -42031,16 +43927,16 @@ }, "tail": false, "range": [ - 21609, - 21632 + 22294, + 22317 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 76 }, "end": { - "line": 581, + "line": 602, "column": 99 } } @@ -42053,16 +43949,16 @@ }, "tail": true, "range": [ - 21647, - 21651 + 22332, + 22336 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 114 }, "end": { - "line": 581, + "line": 602, "column": 118 } } @@ -42073,16 +43969,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 21594, - 21609 + 22279, + 22294 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 61 }, "end": { - "line": 581, + "line": 602, "column": 76 } } @@ -42091,141 +43987,141 @@ "type": "Identifier", "name": "targetFieldName", "range": [ - 21632, - 21647 + 22317, + 22332 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 99 }, "end": { - "line": 581, + "line": 602, "column": 114 } } } ], "range": [ - 21557, - 21651 + 22242, + 22336 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 24 }, "end": { - "line": 581, + "line": 602, "column": 118 } } } ], "range": [ - 21547, - 21652 + 22232, + 22337 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 14 }, "end": { - "line": 581, + "line": 602, "column": 119 } } }, "range": [ - 21541, - 21653 + 22226, + 22338 ], "loc": { "start": { - "line": 581, + "line": 602, "column": 8 }, "end": { - "line": 581, + "line": 602, "column": 120 } } } ], "range": [ - 21531, - 21661 + 22216, + 22346 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 46 }, "end": { - "line": 582, + "line": 603, "column": 7 } } }, "alternate": null, "range": [ - 21498, - 21661 + 22183, + 22346 ], "loc": { "start": { - "line": 580, + "line": 601, "column": 13 }, "end": { - "line": 582, + "line": 603, "column": 7 } } }, "range": [ - 21100, - 21661 + 21785, + 22346 ], "loc": { "start": { - "line": 573, + "line": 594, "column": 13 }, "end": { - "line": 582, + "line": 603, "column": 7 } } }, "range": [ - 20794, - 21661 + 21479, + 22346 ], "loc": { "start": { - "line": 568, + "line": 589, "column": 6 }, "end": { - "line": 582, + "line": 603, "column": 7 } } } ], "range": [ - 20786, - 21667 + 21471, + 22352 ], "loc": { "start": { - "line": 567, + "line": 588, "column": 21 }, "end": { - "line": 583, + "line": 604, "column": 5 } } @@ -42239,16 +44135,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 21677, - 21688 + 22362, + 22373 ], "loc": { "start": { - "line": 583, + "line": 604, "column": 15 }, "end": { - "line": 583, + "line": 604, "column": 26 } } @@ -42257,31 +44153,31 @@ "type": "Identifier", "name": "inverse", "range": [ - 21689, - 21696 + 22374, + 22381 ], "loc": { "start": { - "line": 583, + "line": 604, "column": 27 }, "end": { - "line": 583, + "line": 604, "column": 34 } } }, "range": [ - 21677, - 21696 + 22362, + 22381 ], "loc": { "start": { - "line": 583, + "line": 604, "column": 15 }, "end": { - "line": 583, + "line": 604, "column": 34 } } @@ -42297,16 +44193,16 @@ "type": "Identifier", "name": "Error", "range": [ - 21716, - 21721 + 22401, + 22406 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 16 }, "end": { - "line": 584, + "line": 605, "column": 21 } } @@ -42323,16 +44219,16 @@ }, "tail": false, "range": [ - 21722, - 21759 + 22407, + 22444 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 22 }, "end": { - "line": 584, + "line": 605, "column": 59 } } @@ -42345,16 +44241,16 @@ }, "tail": false, "range": [ - 21774, - 21792 + 22459, + 22477 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 74 }, "end": { - "line": 584, + "line": 605, "column": 92 } } @@ -42367,16 +44263,16 @@ }, "tail": true, "range": [ - 21811, - 21815 + 22496, + 22500 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 111 }, "end": { - "line": 584, + "line": 605, "column": 115 } } @@ -42387,16 +44283,16 @@ "type": "Identifier", "name": "sourceFieldName", "range": [ - 21759, - 21774 + 22444, + 22459 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 59 }, "end": { - "line": 584, + "line": 605, "column": 74 } } @@ -42408,16 +44304,16 @@ "type": "Identifier", "name": "sourceField", "range": [ - 21792, - 21803 + 22477, + 22488 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 92 }, "end": { - "line": 584, + "line": 605, "column": 103 } } @@ -42426,141 +44322,141 @@ "type": "Identifier", "name": "inverse", "range": [ - 21804, - 21811 + 22489, + 22496 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 104 }, "end": { - "line": 584, + "line": 605, "column": 111 } } }, "range": [ - 21792, - 21811 + 22477, + 22496 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 92 }, "end": { - "line": 584, + "line": 605, "column": 111 } } } ], "range": [ - 21722, - 21815 + 22407, + 22500 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 22 }, "end": { - "line": 584, + "line": 605, "column": 115 } } } ], "range": [ - 21712, - 21816 + 22397, + 22501 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 12 }, "end": { - "line": 584, + "line": 605, "column": 116 } } }, "range": [ - 21706, - 21817 + 22391, + 22502 ], "loc": { "start": { - "line": 584, + "line": 605, "column": 6 }, "end": { - "line": 584, + "line": 605, "column": 117 } } } ], "range": [ - 21698, - 21823 + 22383, + 22508 ], "loc": { "start": { - "line": 583, + "line": 604, "column": 36 }, "end": { - "line": 585, + "line": 606, "column": 5 } } }, "alternate": null, "range": [ - 21673, - 21823 + 22358, + 22508 ], "loc": { "start": { - "line": 583, + "line": 604, "column": 11 }, "end": { - "line": 585, + "line": 606, "column": 5 } } }, "range": [ - 20769, - 21823 + 21454, + 22508 ], "loc": { "start": { - "line": 567, + "line": 588, "column": 4 }, "end": { - "line": 585, + "line": 606, "column": 5 } } } ], "range": [ - 20360, - 21827 + 21045, + 22512 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 91 }, "end": { - "line": 586, + "line": 607, "column": 3 } } @@ -42568,16 +44464,16 @@ "generator": false, "expression": false, "range": [ - 20297, - 21827 + 20982, + 22512 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 28 }, "end": { - "line": 586, + "line": 607, "column": 3 } } @@ -42585,16 +44481,16 @@ "kind": "method", "computed": false, "range": [ - 20271, - 21827 + 20956, + 22512 ], "loc": { "start": { - "line": 560, + "line": 581, "column": 2 }, "end": { - "line": 586, + "line": 607, "column": 3 } }, @@ -42603,7 +44499,7 @@ ], "range": [ 101, - 21830 + 22515 ], "loc": { "start": { @@ -42611,14 +44507,14 @@ "column": 27 }, "end": { - "line": 588, + "line": 609, "column": 1 } } }, "range": [ 89, - 21830 + 22515 ], "loc": { "start": { @@ -42626,7 +44522,7 @@ "column": 15 }, "end": { - "line": 588, + "line": 609, "column": 1 } }, @@ -42635,7 +44531,7 @@ }, "range": [ 74, - 21830 + 22515 ], "loc": { "start": { @@ -42643,7 +44539,7 @@ "column": 0 }, "end": { - "line": 588, + "line": 609, "column": 1 } } @@ -42660,16 +44556,16 @@ "type": "Identifier", "name": "Store", "range": [ - 21832, - 21837 + 22517, + 22522 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 0 }, "end": { - "line": 590, + "line": 611, "column": 5 } } @@ -42678,31 +44574,31 @@ "type": "Identifier", "name": "AjaxAdapter", "range": [ - 21838, - 21849 + 22523, + 22534 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 6 }, "end": { - "line": 590, + "line": 611, "column": 17 } } }, "range": [ - 21832, - 21849 + 22517, + 22534 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 0 }, "end": { - "line": 590, + "line": 611, "column": 17 } } @@ -42711,46 +44607,46 @@ "type": "Identifier", "name": "AjaxAdapter", "range": [ - 21852, - 21863 + 22537, + 22548 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 20 }, "end": { - "line": 590, + "line": 611, "column": 31 } } }, "range": [ - 21832, - 21863 + 22517, + 22548 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 0 }, "end": { - "line": 590, + "line": 611, "column": 31 } } }, "range": [ - 21832, - 21864 + 22517, + 22549 ], "loc": { "start": { - "line": 590, + "line": 611, "column": 0 }, "end": { - "line": 590, + "line": 611, "column": 32 } } @@ -42759,7 +44655,7 @@ "sourceType": "module", "range": [ 0, - 21864 + 22549 ], "loc": { "start": { @@ -42767,7 +44663,7 @@ "column": 0 }, "end": { - "line": 590, + "line": 611, "column": 32 } }, @@ -42812,16 +44708,16 @@ "type": "Block", "value": "*\n * Creates a field definition for an has-many relationship.\n *\n * @since 0.1.0\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 ", "range": [ - 1888, - 2226 + 2282, + 2620 ], "loc": { "start": { - "line": 62, + "line": 74, "column": 2 }, "end": { - "line": 70, + "line": 82, "column": 5 } } @@ -42830,16 +44726,16 @@ "type": "Block", "value": "*\n * Add an individual resource to the store. This is used internally by the\n * `push()` method.\n *\n * @since 0.1.0\n * @param {!Object} object - Resource Object to add. See:\n http://jsonapi.org/format/#document-resource-objects\n * @return {undefined} - Nothing.\n ", "range": [ - 3188, - 3480 + 3873, + 4165 ], "loc": { "start": { - "line": 103, + "line": 124, "column": 2 }, "end": { - "line": 111, + "line": 132, "column": 5 } } @@ -42848,16 +44744,16 @@ "type": "Block", "value": "*\n * Converts the given partial into a JSON API compliant representation.\n *\n * @since 0.5.0\n * @param {!string} [type] - The type of the resource. This can be omitted if the partial includes a type property.\n * @param {!string} [id] - The id of the resource. This can be omitted if the partial includes an id property.\n * @param {!object} partial - The data to convert.\n * @return {object} - JSON API version of the object.\n ", "range": [ - 4528, - 4974 + 5213, + 5659 ], "loc": { "start": { - "line": 137, + "line": 158, "column": 2 }, "end": { - "line": 145, + "line": 166, "column": 5 } } @@ -42866,16 +44762,16 @@ "type": "Block", "value": "*\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 5608, - 6269 + 6293, + 6954 ], "loc": { "start": { - "line": 170, + "line": 191, "column": 2 }, "end": { - "line": 188, + "line": 209, "column": 5 } } @@ -42884,16 +44780,16 @@ "type": "Block", "value": "*\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n ", "range": [ - 6567, - 6794 + 7252, + 7479 ], "loc": { "start": { - "line": 197, + "line": 218, "column": 2 }, "end": { - "line": 204, + "line": 225, "column": 5 } } @@ -42902,16 +44798,16 @@ "type": "Block", "value": "*\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n ", "range": [ - 7271, - 7890 + 7956, + 8575 ], "loc": { "start": { - "line": 221, + "line": 242, "column": 2 }, "end": { - "line": 239, + "line": 260, "column": 5 } } @@ -42920,16 +44816,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 * @since 0.1.0\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": [ - 8180, - 8690 + 8865, + 9375 ], "loc": { "start": { - "line": 248, + "line": 269, "column": 2 }, "end": { - "line": 259, + "line": 280, "column": 5 } } @@ -42938,16 +44834,16 @@ "type": "Block", "value": "*\n * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 9627, - 10373 + 10312, + 11058 ], "loc": { "start": { - "line": 293, + "line": 314, "column": 2 }, "end": { - "line": 312, + "line": 333, "column": 5 } } @@ -42956,16 +44852,16 @@ "type": "Block", "value": "*\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n ", "range": [ - 10675, - 11078 + 11360, + 11763 ], "loc": { "start": { - "line": 321, + "line": 342, "column": 2 }, "end": { - "line": 330, + "line": 351, "column": 5 } } @@ -42974,16 +44870,16 @@ "type": "Line", "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", "range": [ - 11382, - 11491 + 12067, + 12176 ], "loc": { "start": { - "line": 337, + "line": 358, "column": 10 }, "end": { - "line": 337, + "line": 358, "column": 119 } } @@ -42992,16 +44888,16 @@ "type": "Block", "value": "*\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n ", "range": [ - 12285, - 12725 + 12970, + 13410 ], "loc": { "start": { - "line": 360, + "line": 381, "column": 2 }, "end": { - "line": 370, + "line": 391, "column": 5 } } @@ -43010,16 +44906,16 @@ "type": "Line", "value": " TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.", "range": [ - 13036, - 13145 + 13721, + 13830 ], "loc": { "start": { - "line": 377, + "line": 398, "column": 10 }, "end": { - "line": 377, + "line": 398, "column": 119 } } @@ -43028,16 +44924,16 @@ "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 * @since 0.1.0\n * @param {Object} root - Top Level Object to push. See:\n http://jsonapi.org/format/#document-top-level\n * @return {undefined} - Nothing.\n ", "range": [ - 14118, - 14452 + 14803, + 15137 ], "loc": { "start": { - "line": 401, + "line": 422, "column": 2 }, "end": { - "line": 409, + "line": 430, "column": 5 } } @@ -43046,16 +44942,16 @@ "type": "Block", "value": "*\n * Remove a resource or collection of resources from the store.\n *\n * @since 0.1.0\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": [ - 14685, - 15027 + 15370, + 15712 ], "loc": { "start": { - "line": 421, + "line": 442, "column": 2 }, "end": { - "line": 429, + "line": 450, "column": 5 } } @@ -43064,16 +44960,16 @@ "type": "Block", "value": "*\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n ", "range": [ - 15925, - 16634 + 16610, + 17319 ], "loc": { "start": { - "line": 455, + "line": 476, "column": 2 }, "end": { - "line": 474, + "line": 495, "column": 5 } } @@ -43082,16 +44978,16 @@ "type": "Line", "value": " TODO: This only needs to be run once for each dependent.", "range": [ - 19985, - 20044 + 20670, + 20729 ], "loc": { "start": { - "line": 552, + "line": 573, "column": 6 }, "end": { - "line": 552, + "line": 573, "column": 65 } } diff --git a/docs/class/src/store.js~Store.html b/docs/class/src/store.js~Store.html index 20fc4cd..e615322 100644 --- a/docs/class/src/store.js~Store.html +++ b/docs/class/src/store.js~Store.html @@ -612,7 +612,7 @@ since 0.1.0 - source + source @@ -781,7 +781,7 @@ - source + source @@ -841,7 +841,7 @@ since 0.1.0 - source + source @@ -912,7 +912,7 @@ since 0.5.0 - source + source @@ -997,7 +997,7 @@ since 0.5.0 - source + source @@ -1106,7 +1106,7 @@ store.create("product", { title: "A Book" }, (product) => since 0.2.0 - source + source @@ -1182,7 +1182,7 @@ store.create("product", { title: "A Book" }, (product) => since 0.5.0 - source + source @@ -1291,7 +1291,7 @@ store.destroy("product", "1", () => { since 0.1.0 - source + source @@ -1370,7 +1370,7 @@ will be automatically created when find is called.

since 0.5.0 - source + source @@ -1487,7 +1487,7 @@ store.load("product", "1", (product) => { since 0.4.0 - source + source @@ -1577,7 +1577,7 @@ store.load("product", "1", (product) => { since 0.4.0 - source + source @@ -1674,7 +1674,7 @@ store.load("product", "1", (product) => { since 0.1.0 - source + source @@ -1745,7 +1745,7 @@ successful GET or POST response from the server.

since 0.1.0 - source + source @@ -1822,7 +1822,7 @@ successful GET or POST response from the server.

since 0.5.0 - source + source diff --git a/docs/dump.json b/docs/dump.json index 29f09ce..67b33bb 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -291,7 +291,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import \"array.prototype.find\";\nimport AjaxAdapter from \"./ajax-adapter\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\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 serialize: function (resource, data, key) {\n data.attributes[name || key] = resource[key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\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 * @since 0.1.0\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(adapter) {\n this._adapter = adapter;\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\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 * @since 0.1.0\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 event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\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 * Converts the given partial into a JSON API compliant representation.\n *\n * @since 0.5.0\n * @param {!string} [type] - The type of the resource. This can be omitted if the partial includes a type property.\n * @param {!string} [id] - The id of the resource. This can be omitted if the partial includes an id property.\n * @param {!object} partial - The data to convert.\n * @return {object} - JSON API version of the object.\n */\n convert(type, id, partial) {\n if (type && typeof type === \"object\") {\n return this.convert(type.type, type.id, type);\n } else if (id && typeof id === \"object\") {\n return this.convert(type, id.id, id);\n } else {\n let data = {\n type: type,\n attributes: {},\n relationships: {}\n };\n if (id) {\n data.id = id;\n }\n let definition = this._types[data.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n definition[fieldName].serialize(partial, data, fieldName);\n }\n });\n return data;\n }\n }\n\n /**\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n */\n create(type, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.create(this, type, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n if (definition) {\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n } else {\n throw new Error(`You must provide a definition for the type '${names[0]}'.`);\n }\n }\n\n /**\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n */\n destroy(type, id, success, error, context) {\n if (this._adapter) {\n this._adapter.destroy(this, type, id, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 * @since 0.1.0\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 if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\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 if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\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 * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n */\n load(type, id, options, success, error, context) {\n if (this._adapter) {\n this._adapter.load(this, type, id, options, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) {\n this._resourceListeners[event][type][id].push([ callback, context ]);\n }\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n if (!this._collectionListeners[event][type].find(x => x[0] === callback)) {\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\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 * @since 0.1.0\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 * @since 0.1.0\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] && this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\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 /**\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n */\n update(type, id, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.update(this, type, id, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let 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\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 || sourceResource.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.AjaxAdapter = AjaxAdapter;\n" + "content": "import \"array.prototype.find\";\nimport AjaxAdapter from \"./ajax-adapter\";\n\nexport default class Store {\n\n /**\n * Creates a field definition for an attribute.\n *\n * @since 0.1.0\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 serialize: function (resource, data, key) {\n data.attributes[name || key] = resource[key];\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-one relationship.\n *\n * @since 0.1.0\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 serialize: function serialize(resource, data, key) {\n if (resource[key] === null) {\n data.relationships[name || key] = null;\n } else if (resource[key]) {\n data.relationships[name || key] = {\n data: {\n type: resource[key].type,\n id: resource[key].id\n }\n };\n }\n }\n };\n }\n }\n\n /**\n * Creates a field definition for an has-many relationship.\n *\n * @since 0.1.0\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 serialize: function serialize(resource, data, key) {\n if (resource[key]) {\n data.relationships[name || key] = {\n data: resource[key].map(x => {\n return { type: x.type, id: x.id };\n })\n };\n }\n }\n };\n }\n }\n\n constructor(adapter) {\n this._adapter = adapter;\n this._collectionListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\n this._data = {};\n this._resourceListeners = { \"added\": {}, \"updated\": {}, \"removed\": {} };\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 * @since 0.1.0\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 event = this._data[object.type] && this._data[object.type][object.id] ? \"updated\" : \"added\";\n let resource = this.find(object.type, object.id);\n let definition = this._types[object.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n this._addField(object, resource, definition, fieldName);\n }\n });\n if (this._resourceListeners[event][object.type] && this._resourceListeners[event][object.type][object.id]) {\n this._resourceListeners[event][object.type][object.id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[event][object.type]) {\n this._collectionListeners[event][object.type].forEach(x => x[0].call(x[1], resource));\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 * Converts the given partial into a JSON API compliant representation.\n *\n * @since 0.5.0\n * @param {!string} [type] - The type of the resource. This can be omitted if the partial includes a type property.\n * @param {!string} [id] - The id of the resource. This can be omitted if the partial includes an id property.\n * @param {!object} partial - The data to convert.\n * @return {object} - JSON API version of the object.\n */\n convert(type, id, partial) {\n if (type && typeof type === \"object\") {\n return this.convert(type.type, type.id, type);\n } else if (id && typeof id === \"object\") {\n return this.convert(type, id.id, id);\n } else {\n let data = {\n type: type,\n attributes: {},\n relationships: {}\n };\n if (id) {\n data.id = id;\n }\n let definition = this._types[data.type];\n Object.keys(definition).forEach(fieldName => {\n if (fieldName[0] !== \"_\") {\n definition[fieldName].serialize(partial, data, fieldName);\n }\n });\n return data;\n }\n }\n\n /**\n * Attempts to create the resource through the adapter and adds it to the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!Object} partial - Data to create the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.create(\"product\", { title: \"A Book\" }, (product) => {\n * console.log(product.title);\n * });\n */\n create(type, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.create(this, type, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Defines a type of resource.\n *\n * @since 0.2.0\n * @param {!string|string[]} names - Name(s) of the resource.\n * @param {!Object} definition - The resource's definition.\n * @return {undefined} - Nothing.\n */\n define(names, definition) {\n names = (names.constructor === Array) ? names : [ names ];\n if (definition) {\n definition._names = names;\n names.forEach(name => {\n if (!this._types[name]) {\n this._types[name] = definition;\n } else {\n throw new Error(`The type '${name}' has already been defined.`);\n }\n });\n } else {\n throw new Error(`You must provide a definition for the type '${names[0]}'.`);\n }\n }\n\n /**\n * Attempts to delete the resource through the adapter and removes it from\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.destroy(\"product\", \"1\", () => {\n * console.log(\"Destroyed!\");\n * });\n */\n destroy(type, id, success, error, context) {\n if (this._adapter) {\n this._adapter.destroy(this, type, id, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 * @since 0.1.0\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 if (type) {\n let definition = this._types[type];\n if (definition) {\n if (!this._data[type]) {\n let collection = {};\n definition._names.forEach(t => this._data[t] = collection);\n }\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 if (key[0] !== \"_\") {\n this._data[type][id][key] = definition[key].default;\n }\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 * Attempts to load the resource(s) through the adapter and adds it/them to\n * the store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} [id] - ID of resource.\n * @param {Object} [options] - **NOT YET IMPLEMENTED** (this will include sorting, filtering and pagination options)\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.load(\"product\", \"1\", (product) => {\n * console.log(product.title);\n * });\n */\n load(type, id, options, success, error, context) {\n if (this._adapter) {\n this._adapter.load(this, type, id, options, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\n }\n }\n\n /**\n * Unregister an event listener that was registered with on().\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to originally passed to on().\n * @param {string} [id] - ID of the resource to originally passed to on().\n * @param {function} callback - Function originally passed to on().\n * @return {undefined} - Nothing.\n */\n off(event, type, id, callback) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.off.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n if (this._resourceListeners[event][type] && this._resourceListeners[event][type][id]) {\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id].filter(x => {\n return x[0] !== callback;\n });\n }\n } else if (this._collectionListeners[event][type]) {\n this._collectionListeners[event][type] = this._collectionListeners[event][type].filter(x => {\n return x[0] !== callback;\n });\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\n }\n }\n\n /**\n * Register an event listener: \"added\", \"updated\" or \"removed\".\n *\n * @since 0.4.0\n * @param {string} event - Name of the event.\n * @param {string} type - Name of resource to watch.\n * @param {string} [id] - ID of the resource to watch.\n * @param {function} callback - Function to call when the event occurs.\n * @param {Object} [context] - Context in which to call the callback.\n * @return {undefined} - Nothing.\n */\n on(event, type, id, callback, context) {\n if (this._resourceListeners[event] && this._collectionListeners[event]) {\n if (this._types[type]) {\n if (id && ({}).toString.call(id) === '[object Function]') {\n this.on.call(this, event, type, null, id, callback);\n } else {\n // TODO: Performance-wise, this can be made way better. There shouldn't be a need to maintain separate lists.\n this._types[type]._names.forEach(type => {\n if (id) {\n this._resourceListeners[event][type] = this._resourceListeners[event][type] || {};\n this._resourceListeners[event][type][id] = this._resourceListeners[event][type][id] || [];\n if (!this._resourceListeners[event][type][id].find(x => x[0] === callback)) {\n this._resourceListeners[event][type][id].push([ callback, context ]);\n }\n } else {\n this._collectionListeners[event][type] = this._collectionListeners[event][type] || [];\n if (!this._collectionListeners[event][type].find(x => x[0] === callback)) {\n this._collectionListeners[event][type].push([ callback, context ]);\n }\n }\n });\n }\n } else {\n throw new Error(`Unknown type '${type}'`);\n }\n } else {\n throw new Error(`Unknown event '${event}'`);\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 * @since 0.1.0\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 * @since 0.1.0\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] && this._data[type][id];\n if (resource) {\n this._remove(resource);\n if (this._resourceListeners[\"removed\"][type] && this._resourceListeners[\"removed\"][type][id]) {\n this._resourceListeners[\"removed\"][type][id].forEach(x => x[0].call(x[1], resource));\n }\n if (this._collectionListeners[\"removed\"][type]) {\n this._collectionListeners[\"removed\"][type].forEach(x => x[0].call(x[1], resource));\n }\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 /**\n * Attempts to update the resource through the adapter and updates it in the\n * store if successful.\n *\n * @since 0.5.0\n * @param {!string} type - Type of resource.\n * @param {!string} id - ID of resource.\n * @param {!Object} partial - Data to update the resource with.\n * @param {function} [success] - Callback on success.\n * @param {function} [error] - Callback on error.\n * @param {Object} [context] - Context for the callbacks.\n * @return {undefined} - Nothing.\n *\n * @example\n * let adapter = new Store.AjaxAdapter();\n * let store = new Store(adpater);\n * store.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n * console.log(product.title);\n * });\n */\n update(type, id, partial, success, error, context) {\n if (this._adapter) {\n this._adapter.update(this, type, id, partial, success, error, context);\n } else {\n throw new Error(\"Adapter missing. Specify an adapter when creating the store: `var store = new Store(adapter);`\");\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 sourceDefinition = this._types[sourceResource.type];\n if (targetDefinition) {\n let targetFieldName = [ sourceField.inverse ].concat(sourceDefinition._names).find(x => targetDefinition[x]);\n let 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\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 || sourceResource.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.AjaxAdapter = AjaxAdapter;\n" }, { "kind": "class", @@ -424,7 +424,7 @@ "longname": "src/store.js~Store.hasMany", "access": null, "description": "Creates a field definition for an has-many relationship.", - "lineNumber": 71, + "lineNumber": 83, "since": "0.1.0", "params": [ { @@ -477,7 +477,7 @@ "longname": "src/store.js~Store#constructor", "access": null, "description": null, - "lineNumber": 95, + "lineNumber": 116, "undocument": true, "params": [ { @@ -498,7 +498,7 @@ "longname": "src/store.js~Store#_adapter", "access": null, "description": null, - "lineNumber": 96, + "lineNumber": 117, "undocument": true, "type": { "types": [ @@ -515,7 +515,7 @@ "longname": "src/store.js~Store#_collectionListeners", "access": null, "description": null, - "lineNumber": 97, + "lineNumber": 118, "undocument": true, "type": { "types": [ @@ -532,7 +532,7 @@ "longname": "src/store.js~Store#_data", "access": null, "description": null, - "lineNumber": 98, + "lineNumber": 119, "undocument": true, "type": { "types": [ @@ -549,7 +549,7 @@ "longname": "src/store.js~Store#_resourceListeners", "access": null, "description": null, - "lineNumber": 99, + "lineNumber": 120, "undocument": true, "type": { "types": [ @@ -566,7 +566,7 @@ "longname": "src/store.js~Store#_types", "access": null, "description": null, - "lineNumber": 100, + "lineNumber": 121, "undocument": true, "type": { "types": [ @@ -583,7 +583,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": 112, + "lineNumber": 133, "since": "0.1.0", "params": [ { @@ -616,7 +616,7 @@ "longname": "src/store.js~Store#convert", "access": null, "description": "Converts the given partial into a JSON API compliant representation.", - "lineNumber": 146, + "lineNumber": 167, "since": "0.5.0", "params": [ { @@ -672,7 +672,7 @@ "examples": [ "let adapter = new Store.AjaxAdapter();\nlet store = new Store(adpater);\nstore.create(\"product\", { title: \"A Book\" }, (product) => {\n console.log(product.title);\n});" ], - "lineNumber": 189, + "lineNumber": 210, "since": "0.5.0", "params": [ { @@ -745,7 +745,7 @@ "longname": "src/store.js~Store#define", "access": null, "description": "Defines a type of resource.", - "lineNumber": 205, + "lineNumber": 226, "since": "0.2.0", "params": [ { @@ -792,7 +792,7 @@ "examples": [ "let adapter = new Store.AjaxAdapter();\nlet store = new Store(adpater);\nstore.destroy(\"product\", \"1\", () => {\n console.log(\"Destroyed!\");\n});" ], - "lineNumber": 240, + "lineNumber": 261, "since": "0.5.0", "params": [ { @@ -865,7 +865,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": 260, + "lineNumber": 281, "since": "0.1.0", "params": [ { @@ -912,7 +912,7 @@ "examples": [ "let adapter = new Store.AjaxAdapter();\nlet store = new Store(adpater);\nstore.load(\"product\", \"1\", (product) => {\n console.log(product.title);\n});" ], - "lineNumber": 313, + "lineNumber": 334, "since": "0.5.0", "params": [ { @@ -995,7 +995,7 @@ "longname": "src/store.js~Store#off", "access": null, "description": "Unregister an event listener that was registered with on().", - "lineNumber": 331, + "lineNumber": 352, "since": "0.4.0", "params": [ { @@ -1058,7 +1058,7 @@ "longname": "src/store.js~Store#on", "access": null, "description": "Register an event listener: \"added\", \"updated\" or \"removed\".", - "lineNumber": 371, + "lineNumber": 392, "since": "0.4.0", "params": [ { @@ -1131,7 +1131,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": 410, + "lineNumber": 431, "since": "0.1.0", "params": [ { @@ -1164,7 +1164,7 @@ "longname": "src/store.js~Store#remove", "access": null, "description": "Remove a resource or collection of resources from the store.", - "lineNumber": 430, + "lineNumber": 451, "since": "0.1.0", "params": [ { @@ -1210,7 +1210,7 @@ "examples": [ "let adapter = new Store.AjaxAdapter();\nlet store = new Store(adpater);\nstore.update(\"product\", \"1\", { title: \"foo\" }, (product) => {\n console.log(product.title);\n});" ], - "lineNumber": 475, + "lineNumber": 496, "since": "0.5.0", "params": [ { @@ -1293,7 +1293,7 @@ "longname": "src/store.js~Store#_addField", "access": null, "description": null, - "lineNumber": 483, + "lineNumber": 504, "undocument": true, "params": [ { @@ -1332,7 +1332,7 @@ "longname": "src/store.js~Store#_addInverseRelationship", "access": null, "description": null, - "lineNumber": 508, + "lineNumber": 529, "undocument": true, "params": [ { @@ -1371,7 +1371,7 @@ "longname": "src/store.js~Store#_remove", "access": null, "description": null, - "lineNumber": 533, + "lineNumber": 554, "undocument": true, "params": [ { @@ -1392,7 +1392,7 @@ "longname": "src/store.js~Store#_removeInverseRelationship", "access": null, "description": null, - "lineNumber": 560, + "lineNumber": 581, "undocument": true, "params": [ { diff --git a/docs/file/src/store.js.html b/docs/file/src/store.js.html index d589678..76f8e06 100644 --- a/docs/file/src/store.js.html +++ b/docs/file/src/store.js.html @@ -104,6 +104,18 @@ export default class Store { return this.find(data.relationships[name].data.type, data.relationships[name].data.id); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key] === null) { + data.relationships[name || key] = null; + } else if (resource[key]) { + data.relationships[name || key] = { + data: { + type: resource[key].type, + id: resource[key].id + } + }; + } } }; } @@ -137,6 +149,15 @@ export default class Store { }); } } + }, + serialize: function serialize(resource, data, key) { + if (resource[key]) { + data.relationships[name || key] = { + data: resource[key].map(x => { + return { type: x.type, id: x.id }; + }) + }; + } } }; } diff --git a/docs/package.json b/docs/package.json index c8a484d..ac00d54 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "json-api-store", - "version": "0.5.1", + "version": "0.5.2", "description": "A lightweight library for using JSON API in the browser.", "repository": "haydn/json-api-store", "main": "dist/store.js", diff --git a/docs/source.html b/docs/source.html index 2ca8628..528b02f 100644 --- a/docs/source.html +++ b/docs/source.html @@ -68,15 +68,15 @@ 0 %0/6 5120 byte 196 - 2015-10-05 09:42:45 (UTC) + 2015-10-06 01:01:35 (UTC) src/store.js Store 88 %15/17 - 21865 byte - 590 - 2015-10-05 09:42:45 (UTC) + 22550 byte + 611 + 2015-10-06 01:46:08 (UTC) diff --git a/package.json b/package.json index ac00d54..f7d4288 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-api-store", - "version": "0.5.2", + "version": "0.5.3", "description": "A lightweight library for using JSON API in the browser.", "repository": "haydn/json-api-store", "main": "dist/store.js", -- 2.51.2