update dependencies

This commit is contained in:
Jacob Overgaard
2024-04-11 14:59:19 +02:00
parent 821e4e439e
commit 8965e9c180
3 changed files with 24 additions and 28 deletions

View File

@@ -6,10 +6,10 @@
"": {
"name": "login",
"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"
@@ -486,9 +486,9 @@
}
},
"node_modules/@mswjs/interceptors": {
"version": "0.25.16",
"resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.25.16.tgz",
"integrity": "sha512-8QC8JyKztvoGAdPgyZy49c9vSHHAZjHagwl4RY9E8carULk8ym3iTaiawrT1YoLF/qb449h48f71XDPgkUSOUg==",
"version": "0.26.15",
"resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.26.15.tgz",
"integrity": "sha512-HM47Lu1YFmnYHKMBynFfjCp0U/yRskHj/8QEJW0CBEPOlw8Gkmjfll+S9b8M7V5CNDw2/ciRxjjnWeaCiblSIQ==",
"dependencies": {
"@open-draft/deferred-promise": "^2.2.0",
"@open-draft/logger": "^0.3.0",
@@ -734,9 +734,9 @@
"integrity": "sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g=="
},
"node_modules/@umbraco-ui/uui-css": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/@umbraco-ui/uui-css/-/uui-css-1.7.2.tgz",
"integrity": "sha512-KNxz0T9D1/9GAVaE6/ms76LkzWLPyfuhmqF/dCQotnZAQxwDJ7m0XLEf5/+qULRrNTqNQtluuFX/qIlmqD1xLQ==",
"version": "1.8.0-rc.0",
"resolved": "https://registry.npmjs.org/@umbraco-ui/uui-css/-/uui-css-1.8.0-rc.0.tgz",
"integrity": "sha512-trwLCgJtT91iP2b20QlHWjuj44AF4lWCg4CqBZoT2Z8a5IedqflnQstXCZRYm/F5Re32YGTwlR9lF1rAXqq4gg==",
"dev": true,
"peerDependencies": {
"lit": ">=2.8.0"
@@ -1053,16 +1053,16 @@
"dev": true
},
"node_modules/msw": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/msw/-/msw-2.2.0.tgz",
"integrity": "sha512-98cUGcIphhdf3KDbmSxji7XFqLxeSFAmPUNV00N/U76GOkuUKEwp6MHqM6KW70rlpgeJP8qIWueppdnVThzG1g==",
"version": "2.2.13",
"resolved": "https://registry.npmjs.org/msw/-/msw-2.2.13.tgz",
"integrity": "sha512-ljFf1xZsU0b4zv1l7xzEmC6OZA6yD06hcx0H+dc8V0VypaP3HGYJa1rMLjQbBWl32ptGhcfwcPCWDB1wjmsftw==",
"hasInstallScript": true,
"dependencies": {
"@bundled-es-modules/cookie": "^2.0.0",
"@bundled-es-modules/statuses": "^1.0.1",
"@inquirer/confirm": "^3.0.0",
"@mswjs/cookies": "^1.1.0",
"@mswjs/interceptors": "^0.25.16",
"@mswjs/interceptors": "^0.26.14",
"@open-draft/until": "^2.1.0",
"@types/cookie": "^0.6.0",
"@types/statuses": "^2.0.4",
@@ -1083,11 +1083,10 @@
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/mswjs"
"url": "https://github.com/sponsors/mswjs"
},
"peerDependencies": {
"typescript": ">= 4.7.x <= 5.3.x"
"typescript": ">= 4.7.x"
},
"peerDependenciesMeta": {
"typescript": {

View File

@@ -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"

View File

@@ -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()
@@ -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
}
@@ -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(
@@ -240,7 +237,7 @@ async function getResponse(event, client, requestId) {
return respondWithMock(clientMessage.data)
}
case 'MOCK_NOT_FOUND': {
case 'PASSTHROUGH': {
return passthrough()
}
}