Skip to content

Commit

Permalink
chore(8.x): bump path-to-regexp to 8.1.0 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 authored Sep 11, 2024
1 parent 5fb0eb9 commit c1b16c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ function middie (complete) {

let regexp
if (url) {
regexp = pathToRegexp(sanitizePrefixUrl(url), [], {
end: false,
strict: false
const pathRegExp = pathToRegexp(sanitizePrefixUrl(url), {
end: false
})
regexp = pathRegExp.regexp
}

if (Array.isArray(f)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@fastify/error": "^3.2.0",
"fastify-plugin": "^4.0.0",
"path-to-regexp": "^6.1.0",
"path-to-regexp": "^8.1.0",
"reusify": "^1.0.4"
},
"publishConfig": {
Expand Down

0 comments on commit c1b16c8

Please sign in to comment.