Unverified Commit 260814cc authored by Artem Zakharchenko's avatar Artem Zakharchenko Committed by GitHub

Updates "msw" package to version 0.21.0 (#17012)

parent d4a8d4fc
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"msw": "^0.20.4", "msw": "^0.21.0",
"next": "latest", "next": "latest",
"react": "^16.13.1", "react": "^16.13.1",
"react-dom": "^16.13.1" "react-dom": "^16.13.1"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
/* eslint-disable */ /* eslint-disable */
/* tslint:disable */ /* tslint:disable */
const INTEGRITY_CHECKSUM = 'ca2c3cd7453d8c614e2c19db63ede1a1' const INTEGRITY_CHECKSUM = 'd1e0e502f550d40a34bee90822e4bf98'
const bypassHeaderName = 'x-msw-bypass' const bypassHeaderName = 'x-msw-bypass'
let clients = {} let clients = {}
...@@ -27,6 +27,13 @@ self.addEventListener('message', async function (event) { ...@@ -27,6 +27,13 @@ self.addEventListener('message', async function (event) {
const allClientIds = allClients.map((client) => client.id) const allClientIds = allClients.map((client) => client.id)
switch (event.data) { switch (event.data) {
case 'KEEPALIVE_REQUEST': {
sendToClient(client, {
type: 'KEEPALIVE_RESPONSE',
})
break
}
case 'INTEGRITY_CHECK_REQUEST': { case 'INTEGRITY_CHECK_REQUEST': {
sendToClient(client, { sendToClient(client, {
type: 'INTEGRITY_CHECK_RESPONSE', type: 'INTEGRITY_CHECK_RESPONSE',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment