Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobx-rest

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-rest - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

10

__tests__/Collection.spec.js

@@ -101,2 +101,12 @@ import { Collection, apiClient, Request } from '../src'

describe('reset', () => {
it('reset a collection of models', () => {
const newItem = { id: 2, name: 'bob' }
collection.reset([newItem])
expect(collection.models.length).toBe(1)
expect(collection.get(2).get('name')).toBe(newItem.name)
})
})
describe('remove', () => {

@@ -103,0 +113,0 @@ it('removes a collection of models', () => {

# Changelog
## `2.2.1`
:tophat:
- Added `reset` for conveniently resetting a whole collection
## `2.2.0`

@@ -4,0 +10,0 @@

4

coverage/coverage-final.json

@@ -1,4 +0,4 @@

{"/Users/pauramonrevilla/Sites/mobx-rest/src/Collection.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/Collection.js","statementMap":{"0":{"start":{"line":25,"column":4},"end":{"line":25,"column":18}},"1":{"start":{"line":34,"column":4},"end":{"line":34,"column":53}},"2":{"start":{"line":41,"column":4},"end":{"line":41,"column":16}},"3":{"start":{"line":49,"column":4},"end":{"line":49,"column":28}},"4":{"start":{"line":57,"column":4},"end":{"line":57,"column":30}},"5":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"6":{"start":{"line":65,"column":23},"end":{"line":65,"column":35}},"7":{"start":{"line":67,"column":4},"end":{"line":67,"column":39}},"8":{"start":{"line":74,"column":4},"end":{"line":74,"column":31}},"9":{"start":{"line":81,"column":4},"end":{"line":81,"column":60}},"10":{"start":{"line":81,"column":36},"end":{"line":81,"column":43}},"11":{"start":{"line":88,"column":4},"end":{"line":88,"column":29}},"12":{"start":{"line":95,"column":4},"end":{"line":95,"column":51}},"13":{"start":{"line":95,"column":36},"end":{"line":95,"column":50}},"14":{"start":{"line":102,"column":18},"end":{"line":102,"column":30}},"15":{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},"16":{"start":{"line":104,"column":16},"end":{"line":104,"column":76}},"17":{"start":{"line":106,"column":4},"end":{"line":106,"column":16}},"18":{"start":{"line":113,"column":4},"end":{"line":115,"column":6}},"19":{"start":{"line":114,"column":6},"end":{"line":114,"column":46}},"20":{"start":{"line":122,"column":4},"end":{"line":124,"column":6}},"21":{"start":{"line":123,"column":6},"end":{"line":123,"column":46}},"22":{"start":{"line":131,"column":18},"end":{"line":131,"column":34}},"23":{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},"24":{"start":{"line":134,"column":25},"end":{"line":134,"column":46}},"25":{"start":{"line":135,"column":6},"end":{"line":135,"column":71}},"26":{"start":{"line":138,"column":4},"end":{"line":138,"column":16}},"27":{"start":{"line":147,"column":19},"end":{"line":147,"column":47}},"28":{"start":{"line":147,"column":33},"end":{"line":147,"column":46}},"29":{"start":{"line":148,"column":4},"end":{"line":148,"column":31}},"30":{"start":{"line":149,"column":4},"end":{"line":149,"column":17}},"31":{"start":{"line":157,"column":4},"end":{"line":162,"column":6}},"32":{"start":{"line":158,"column":20},"end":{"line":158,"column":32}},"33":{"start":{"line":159,"column":6},"end":{"line":159,"column":24}},"34":{"start":{"line":159,"column":18},"end":{"line":159,"column":24}},"35":{"start":{"line":161,"column":6},"end":{"line":161,"column":55}},"36":{"start":{"line":175,"column":4},"end":{"line":179,"column":5}},"37":{"start":{"line":176,"column":18},"end":{"line":176,"column":42}},"38":{"start":{"line":176,"column":37},"end":{"line":176,"column":41}},"39":{"start":{"line":177,"column":23},"end":{"line":177,"column":51}},"40":{"start":{"line":178,"column":6},"end":{"line":178,"column":48}},"41":{"start":{"line":178,"column":27},"end":{"line":178,"column":48}},"42":{"start":{"line":181,"column":4},"end":{"line":186,"column":6}},"43":{"start":{"line":182,"column":20},"end":{"line":182,"column":41}},"44":{"start":{"line":184,"column":6},"end":{"line":184,"column":46}},"45":{"start":{"line":184,"column":27},"end":{"line":184,"column":46}},"46":{"start":{"line":185,"column":6},"end":{"line":185,"column":45}},"47":{"start":{"line":185,"column":25},"end":{"line":185,"column":45}},"48":{"start":{"line":193,"column":23},"end":{"line":193,"column":35}},"49":{"start":{"line":194,"column":18},"end":{"line":194,"column":44}},"50":{"start":{"line":195,"column":4},"end":{"line":195,"column":27}},"51":{"start":{"line":197,"column":4},"end":{"line":197,"column":16}},"52":{"start":{"line":212,"column":21},"end":{"line":214,"column":25}},"53":{"start":{"line":215,"column":25},"end":{"line":215,"column":35}},"54":{"start":{"line":217,"column":23},"end":{"line":225,"column":11}},"55":{"start":{"line":218,"column":6},"end":{"line":220,"column":7}},"56":{"start":{"line":219,"column":8},"end":{"line":219,"column":41}},"57":{"start":{"line":222,"column":6},"end":{"line":224,"column":7}},"58":{"start":{"line":223,"column":8},"end":{"line":223,"column":40}},"59":{"start":{"line":227,"column":31},"end":{"line":229,"column":6}},"60":{"start":{"line":231,"column":4},"end":{"line":236,"column":5}},"61":{"start":{"line":232,"column":6},"end":{"line":234,"column":45}},"62":{"start":{"line":235,"column":6},"end":{"line":235,"column":50}},"63":{"start":{"line":238,"column":4},"end":{"line":238,"column":47}},"64":{"start":{"line":242,"column":4},"end":{"line":254,"column":5}},"65":{"start":{"line":243,"column":6},"end":{"line":243,"column":26}},"66":{"start":{"line":245,"column":6},"end":{"line":251,"column":8}},"67":{"start":{"line":246,"column":8},"end":{"line":248,"column":9}},"68":{"start":{"line":247,"column":10},"end":{"line":247,"column":33}},"69":{"start":{"line":249,"column":8},"end":{"line":249,"column":49}},"70":{"start":{"line":250,"column":8},"end":{"line":250,"column":27}},"71":{"start":{"line":253,"column":6},"end":{"line":253,"column":16}},"72":{"start":{"line":256,"column":4},"end":{"line":265,"column":6}},"73":{"start":{"line":257,"column":6},"end":{"line":262,"column":7}},"74":{"start":{"line":258,"column":8},"end":{"line":258,"column":23}},"75":{"start":{"line":259,"column":8},"end":{"line":259,"column":28}},"76":{"start":{"line":261,"column":8},"end":{"line":261,"column":24}},"77":{"start":{"line":263,"column":6},"end":{"line":263,"column":25}},"78":{"start":{"line":264,"column":6},"end":{"line":264,"column":23}},"79":{"start":{"line":267,"column":4},"end":{"line":267,"column":15}},"80":{"start":{"line":279,"column":25},"end":{"line":279,"column":35}},"81":{"start":{"line":280,"column":31},"end":{"line":280,"column":72}},"82":{"start":{"line":282,"column":4},"end":{"line":282,"column":47}},"83":{"start":{"line":286,"column":4},"end":{"line":295,"column":5}},"84":{"start":{"line":287,"column":6},"end":{"line":287,"column":26}},"85":{"start":{"line":289,"column":6},"end":{"line":292,"column":8}},"86":{"start":{"line":290,"column":8},"end":{"line":290,"column":49}},"87":{"start":{"line":291,"column":8},"end":{"line":291,"column":27}},"88":{"start":{"line":294,"column":6},"end":{"line":294,"column":16}},"89":{"start":{"line":297,"column":4},"end":{"line":301,"column":6}},"90":{"start":{"line":298,"column":6},"end":{"line":298,"column":29}},"91":{"start":{"line":299,"column":6},"end":{"line":299,"column":25}},"92":{"start":{"line":300,"column":6},"end":{"line":300,"column":23}},"93":{"start":{"line":303,"column":4},"end":{"line":303,"column":15}},"94":{"start":{"line":313,"column":25},"end":{"line":313,"column":35}},"95":{"start":{"line":314,"column":31},"end":{"line":317,"column":5}},"96":{"start":{"line":319,"column":4},"end":{"line":319,"column":47}},"97":{"start":{"line":323,"column":4},"end":{"line":332,"column":5}},"98":{"start":{"line":324,"column":6},"end":{"line":324,"column":30}},"99":{"start":{"line":326,"column":6},"end":{"line":329,"column":8}},"100":{"start":{"line":327,"column":8},"end":{"line":327,"column":27}},"101":{"start":{"line":328,"column":8},"end":{"line":328,"column":49}},"102":{"start":{"line":331,"column":6},"end":{"line":331,"column":16}},"103":{"start":{"line":334,"column":4},"end":{"line":334,"column":23}},"104":{"start":{"line":335,"column":4},"end":{"line":335,"column":21}},"105":{"start":{"line":337,"column":4},"end":{"line":337,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":3}},"loc":{"start":{"line":24,"column":57},"end":{"line":26,"column":3}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":3}},"loc":{"start":{"line":33,"column":17},"end":{"line":35,"column":3}},"line":33},"2":{"name":"(anonymous_2)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":21},"end":{"line":42,"column":3}},"line":40},"3":{"name":"(anonymous_3)","decl":{"start":{"line":48,"column":2},"end":{"line":48,"column":3}},"loc":{"start":{"line":48,"column":10},"end":{"line":50,"column":3}},"line":48},"4":{"name":"(anonymous_4)","decl":{"start":{"line":56,"column":2},"end":{"line":56,"column":3}},"loc":{"start":{"line":56,"column":13},"end":{"line":58,"column":3}},"line":56},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":3}},"loc":{"start":{"line":64,"column":36},"end":{"line":68,"column":3}},"line":64},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":22},"end":{"line":75,"column":3}},"line":73},"7":{"name":"(anonymous_7)","decl":{"start":{"line":80,"column":2},"end":{"line":80,"column":3}},"loc":{"start":{"line":80,"column":21},"end":{"line":82,"column":3}},"line":80},"8":{"name":"(anonymous_8)","decl":{"start":{"line":81,"column":28},"end":{"line":81,"column":29}},"loc":{"start":{"line":81,"column":36},"end":{"line":81,"column":43}},"line":81},"9":{"name":"(anonymous_9)","decl":{"start":{"line":87,"column":2},"end":{"line":87,"column":3}},"loc":{"start":{"line":87,"column":25},"end":{"line":89,"column":3}},"line":87},"10":{"name":"(anonymous_10)","decl":{"start":{"line":94,"column":2},"end":{"line":94,"column":3}},"loc":{"start":{"line":94,"column":19},"end":{"line":96,"column":3}},"line":94},"11":{"name":"(anonymous_11)","decl":{"start":{"line":95,"column":28},"end":{"line":95,"column":29}},"loc":{"start":{"line":95,"column":36},"end":{"line":95,"column":50}},"line":95},"12":{"name":"(anonymous_12)","decl":{"start":{"line":101,"column":2},"end":{"line":101,"column":3}},"loc":{"start":{"line":101,"column":22},"end":{"line":107,"column":3}},"line":101},"13":{"name":"(anonymous_13)","decl":{"start":{"line":112,"column":2},"end":{"line":112,"column":3}},"loc":{"start":{"line":112,"column":56},"end":{"line":116,"column":3}},"line":112},"14":{"name":"(anonymous_14)","decl":{"start":{"line":113,"column":31},"end":{"line":113,"column":32}},"loc":{"start":{"line":113,"column":51},"end":{"line":115,"column":5}},"line":113},"15":{"name":"(anonymous_15)","decl":{"start":{"line":121,"column":2},"end":{"line":121,"column":3}},"loc":{"start":{"line":121,"column":45},"end":{"line":125,"column":3}},"line":121},"16":{"name":"(anonymous_16)","decl":{"start":{"line":122,"column":29},"end":{"line":122,"column":30}},"loc":{"start":{"line":122,"column":49},"end":{"line":124,"column":5}},"line":122},"17":{"name":"(anonymous_17)","decl":{"start":{"line":130,"column":2},"end":{"line":130,"column":3}},"loc":{"start":{"line":130,"column":48},"end":{"line":139,"column":3}},"line":130},"18":{"name":"(anonymous_18)","decl":{"start":{"line":146,"column":2},"end":{"line":146,"column":3}},"loc":{"start":{"line":146,"column":54},"end":{"line":150,"column":3}},"line":146},"19":{"name":"(anonymous_19)","decl":{"start":{"line":147,"column":28},"end":{"line":147,"column":29}},"loc":{"start":{"line":147,"column":33},"end":{"line":147,"column":46}},"line":147},"20":{"name":"(anonymous_20)","decl":{"start":{"line":156,"column":2},"end":{"line":156,"column":3}},"loc":{"start":{"line":156,"column":32},"end":{"line":163,"column":3}},"line":156},"21":{"name":"(anonymous_21)","decl":{"start":{"line":157,"column":16},"end":{"line":157,"column":17}},"loc":{"start":{"line":157,"column":22},"end":{"line":162,"column":5}},"line":157},"22":{"name":"(anonymous_22)","decl":{"start":{"line":171,"column":2},"end":{"line":171,"column":3}},"loc":{"start":{"line":174,"column":10},"end":{"line":187,"column":3}},"line":174},"23":{"name":"(anonymous_23)","decl":{"start":{"line":176,"column":32},"end":{"line":176,"column":33}},"loc":{"start":{"line":176,"column":37},"end":{"line":176,"column":41}},"line":176},"24":{"name":"(anonymous_24)","decl":{"start":{"line":181,"column":22},"end":{"line":181,"column":23}},"loc":{"start":{"line":181,"column":34},"end":{"line":186,"column":5}},"line":181},"25":{"name":"(anonymous_25)","decl":{"start":{"line":192,"column":2},"end":{"line":192,"column":3}},"loc":{"start":{"line":192,"column":53},"end":{"line":198,"column":3}},"line":192},"26":{"name":"(anonymous_26)","decl":{"start":{"line":207,"column":2},"end":{"line":207,"column":3}},"loc":{"start":{"line":210,"column":16},"end":{"line":268,"column":3}},"line":210},"27":{"name":"onProgress","decl":{"start":{"line":217,"column":41},"end":{"line":217,"column":51}},"loc":{"start":{"line":217,"column":63},"end":{"line":225,"column":5}},"line":217},"28":{"name":"(anonymous_28)","decl":{"start":{"line":245,"column":34},"end":{"line":245,"column":35}},"loc":{"start":{"line":245,"column":40},"end":{"line":251,"column":7}},"line":245},"29":{"name":"(anonymous_29)","decl":{"start":{"line":256,"column":31},"end":{"line":256,"column":32}},"loc":{"start":{"line":256,"column":37},"end":{"line":265,"column":5}},"line":256},"30":{"name":"(anonymous_30)","decl":{"start":{"line":278,"column":2},"end":{"line":278,"column":3}},"loc":{"start":{"line":278,"column":56},"end":{"line":304,"column":3}},"line":278},"31":{"name":"(anonymous_31)","decl":{"start":{"line":289,"column":33},"end":{"line":289,"column":34}},"loc":{"start":{"line":289,"column":39},"end":{"line":292,"column":7}},"line":289},"32":{"name":"(anonymous_32)","decl":{"start":{"line":297,"column":30},"end":{"line":297,"column":31}},"loc":{"start":{"line":297,"column":36},"end":{"line":301,"column":5}},"line":297},"33":{"name":"(anonymous_33)","decl":{"start":{"line":312,"column":2},"end":{"line":312,"column":3}},"loc":{"start":{"line":312,"column":52},"end":{"line":338,"column":3}},"line":312},"34":{"name":"(anonymous_34)","decl":{"start":{"line":326,"column":33},"end":{"line":326,"column":34}},"loc":{"start":{"line":326,"column":39},"end":{"line":329,"column":7}},"line":326}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":15},"end":{"line":24,"column":55}},"type":"default-arg","locations":[{"start":{"line":24,"column":53},"end":{"line":24,"column":55}}],"line":24},"1":{"loc":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},{"start":{"line":65,"column":4},"end":{"line":65,"column":35}}],"line":65},"2":{"loc":{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},{"start":{"line":104,"column":4},"end":{"line":104,"column":76}}],"line":104},"3":{"loc":{"start":{"line":112,"column":10},"end":{"line":112,"column":44}},"type":"default-arg","locations":[{"start":{"line":112,"column":42},"end":{"line":112,"column":44}}],"line":112},"4":{"loc":{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},"type":"if","locations":[{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},{"start":{"line":133,"column":4},"end":{"line":136,"column":5}}],"line":133},"5":{"loc":{"start":{"line":159,"column":6},"end":{"line":159,"column":24}},"type":"if","locations":[{"start":{"line":159,"column":6},"end":{"line":159,"column":24}},{"start":{"line":159,"column":6},"end":{"line":159,"column":24}}],"line":159},"6":{"loc":{"start":{"line":173,"column":4},"end":{"line":173,"column":65}},"type":"default-arg","locations":[{"start":{"line":173,"column":63},"end":{"line":173,"column":65}}],"line":173},"7":{"loc":{"start":{"line":173,"column":6},"end":{"line":173,"column":16}},"type":"default-arg","locations":[{"start":{"line":173,"column":12},"end":{"line":173,"column":16}}],"line":173},"8":{"loc":{"start":{"line":173,"column":18},"end":{"line":173,"column":31}},"type":"default-arg","locations":[{"start":{"line":173,"column":27},"end":{"line":173,"column":31}}],"line":173},"9":{"loc":{"start":{"line":173,"column":33},"end":{"line":173,"column":46}},"type":"default-arg","locations":[{"start":{"line":173,"column":42},"end":{"line":173,"column":46}}],"line":173},"10":{"loc":{"start":{"line":175,"column":4},"end":{"line":179,"column":5}},"type":"if","locations":[{"start":{"line":175,"column":4},"end":{"line":179,"column":5}},{"start":{"line":175,"column":4},"end":{"line":179,"column":5}}],"line":175},"11":{"loc":{"start":{"line":178,"column":6},"end":{"line":178,"column":48}},"type":"if","locations":[{"start":{"line":178,"column":6},"end":{"line":178,"column":48}},{"start":{"line":178,"column":6},"end":{"line":178,"column":48}}],"line":178},"12":{"loc":{"start":{"line":184,"column":6},"end":{"line":184,"column":46}},"type":"if","locations":[{"start":{"line":184,"column":6},"end":{"line":184,"column":46}},{"start":{"line":184,"column":6},"end":{"line":184,"column":46}}],"line":184},"13":{"loc":{"start":{"line":184,"column":10},"end":{"line":184,"column":25}},"type":"binary-expr","locations":[{"start":{"line":184,"column":10},"end":{"line":184,"column":15}},{"start":{"line":184,"column":19},"end":{"line":184,"column":25}}],"line":184},"14":{"loc":{"start":{"line":185,"column":6},"end":{"line":185,"column":45}},"type":"if","locations":[{"start":{"line":185,"column":6},"end":{"line":185,"column":45}},{"start":{"line":185,"column":6},"end":{"line":185,"column":45}}],"line":185},"15":{"loc":{"start":{"line":185,"column":10},"end":{"line":185,"column":23}},"type":"binary-expr","locations":[{"start":{"line":185,"column":10},"end":{"line":185,"column":16}},{"start":{"line":185,"column":20},"end":{"line":185,"column":23}}],"line":185},"16":{"loc":{"start":{"line":192,"column":9},"end":{"line":192,"column":48}},"type":"default-arg","locations":[{"start":{"line":192,"column":46},"end":{"line":192,"column":48}}],"line":192},"17":{"loc":{"start":{"line":209,"column":4},"end":{"line":209,"column":45}},"type":"default-arg","locations":[{"start":{"line":209,"column":43},"end":{"line":209,"column":45}}],"line":209},"18":{"loc":{"start":{"line":209,"column":6},"end":{"line":209,"column":23}},"type":"default-arg","locations":[{"start":{"line":209,"column":19},"end":{"line":209,"column":23}}],"line":209},"19":{"loc":{"start":{"line":212,"column":21},"end":{"line":214,"column":25}},"type":"cond-expr","locations":[{"start":{"line":213,"column":8},"end":{"line":213,"column":32}},{"start":{"line":214,"column":8},"end":{"line":214,"column":25}}],"line":212},"20":{"loc":{"start":{"line":218,"column":6},"end":{"line":220,"column":7}},"type":"if","locations":[{"start":{"line":218,"column":6},"end":{"line":220,"column":7}},{"start":{"line":218,"column":6},"end":{"line":220,"column":7}}],"line":218},"21":{"loc":{"start":{"line":218,"column":10},"end":{"line":218,"column":37}},"type":"binary-expr","locations":[{"start":{"line":218,"column":10},"end":{"line":218,"column":20}},{"start":{"line":218,"column":24},"end":{"line":218,"column":37}}],"line":218},"22":{"loc":{"start":{"line":222,"column":6},"end":{"line":224,"column":7}},"type":"if","locations":[{"start":{"line":222,"column":6},"end":{"line":224,"column":7}},{"start":{"line":222,"column":6},"end":{"line":224,"column":7}}],"line":222},"23":{"loc":{"start":{"line":231,"column":4},"end":{"line":236,"column":5}},"type":"if","locations":[{"start":{"line":231,"column":4},"end":{"line":236,"column":5}},{"start":{"line":231,"column":4},"end":{"line":236,"column":5}}],"line":231},"24":{"loc":{"start":{"line":232,"column":14},"end":{"line":234,"column":45}},"type":"cond-expr","locations":[{"start":{"line":233,"column":10},"end":{"line":233,"column":27}},{"start":{"line":234,"column":10},"end":{"line":234,"column":45}}],"line":232},"25":{"loc":{"start":{"line":246,"column":8},"end":{"line":248,"column":9}},"type":"if","locations":[{"start":{"line":246,"column":8},"end":{"line":248,"column":9}},{"start":{"line":246,"column":8},"end":{"line":248,"column":9}}],"line":246},"26":{"loc":{"start":{"line":257,"column":6},"end":{"line":262,"column":7}},"type":"if","locations":[{"start":{"line":257,"column":6},"end":{"line":262,"column":7}},{"start":{"line":257,"column":6},"end":{"line":262,"column":7}}],"line":257},"27":{"loc":{"start":{"line":278,"column":15},"end":{"line":278,"column":39}},"type":"default-arg","locations":[{"start":{"line":278,"column":37},"end":{"line":278,"column":39}}],"line":278},"28":{"loc":{"start":{"line":316,"column":6},"end":{"line":316,"column":16}},"type":"binary-expr","locations":[{"start":{"line":316,"column":6},"end":{"line":316,"column":10}},{"start":{"line":316,"column":14},"end":{"line":316,"column":16}}],"line":316}},"s":{"0":97,"1":0,"2":48,"3":0,"4":0,"5":3,"6":1,"7":2,"8":2,"9":104,"10":7,"11":72,"12":132,"13":41,"14":0,"15":0,"16":0,"17":0,"18":2,"19":2,"20":2,"21":2,"22":0,"23":0,"24":0,"25":0,"26":0,"27":115,"28":115,"29":115,"30":115,"31":13,"32":13,"33":13,"34":0,"35":13,"36":106,"37":105,"38":110,"39":104,"40":104,"41":1,"42":105,"43":111,"44":111,"45":5,"46":111,"47":104,"48":115,"49":115,"50":115,"51":115,"52":9,"53":9,"54":9,"55":6,"56":5,"57":6,"58":0,"59":9,"60":9,"61":7,"62":7,"63":9,"64":9,"65":9,"66":3,"67":3,"68":2,"69":3,"70":3,"71":3,"72":6,"73":6,"74":5,"75":5,"76":1,"77":6,"78":6,"79":6,"80":4,"81":4,"82":4,"83":4,"84":4,"85":1,"86":1,"87":1,"88":1,"89":3,"90":3,"91":2,"92":2,"93":2,"94":4,"95":4,"96":4,"97":4,"98":4,"99":1,"100":1,"101":1,"102":1,"103":3,"104":3,"105":3},"f":{"0":97,"1":0,"2":48,"3":0,"4":0,"5":3,"6":2,"7":104,"8":7,"9":72,"10":132,"11":41,"12":0,"13":2,"14":2,"15":2,"16":2,"17":0,"18":115,"19":115,"20":13,"21":13,"22":106,"23":110,"24":111,"25":115,"26":9,"27":6,"28":3,"29":6,"30":4,"31":1,"32":3,"33":4,"34":1},"b":{"0":[0],"1":[1,2],"2":[0,0],"3":[0],"4":[0,0],"5":[0,13],"6":[100],"7":[105],"8":[105],"9":[105],"10":[105,1],"11":[1,103],"12":[5,106],"13":[111,6],"14":[104,7],"15":[111,105],"16":[0],"17":[6],"18":[6],"19":[1,8],"20":[5,1],"21":[6,5],"22":[0,6],"23":[7,2],"24":[1,6],"25":[2,1],"26":[5,1],"27":[4],"28":[4,4]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"90b2bbcb1679a318f2903329346da7dabff4b573"}
{"/Users/pauramonrevilla/Sites/mobx-rest/src/Collection.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/Collection.js","statementMap":{"0":{"start":{"line":25,"column":4},"end":{"line":25,"column":18}},"1":{"start":{"line":34,"column":4},"end":{"line":34,"column":53}},"2":{"start":{"line":41,"column":4},"end":{"line":41,"column":16}},"3":{"start":{"line":49,"column":4},"end":{"line":49,"column":28}},"4":{"start":{"line":57,"column":4},"end":{"line":57,"column":30}},"5":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"6":{"start":{"line":65,"column":23},"end":{"line":65,"column":35}},"7":{"start":{"line":67,"column":4},"end":{"line":67,"column":39}},"8":{"start":{"line":74,"column":4},"end":{"line":74,"column":31}},"9":{"start":{"line":81,"column":4},"end":{"line":81,"column":60}},"10":{"start":{"line":81,"column":36},"end":{"line":81,"column":43}},"11":{"start":{"line":88,"column":4},"end":{"line":88,"column":29}},"12":{"start":{"line":95,"column":4},"end":{"line":95,"column":51}},"13":{"start":{"line":95,"column":36},"end":{"line":95,"column":50}},"14":{"start":{"line":102,"column":18},"end":{"line":102,"column":30}},"15":{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},"16":{"start":{"line":104,"column":16},"end":{"line":104,"column":76}},"17":{"start":{"line":106,"column":4},"end":{"line":106,"column":16}},"18":{"start":{"line":113,"column":4},"end":{"line":115,"column":6}},"19":{"start":{"line":114,"column":6},"end":{"line":114,"column":46}},"20":{"start":{"line":122,"column":4},"end":{"line":124,"column":6}},"21":{"start":{"line":123,"column":6},"end":{"line":123,"column":46}},"22":{"start":{"line":131,"column":18},"end":{"line":131,"column":34}},"23":{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},"24":{"start":{"line":134,"column":25},"end":{"line":134,"column":46}},"25":{"start":{"line":135,"column":6},"end":{"line":135,"column":71}},"26":{"start":{"line":138,"column":4},"end":{"line":138,"column":16}},"27":{"start":{"line":147,"column":19},"end":{"line":147,"column":47}},"28":{"start":{"line":147,"column":33},"end":{"line":147,"column":46}},"29":{"start":{"line":148,"column":4},"end":{"line":148,"column":31}},"30":{"start":{"line":149,"column":4},"end":{"line":149,"column":17}},"31":{"start":{"line":158,"column":19},"end":{"line":158,"column":47}},"32":{"start":{"line":158,"column":33},"end":{"line":158,"column":46}},"33":{"start":{"line":159,"column":4},"end":{"line":159,"column":24}},"34":{"start":{"line":160,"column":4},"end":{"line":160,"column":17}},"35":{"start":{"line":168,"column":4},"end":{"line":173,"column":6}},"36":{"start":{"line":169,"column":20},"end":{"line":169,"column":32}},"37":{"start":{"line":170,"column":6},"end":{"line":170,"column":24}},"38":{"start":{"line":170,"column":18},"end":{"line":170,"column":24}},"39":{"start":{"line":172,"column":6},"end":{"line":172,"column":55}},"40":{"start":{"line":186,"column":4},"end":{"line":190,"column":5}},"41":{"start":{"line":187,"column":18},"end":{"line":187,"column":42}},"42":{"start":{"line":187,"column":37},"end":{"line":187,"column":41}},"43":{"start":{"line":188,"column":23},"end":{"line":188,"column":51}},"44":{"start":{"line":189,"column":6},"end":{"line":189,"column":48}},"45":{"start":{"line":189,"column":27},"end":{"line":189,"column":48}},"46":{"start":{"line":192,"column":4},"end":{"line":197,"column":6}},"47":{"start":{"line":193,"column":20},"end":{"line":193,"column":41}},"48":{"start":{"line":195,"column":6},"end":{"line":195,"column":46}},"49":{"start":{"line":195,"column":27},"end":{"line":195,"column":46}},"50":{"start":{"line":196,"column":6},"end":{"line":196,"column":45}},"51":{"start":{"line":196,"column":25},"end":{"line":196,"column":45}},"52":{"start":{"line":204,"column":23},"end":{"line":204,"column":35}},"53":{"start":{"line":205,"column":18},"end":{"line":205,"column":44}},"54":{"start":{"line":206,"column":4},"end":{"line":206,"column":27}},"55":{"start":{"line":208,"column":4},"end":{"line":208,"column":16}},"56":{"start":{"line":223,"column":21},"end":{"line":225,"column":25}},"57":{"start":{"line":226,"column":25},"end":{"line":226,"column":35}},"58":{"start":{"line":228,"column":23},"end":{"line":236,"column":11}},"59":{"start":{"line":229,"column":6},"end":{"line":231,"column":7}},"60":{"start":{"line":230,"column":8},"end":{"line":230,"column":41}},"61":{"start":{"line":233,"column":6},"end":{"line":235,"column":7}},"62":{"start":{"line":234,"column":8},"end":{"line":234,"column":40}},"63":{"start":{"line":238,"column":31},"end":{"line":240,"column":6}},"64":{"start":{"line":242,"column":4},"end":{"line":247,"column":5}},"65":{"start":{"line":243,"column":6},"end":{"line":245,"column":45}},"66":{"start":{"line":246,"column":6},"end":{"line":246,"column":50}},"67":{"start":{"line":249,"column":4},"end":{"line":249,"column":47}},"68":{"start":{"line":253,"column":4},"end":{"line":265,"column":5}},"69":{"start":{"line":254,"column":6},"end":{"line":254,"column":26}},"70":{"start":{"line":256,"column":6},"end":{"line":262,"column":8}},"71":{"start":{"line":257,"column":8},"end":{"line":259,"column":9}},"72":{"start":{"line":258,"column":10},"end":{"line":258,"column":33}},"73":{"start":{"line":260,"column":8},"end":{"line":260,"column":49}},"74":{"start":{"line":261,"column":8},"end":{"line":261,"column":27}},"75":{"start":{"line":264,"column":6},"end":{"line":264,"column":16}},"76":{"start":{"line":267,"column":4},"end":{"line":276,"column":6}},"77":{"start":{"line":268,"column":6},"end":{"line":273,"column":7}},"78":{"start":{"line":269,"column":8},"end":{"line":269,"column":23}},"79":{"start":{"line":270,"column":8},"end":{"line":270,"column":28}},"80":{"start":{"line":272,"column":8},"end":{"line":272,"column":24}},"81":{"start":{"line":274,"column":6},"end":{"line":274,"column":25}},"82":{"start":{"line":275,"column":6},"end":{"line":275,"column":23}},"83":{"start":{"line":278,"column":4},"end":{"line":278,"column":15}},"84":{"start":{"line":290,"column":25},"end":{"line":290,"column":35}},"85":{"start":{"line":291,"column":31},"end":{"line":291,"column":72}},"86":{"start":{"line":293,"column":4},"end":{"line":293,"column":47}},"87":{"start":{"line":297,"column":4},"end":{"line":306,"column":5}},"88":{"start":{"line":298,"column":6},"end":{"line":298,"column":26}},"89":{"start":{"line":300,"column":6},"end":{"line":303,"column":8}},"90":{"start":{"line":301,"column":8},"end":{"line":301,"column":49}},"91":{"start":{"line":302,"column":8},"end":{"line":302,"column":27}},"92":{"start":{"line":305,"column":6},"end":{"line":305,"column":16}},"93":{"start":{"line":308,"column":4},"end":{"line":312,"column":6}},"94":{"start":{"line":309,"column":6},"end":{"line":309,"column":29}},"95":{"start":{"line":310,"column":6},"end":{"line":310,"column":25}},"96":{"start":{"line":311,"column":6},"end":{"line":311,"column":23}},"97":{"start":{"line":314,"column":4},"end":{"line":314,"column":15}},"98":{"start":{"line":324,"column":25},"end":{"line":324,"column":35}},"99":{"start":{"line":325,"column":31},"end":{"line":328,"column":5}},"100":{"start":{"line":330,"column":4},"end":{"line":330,"column":47}},"101":{"start":{"line":334,"column":4},"end":{"line":343,"column":5}},"102":{"start":{"line":335,"column":6},"end":{"line":335,"column":30}},"103":{"start":{"line":337,"column":6},"end":{"line":340,"column":8}},"104":{"start":{"line":338,"column":8},"end":{"line":338,"column":27}},"105":{"start":{"line":339,"column":8},"end":{"line":339,"column":49}},"106":{"start":{"line":342,"column":6},"end":{"line":342,"column":16}},"107":{"start":{"line":345,"column":4},"end":{"line":345,"column":23}},"108":{"start":{"line":346,"column":4},"end":{"line":346,"column":21}},"109":{"start":{"line":348,"column":4},"end":{"line":348,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":3}},"loc":{"start":{"line":24,"column":57},"end":{"line":26,"column":3}},"line":24},"1":{"name":"(anonymous_1)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":3}},"loc":{"start":{"line":33,"column":17},"end":{"line":35,"column":3}},"line":33},"2":{"name":"(anonymous_2)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":21},"end":{"line":42,"column":3}},"line":40},"3":{"name":"(anonymous_3)","decl":{"start":{"line":48,"column":2},"end":{"line":48,"column":3}},"loc":{"start":{"line":48,"column":10},"end":{"line":50,"column":3}},"line":48},"4":{"name":"(anonymous_4)","decl":{"start":{"line":56,"column":2},"end":{"line":56,"column":3}},"loc":{"start":{"line":56,"column":13},"end":{"line":58,"column":3}},"line":56},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":3}},"loc":{"start":{"line":64,"column":36},"end":{"line":68,"column":3}},"line":64},"6":{"name":"(anonymous_6)","decl":{"start":{"line":73,"column":2},"end":{"line":73,"column":3}},"loc":{"start":{"line":73,"column":22},"end":{"line":75,"column":3}},"line":73},"7":{"name":"(anonymous_7)","decl":{"start":{"line":80,"column":2},"end":{"line":80,"column":3}},"loc":{"start":{"line":80,"column":21},"end":{"line":82,"column":3}},"line":80},"8":{"name":"(anonymous_8)","decl":{"start":{"line":81,"column":28},"end":{"line":81,"column":29}},"loc":{"start":{"line":81,"column":36},"end":{"line":81,"column":43}},"line":81},"9":{"name":"(anonymous_9)","decl":{"start":{"line":87,"column":2},"end":{"line":87,"column":3}},"loc":{"start":{"line":87,"column":25},"end":{"line":89,"column":3}},"line":87},"10":{"name":"(anonymous_10)","decl":{"start":{"line":94,"column":2},"end":{"line":94,"column":3}},"loc":{"start":{"line":94,"column":19},"end":{"line":96,"column":3}},"line":94},"11":{"name":"(anonymous_11)","decl":{"start":{"line":95,"column":28},"end":{"line":95,"column":29}},"loc":{"start":{"line":95,"column":36},"end":{"line":95,"column":50}},"line":95},"12":{"name":"(anonymous_12)","decl":{"start":{"line":101,"column":2},"end":{"line":101,"column":3}},"loc":{"start":{"line":101,"column":22},"end":{"line":107,"column":3}},"line":101},"13":{"name":"(anonymous_13)","decl":{"start":{"line":112,"column":2},"end":{"line":112,"column":3}},"loc":{"start":{"line":112,"column":56},"end":{"line":116,"column":3}},"line":112},"14":{"name":"(anonymous_14)","decl":{"start":{"line":113,"column":31},"end":{"line":113,"column":32}},"loc":{"start":{"line":113,"column":51},"end":{"line":115,"column":5}},"line":113},"15":{"name":"(anonymous_15)","decl":{"start":{"line":121,"column":2},"end":{"line":121,"column":3}},"loc":{"start":{"line":121,"column":45},"end":{"line":125,"column":3}},"line":121},"16":{"name":"(anonymous_16)","decl":{"start":{"line":122,"column":29},"end":{"line":122,"column":30}},"loc":{"start":{"line":122,"column":49},"end":{"line":124,"column":5}},"line":122},"17":{"name":"(anonymous_17)","decl":{"start":{"line":130,"column":2},"end":{"line":130,"column":3}},"loc":{"start":{"line":130,"column":48},"end":{"line":139,"column":3}},"line":130},"18":{"name":"(anonymous_18)","decl":{"start":{"line":146,"column":2},"end":{"line":146,"column":3}},"loc":{"start":{"line":146,"column":54},"end":{"line":150,"column":3}},"line":146},"19":{"name":"(anonymous_19)","decl":{"start":{"line":147,"column":28},"end":{"line":147,"column":29}},"loc":{"start":{"line":147,"column":33},"end":{"line":147,"column":46}},"line":147},"20":{"name":"(anonymous_20)","decl":{"start":{"line":157,"column":2},"end":{"line":157,"column":3}},"loc":{"start":{"line":157,"column":56},"end":{"line":161,"column":3}},"line":157},"21":{"name":"(anonymous_21)","decl":{"start":{"line":158,"column":28},"end":{"line":158,"column":29}},"loc":{"start":{"line":158,"column":33},"end":{"line":158,"column":46}},"line":158},"22":{"name":"(anonymous_22)","decl":{"start":{"line":167,"column":2},"end":{"line":167,"column":3}},"loc":{"start":{"line":167,"column":32},"end":{"line":174,"column":3}},"line":167},"23":{"name":"(anonymous_23)","decl":{"start":{"line":168,"column":16},"end":{"line":168,"column":17}},"loc":{"start":{"line":168,"column":22},"end":{"line":173,"column":5}},"line":168},"24":{"name":"(anonymous_24)","decl":{"start":{"line":182,"column":2},"end":{"line":182,"column":3}},"loc":{"start":{"line":185,"column":10},"end":{"line":198,"column":3}},"line":185},"25":{"name":"(anonymous_25)","decl":{"start":{"line":187,"column":32},"end":{"line":187,"column":33}},"loc":{"start":{"line":187,"column":37},"end":{"line":187,"column":41}},"line":187},"26":{"name":"(anonymous_26)","decl":{"start":{"line":192,"column":22},"end":{"line":192,"column":23}},"loc":{"start":{"line":192,"column":34},"end":{"line":197,"column":5}},"line":192},"27":{"name":"(anonymous_27)","decl":{"start":{"line":203,"column":2},"end":{"line":203,"column":3}},"loc":{"start":{"line":203,"column":53},"end":{"line":209,"column":3}},"line":203},"28":{"name":"(anonymous_28)","decl":{"start":{"line":218,"column":2},"end":{"line":218,"column":3}},"loc":{"start":{"line":221,"column":16},"end":{"line":279,"column":3}},"line":221},"29":{"name":"onProgress","decl":{"start":{"line":228,"column":41},"end":{"line":228,"column":51}},"loc":{"start":{"line":228,"column":63},"end":{"line":236,"column":5}},"line":228},"30":{"name":"(anonymous_30)","decl":{"start":{"line":256,"column":34},"end":{"line":256,"column":35}},"loc":{"start":{"line":256,"column":40},"end":{"line":262,"column":7}},"line":256},"31":{"name":"(anonymous_31)","decl":{"start":{"line":267,"column":31},"end":{"line":267,"column":32}},"loc":{"start":{"line":267,"column":37},"end":{"line":276,"column":5}},"line":267},"32":{"name":"(anonymous_32)","decl":{"start":{"line":289,"column":2},"end":{"line":289,"column":3}},"loc":{"start":{"line":289,"column":56},"end":{"line":315,"column":3}},"line":289},"33":{"name":"(anonymous_33)","decl":{"start":{"line":300,"column":33},"end":{"line":300,"column":34}},"loc":{"start":{"line":300,"column":39},"end":{"line":303,"column":7}},"line":300},"34":{"name":"(anonymous_34)","decl":{"start":{"line":308,"column":30},"end":{"line":308,"column":31}},"loc":{"start":{"line":308,"column":36},"end":{"line":312,"column":5}},"line":308},"35":{"name":"(anonymous_35)","decl":{"start":{"line":323,"column":2},"end":{"line":323,"column":3}},"loc":{"start":{"line":323,"column":52},"end":{"line":349,"column":3}},"line":323},"36":{"name":"(anonymous_36)","decl":{"start":{"line":337,"column":33},"end":{"line":337,"column":34}},"loc":{"start":{"line":337,"column":39},"end":{"line":340,"column":7}},"line":337}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":15},"end":{"line":24,"column":55}},"type":"default-arg","locations":[{"start":{"line":24,"column":53},"end":{"line":24,"column":55}}],"line":24},"1":{"loc":{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":65,"column":35}},{"start":{"line":65,"column":4},"end":{"line":65,"column":35}}],"line":65},"2":{"loc":{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":104,"column":76}},{"start":{"line":104,"column":4},"end":{"line":104,"column":76}}],"line":104},"3":{"loc":{"start":{"line":112,"column":10},"end":{"line":112,"column":44}},"type":"default-arg","locations":[{"start":{"line":112,"column":42},"end":{"line":112,"column":44}}],"line":112},"4":{"loc":{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},"type":"if","locations":[{"start":{"line":133,"column":4},"end":{"line":136,"column":5}},{"start":{"line":133,"column":4},"end":{"line":136,"column":5}}],"line":133},"5":{"loc":{"start":{"line":170,"column":6},"end":{"line":170,"column":24}},"type":"if","locations":[{"start":{"line":170,"column":6},"end":{"line":170,"column":24}},{"start":{"line":170,"column":6},"end":{"line":170,"column":24}}],"line":170},"6":{"loc":{"start":{"line":184,"column":4},"end":{"line":184,"column":65}},"type":"default-arg","locations":[{"start":{"line":184,"column":63},"end":{"line":184,"column":65}}],"line":184},"7":{"loc":{"start":{"line":184,"column":6},"end":{"line":184,"column":16}},"type":"default-arg","locations":[{"start":{"line":184,"column":12},"end":{"line":184,"column":16}}],"line":184},"8":{"loc":{"start":{"line":184,"column":18},"end":{"line":184,"column":31}},"type":"default-arg","locations":[{"start":{"line":184,"column":27},"end":{"line":184,"column":31}}],"line":184},"9":{"loc":{"start":{"line":184,"column":33},"end":{"line":184,"column":46}},"type":"default-arg","locations":[{"start":{"line":184,"column":42},"end":{"line":184,"column":46}}],"line":184},"10":{"loc":{"start":{"line":186,"column":4},"end":{"line":190,"column":5}},"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":190,"column":5}},{"start":{"line":186,"column":4},"end":{"line":190,"column":5}}],"line":186},"11":{"loc":{"start":{"line":189,"column":6},"end":{"line":189,"column":48}},"type":"if","locations":[{"start":{"line":189,"column":6},"end":{"line":189,"column":48}},{"start":{"line":189,"column":6},"end":{"line":189,"column":48}}],"line":189},"12":{"loc":{"start":{"line":195,"column":6},"end":{"line":195,"column":46}},"type":"if","locations":[{"start":{"line":195,"column":6},"end":{"line":195,"column":46}},{"start":{"line":195,"column":6},"end":{"line":195,"column":46}}],"line":195},"13":{"loc":{"start":{"line":195,"column":10},"end":{"line":195,"column":25}},"type":"binary-expr","locations":[{"start":{"line":195,"column":10},"end":{"line":195,"column":15}},{"start":{"line":195,"column":19},"end":{"line":195,"column":25}}],"line":195},"14":{"loc":{"start":{"line":196,"column":6},"end":{"line":196,"column":45}},"type":"if","locations":[{"start":{"line":196,"column":6},"end":{"line":196,"column":45}},{"start":{"line":196,"column":6},"end":{"line":196,"column":45}}],"line":196},"15":{"loc":{"start":{"line":196,"column":10},"end":{"line":196,"column":23}},"type":"binary-expr","locations":[{"start":{"line":196,"column":10},"end":{"line":196,"column":16}},{"start":{"line":196,"column":20},"end":{"line":196,"column":23}}],"line":196},"16":{"loc":{"start":{"line":203,"column":9},"end":{"line":203,"column":48}},"type":"default-arg","locations":[{"start":{"line":203,"column":46},"end":{"line":203,"column":48}}],"line":203},"17":{"loc":{"start":{"line":220,"column":4},"end":{"line":220,"column":45}},"type":"default-arg","locations":[{"start":{"line":220,"column":43},"end":{"line":220,"column":45}}],"line":220},"18":{"loc":{"start":{"line":220,"column":6},"end":{"line":220,"column":23}},"type":"default-arg","locations":[{"start":{"line":220,"column":19},"end":{"line":220,"column":23}}],"line":220},"19":{"loc":{"start":{"line":223,"column":21},"end":{"line":225,"column":25}},"type":"cond-expr","locations":[{"start":{"line":224,"column":8},"end":{"line":224,"column":32}},{"start":{"line":225,"column":8},"end":{"line":225,"column":25}}],"line":223},"20":{"loc":{"start":{"line":229,"column":6},"end":{"line":231,"column":7}},"type":"if","locations":[{"start":{"line":229,"column":6},"end":{"line":231,"column":7}},{"start":{"line":229,"column":6},"end":{"line":231,"column":7}}],"line":229},"21":{"loc":{"start":{"line":229,"column":10},"end":{"line":229,"column":37}},"type":"binary-expr","locations":[{"start":{"line":229,"column":10},"end":{"line":229,"column":20}},{"start":{"line":229,"column":24},"end":{"line":229,"column":37}}],"line":229},"22":{"loc":{"start":{"line":233,"column":6},"end":{"line":235,"column":7}},"type":"if","locations":[{"start":{"line":233,"column":6},"end":{"line":235,"column":7}},{"start":{"line":233,"column":6},"end":{"line":235,"column":7}}],"line":233},"23":{"loc":{"start":{"line":242,"column":4},"end":{"line":247,"column":5}},"type":"if","locations":[{"start":{"line":242,"column":4},"end":{"line":247,"column":5}},{"start":{"line":242,"column":4},"end":{"line":247,"column":5}}],"line":242},"24":{"loc":{"start":{"line":243,"column":14},"end":{"line":245,"column":45}},"type":"cond-expr","locations":[{"start":{"line":244,"column":10},"end":{"line":244,"column":27}},{"start":{"line":245,"column":10},"end":{"line":245,"column":45}}],"line":243},"25":{"loc":{"start":{"line":257,"column":8},"end":{"line":259,"column":9}},"type":"if","locations":[{"start":{"line":257,"column":8},"end":{"line":259,"column":9}},{"start":{"line":257,"column":8},"end":{"line":259,"column":9}}],"line":257},"26":{"loc":{"start":{"line":268,"column":6},"end":{"line":273,"column":7}},"type":"if","locations":[{"start":{"line":268,"column":6},"end":{"line":273,"column":7}},{"start":{"line":268,"column":6},"end":{"line":273,"column":7}}],"line":268},"27":{"loc":{"start":{"line":289,"column":15},"end":{"line":289,"column":39}},"type":"default-arg","locations":[{"start":{"line":289,"column":37},"end":{"line":289,"column":39}}],"line":289},"28":{"loc":{"start":{"line":327,"column":6},"end":{"line":327,"column":16}},"type":"binary-expr","locations":[{"start":{"line":327,"column":6},"end":{"line":327,"column":10}},{"start":{"line":327,"column":14},"end":{"line":327,"column":16}}],"line":327}},"s":{"0":98,"1":0,"2":50,"3":0,"4":0,"5":3,"6":1,"7":2,"8":2,"9":105,"10":7,"11":72,"12":134,"13":42,"14":0,"15":0,"16":0,"17":0,"18":2,"19":2,"20":2,"21":2,"22":0,"23":0,"24":0,"25":0,"26":0,"27":116,"28":116,"29":116,"30":116,"31":1,"32":1,"33":1,"34":1,"35":13,"36":13,"37":13,"38":0,"39":13,"40":107,"41":106,"42":111,"43":105,"44":105,"45":1,"46":106,"47":112,"48":112,"49":5,"50":112,"51":105,"52":117,"53":117,"54":117,"55":117,"56":9,"57":9,"58":9,"59":6,"60":5,"61":6,"62":0,"63":9,"64":9,"65":7,"66":7,"67":9,"68":9,"69":9,"70":3,"71":3,"72":2,"73":3,"74":3,"75":3,"76":6,"77":6,"78":5,"79":5,"80":1,"81":6,"82":6,"83":6,"84":4,"85":4,"86":4,"87":4,"88":4,"89":1,"90":1,"91":1,"92":1,"93":3,"94":3,"95":2,"96":2,"97":2,"98":4,"99":4,"100":4,"101":4,"102":4,"103":1,"104":1,"105":1,"106":1,"107":3,"108":3,"109":3},"f":{"0":98,"1":0,"2":50,"3":0,"4":0,"5":3,"6":2,"7":105,"8":7,"9":72,"10":134,"11":42,"12":0,"13":2,"14":2,"15":2,"16":2,"17":0,"18":116,"19":116,"20":1,"21":1,"22":13,"23":13,"24":107,"25":111,"26":112,"27":117,"28":9,"29":6,"30":3,"31":6,"32":4,"33":1,"34":3,"35":4,"36":1},"b":{"0":[0],"1":[1,2],"2":[0,0],"3":[0],"4":[0,0],"5":[0,13],"6":[101],"7":[106],"8":[106],"9":[106],"10":[106,1],"11":[1,104],"12":[5,107],"13":[112,6],"14":[105,7],"15":[112,106],"16":[0],"17":[6],"18":[6],"19":[1,8],"20":[5,1],"21":[6,5],"22":[0,6],"23":[7,2],"24":[1,6],"25":[2,1],"26":[5,1],"27":[4],"28":[4,4]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"6be6246a41abf052f4a8d5b79fdc44d0209e8e57"}
,"/Users/pauramonrevilla/Sites/mobx-rest/src/ErrorObject.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/ErrorObject.js","statementMap":{"0":{"start":{"line":9,"column":4},"end":{"line":9,"column":22}},"1":{"start":{"line":10,"column":4},"end":{"line":10,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":3}},"loc":{"start":{"line":8,"column":39},"end":{"line":11,"column":3}},"line":8}},"branchMap":{},"s":{"0":26,"1":26},"f":{"0":26},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"94822d20efb4e6e33b7b81f083374530173bc5e5"}
,"/Users/pauramonrevilla/Sites/mobx-rest/src/Model.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/Model.js","statementMap":{"0":{"start":{"line":33,"column":4},"end":{"line":33,"column":48}},"1":{"start":{"line":41,"column":4},"end":{"line":41,"column":32}},"2":{"start":{"line":51,"column":4},"end":{"line":51,"column":15}},"3":{"start":{"line":61,"column":4},"end":{"line":61,"column":51}},"4":{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},"5":{"start":{"line":71,"column":6},"end":{"line":71,"column":37}},"6":{"start":{"line":73,"column":6},"end":{"line":73,"column":30}},"7":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"8":{"start":{"line":77,"column":6},"end":{"line":77,"column":74}},"9":{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},"10":{"start":{"line":81,"column":6},"end":{"line":81,"column":20}},"11":{"start":{"line":83,"column":6},"end":{"line":83,"column":54}},"12":{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},"13":{"start":{"line":92,"column":23},"end":{"line":92,"column":35}},"14":{"start":{"line":94,"column":4},"end":{"line":94,"column":39}},"15":{"start":{"line":105,"column":4},"end":{"line":105,"column":37}},"16":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"17":{"start":{"line":122,"column":6},"end":{"line":122,"column":43}},"18":{"start":{"line":124,"column":4},"end":{"line":124,"column":57}},"19":{"start":{"line":132,"column":4},"end":{"line":132,"column":41}},"20":{"start":{"line":140,"column":4},"end":{"line":142,"column":25}},"21":{"start":{"line":151,"column":4},"end":{"line":151,"column":31}},"22":{"start":{"line":159,"column":25},"end":{"line":159,"column":35}},"23":{"start":{"line":160,"column":31},"end":{"line":160,"column":72}},"24":{"start":{"line":162,"column":4},"end":{"line":162,"column":47}},"25":{"start":{"line":166,"column":4},"end":{"line":175,"column":5}},"26":{"start":{"line":167,"column":6},"end":{"line":167,"column":26}},"27":{"start":{"line":169,"column":6},"end":{"line":172,"column":8}},"28":{"start":{"line":170,"column":8},"end":{"line":170,"column":49}},"29":{"start":{"line":171,"column":8},"end":{"line":171,"column":27}},"30":{"start":{"line":174,"column":6},"end":{"line":174,"column":16}},"31":{"start":{"line":177,"column":4},"end":{"line":181,"column":6}},"32":{"start":{"line":178,"column":6},"end":{"line":178,"column":20}},"33":{"start":{"line":179,"column":6},"end":{"line":179,"column":25}},"34":{"start":{"line":180,"column":6},"end":{"line":180,"column":23}},"35":{"start":{"line":183,"column":4},"end":{"line":183,"column":15}},"36":{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},"37":{"start":{"line":202,"column":6},"end":{"line":202,"column":45}},"38":{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},"39":{"start":{"line":204,"column":8},"end":{"line":204,"column":59}},"40":{"start":{"line":206,"column":8},"end":{"line":206,"column":56}},"41":{"start":{"line":212,"column":25},"end":{"line":212,"column":35}},"42":{"start":{"line":213,"column":31},"end":{"line":213,"column":42}},"43":{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},"44":{"start":{"line":216,"column":6},"end":{"line":216,"column":71}},"45":{"start":{"line":217,"column":6},"end":{"line":217,"column":42}},"46":{"start":{"line":219,"column":6},"end":{"line":219,"column":51}},"47":{"start":{"line":220,"column":6},"end":{"line":220,"column":62}},"48":{"start":{"line":223,"column":23},"end":{"line":227,"column":11}},"49":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"50":{"start":{"line":225,"column":8},"end":{"line":225,"column":40}},"51":{"start":{"line":229,"column":31},"end":{"line":232,"column":6}},"52":{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},"53":{"start":{"line":234,"column":20},"end":{"line":234,"column":43}},"54":{"start":{"line":236,"column":4},"end":{"line":236,"column":47}},"55":{"start":{"line":240,"column":4},"end":{"line":250,"column":5}},"56":{"start":{"line":241,"column":6},"end":{"line":241,"column":30}},"57":{"start":{"line":243,"column":6},"end":{"line":247,"column":8}},"58":{"start":{"line":244,"column":8},"end":{"line":244,"column":27}},"59":{"start":{"line":245,"column":8},"end":{"line":245,"column":36}},"60":{"start":{"line":246,"column":8},"end":{"line":246,"column":49}},"61":{"start":{"line":249,"column":6},"end":{"line":249,"column":51}},"62":{"start":{"line":252,"column":4},"end":{"line":256,"column":6}},"63":{"start":{"line":253,"column":6},"end":{"line":253,"column":25}},"64":{"start":{"line":254,"column":6},"end":{"line":254,"column":23}},"65":{"start":{"line":255,"column":6},"end":{"line":255,"column":24}},"66":{"start":{"line":258,"column":4},"end":{"line":258,"column":19}},"67":{"start":{"line":269,"column":25},"end":{"line":269,"column":35}},"68":{"start":{"line":271,"column":23},"end":{"line":275,"column":11}},"69":{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},"70":{"start":{"line":273,"column":8},"end":{"line":273,"column":40}},"71":{"start":{"line":277,"column":31},"end":{"line":279,"column":6}},"72":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"73":{"start":{"line":282,"column":6},"end":{"line":282,"column":49}},"74":{"start":{"line":287,"column":4},"end":{"line":296,"column":5}},"75":{"start":{"line":288,"column":6},"end":{"line":288,"column":26}},"76":{"start":{"line":290,"column":6},"end":{"line":293,"column":8}},"77":{"start":{"line":291,"column":8},"end":{"line":291,"column":49}},"78":{"start":{"line":292,"column":8},"end":{"line":292,"column":27}},"79":{"start":{"line":295,"column":6},"end":{"line":295,"column":16}},"80":{"start":{"line":298,"column":4},"end":{"line":302,"column":6}},"81":{"start":{"line":299,"column":6},"end":{"line":299,"column":20}},"82":{"start":{"line":300,"column":6},"end":{"line":300,"column":25}},"83":{"start":{"line":301,"column":6},"end":{"line":301,"column":23}},"84":{"start":{"line":304,"column":4},"end":{"line":304,"column":15}},"85":{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},"86":{"start":{"line":315,"column":6},"end":{"line":315,"column":49}},"87":{"start":{"line":316,"column":6},"end":{"line":316,"column":30}},"88":{"start":{"line":319,"column":25},"end":{"line":319,"column":37}},"89":{"start":{"line":320,"column":31},"end":{"line":320,"column":58}},"90":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"91":{"start":{"line":323,"column":6},"end":{"line":323,"column":39}},"92":{"start":{"line":326,"column":4},"end":{"line":326,"column":47}},"93":{"start":{"line":328,"column":4},"end":{"line":340,"column":5}},"94":{"start":{"line":329,"column":6},"end":{"line":329,"column":19}},"95":{"start":{"line":331,"column":6},"end":{"line":337,"column":8}},"96":{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},"97":{"start":{"line":333,"column":10},"end":{"line":333,"column":55}},"98":{"start":{"line":335,"column":8},"end":{"line":335,"column":49}},"99":{"start":{"line":336,"column":8},"end":{"line":336,"column":27}},"100":{"start":{"line":339,"column":6},"end":{"line":339,"column":16}},"101":{"start":{"line":342,"column":4},"end":{"line":348,"column":6}},"102":{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},"103":{"start":{"line":344,"column":8},"end":{"line":344,"column":41}},"104":{"start":{"line":346,"column":6},"end":{"line":346,"column":25}},"105":{"start":{"line":347,"column":6},"end":{"line":347,"column":23}},"106":{"start":{"line":350,"column":4},"end":{"line":350,"column":15}},"107":{"start":{"line":360,"column":25},"end":{"line":360,"column":35}},"108":{"start":{"line":361,"column":31},"end":{"line":364,"column":5}},"109":{"start":{"line":366,"column":4},"end":{"line":366,"column":47}},"110":{"start":{"line":370,"column":4},"end":{"line":379,"column":5}},"111":{"start":{"line":371,"column":6},"end":{"line":371,"column":30}},"112":{"start":{"line":373,"column":6},"end":{"line":376,"column":8}},"113":{"start":{"line":374,"column":8},"end":{"line":374,"column":27}},"114":{"start":{"line":375,"column":8},"end":{"line":375,"column":49}},"115":{"start":{"line":378,"column":6},"end":{"line":378,"column":16}},"116":{"start":{"line":381,"column":4},"end":{"line":381,"column":23}},"117":{"start":{"line":382,"column":4},"end":{"line":382,"column":21}},"118":{"start":{"line":384,"column":4},"end":{"line":384,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":56},"end":{"line":34,"column":3}},"line":32},"1":{"name":"(anonymous_1)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":10},"end":{"line":42,"column":3}},"line":40},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":2},"end":{"line":50,"column":3}},"loc":{"start":{"line":50,"column":28},"end":{"line":52,"column":3}},"line":50},"3":{"name":"(anonymous_3)","decl":{"start":{"line":60,"column":2},"end":{"line":60,"column":3}},"loc":{"start":{"line":60,"column":13},"end":{"line":62,"column":3}},"line":60},"4":{"name":"(anonymous_4)","decl":{"start":{"line":67,"column":2},"end":{"line":67,"column":3}},"loc":{"start":{"line":67,"column":17},"end":{"line":85,"column":3}},"line":67},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":2},"end":{"line":91,"column":3}},"loc":{"start":{"line":91,"column":36},"end":{"line":95,"column":3}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":104,"column":2},"end":{"line":104,"column":3}},"loc":{"start":{"line":104,"column":24},"end":{"line":106,"column":3}},"line":104},"7":{"name":"(anonymous_7)","decl":{"start":{"line":120,"column":2},"end":{"line":120,"column":3}},"loc":{"start":{"line":120,"column":31},"end":{"line":125,"column":3}},"line":120},"8":{"name":"(anonymous_8)","decl":{"start":{"line":131,"column":2},"end":{"line":131,"column":3}},"loc":{"start":{"line":131,"column":35},"end":{"line":133,"column":3}},"line":131},"9":{"name":"(anonymous_9)","decl":{"start":{"line":139,"column":2},"end":{"line":139,"column":3}},"loc":{"start":{"line":139,"column":16},"end":{"line":143,"column":3}},"line":139},"10":{"name":"(anonymous_10)","decl":{"start":{"line":150,"column":2},"end":{"line":150,"column":3}},"loc":{"start":{"line":150,"column":23},"end":{"line":152,"column":3}},"line":150},"11":{"name":"(anonymous_11)","decl":{"start":{"line":158,"column":2},"end":{"line":158,"column":3}},"loc":{"start":{"line":158,"column":59},"end":{"line":184,"column":3}},"line":158},"12":{"name":"(anonymous_12)","decl":{"start":{"line":169,"column":33},"end":{"line":169,"column":34}},"loc":{"start":{"line":169,"column":39},"end":{"line":172,"column":7}},"line":169},"13":{"name":"(anonymous_13)","decl":{"start":{"line":177,"column":30},"end":{"line":177,"column":31}},"loc":{"start":{"line":177,"column":36},"end":{"line":181,"column":5}},"line":177},"14":{"name":"(anonymous_14)","decl":{"start":{"line":197,"column":2},"end":{"line":197,"column":3}},"loc":{"start":{"line":200,"column":16},"end":{"line":259,"column":3}},"line":200},"15":{"name":"onProgress","decl":{"start":{"line":223,"column":41},"end":{"line":223,"column":51}},"loc":{"start":{"line":223,"column":63},"end":{"line":227,"column":5}},"line":223},"16":{"name":"(anonymous_16)","decl":{"start":{"line":243,"column":31},"end":{"line":243,"column":32}},"loc":{"start":{"line":243,"column":37},"end":{"line":247,"column":7}},"line":243},"17":{"name":"(anonymous_17)","decl":{"start":{"line":252,"column":29},"end":{"line":252,"column":30}},"loc":{"start":{"line":252,"column":35},"end":{"line":256,"column":5}},"line":252},"18":{"name":"(anonymous_18)","decl":{"start":{"line":265,"column":2},"end":{"line":265,"column":3}},"loc":{"start":{"line":268,"column":16},"end":{"line":305,"column":3}},"line":268},"19":{"name":"onProgress","decl":{"start":{"line":271,"column":41},"end":{"line":271,"column":51}},"loc":{"start":{"line":271,"column":63},"end":{"line":275,"column":5}},"line":271},"20":{"name":"(anonymous_20)","decl":{"start":{"line":290,"column":34},"end":{"line":290,"column":35}},"loc":{"start":{"line":290,"column":40},"end":{"line":293,"column":7}},"line":290},"21":{"name":"(anonymous_21)","decl":{"start":{"line":298,"column":31},"end":{"line":298,"column":32}},"loc":{"start":{"line":298,"column":37},"end":{"line":302,"column":5}},"line":298},"22":{"name":"(anonymous_22)","decl":{"start":{"line":313,"column":2},"end":{"line":313,"column":3}},"loc":{"start":{"line":313,"column":73},"end":{"line":351,"column":3}},"line":313},"23":{"name":"(anonymous_23)","decl":{"start":{"line":331,"column":34},"end":{"line":331,"column":35}},"loc":{"start":{"line":331,"column":40},"end":{"line":337,"column":7}},"line":331},"24":{"name":"(anonymous_24)","decl":{"start":{"line":342,"column":32},"end":{"line":342,"column":33}},"loc":{"start":{"line":342,"column":38},"end":{"line":348,"column":5}},"line":342},"25":{"name":"(anonymous_25)","decl":{"start":{"line":359,"column":2},"end":{"line":359,"column":3}},"loc":{"start":{"line":359,"column":52},"end":{"line":385,"column":3}},"line":359},"26":{"name":"(anonymous_26)","decl":{"start":{"line":373,"column":33},"end":{"line":373,"column":34}},"loc":{"start":{"line":373,"column":39},"end":{"line":376,"column":7}},"line":373}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":15},"end":{"line":32,"column":54}},"type":"default-arg","locations":[{"start":{"line":32,"column":52},"end":{"line":32,"column":54}}],"line":32},"1":{"loc":{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},{"start":{"line":70,"column":4},"end":{"line":74,"column":5}}],"line":70},"2":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},{"start":{"line":76,"column":4},"end":{"line":78,"column":5}}],"line":76},"3":{"loc":{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},{"start":{"line":80,"column":4},"end":{"line":84,"column":5}}],"line":80},"4":{"loc":{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},{"start":{"line":92,"column":4},"end":{"line":92,"column":35}}],"line":92},"5":{"loc":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},{"start":{"line":121,"column":4},"end":{"line":123,"column":5}}],"line":121},"6":{"loc":{"start":{"line":140,"column":11},"end":{"line":142,"column":25}},"type":"cond-expr","locations":[{"start":{"line":141,"column":8},"end":{"line":141,"column":33}},{"start":{"line":142,"column":8},"end":{"line":142,"column":25}}],"line":140},"7":{"loc":{"start":{"line":158,"column":15},"end":{"line":158,"column":42}},"type":"default-arg","locations":[{"start":{"line":158,"column":40},"end":{"line":158,"column":42}}],"line":158},"8":{"loc":{"start":{"line":199,"column":4},"end":{"line":199,"column":57}},"type":"default-arg","locations":[{"start":{"line":199,"column":55},"end":{"line":199,"column":57}}],"line":199},"9":{"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":23}},"type":"default-arg","locations":[{"start":{"line":199,"column":19},"end":{"line":199,"column":23}}],"line":199},"10":{"loc":{"start":{"line":199,"column":25},"end":{"line":199,"column":37}},"type":"default-arg","locations":[{"start":{"line":199,"column":33},"end":{"line":199,"column":37}}],"line":199},"11":{"loc":{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},"type":"if","locations":[{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},{"start":{"line":201,"column":4},"end":{"line":208,"column":5}}],"line":201},"12":{"loc":{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},"type":"if","locations":[{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},{"start":{"line":203,"column":6},"end":{"line":207,"column":7}}],"line":203},"13":{"loc":{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},"type":"if","locations":[{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},{"start":{"line":215,"column":4},"end":{"line":221,"column":5}}],"line":215},"14":{"loc":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"type":"if","locations":[{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},{"start":{"line":224,"column":6},"end":{"line":226,"column":7}}],"line":224},"15":{"loc":{"start":{"line":224,"column":10},"end":{"line":224,"column":36}},"type":"binary-expr","locations":[{"start":{"line":224,"column":10},"end":{"line":224,"column":20}},{"start":{"line":224,"column":24},"end":{"line":224,"column":36}}],"line":224},"16":{"loc":{"start":{"line":230,"column":14},"end":{"line":230,"column":37}},"type":"cond-expr","locations":[{"start":{"line":230,"column":22},"end":{"line":230,"column":29}},{"start":{"line":230,"column":32},"end":{"line":230,"column":37}}],"line":230},"17":{"loc":{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},{"start":{"line":234,"column":4},"end":{"line":234,"column":43}}],"line":234},"18":{"loc":{"start":{"line":249,"column":12},"end":{"line":249,"column":51}},"type":"cond-expr","locations":[{"start":{"line":249,"column":29},"end":{"line":249,"column":44}},{"start":{"line":249,"column":47},"end":{"line":249,"column":51}}],"line":249},"19":{"loc":{"start":{"line":267,"column":4},"end":{"line":267,"column":45}},"type":"default-arg","locations":[{"start":{"line":267,"column":43},"end":{"line":267,"column":45}}],"line":267},"20":{"loc":{"start":{"line":267,"column":6},"end":{"line":267,"column":23}},"type":"default-arg","locations":[{"start":{"line":267,"column":19},"end":{"line":267,"column":23}}],"line":267},"21":{"loc":{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},"type":"if","locations":[{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},{"start":{"line":272,"column":6},"end":{"line":274,"column":7}}],"line":272},"22":{"loc":{"start":{"line":272,"column":10},"end":{"line":272,"column":36}},"type":"binary-expr","locations":[{"start":{"line":272,"column":10},"end":{"line":272,"column":20}},{"start":{"line":272,"column":24},"end":{"line":272,"column":36}}],"line":272},"23":{"loc":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"type":"if","locations":[{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},{"start":{"line":281,"column":4},"end":{"line":283,"column":5}}],"line":281},"24":{"loc":{"start":{"line":313,"column":17},"end":{"line":313,"column":59}},"type":"default-arg","locations":[{"start":{"line":313,"column":57},"end":{"line":313,"column":59}}],"line":313},"25":{"loc":{"start":{"line":313,"column":19},"end":{"line":313,"column":36}},"type":"default-arg","locations":[{"start":{"line":313,"column":32},"end":{"line":313,"column":36}}],"line":313},"26":{"loc":{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},"type":"if","locations":[{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},{"start":{"line":314,"column":4},"end":{"line":317,"column":5}}],"line":314},"27":{"loc":{"start":{"line":314,"column":8},"end":{"line":314,"column":53}},"type":"binary-expr","locations":[{"start":{"line":314,"column":8},"end":{"line":314,"column":34}},{"start":{"line":314,"column":38},"end":{"line":314,"column":53}}],"line":314},"28":{"loc":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"type":"if","locations":[{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},{"start":{"line":322,"column":4},"end":{"line":324,"column":5}}],"line":322},"29":{"loc":{"start":{"line":322,"column":8},"end":{"line":322,"column":37}},"type":"binary-expr","locations":[{"start":{"line":322,"column":8},"end":{"line":322,"column":18}},{"start":{"line":322,"column":22},"end":{"line":322,"column":37}}],"line":322},"30":{"loc":{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},"type":"if","locations":[{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},{"start":{"line":332,"column":8},"end":{"line":334,"column":9}}],"line":332},"31":{"loc":{"start":{"line":332,"column":12},"end":{"line":332,"column":41}},"type":"binary-expr","locations":[{"start":{"line":332,"column":12},"end":{"line":332,"column":22}},{"start":{"line":332,"column":26},"end":{"line":332,"column":41}}],"line":332},"32":{"loc":{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},"type":"if","locations":[{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},{"start":{"line":343,"column":6},"end":{"line":345,"column":7}}],"line":343},"33":{"loc":{"start":{"line":343,"column":10},"end":{"line":343,"column":40}},"type":"binary-expr","locations":[{"start":{"line":343,"column":10},"end":{"line":343,"column":21}},{"start":{"line":343,"column":25},"end":{"line":343,"column":40}}],"line":343},"34":{"loc":{"start":{"line":363,"column":6},"end":{"line":363,"column":16}},"type":"binary-expr","locations":[{"start":{"line":363,"column":6},"end":{"line":363,"column":10}},{"start":{"line":363,"column":14},"end":{"line":363,"column":16}}],"line":363}},"s":{"0":123,"1":30,"2":249,"3":1,"4":54,"5":39,"6":15,"7":53,"8":0,"9":53,"10":13,"11":40,"12":3,"13":1,"14":2,"15":55,"16":126,"17":125,"18":1,"19":281,"20":58,"21":67,"22":6,"23":6,"24":6,"25":6,"26":6,"27":2,"28":2,"29":2,"30":2,"31":4,"32":4,"33":4,"34":4,"35":4,"36":30,"37":14,"38":14,"39":2,"40":12,"41":16,"42":16,"43":16,"44":14,"45":14,"46":2,"47":2,"48":16,"49":0,"50":0,"51":16,"52":16,"53":14,"54":16,"55":16,"56":16,"57":5,"58":5,"59":5,"60":5,"61":5,"62":11,"63":11,"64":11,"65":11,"66":11,"67":12,"68":12,"69":8,"70":0,"71":12,"72":12,"73":10,"74":12,"75":12,"76":4,"77":4,"78":4,"79":4,"80":8,"81":8,"82":8,"83":8,"84":8,"85":12,"86":1,"87":1,"88":11,"89":11,"90":11,"91":5,"92":11,"93":11,"94":11,"95":6,"96":6,"97":3,"98":6,"99":6,"100":6,"101":5,"102":5,"103":3,"104":5,"105":5,"106":5,"107":5,"108":5,"109":5,"110":5,"111":5,"112":2,"113":2,"114":2,"115":2,"116":3,"117":3,"118":3},"f":{"0":123,"1":30,"2":249,"3":1,"4":54,"5":3,"6":55,"7":126,"8":281,"9":58,"10":67,"11":6,"12":2,"13":4,"14":30,"15":0,"16":5,"17":11,"18":12,"19":8,"20":4,"21":8,"22":12,"23":6,"24":5,"25":5,"26":2},"b":{"0":[0],"1":[39,15],"2":[0,53],"3":[13,40],"4":[1,2],"5":[125,1],"6":[54,4],"7":[6],"8":[24],"9":[26],"10":[28],"11":[14,16],"12":[2,12],"13":[14,2],"14":[0,0],"15":[0,0],"16":[14,2],"17":[14,2],"18":[5,0],"19":[0],"20":[0],"21":[0,8],"22":[8,7],"23":[10,2],"24":[6],"25":[6],"26":[1,11],"27":[12,1],"28":[5,6],"29":[11,5],"30":[3,3],"31":[6,3],"32":[3,2],"33":[5,3],"34":[5,5]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"8a0096245734f89537fdb5ee9b066e99525448c8"}
,"/Users/pauramonrevilla/Sites/mobx-rest/src/Model.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/Model.js","statementMap":{"0":{"start":{"line":33,"column":4},"end":{"line":33,"column":48}},"1":{"start":{"line":41,"column":4},"end":{"line":41,"column":32}},"2":{"start":{"line":51,"column":4},"end":{"line":51,"column":15}},"3":{"start":{"line":61,"column":4},"end":{"line":61,"column":51}},"4":{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},"5":{"start":{"line":71,"column":6},"end":{"line":71,"column":37}},"6":{"start":{"line":73,"column":6},"end":{"line":73,"column":30}},"7":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"8":{"start":{"line":77,"column":6},"end":{"line":77,"column":74}},"9":{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},"10":{"start":{"line":81,"column":6},"end":{"line":81,"column":20}},"11":{"start":{"line":83,"column":6},"end":{"line":83,"column":54}},"12":{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},"13":{"start":{"line":92,"column":23},"end":{"line":92,"column":35}},"14":{"start":{"line":94,"column":4},"end":{"line":94,"column":39}},"15":{"start":{"line":105,"column":4},"end":{"line":105,"column":37}},"16":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"17":{"start":{"line":122,"column":6},"end":{"line":122,"column":43}},"18":{"start":{"line":124,"column":4},"end":{"line":124,"column":57}},"19":{"start":{"line":132,"column":4},"end":{"line":132,"column":41}},"20":{"start":{"line":140,"column":4},"end":{"line":142,"column":25}},"21":{"start":{"line":151,"column":4},"end":{"line":151,"column":31}},"22":{"start":{"line":159,"column":25},"end":{"line":159,"column":35}},"23":{"start":{"line":160,"column":31},"end":{"line":160,"column":72}},"24":{"start":{"line":162,"column":4},"end":{"line":162,"column":47}},"25":{"start":{"line":166,"column":4},"end":{"line":175,"column":5}},"26":{"start":{"line":167,"column":6},"end":{"line":167,"column":26}},"27":{"start":{"line":169,"column":6},"end":{"line":172,"column":8}},"28":{"start":{"line":170,"column":8},"end":{"line":170,"column":49}},"29":{"start":{"line":171,"column":8},"end":{"line":171,"column":27}},"30":{"start":{"line":174,"column":6},"end":{"line":174,"column":16}},"31":{"start":{"line":177,"column":4},"end":{"line":181,"column":6}},"32":{"start":{"line":178,"column":6},"end":{"line":178,"column":20}},"33":{"start":{"line":179,"column":6},"end":{"line":179,"column":25}},"34":{"start":{"line":180,"column":6},"end":{"line":180,"column":23}},"35":{"start":{"line":183,"column":4},"end":{"line":183,"column":15}},"36":{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},"37":{"start":{"line":202,"column":6},"end":{"line":202,"column":45}},"38":{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},"39":{"start":{"line":204,"column":8},"end":{"line":204,"column":59}},"40":{"start":{"line":206,"column":8},"end":{"line":206,"column":56}},"41":{"start":{"line":212,"column":25},"end":{"line":212,"column":35}},"42":{"start":{"line":213,"column":31},"end":{"line":213,"column":42}},"43":{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},"44":{"start":{"line":216,"column":6},"end":{"line":216,"column":71}},"45":{"start":{"line":217,"column":6},"end":{"line":217,"column":42}},"46":{"start":{"line":219,"column":6},"end":{"line":219,"column":51}},"47":{"start":{"line":220,"column":6},"end":{"line":220,"column":62}},"48":{"start":{"line":223,"column":23},"end":{"line":227,"column":11}},"49":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"50":{"start":{"line":225,"column":8},"end":{"line":225,"column":40}},"51":{"start":{"line":229,"column":31},"end":{"line":232,"column":6}},"52":{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},"53":{"start":{"line":234,"column":20},"end":{"line":234,"column":43}},"54":{"start":{"line":236,"column":4},"end":{"line":236,"column":47}},"55":{"start":{"line":240,"column":4},"end":{"line":250,"column":5}},"56":{"start":{"line":241,"column":6},"end":{"line":241,"column":30}},"57":{"start":{"line":243,"column":6},"end":{"line":247,"column":8}},"58":{"start":{"line":244,"column":8},"end":{"line":244,"column":27}},"59":{"start":{"line":245,"column":8},"end":{"line":245,"column":36}},"60":{"start":{"line":246,"column":8},"end":{"line":246,"column":49}},"61":{"start":{"line":249,"column":6},"end":{"line":249,"column":51}},"62":{"start":{"line":252,"column":4},"end":{"line":256,"column":6}},"63":{"start":{"line":253,"column":6},"end":{"line":253,"column":25}},"64":{"start":{"line":254,"column":6},"end":{"line":254,"column":23}},"65":{"start":{"line":255,"column":6},"end":{"line":255,"column":24}},"66":{"start":{"line":258,"column":4},"end":{"line":258,"column":19}},"67":{"start":{"line":269,"column":25},"end":{"line":269,"column":35}},"68":{"start":{"line":271,"column":23},"end":{"line":275,"column":11}},"69":{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},"70":{"start":{"line":273,"column":8},"end":{"line":273,"column":40}},"71":{"start":{"line":277,"column":31},"end":{"line":279,"column":6}},"72":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"73":{"start":{"line":282,"column":6},"end":{"line":282,"column":49}},"74":{"start":{"line":287,"column":4},"end":{"line":296,"column":5}},"75":{"start":{"line":288,"column":6},"end":{"line":288,"column":26}},"76":{"start":{"line":290,"column":6},"end":{"line":293,"column":8}},"77":{"start":{"line":291,"column":8},"end":{"line":291,"column":49}},"78":{"start":{"line":292,"column":8},"end":{"line":292,"column":27}},"79":{"start":{"line":295,"column":6},"end":{"line":295,"column":16}},"80":{"start":{"line":298,"column":4},"end":{"line":302,"column":6}},"81":{"start":{"line":299,"column":6},"end":{"line":299,"column":20}},"82":{"start":{"line":300,"column":6},"end":{"line":300,"column":25}},"83":{"start":{"line":301,"column":6},"end":{"line":301,"column":23}},"84":{"start":{"line":304,"column":4},"end":{"line":304,"column":15}},"85":{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},"86":{"start":{"line":315,"column":6},"end":{"line":315,"column":49}},"87":{"start":{"line":316,"column":6},"end":{"line":316,"column":30}},"88":{"start":{"line":319,"column":25},"end":{"line":319,"column":37}},"89":{"start":{"line":320,"column":31},"end":{"line":320,"column":58}},"90":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"91":{"start":{"line":323,"column":6},"end":{"line":323,"column":39}},"92":{"start":{"line":326,"column":4},"end":{"line":326,"column":47}},"93":{"start":{"line":328,"column":4},"end":{"line":340,"column":5}},"94":{"start":{"line":329,"column":6},"end":{"line":329,"column":19}},"95":{"start":{"line":331,"column":6},"end":{"line":337,"column":8}},"96":{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},"97":{"start":{"line":333,"column":10},"end":{"line":333,"column":55}},"98":{"start":{"line":335,"column":8},"end":{"line":335,"column":49}},"99":{"start":{"line":336,"column":8},"end":{"line":336,"column":27}},"100":{"start":{"line":339,"column":6},"end":{"line":339,"column":16}},"101":{"start":{"line":342,"column":4},"end":{"line":348,"column":6}},"102":{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},"103":{"start":{"line":344,"column":8},"end":{"line":344,"column":41}},"104":{"start":{"line":346,"column":6},"end":{"line":346,"column":25}},"105":{"start":{"line":347,"column":6},"end":{"line":347,"column":23}},"106":{"start":{"line":350,"column":4},"end":{"line":350,"column":15}},"107":{"start":{"line":360,"column":25},"end":{"line":360,"column":35}},"108":{"start":{"line":361,"column":31},"end":{"line":364,"column":5}},"109":{"start":{"line":366,"column":4},"end":{"line":366,"column":47}},"110":{"start":{"line":370,"column":4},"end":{"line":379,"column":5}},"111":{"start":{"line":371,"column":6},"end":{"line":371,"column":30}},"112":{"start":{"line":373,"column":6},"end":{"line":376,"column":8}},"113":{"start":{"line":374,"column":8},"end":{"line":374,"column":27}},"114":{"start":{"line":375,"column":8},"end":{"line":375,"column":49}},"115":{"start":{"line":378,"column":6},"end":{"line":378,"column":16}},"116":{"start":{"line":381,"column":4},"end":{"line":381,"column":23}},"117":{"start":{"line":382,"column":4},"end":{"line":382,"column":21}},"118":{"start":{"line":384,"column":4},"end":{"line":384,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":56},"end":{"line":34,"column":3}},"line":32},"1":{"name":"(anonymous_1)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":3}},"loc":{"start":{"line":40,"column":10},"end":{"line":42,"column":3}},"line":40},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":2},"end":{"line":50,"column":3}},"loc":{"start":{"line":50,"column":28},"end":{"line":52,"column":3}},"line":50},"3":{"name":"(anonymous_3)","decl":{"start":{"line":60,"column":2},"end":{"line":60,"column":3}},"loc":{"start":{"line":60,"column":13},"end":{"line":62,"column":3}},"line":60},"4":{"name":"(anonymous_4)","decl":{"start":{"line":67,"column":2},"end":{"line":67,"column":3}},"loc":{"start":{"line":67,"column":17},"end":{"line":85,"column":3}},"line":67},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":2},"end":{"line":91,"column":3}},"loc":{"start":{"line":91,"column":36},"end":{"line":95,"column":3}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":104,"column":2},"end":{"line":104,"column":3}},"loc":{"start":{"line":104,"column":24},"end":{"line":106,"column":3}},"line":104},"7":{"name":"(anonymous_7)","decl":{"start":{"line":120,"column":2},"end":{"line":120,"column":3}},"loc":{"start":{"line":120,"column":31},"end":{"line":125,"column":3}},"line":120},"8":{"name":"(anonymous_8)","decl":{"start":{"line":131,"column":2},"end":{"line":131,"column":3}},"loc":{"start":{"line":131,"column":35},"end":{"line":133,"column":3}},"line":131},"9":{"name":"(anonymous_9)","decl":{"start":{"line":139,"column":2},"end":{"line":139,"column":3}},"loc":{"start":{"line":139,"column":16},"end":{"line":143,"column":3}},"line":139},"10":{"name":"(anonymous_10)","decl":{"start":{"line":150,"column":2},"end":{"line":150,"column":3}},"loc":{"start":{"line":150,"column":23},"end":{"line":152,"column":3}},"line":150},"11":{"name":"(anonymous_11)","decl":{"start":{"line":158,"column":2},"end":{"line":158,"column":3}},"loc":{"start":{"line":158,"column":59},"end":{"line":184,"column":3}},"line":158},"12":{"name":"(anonymous_12)","decl":{"start":{"line":169,"column":33},"end":{"line":169,"column":34}},"loc":{"start":{"line":169,"column":39},"end":{"line":172,"column":7}},"line":169},"13":{"name":"(anonymous_13)","decl":{"start":{"line":177,"column":30},"end":{"line":177,"column":31}},"loc":{"start":{"line":177,"column":36},"end":{"line":181,"column":5}},"line":177},"14":{"name":"(anonymous_14)","decl":{"start":{"line":197,"column":2},"end":{"line":197,"column":3}},"loc":{"start":{"line":200,"column":16},"end":{"line":259,"column":3}},"line":200},"15":{"name":"onProgress","decl":{"start":{"line":223,"column":41},"end":{"line":223,"column":51}},"loc":{"start":{"line":223,"column":63},"end":{"line":227,"column":5}},"line":223},"16":{"name":"(anonymous_16)","decl":{"start":{"line":243,"column":31},"end":{"line":243,"column":32}},"loc":{"start":{"line":243,"column":37},"end":{"line":247,"column":7}},"line":243},"17":{"name":"(anonymous_17)","decl":{"start":{"line":252,"column":29},"end":{"line":252,"column":30}},"loc":{"start":{"line":252,"column":35},"end":{"line":256,"column":5}},"line":252},"18":{"name":"(anonymous_18)","decl":{"start":{"line":265,"column":2},"end":{"line":265,"column":3}},"loc":{"start":{"line":268,"column":16},"end":{"line":305,"column":3}},"line":268},"19":{"name":"onProgress","decl":{"start":{"line":271,"column":41},"end":{"line":271,"column":51}},"loc":{"start":{"line":271,"column":63},"end":{"line":275,"column":5}},"line":271},"20":{"name":"(anonymous_20)","decl":{"start":{"line":290,"column":34},"end":{"line":290,"column":35}},"loc":{"start":{"line":290,"column":40},"end":{"line":293,"column":7}},"line":290},"21":{"name":"(anonymous_21)","decl":{"start":{"line":298,"column":31},"end":{"line":298,"column":32}},"loc":{"start":{"line":298,"column":37},"end":{"line":302,"column":5}},"line":298},"22":{"name":"(anonymous_22)","decl":{"start":{"line":313,"column":2},"end":{"line":313,"column":3}},"loc":{"start":{"line":313,"column":73},"end":{"line":351,"column":3}},"line":313},"23":{"name":"(anonymous_23)","decl":{"start":{"line":331,"column":34},"end":{"line":331,"column":35}},"loc":{"start":{"line":331,"column":40},"end":{"line":337,"column":7}},"line":331},"24":{"name":"(anonymous_24)","decl":{"start":{"line":342,"column":32},"end":{"line":342,"column":33}},"loc":{"start":{"line":342,"column":38},"end":{"line":348,"column":5}},"line":342},"25":{"name":"(anonymous_25)","decl":{"start":{"line":359,"column":2},"end":{"line":359,"column":3}},"loc":{"start":{"line":359,"column":52},"end":{"line":385,"column":3}},"line":359},"26":{"name":"(anonymous_26)","decl":{"start":{"line":373,"column":33},"end":{"line":373,"column":34}},"loc":{"start":{"line":373,"column":39},"end":{"line":376,"column":7}},"line":373}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":15},"end":{"line":32,"column":54}},"type":"default-arg","locations":[{"start":{"line":32,"column":52},"end":{"line":32,"column":54}}],"line":32},"1":{"loc":{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":74,"column":5}},{"start":{"line":70,"column":4},"end":{"line":74,"column":5}}],"line":70},"2":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},{"start":{"line":76,"column":4},"end":{"line":78,"column":5}}],"line":76},"3":{"loc":{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":84,"column":5}},{"start":{"line":80,"column":4},"end":{"line":84,"column":5}}],"line":80},"4":{"loc":{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},"type":"if","locations":[{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},{"start":{"line":92,"column":4},"end":{"line":92,"column":35}}],"line":92},"5":{"loc":{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":123,"column":5}},{"start":{"line":121,"column":4},"end":{"line":123,"column":5}}],"line":121},"6":{"loc":{"start":{"line":140,"column":11},"end":{"line":142,"column":25}},"type":"cond-expr","locations":[{"start":{"line":141,"column":8},"end":{"line":141,"column":33}},{"start":{"line":142,"column":8},"end":{"line":142,"column":25}}],"line":140},"7":{"loc":{"start":{"line":158,"column":15},"end":{"line":158,"column":42}},"type":"default-arg","locations":[{"start":{"line":158,"column":40},"end":{"line":158,"column":42}}],"line":158},"8":{"loc":{"start":{"line":199,"column":4},"end":{"line":199,"column":57}},"type":"default-arg","locations":[{"start":{"line":199,"column":55},"end":{"line":199,"column":57}}],"line":199},"9":{"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":23}},"type":"default-arg","locations":[{"start":{"line":199,"column":19},"end":{"line":199,"column":23}}],"line":199},"10":{"loc":{"start":{"line":199,"column":25},"end":{"line":199,"column":37}},"type":"default-arg","locations":[{"start":{"line":199,"column":33},"end":{"line":199,"column":37}}],"line":199},"11":{"loc":{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},"type":"if","locations":[{"start":{"line":201,"column":4},"end":{"line":208,"column":5}},{"start":{"line":201,"column":4},"end":{"line":208,"column":5}}],"line":201},"12":{"loc":{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},"type":"if","locations":[{"start":{"line":203,"column":6},"end":{"line":207,"column":7}},{"start":{"line":203,"column":6},"end":{"line":207,"column":7}}],"line":203},"13":{"loc":{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},"type":"if","locations":[{"start":{"line":215,"column":4},"end":{"line":221,"column":5}},{"start":{"line":215,"column":4},"end":{"line":221,"column":5}}],"line":215},"14":{"loc":{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},"type":"if","locations":[{"start":{"line":224,"column":6},"end":{"line":226,"column":7}},{"start":{"line":224,"column":6},"end":{"line":226,"column":7}}],"line":224},"15":{"loc":{"start":{"line":224,"column":10},"end":{"line":224,"column":36}},"type":"binary-expr","locations":[{"start":{"line":224,"column":10},"end":{"line":224,"column":20}},{"start":{"line":224,"column":24},"end":{"line":224,"column":36}}],"line":224},"16":{"loc":{"start":{"line":230,"column":14},"end":{"line":230,"column":37}},"type":"cond-expr","locations":[{"start":{"line":230,"column":22},"end":{"line":230,"column":29}},{"start":{"line":230,"column":32},"end":{"line":230,"column":37}}],"line":230},"17":{"loc":{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":234,"column":43}},{"start":{"line":234,"column":4},"end":{"line":234,"column":43}}],"line":234},"18":{"loc":{"start":{"line":249,"column":12},"end":{"line":249,"column":51}},"type":"cond-expr","locations":[{"start":{"line":249,"column":29},"end":{"line":249,"column":44}},{"start":{"line":249,"column":47},"end":{"line":249,"column":51}}],"line":249},"19":{"loc":{"start":{"line":267,"column":4},"end":{"line":267,"column":45}},"type":"default-arg","locations":[{"start":{"line":267,"column":43},"end":{"line":267,"column":45}}],"line":267},"20":{"loc":{"start":{"line":267,"column":6},"end":{"line":267,"column":23}},"type":"default-arg","locations":[{"start":{"line":267,"column":19},"end":{"line":267,"column":23}}],"line":267},"21":{"loc":{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},"type":"if","locations":[{"start":{"line":272,"column":6},"end":{"line":274,"column":7}},{"start":{"line":272,"column":6},"end":{"line":274,"column":7}}],"line":272},"22":{"loc":{"start":{"line":272,"column":10},"end":{"line":272,"column":36}},"type":"binary-expr","locations":[{"start":{"line":272,"column":10},"end":{"line":272,"column":20}},{"start":{"line":272,"column":24},"end":{"line":272,"column":36}}],"line":272},"23":{"loc":{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},"type":"if","locations":[{"start":{"line":281,"column":4},"end":{"line":283,"column":5}},{"start":{"line":281,"column":4},"end":{"line":283,"column":5}}],"line":281},"24":{"loc":{"start":{"line":313,"column":17},"end":{"line":313,"column":59}},"type":"default-arg","locations":[{"start":{"line":313,"column":57},"end":{"line":313,"column":59}}],"line":313},"25":{"loc":{"start":{"line":313,"column":19},"end":{"line":313,"column":36}},"type":"default-arg","locations":[{"start":{"line":313,"column":32},"end":{"line":313,"column":36}}],"line":313},"26":{"loc":{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},"type":"if","locations":[{"start":{"line":314,"column":4},"end":{"line":317,"column":5}},{"start":{"line":314,"column":4},"end":{"line":317,"column":5}}],"line":314},"27":{"loc":{"start":{"line":314,"column":8},"end":{"line":314,"column":53}},"type":"binary-expr","locations":[{"start":{"line":314,"column":8},"end":{"line":314,"column":34}},{"start":{"line":314,"column":38},"end":{"line":314,"column":53}}],"line":314},"28":{"loc":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"type":"if","locations":[{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},{"start":{"line":322,"column":4},"end":{"line":324,"column":5}}],"line":322},"29":{"loc":{"start":{"line":322,"column":8},"end":{"line":322,"column":37}},"type":"binary-expr","locations":[{"start":{"line":322,"column":8},"end":{"line":322,"column":18}},{"start":{"line":322,"column":22},"end":{"line":322,"column":37}}],"line":322},"30":{"loc":{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},"type":"if","locations":[{"start":{"line":332,"column":8},"end":{"line":334,"column":9}},{"start":{"line":332,"column":8},"end":{"line":334,"column":9}}],"line":332},"31":{"loc":{"start":{"line":332,"column":12},"end":{"line":332,"column":41}},"type":"binary-expr","locations":[{"start":{"line":332,"column":12},"end":{"line":332,"column":22}},{"start":{"line":332,"column":26},"end":{"line":332,"column":41}}],"line":332},"32":{"loc":{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},"type":"if","locations":[{"start":{"line":343,"column":6},"end":{"line":345,"column":7}},{"start":{"line":343,"column":6},"end":{"line":345,"column":7}}],"line":343},"33":{"loc":{"start":{"line":343,"column":10},"end":{"line":343,"column":40}},"type":"binary-expr","locations":[{"start":{"line":343,"column":10},"end":{"line":343,"column":21}},{"start":{"line":343,"column":25},"end":{"line":343,"column":40}}],"line":343},"34":{"loc":{"start":{"line":363,"column":6},"end":{"line":363,"column":16}},"type":"binary-expr","locations":[{"start":{"line":363,"column":6},"end":{"line":363,"column":10}},{"start":{"line":363,"column":14},"end":{"line":363,"column":16}}],"line":363}},"s":{"0":125,"1":30,"2":251,"3":1,"4":54,"5":39,"6":15,"7":53,"8":0,"9":53,"10":13,"11":40,"12":3,"13":1,"14":2,"15":55,"16":128,"17":127,"18":1,"19":284,"20":59,"21":67,"22":6,"23":6,"24":6,"25":6,"26":6,"27":2,"28":2,"29":2,"30":2,"31":4,"32":4,"33":4,"34":4,"35":4,"36":30,"37":14,"38":14,"39":2,"40":12,"41":16,"42":16,"43":16,"44":14,"45":14,"46":2,"47":2,"48":16,"49":0,"50":0,"51":16,"52":16,"53":14,"54":16,"55":16,"56":16,"57":5,"58":5,"59":5,"60":5,"61":5,"62":11,"63":11,"64":11,"65":11,"66":11,"67":12,"68":12,"69":8,"70":0,"71":12,"72":12,"73":10,"74":12,"75":12,"76":4,"77":4,"78":4,"79":4,"80":8,"81":8,"82":8,"83":8,"84":8,"85":12,"86":1,"87":1,"88":11,"89":11,"90":11,"91":5,"92":11,"93":11,"94":11,"95":6,"96":6,"97":3,"98":6,"99":6,"100":6,"101":5,"102":5,"103":3,"104":5,"105":5,"106":5,"107":5,"108":5,"109":5,"110":5,"111":5,"112":2,"113":2,"114":2,"115":2,"116":3,"117":3,"118":3},"f":{"0":125,"1":30,"2":251,"3":1,"4":54,"5":3,"6":55,"7":128,"8":284,"9":59,"10":67,"11":6,"12":2,"13":4,"14":30,"15":0,"16":5,"17":11,"18":12,"19":8,"20":4,"21":8,"22":12,"23":6,"24":5,"25":5,"26":2},"b":{"0":[0],"1":[39,15],"2":[0,53],"3":[13,40],"4":[1,2],"5":[127,1],"6":[55,4],"7":[6],"8":[24],"9":[26],"10":[28],"11":[14,16],"12":[2,12],"13":[14,2],"14":[0,0],"15":[0,0],"16":[14,2],"17":[14,2],"18":[5,0],"19":[0],"20":[0],"21":[0,8],"22":[8,7],"23":[10,2],"24":[6],"25":[6],"26":[1,11],"27":[12,1],"28":[5,6],"29":[11,5],"30":[3,3],"31":[6,3],"32":[3,2],"33":[5,3],"34":[5,5]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"8a0096245734f89537fdb5ee9b066e99525448c8"}
,"/Users/pauramonrevilla/Sites/mobx-rest/src/Request.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/Request.js","statementMap":{"0":{"start":{"line":11,"column":4},"end":{"line":11,"column":22}},"1":{"start":{"line":12,"column":4},"end":{"line":12,"column":22}},"2":{"start":{"line":13,"column":4},"end":{"line":13,"column":28}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":2},"end":{"line":10,"column":3}},"loc":{"start":{"line":10,"column":66},"end":{"line":14,"column":3}},"line":10}},"branchMap":{},"s":{"0":76,"1":76,"2":76},"f":{"0":76},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"c860e878fa2e6fa7483483698e69642f3c0845c0"}

@@ -5,0 +5,0 @@ ,"/Users/pauramonrevilla/Sites/mobx-rest/src/apiClient.js": {"path":"/Users/pauramonrevilla/Sites/mobx-rest/src/apiClient.js","statementMap":{"0":{"start":{"line":13,"column":2},"end":{"line":15,"column":3}},"1":{"start":{"line":14,"column":4},"end":{"line":14,"column":56}},"2":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":53}},"4":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}}},"fnMap":{"0":{"name":"apiClient","decl":{"start":{"line":9,"column":24},"end":{"line":9,"column":33}},"loc":{"start":{"line":12,"column":11},"end":{"line":22,"column":1}},"line":12}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":38}},"type":"default-arg","locations":[{"start":{"line":11,"column":36},"end":{"line":11,"column":38}}],"line":11},"1":{"loc":{"start":{"line":13,"column":2},"end":{"line":15,"column":3}},"type":"if","locations":[{"start":{"line":13,"column":2},"end":{"line":15,"column":3}},{"start":{"line":13,"column":2},"end":{"line":15,"column":3}}],"line":13},"2":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17}},"s":{"0":129,"1":2,"2":129,"3":0,"4":129},"f":{"0":129},"b":{"0":[129],"1":[2,127],"2":[0,129]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"dbc073596b94fa7b3c3b15e21e06adab311aaa64"}

@@ -303,2 +303,19 @@ 'use strict';

/**
* Resets a collection of models.
* Returns the added models.
*/
}, {
key: 'reset',
value: function reset(data) {
var _this2 = this;
var models = data.map(function (d) {
return _this2.build(d);
});
this.models = models;
return models;
}
/**
* Removes the model with the given ids or uuids

@@ -310,9 +327,9 @@ */

value: function remove(ids) {
var _this2 = this;
var _this3 = this;
ids.forEach(function (id) {
var model = _this2.get(id);
var model = _this3.get(id);
if (!model) return;
_this2.models.splice(_this2.models.indexOf(model), 1);
_this3.models.splice(_this3.models.indexOf(model), 1);
});

@@ -330,3 +347,3 @@ }

value: function set(resources) {
var _this3 = this;
var _this4 = this;

@@ -350,6 +367,6 @@ var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},

resources.forEach(function (resource) {
var model = _this3.get(resource.id);
var model = _this4.get(resource.id);
if (model && change) model.set(resource);
if (!model && add) _this3.add([resource]);
if (!model && add) _this4.add([resource]);
});

@@ -385,3 +402,3 @@ }

var _ref4 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(attributesOrModel) {
var _this4 = this;
var _this5 = this;

@@ -438,6 +455,6 @@ var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},

if (model) {
_this4.remove([model.id]);
_this5.remove([model.id]);
}
_this4.error = new _ErrorObject2.default(label, _context.t0);
_this4.request = null;
_this5.error = new _ErrorObject2.default(label, _context.t0);
_this5.request = null;
});

@@ -454,6 +471,6 @@

} else {
_this4.add([data]);
_this5.add([data]);
}
_this4.request = null;
_this4.error = null;
_this5.request = null;
_this5.error = null;
});

@@ -490,3 +507,3 @@

var _ref6 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2() {
var _this5 = this;
var _this6 = this;

@@ -522,4 +539,4 @@ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

(0, _mobx.runInAction)('fetch-error', function () {
_this5.error = new _ErrorObject2.default(label, _context2.t0);
_this5.request = null;
_this6.error = new _ErrorObject2.default(label, _context2.t0);
_this6.request = null;
});

@@ -532,5 +549,5 @@

(0, _mobx.runInAction)('fetch-done', function () {
_this5.set(data, options);
_this5.request = null;
_this5.error = null;
_this6.set(data, options);
_this6.request = null;
_this6.error = null;
});

@@ -565,3 +582,3 @@

var _ref7 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(method, body) {
var _this6 = this;
var _this7 = this;

@@ -596,4 +613,4 @@ var label, _apiClient$post2, promise, abort, response;

(0, _mobx.runInAction)('accept-fail', function () {
_this6.request = null;
_this6.error = new _ErrorObject2.default(label, _context3.t0);
_this7.request = null;
_this7.error = new _ErrorObject2.default(label, _context3.t0);
});

@@ -641,3 +658,3 @@

}
}), _applyDecoratedDescriptor(_class.prototype, 'add', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'add'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'remove', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'remove'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'set', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'create', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'create'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'fetch', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'fetch'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'rpc', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'rpc'), _class.prototype)), _class);
}), _applyDecoratedDescriptor(_class.prototype, 'add', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'add'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'reset', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'reset'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'remove', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'remove'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'set', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'create', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'create'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'fetch', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'fetch'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'rpc', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'rpc'), _class.prototype)), _class);
exports.default = Collection;
{
"name": "mobx-rest",
"version": "2.2.0",
"version": "2.2.1",
"description": "REST conventions for mobx.",

@@ -5,0 +5,0 @@ "repository": {

@@ -310,6 +310,18 @@ # mobx-rest

#### `add(data: Object): Array<Model>`
#### `add(data: Array<Object>): Array<Model>`
Add a model with the given attributes.
Adds models with the given array of attributes.
```js
usersCollection.add([{id: 1, name: 'foo'}])
```
#### `reset(data: Array<Object>): Array<Model>`
Resets the collection with the given models.
```js
usersCollection.reset([{id: 1, name: 'foo'}])
```
#### `remove(ids: Array<number>): void`

@@ -316,0 +328,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc