Skip to content

Commit

Permalink
Update vulnerable path-to-regexp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nhardy committed Sep 11, 2024
1 parent f38372e commit 91e186d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
"version": "./.changeset/version",
"release": "./.changeset/release",
"release-snapshot": "./.changeset/snapshot"

},
"devDependencies": {
"@changesets/changelog-github": "^0.4.4",
"@changesets/cli": "^2.22.0",
"@sladg/eslint-config-base": "1.4.1",
"eslint": "^8.47.0",
"turbo": "1.10.12"
"turbo": "1.10.12"
},
"engines": {
"node": ">=16",
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"aws4fetch": "^1.0.18",
"chalk": "^5.3.0",
"esbuild": "0.19.2",
"path-to-regexp": "^6.2.1",
"path-to-regexp": "^8.1.0",
"promise.series": "^0.2.0",
"urlpattern-polyfill": "^10.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/open-next/src/core/routing/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Match,
match,
MatchFunction,
ParamData,
PathFunction,
} from "path-to-regexp";
import type {
Expand Down Expand Up @@ -115,8 +116,8 @@ const computeParamHas =
};

function convertMatch(
match: Match,
toDestination: PathFunction,
match: Match<ParamData>,
toDestination: PathFunction<ParamData>,
destination: string,
) {
if (match) {
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91e186d

Please sign in to comment.