Comparing version 5.1.9 to 6.0.0
@@ -153,2 +153,3 @@ "use strict"; | ||
unsafeHeadersEnabled: true, | ||
legacyRoutes: true, | ||
}; | ||
@@ -217,2 +218,4 @@ | ||
legacyRoutes: true, | ||
respondWith: function respondWith(method, url, body) { | ||
@@ -255,2 +258,9 @@ if (arguments.length === 1 && typeof method !== "function") { | ||
} | ||
if (this.legacyRoutes) { | ||
if (url.includes("?")) { | ||
// eslint-disable-next-line no-param-reassign | ||
url = url.replace("?", "\\?"); | ||
} | ||
} | ||
} | ||
@@ -257,0 +267,0 @@ |
{ | ||
"name": "nise", | ||
"version": "5.1.9", | ||
"version": "6.0.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
879551
11403