Skip to content

Commit 537b271

Browse files
committed
fix undefined of proxy or exclude
1 parent ed8fdcf commit 537b271

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fetch-mock",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "fetch mock for reactjs",
55
"main": "index.js",
66
"scripts": {

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class FetchMock {
1414

1515
this.urls = [];
1616
this.raw = options.fetch;
17-
this.exclude = options.exclude;
18-
this.proxy = options.proxy;
17+
this.exclude = options.exclude || [];
18+
this.proxy = options.proxy || [];
1919

2020
this.loadMocks = this.loadMocks.bind(this);
2121
this.loadMock = this.loadMock.bind(this);

0 commit comments

Comments
 (0)