mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +03:00
fix(deps): update dependency msw to ^0.36.0 (#974)
* fix(deps): update dependency msw to ^0.36.0 * Update * Remove entry Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
parent
34ffeb60b4
commit
76e0f371ac
|
@ -20,7 +20,7 @@
|
|||
"@redux-devtools/rtk-query-monitor": "^1.0.1",
|
||||
"@reduxjs/toolkit": "^1.6.2",
|
||||
"framer-motion": "^5.3.3",
|
||||
"msw": "^0.35.0",
|
||||
"msw": "^0.36.0",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-icons": "^4.3.1",
|
||||
|
|
|
@ -19,41 +19,47 @@ const db = factory({
|
|||
});
|
||||
|
||||
export const handlers = [
|
||||
rest.post('/posts', async (req, res, ctx) => {
|
||||
const { name } = req.body as Partial<Post>;
|
||||
rest.post<Post, never, Post | { error: string }>(
|
||||
'/posts',
|
||||
async (req, res, ctx) => {
|
||||
const { name } = req.body;
|
||||
|
||||
if (Math.random() < 0.3) {
|
||||
return res(
|
||||
ctx.json({ error: 'Oh no, there was an error, try again.' }),
|
||||
ctx.status(500),
|
||||
ctx.delay(300)
|
||||
);
|
||||
if (Math.random() < 0.3) {
|
||||
return res(
|
||||
ctx.json({ error: 'Oh no, there was an error, try again.' }),
|
||||
ctx.status(500),
|
||||
ctx.delay(300)
|
||||
);
|
||||
}
|
||||
|
||||
const post = db.post.create({
|
||||
id: nanoid(),
|
||||
name,
|
||||
});
|
||||
|
||||
return res(ctx.json(post), ctx.delay(300));
|
||||
}
|
||||
),
|
||||
rest.put<Post, { id: string }, Post | { error: string }>(
|
||||
'/posts/:id',
|
||||
(req, res, ctx) => {
|
||||
const { name } = req.body;
|
||||
|
||||
const post = db.post.create({
|
||||
id: nanoid(),
|
||||
name,
|
||||
});
|
||||
if (Math.random() < 0.3) {
|
||||
return res(
|
||||
ctx.json({ error: 'Oh no, there was an error, try again.' }),
|
||||
ctx.status(500),
|
||||
ctx.delay(300)
|
||||
);
|
||||
}
|
||||
|
||||
return res(ctx.json(post), ctx.delay(300));
|
||||
}),
|
||||
rest.put('/posts/:id', (req, res, ctx) => {
|
||||
const { name } = req.body as Partial<Post>;
|
||||
const post = db.post.update({
|
||||
where: { id: { equals: req.params.id } },
|
||||
data: { name },
|
||||
});
|
||||
|
||||
if (Math.random() < 0.3) {
|
||||
return res(
|
||||
ctx.json({ error: 'Oh no, there was an error, try again.' }),
|
||||
ctx.status(500),
|
||||
ctx.delay(300)
|
||||
);
|
||||
return res(ctx.json(post!), ctx.delay(300));
|
||||
}
|
||||
|
||||
const post = db.post.update({
|
||||
where: { id: { equals: req.params.id } },
|
||||
data: { name },
|
||||
});
|
||||
|
||||
return res(ctx.json(post), ctx.delay(300));
|
||||
}),
|
||||
),
|
||||
...db.post.toHandlers('rest'),
|
||||
] as const;
|
||||
|
|
|
@ -21,11 +21,6 @@
|
|||
"matchPackageNames": ["source-map"],
|
||||
"matchUpdateTypes": ["major", "minor"],
|
||||
"groupName": "source-map"
|
||||
},
|
||||
{
|
||||
"matchPackageNames": ["msw"],
|
||||
"matchUpdateTypes": ["major", "minor"],
|
||||
"groupName": "msw"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
81
yarn.lock
81
yarn.lock
|
@ -4084,7 +4084,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@mswjs/interceptors@npm:^0.12.6":
|
||||
"@mswjs/interceptors@npm:^0.12.7":
|
||||
version: 0.12.7
|
||||
resolution: "@mswjs/interceptors@npm:0.12.7"
|
||||
dependencies:
|
||||
|
@ -7276,13 +7276,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/inquirer@npm:^7.3.3":
|
||||
version: 7.3.3
|
||||
resolution: "@types/inquirer@npm:7.3.3"
|
||||
"@types/inquirer@npm:^8.1.3":
|
||||
version: 8.1.3
|
||||
resolution: "@types/inquirer@npm:8.1.3"
|
||||
dependencies:
|
||||
"@types/through": "*"
|
||||
rxjs: ^6.4.0
|
||||
checksum: 49b21d883ab533dbb84b400fa1aeab2638c37b87978d16f15636316c8d9f70d93a185479cf32081d9013fe2b362db05a83bdc3725771cc93d8bdab9182a96ab9
|
||||
rxjs: ^7.2.0
|
||||
checksum: b2f9914d1380e60a9a6d890abdd24078db63069a4bd974e77a00c5660bf5cab33a60fba6f02b56f1b2e6418e287e4697361b12cb85704b13e76f1a23c934d203
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -11094,6 +11094,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"chalk@npm:4.1.1":
|
||||
version: 4.1.1
|
||||
resolution: "chalk@npm:4.1.1"
|
||||
dependencies:
|
||||
ansi-styles: ^4.1.0
|
||||
supports-color: ^7.1.0
|
||||
checksum: 036e973e665ba1a32c975e291d5f3d549bceeb7b1b983320d4598fb75d70fe20c5db5d62971ec0fe76cdbce83985a00ee42372416abfc3a5584465005a7855ed
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"chalk@npm:^1.0.0, chalk@npm:^1.1.1":
|
||||
version: 1.1.3
|
||||
resolution: "chalk@npm:1.1.3"
|
||||
|
@ -17143,7 +17153,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"inquirer@npm:^8.1.1":
|
||||
"inquirer@npm:^8.2.0":
|
||||
version: 8.2.0
|
||||
resolution: "inquirer@npm:8.2.0"
|
||||
dependencies:
|
||||
|
@ -21000,33 +21010,33 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"msw@npm:^0.35.0, msw@npm:latest":
|
||||
version: 0.35.0
|
||||
resolution: "msw@npm:0.35.0"
|
||||
"msw@npm:^0.36.0, msw@npm:latest":
|
||||
version: 0.36.0
|
||||
resolution: "msw@npm:0.36.0"
|
||||
dependencies:
|
||||
"@mswjs/cookies": ^0.1.6
|
||||
"@mswjs/interceptors": ^0.12.6
|
||||
"@mswjs/interceptors": ^0.12.7
|
||||
"@open-draft/until": ^1.0.3
|
||||
"@types/cookie": ^0.4.1
|
||||
"@types/inquirer": ^7.3.3
|
||||
"@types/inquirer": ^8.1.3
|
||||
"@types/js-levenshtein": ^1.1.0
|
||||
chalk: ^4.1.1
|
||||
chalk: 4.1.1
|
||||
chokidar: ^3.4.2
|
||||
cookie: ^0.4.1
|
||||
graphql: ^15.5.1
|
||||
headers-utils: ^3.0.2
|
||||
inquirer: ^8.1.1
|
||||
inquirer: ^8.2.0
|
||||
is-node-process: ^1.0.1
|
||||
js-levenshtein: ^1.1.6
|
||||
node-fetch: ^2.6.1
|
||||
node-match-path: ^0.6.3
|
||||
path-to-regexp: ^6.2.0
|
||||
statuses: ^2.0.0
|
||||
strict-event-emitter: ^0.2.0
|
||||
type-fest: ^1.2.2
|
||||
yargs: ^17.0.1
|
||||
yargs: ^17.3.0
|
||||
bin:
|
||||
msw: cli/index.js
|
||||
checksum: cc5e85573e85779a95b1d5bfc306d4d0bcb4de660ac08c640e316c00fe4a0ea24dfe1decf6a46d10538550dfc7f7559836e1fda3d6e1f60ee7e99916bb3db3ff
|
||||
checksum: e0f60b8dca57d3fe936d2288793fae4448ca84318a19bf0a4e7733a25259bdf26fcf36ec2cd78d9b341c016f08d7a2a7834d4b5677167119ca7b967ef3b297ca
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -21391,13 +21401,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-match-path@npm:^0.6.3":
|
||||
version: 0.6.3
|
||||
resolution: "node-match-path@npm:0.6.3"
|
||||
checksum: d515bc069f293688109c058ee02567528fdaa856290d362b80a2254734975014e4eefcdcc5164a8adfd5560aa870e277c97fe8be648074d5088056cf61553c7c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-modules-regexp@npm:^1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "node-modules-regexp@npm:1.0.0"
|
||||
|
@ -22979,6 +22982,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-to-regexp@npm:^6.2.0":
|
||||
version: 6.2.0
|
||||
resolution: "path-to-regexp@npm:6.2.0"
|
||||
checksum: a6aca74d2d6e2e7594d812f653cf85e9cb5054d3a8d80f099722a44ef6ad22639b02078e5ea83d11db16321c3e4359e3f1ab0274fa78dad0754a6e53f630b0fc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-type@npm:^3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "path-type@npm:3.0.0"
|
||||
|
@ -25951,7 +25961,7 @@ __metadata:
|
|||
fork-ts-checker-webpack-plugin: ^6.5.0
|
||||
framer-motion: ^5.3.3
|
||||
html-webpack-plugin: ^5.5.0
|
||||
msw: ^0.35.0
|
||||
msw: ^0.36.0
|
||||
react: ^17.0.2
|
||||
react-dom: ^17.0.2
|
||||
react-icons: ^4.3.1
|
||||
|
@ -26000,7 +26010,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rxjs@npm:^6.4.0, rxjs@npm:^6.6.0":
|
||||
"rxjs@npm:^6.6.0":
|
||||
version: 6.6.7
|
||||
resolution: "rxjs@npm:6.6.7"
|
||||
dependencies:
|
||||
|
@ -30523,6 +30533,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yargs-parser@npm:^21.0.0":
|
||||
version: 21.0.0
|
||||
resolution: "yargs-parser@npm:21.0.0"
|
||||
checksum: 1e205fca1cb7a36a1585e2b94a64e641c12741b53627d338e12747f4dca3c3610cdd9bb235040621120548dd74c3ef03a8168d52a1eabfedccbe4a62462b6731
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yargs@npm:^16.2.0":
|
||||
version: 16.2.0
|
||||
resolution: "yargs@npm:16.2.0"
|
||||
|
@ -30538,18 +30555,18 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yargs@npm:^17.0.1":
|
||||
version: 17.2.1
|
||||
resolution: "yargs@npm:17.2.1"
|
||||
"yargs@npm:^17.3.0":
|
||||
version: 17.3.0
|
||||
resolution: "yargs@npm:17.3.0"
|
||||
dependencies:
|
||||
cliui: ^7.0.2
|
||||
escalade: ^3.1.1
|
||||
get-caller-file: ^2.0.5
|
||||
require-directory: ^2.1.1
|
||||
string-width: ^4.2.0
|
||||
string-width: ^4.2.3
|
||||
y18n: ^5.0.5
|
||||
yargs-parser: ^20.2.2
|
||||
checksum: 451aac46f82da776f436018feed0244bc0e7b4355f7e397bcb53d34c691b177c0d71db3dda9653760e1bc240254d8b763a252ff918ef9e235a8d202e2909c4eb
|
||||
yargs-parser: ^21.0.0
|
||||
checksum: 2b687338684bf9645e9389ffdbe813fc5a2ddfede299d46fbe5ac80eb9a391e558b97861ba44d2256936ebe9d7f8135f6a38af1c76a5685eac4061008b2df57a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user