Comparing version 5.0.4 to 5.1.0
@@ -74,3 +74,4 @@ "use strict"; | ||
url === reqUrl || | ||
(typeof url.test === "function" && url.test(reqUrl)); | ||
(typeof url.test === "function" && url.test(reqUrl)) || | ||
(typeof url === "function" && url(reqUrl) === true); | ||
@@ -77,0 +78,0 @@ return matchMethod && matchUrl; |
@@ -516,4 +516,2 @@ "use strict"; | ||
); | ||
var event, progress; | ||
if (typeof this.onreadystatechange === "function") { | ||
@@ -527,3 +525,7 @@ try { | ||
if (this.readyState === FakeXMLHttpRequest.DONE) { | ||
if (this.readyState !== FakeXMLHttpRequest.DONE) { | ||
this.dispatchEvent(readyStateChangeEvent); | ||
} else { | ||
var event, progress; | ||
if (this.timedOut || this.aborted || this.status === 0) { | ||
@@ -558,2 +560,3 @@ progress = { loaded: 0, total: 0 }; | ||
); | ||
this.dispatchEvent(readyStateChangeEvent); | ||
this.dispatchEvent( | ||
@@ -563,4 +566,2 @@ new sinonEvent.ProgressEvent("loadend", progress, this) | ||
} | ||
this.dispatchEvent(readyStateChangeEvent); | ||
}, | ||
@@ -567,0 +568,0 @@ |
{ | ||
"name": "nise", | ||
"version": "5.0.4", | ||
"version": "5.1.0", | ||
"description": "Fake XHR and server", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
845097
10489