Skip to content

Commit

Permalink
fix: use path-to-regexp@6.3.0 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 authored Sep 13, 2024
1 parent 6dcf910 commit 0572d55
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) {
const pathRegExp = pathToRegexp(sanitizePrefixUrl(url), {
end: false
regexp = pathToRegexp(sanitizePrefixUrl(url), [], {
end: false,
strict: true
})
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": "^8.1.0",
"path-to-regexp": "^6.3.0",
"reusify": "^1.0.4"
},
"publishConfig": {
Expand Down

0 comments on commit 0572d55

Please sign in to comment.