Skip to content

Commit b05ff64

Browse files
committed
Update most frontend dependencies
1 parent 91d9cc4 commit b05ff64

File tree

3 files changed

+3690
-3422
lines changed

3 files changed

+3690
-3422
lines changed

frontend/.storybook/mockServiceWorker.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* - Please do NOT serve this file on production.
99
*/
1010

11-
const PACKAGE_VERSION = '2.6.5'
12-
const INTEGRITY_CHECKSUM = 'ca7800994cc8bfb5eb961e037c877074'
11+
const PACKAGE_VERSION = '2.7.0'
12+
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
1313
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1414
const activeClientIds = new Set()
1515

@@ -199,7 +199,19 @@ async function getResponse(event, client, requestId) {
199199
// Remove the "accept" header value that marked this request as passthrough.
200200
// This prevents request alteration and also keeps it compliant with the
201201
// user-defined CORS policies.
202-
headers.delete('accept', 'msw/passthrough')
202+
const acceptHeader = headers.get('accept')
203+
if (acceptHeader) {
204+
const values = acceptHeader.split(',').map((value) => value.trim())
205+
const filteredValues = values.filter(
206+
(value) => value !== 'msw/passthrough',
207+
)
208+
209+
if (filteredValues.length > 0) {
210+
headers.set('accept', filteredValues.join(', '))
211+
} else {
212+
headers.delete('accept')
213+
}
214+
}
203215

204216
return fetch(requestClone, { headers })
205217
}

0 commit comments

Comments
 (0)