@weapnl/js-junction 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v0.0.11
6
+ - Fixed a bug where cancelled requests would cause issues when cancelling subsequent requests.
7
+
5
8
  ## v0.0.10
6
9
  - Updated Readme.md
7
10
  - Added onFinished to the index.d.ts file (TS support).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weapnl/js-junction",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "This project allows you to easily consume API's built with Junction.",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/src/api.js CHANGED
@@ -76,7 +76,9 @@ export default class Api {
76
76
  return;
77
77
  }
78
78
 
79
- delete this._requests[request.key];
79
+ if (request.response.statusCode !== 0) {
80
+ delete this._requests[request.key];
81
+ }
80
82
  }
81
83
 
82
84
  /**