We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed8fdcf commit 537b271Copy full SHA for 537b271
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-fetch-mock",
3
- "version": "0.5.2",
+ "version": "0.5.3",
4
"description": "fetch mock for reactjs",
5
"main": "index.js",
6
"scripts": {
src/index.js
@@ -14,8 +14,8 @@ class FetchMock {
14
15
this.urls = [];
16
this.raw = options.fetch;
17
- this.exclude = options.exclude;
18
- this.proxy = options.proxy;
+ this.exclude = options.exclude || [];
+ this.proxy = options.proxy || [];
19
20
this.loadMocks = this.loadMocks.bind(this);
21
this.loadMock = this.loadMock.bind(this);
0 commit comments