Comparing version 6.0.0 to 6.0.1
@@ -253,4 +253,6 @@ "use strict"; | ||
if (/\*/.test(url)) { | ||
// Uses the new syntax for repeating parameters in path-to-regexp, | ||
// see https://github.com/pillarjs/path-to-regexp#unexpected--or- | ||
// eslint-disable-next-line no-param-reassign | ||
url = url.replace(/\/\*/g, "/(.*)"); | ||
url = url.replace(/\/\*/g, "/*path"); | ||
} | ||
@@ -265,7 +267,8 @@ | ||
} | ||
push.call(this.responses, { | ||
method: method, | ||
url: | ||
typeof url === "string" && url !== "" ? pathToRegexp(url) : url, | ||
typeof url === "string" && url !== "" | ||
? pathToRegexp(url).regexp | ||
: url, | ||
response: typeof body === "function" ? body : responseArray(body), | ||
@@ -272,0 +275,0 @@ }); |
{ | ||
"name": "nise", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Fake XHR and server", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"prepare": "npm run bundle", | ||
"prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin", | ||
"prepublishOnly": "git pull && mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin", | ||
"test": "mocha lib/**/*.test.js", | ||
@@ -71,3 +71,3 @@ "test:coverage": "nyc --reporter=lcov --reporter=text --all npm test -- --reporter dot", | ||
"just-extend": "^6.2.0", | ||
"path-to-regexp": "^6.2.1" | ||
"path-to-regexp": "^8.1.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "lint-staged": { |
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
11413
878463
+ Addedpath-to-regexp@8.2.0(transitive)
- Removedpath-to-regexp@6.3.0(transitive)
Updatedpath-to-regexp@^8.1.0