1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

chore(dependencies): upgrade msw to fix xmldom CVE (#8362)

* chore(dependencies): upgrade msw to fix xmldom CVE

* refactor(msw): rename msw DefaultRequestBody to DefaultBodyType
This commit is contained in:
LP B 2023-01-23 14:03:11 +01:00 committed by GitHub
parent eff6ec9df9
commit a74e389521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 197 additions and 77 deletions

View file

@ -1,4 +1,4 @@
import { DefaultRequestBody, PathParams, rest } from 'msw';
import { DefaultBodyType, PathParams, rest } from 'msw';
import {
Edition,
@ -72,7 +72,7 @@ export const handlers = [
tags.push(tag);
return res(ctx.json(tag));
}),
rest.get<DefaultRequestBody, PathParams, Partial<PublicSettingsResponse>>(
rest.get<DefaultBodyType, PathParams, Partial<PublicSettingsResponse>>(
'/api/settings/public',
(req, res, ctx) =>
res(
@ -87,7 +87,7 @@ export const handlers = [
})
)
),
rest.get<DefaultRequestBody, PathParams, Partial<StatusResponse>>(
rest.get<DefaultBodyType, PathParams, Partial<StatusResponse>>(
'/api/status',
(req, res, ctx) => res(ctx.json({}))
),