Skip to content

Commit

Permalink
Add 200 OK DELETE status (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
jondayton authored Jun 30, 2020
1 parent e377338 commit b1ac2ae
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/mobx-async-store.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ function () {
case 0:
_this.isInFlight = false;

if (!(response.status === 202 || response.status === 204)) {
if (![200, 202, 204].includes(response.status)) {
_context.next = 18;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/mobx-async-store.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ function () {
case 0:
_this.isInFlight = false;

if (!(response.status === 202 || response.status === 204)) {
if (![200, 202, 204].includes(response.status)) {
_context.next = 18;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Model.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/RelatedRecordsArray.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Store.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "mobx-async-store",
"description": "Asyc Data Store for mobx",
"url": "https://github.com/artemis-ag/mobx-async-store",
"version": "1.2.0"
"version": "1.2.1"
},
"files": {
"src/decorators/attributes.js": {
Expand Down
4 changes: 2 additions & 2 deletions docs/files/src_Model.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down Expand Up @@ -439,7 +439,7 @@ <h1 class="file-heading">File: src/Model.js</h1>
return promise.then(
async function (response) {
_this.isInFlight = false
if (response.status === 202 || response.status === 204) {
if ([200, 202, 204].includes(response.status)) {
if (!skipRemove) {
_this.store.remove(type, id)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/files/src_Store.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/files/src_decorators_attributes.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/files/src_decorators_relationships.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/files/src_schema.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/files/src_utils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="../assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h1><img src="./assets/css/logo.png" title="mobx-async-store" width="117" height="52"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 1.2.0</em>
<em>API Docs for: 1.2.1</em>
</div>
</div>
<div id="bd" class="yui3-g">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@artemisag/mobx-async-store",
"version": "1.2.0",
"version": "1.2.1",
"module": "dist/mobx-async-store.esm.js",
"browser": "dist/mobx-async-store.cjs.js",
"main": "dist/mobx-async-store.cjs.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class Model {
return promise.then(
async function (response) {
_this.isInFlight = false
if (response.status === 202 || response.status === 204) {
if ([200, 202, 204].includes(response.status)) {
if (!skipRemove) {
_this.store.remove(type, id)
}
Expand Down

0 comments on commit b1ac2ae

Please sign in to comment.