Skip to content

Commit 8b54923

Browse files
committed
do fix
1 parent 537b271 commit 8b54923

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ var FetchMock = function () {
4848

4949
this.urls = [];
5050
this.raw = options.fetch;
51-
this.exclude = options.exclude;
52-
this.proxy = options.proxy;
51+
this.exclude = options.exclude || [];
52+
this.proxy = options.proxy || [];
5353

5454
this.loadMocks = this.loadMocks.bind(this);
5555
this.loadMock = this.loadMock.bind(this);

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.3",
3+
"version": "0.5.4",
44
"description": "fetch mock for reactjs",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)