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:
parent
eff6ec9df9
commit
a74e389521
5 changed files with 197 additions and 77 deletions
|
@ -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({}))
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue