Skip to content

Commit 0cccef7

Browse files
committed
fix wrong dist file
1 parent 93ca6a4 commit 0cccef7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var FetchMock = function () {
146146
proxied = void 0;
147147
this.proxy.forEach(function (item) {
148148
var tmp = (0, _pathToRegexp2.default)(item.path).exec(url);
149-
if (tmp.length > 1) {
149+
if (tmp && tmp.length > 1) {
150150
matches = tmp;
151151
proxied = item;
152152
return false;

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class FetchMock {
9898
let matches, proxied;
9999
this.proxy.forEach(item => {
100100
const tmp = pathToRegexp(item.path).exec(url);
101-
if (temp && tmp.length > 1) {
101+
if (tmp && tmp.length > 1) {
102102
matches = tmp;
103103
proxied = item;
104104
return false;

0 commit comments

Comments
 (0)