Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed Apr 11, 2024
1 parent 821e4e4 commit 8965e9c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 28 deletions.
29 changes: 14 additions & 15 deletions src/Umbraco.Web.UI.Login/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"npm": ">=10.1"
},
"dependencies": {
"msw": "^2.2.0"
"msw": "^2.2.13"
},
"devDependencies": {
"@umbraco-ui/uui-css": "1.7.2",
"@umbraco-ui/uui-css": "1.8.0-rc.0",
"typescript": "^5.3.3",
"vite": "^5.2.2",
"vite-tsconfig-paths": "^4.3.2"
Expand Down
19 changes: 8 additions & 11 deletions src/Umbraco.Web.UI.Login/public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
/* tslint:disable */

/**
* Mock Service Worker (2.2.0).
* Mock Service Worker.
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
*/

const INTEGRITY_CHECKSUM = '223d191a56023cd36aa88c802961b911'
const PACKAGE_VERSION = '2.2.13'
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
const activeClientIds = new Set()

Expand Down Expand Up @@ -48,7 +49,10 @@ self.addEventListener('message', async function (event) {
case 'INTEGRITY_CHECK_REQUEST': {
sendToClient(client, {
type: 'INTEGRITY_CHECK_RESPONSE',
payload: INTEGRITY_CHECKSUM,
payload: {
packageVersion: PACKAGE_VERSION,
checksum: INTEGRITY_CHECKSUM,
},
})
break
}
Expand Down Expand Up @@ -202,13 +206,6 @@ async function getResponse(event, client, requestId) {
return passthrough()
}

// Bypass requests with the explicit bypass header.
// Such requests can be issued by "ctx.fetch()".
const mswIntention = request.headers.get('x-msw-intention')
if (['bypass', 'passthrough'].includes(mswIntention)) {
return passthrough()
}

// Notify the client that a request has been intercepted.
const requestBuffer = await request.arrayBuffer()
const clientMessage = await sendToClient(
Expand Down Expand Up @@ -240,7 +237,7 @@ async function getResponse(event, client, requestId) {
return respondWithMock(clientMessage.data)
}

case 'MOCK_NOT_FOUND': {
case 'PASSTHROUGH': {
return passthrough()
}
}
Expand Down

0 comments on commit 8965e9c

Please sign in to comment.