Skip to content

Commit

Permalink
chore(deps): bump the major-dependencies group across 1 directory wit…
Browse files Browse the repository at this point in the history
…h 3 updates (#1585)

* chore(deps): bump the major-dependencies group across 1 directory with 3 updates

Bumps the major-dependencies group with 3 updates in the / directory: [express](https://github.com/expressjs/express), [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) and [openid-client](https://github.com/panva/openid-client).


Updates `express` from 4.21.0 to 5.0.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](expressjs/express@4.21.0...5.0.1)

Updates `@types/express` from 4.17.21 to 5.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

Updates `openid-client` from 5.7.0 to 6.1.3
- [Release notes](https://github.com/panva/openid-client/releases)
- [Changelog](https://github.com/panva/openid-client/blob/main/CHANGELOG.md)
- [Commits](panva/openid-client@v5.7.0...v6.1.3)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: "@types/express"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: openid-client
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: major-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(familie-backend): oppgradert Express v5

BREAKING CHANGE: Dobbeltsjekk innhold her for oppdatering:
https://expressjs.com/en/guide/migrating-5.html

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: charliemidtlyng <[email protected]>
  • Loading branch information
dependabot[bot] and charliemidtlyng authored Nov 18, 2024
1 parent 045eac7 commit f6b8150
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 86 deletions.
14 changes: 7 additions & 7 deletions packages/familie-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
"dependencies": {
"@navikt/familie-logging": "^7.0.2",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
"@types/express": "^5.0.0",
"@types/express-session": "^1.18.0",
"@types/passport": "^1.0.16",
"@types/passport": "^1.0.17",
"connect-redis": "^7.1.1",
"cookie-parser": "^1.4.6",
"express": "^4.21.0",
"cookie-parser": "^1.4.7",
"express": "^5.0.1",
"express-http-proxy": "^2.1.1",
"express-session": "^1.18.0",
"https-proxy-agent": "^7.0.4",
"express-session": "^1.18.1",
"https-proxy-agent": "^7.0.5",
"node-fetch": "^3.3.2",
"openid-client": "^5.7.0",
"passport": "^0.7.0",
"prom-client": "^15.1.2",
"prom-client": "^15.1.3",
"redis": "^4.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/familie-backend/src/auth/bruker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const hentBrukerData = (accessToken: string, req: Request) => {
*/
export const setBrukerprofilPåSesjonRute = (authClient: Client) => {
return async (req: Request, _: Response, next: NextFunction) => {
return setBrukerprofilPåSesjon(authClient, req, next);
setBrukerprofilPåSesjon(authClient, req, next);
};
};

Expand Down
4 changes: 2 additions & 2 deletions packages/familie-backend/src/auth/tokenUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface UtledAccessTokenProps {
};
}

function utledAccessToken(props: UtledAccessTokenProps, retryCount: number) {
const utledAccessToken = (props: UtledAccessTokenProps, retryCount: number) => {
const { authClient, req, api, promise } = props;
authClient
.grant({
Expand Down Expand Up @@ -52,7 +52,7 @@ function utledAccessToken(props: UtledAccessTokenProps, retryCount: number) {
promise.reject(err);
}
});
}
};

export const getOnBehalfOfAccessToken = (
authClient: Client,
Expand Down
4 changes: 3 additions & 1 deletion packages/familie-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export default async (
res.status(500).end();
}
});
app.get('/isReady', (_req: Request, res: Response) => res.status(200).end());
app.get('/isReady', (_req: Request, res: Response) => {
res.status(200).end();
});
const prometheusRegistry: Registry = konfigurerMetrikker(app, prometheusTellere);

konfigurerSession(app, passport, sessionKonfigurasjon);
Expand Down
Loading

0 comments on commit f6b8150

Please sign in to comment.