@flipdish/portal-library 8.6.1 → 8.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/Alert/index.cjs.js +1 -1
- package/dist/components/molecules/Alert/index.cjs.js.map +1 -1
- package/dist/components/molecules/Alert/index.js +1 -1
- package/dist/components/molecules/Alert/index.js.map +1 -1
- package/dist/mocks/msw/handlers.cjs.js +1 -1
- package/dist/mocks/msw/handlers.d.ts +1 -1
- package/dist/mocks/msw/handlers.js +1 -1
- package/dist/mocks/msw/server.cjs.js +1 -1
- package/dist/mocks/msw/server.d.ts +1 -1
- package/dist/mocks/msw/server.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
- package/package.json +1 -1
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-BFS34nkx.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.39_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.40_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"http-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/frames/http-frame.mjs"],"sourcesContent":["import { TypedEvent } from \"rettime\";\nimport { until } from \"until-async\";\nimport { createRequestId } from \"@mswjs/interceptors\";\nimport {\n NetworkFrame\n} from './network-frame.mjs';\nimport { toPublicUrl } from '../../utils/request/toPublicUrl.mjs';\nimport { executeHandlers } from '../../utils/executeHandlers.mjs';\nimport { storeResponseCookies } from '../../utils/request/storeResponseCookies.mjs';\nimport { isPassthroughResponse, shouldBypassRequest } from '../request-utils.mjs';\nimport { devUtils } from '../../utils/internal/devUtils.mjs';\nimport {\n executeUnhandledFrameHandle\n} from '../on-unhandled-frame.mjs';\nimport {} from '../handlers-controller.mjs';\nimport {} from '../../handlers/RequestHandler.mjs';\nclass RequestEvent extends TypedEvent {\n requestId;\n request;\n constructor(type, data) {\n super(...[type, {}]);\n this.requestId = data.requestId;\n this.request = data.request;\n }\n}\nclass ResponseEvent extends TypedEvent {\n requestId;\n request;\n response;\n constructor(type, data) {\n super(...[type, {}]);\n this.requestId = data.requestId;\n this.request = data.request;\n this.response = data.response;\n }\n}\nclass UnhandledExceptionEvent extends TypedEvent {\n error;\n requestId;\n request;\n constructor(type, data) {\n super(...[type, {}]);\n this.error = data.error;\n this.requestId = data.requestId;\n this.request = data.request;\n }\n}\nclass HttpNetworkFrame extends NetworkFrame {\n constructor(options) {\n const id = options.id || createRequestId();\n super(\"http\", { id, request: options.request });\n }\n getHandlers(controller) {\n return controller.getHandlersByKind(\"request\");\n }\n async getUnhandledMessage() {\n const { request } = this.data;\n const url = new URL(request.url);\n const publicUrl = toPublicUrl(url) + url.search;\n const requestBody = request.body == null ? null : await request.clone().text();\n const details = `\n\n \\u2022 ${request.method} ${publicUrl}\n\n${requestBody ? ` \\u2022 Request body: ${requestBody}\n\n` : \"\"}`;\n const message = `intercepted a request without a matching request handler:${details}If you still wish to intercept this unhandled request, please create a request handler for it.\nRead more: https://mswjs.io/docs/http/intercepting-requests`;\n return message;\n }\n async resolve(handlers, onUnhandledFrame, resolutionContext) {\n const { id: requestId, request } = this.data;\n const requestCloneForLogs = resolutionContext?.quiet ? null : request.clone();\n this.events.emit(new RequestEvent(\"request:start\", { requestId, request }));\n if (shouldBypassRequest(request)) {\n this.events.emit(new RequestEvent(\"request:end\", { requestId, request }));\n this.passthrough();\n return null;\n }\n const [lookupError, lookupResult] = await until(() => {\n return executeHandlers({\n requestId,\n request,\n handlers,\n resolutionContext: {\n baseUrl: resolutionContext?.baseUrl?.toString(),\n quiet: resolutionContext?.quiet\n }\n });\n });\n if (lookupError != null) {\n if (!this.events.emit(\n new UnhandledExceptionEvent(\"unhandledException\", {\n error: lookupError,\n requestId,\n request\n })\n )) {\n console.error(lookupError);\n devUtils.error(\n 'Encountered an unhandled exception during the handler lookup for \"%s %s\". Please see the original error above.',\n request.method,\n request.url\n );\n }\n this.errorWith(lookupError);\n return null;\n }\n if (lookupResult == null) {\n this.events.emit(\n new RequestEvent(\"request:unhandled\", {\n requestId,\n request\n })\n );\n await executeUnhandledFrameHandle(this, onUnhandledFrame).then(\n () => this.passthrough(),\n (error) => this.errorWith(error)\n );\n this.events.emit(\n new RequestEvent(\"request:end\", {\n requestId,\n request\n })\n );\n return false;\n }\n const { response, handler, parsedResult } = lookupResult;\n this.events.emit(\n new RequestEvent(\"request:match\", {\n requestId,\n request\n })\n );\n if (response == null) {\n this.events.emit(\n new RequestEvent(\"request:end\", {\n requestId,\n request\n })\n );\n this.passthrough();\n return null;\n }\n if (isPassthroughResponse(response)) {\n this.events.emit(\n new RequestEvent(\"request:end\", {\n requestId,\n request\n })\n );\n this.passthrough();\n return null;\n }\n const responseCloneForLogs = resolutionContext?.quiet ? null : response.clone();\n await storeResponseCookies(request, response);\n this.respondWith(response);\n this.events.emit(\n new RequestEvent(\"request:end\", {\n requestId,\n request\n })\n );\n if (!resolutionContext?.quiet) {\n handler.log({\n request: requestCloneForLogs,\n response: responseCloneForLogs,\n parsedResult\n });\n }\n return true;\n }\n}\nexport {\n HttpNetworkFrame,\n RequestEvent,\n ResponseEvent,\n UnhandledExceptionEvent\n};\n//# sourceMappingURL=http-frame.mjs.map"],"names":["RequestEvent","TypedEvent","requestId","request","constructor","type","data","super","this","ResponseEvent","response","UnhandledExceptionEvent","error","HttpNetworkFrame","NetworkFrame","options","id","createRequestId","getHandlers","controller","getHandlersByKind","getUnhandledMessage","url","URL","publicUrl","toPublicUrl","search","requestBody","body","clone","text","method","resolve","handlers","onUnhandledFrame","resolutionContext","requestCloneForLogs","quiet","events","emit","shouldBypassRequest","passthrough","lookupError","lookupResult","until","executeHandlers","baseUrl","toString","console","devUtils","errorWith","executeUnhandledFrameHandle","then","handler","parsedResult","isPassthroughResponse","responseCloneForLogs","storeResponseCookies","respondWith","log"],"mappings":"y6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,EACT1B,SAAU8C,EACVF,kBAGG,CACT","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-frame.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"network-frame.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/frames/network-frame.mjs"],"sourcesContent":["import { Emitter } from \"rettime\";\nclass NetworkFrame {\n constructor(protocol, data) {\n this.protocol = protocol;\n this.data = data;\n this.events = new Emitter();\n }\n events;\n}\nexport {\n NetworkFrame\n};\n//# sourceMappingURL=network-frame.mjs.map"],"names":["constructor","protocol","data","this","events","Emitter"],"mappings":"gIACA,MACE,WAAAA,CAAYC,EAAUC,GACpBC,KAAKF,SAAWA,EAChBE,KAAKD,KAAOA,EACZC,KAAKC,OAAS,IAAIC,SACpB,CACAD","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"network-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/frames/network-frame.mjs"],"sourcesContent":["import { Emitter } from \"rettime\";\nclass NetworkFrame {\n constructor(protocol, data) {\n this.protocol = protocol;\n this.data = data;\n this.events = new Emitter();\n }\n events;\n}\nexport {\n NetworkFrame\n};\n//# sourceMappingURL=network-frame.mjs.map"],"names":["NetworkFrame","constructor","protocol","data","this","events","Emitter"],"mappings":"mGACA,MAAMA,EACJ,WAAAC,CAAYC,EAAUC,GACpBC,KAAKF,SAAWA,EAChBE,KAAKD,KAAOA,EACZC,KAAKC,OAAS,IAAIC,CACpB,CACAD","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-frame.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"websocket-frame.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/frames/websocket-frame.mjs"],"sourcesContent":["import { TypedEvent } from \"rettime\";\nimport {} from \"@mswjs/interceptors/WebSocket\";\nimport {\n kConnect,\n kAutoConnect\n} from '../../handlers/WebSocketHandler.mjs';\nimport {\n NetworkFrame\n} from './network-frame.mjs';\nimport {\n executeUnhandledFrameHandle\n} from '../on-unhandled-frame.mjs';\nimport { devUtils } from '../../utils/internal/devUtils.mjs';\nimport {} from '../handlers-controller.mjs';\nclass WebSocketConnectionEvent extends TypedEvent {\n url;\n protocols;\n constructor(type, data) {\n super(...[type, {}]);\n this.url = data.url;\n this.protocols = data.protocols;\n }\n}\nclass UnhandledWebSocketExceptionEvent extends TypedEvent {\n url;\n protocols;\n error;\n constructor(type, data) {\n super(...[type, {}]);\n this.url = data.url;\n this.protocols = data.protocols;\n this.error = data.error;\n }\n}\nclass WebSocketNetworkFrame extends NetworkFrame {\n constructor(options) {\n super(\"ws\", {\n connection: options.connection\n });\n }\n getHandlers(controller) {\n return controller.getHandlersByKind(\"websocket\");\n }\n async resolve(handlers, onUnhandledFrame, resolutionContext) {\n const { connection } = this.data;\n this.events.emit(\n new WebSocketConnectionEvent(\"connection\", {\n url: connection.client.url,\n protocols: connection.info.protocols\n })\n );\n if (handlers.length === 0) {\n await executeUnhandledFrameHandle(this, onUnhandledFrame).then(\n () => this.passthrough(),\n (error) => this.errorWith(error)\n );\n return false;\n }\n let hasMatchingHandlers = false;\n for (const handler of handlers) {\n const handlerConnection = await handler.run(connection, {\n baseUrl: resolutionContext?.baseUrl?.toString(),\n /**\n * @note Do not emit the \"connection\" event when running the handler.\n * Use the run only to get the resolved connection object.\n */\n [kAutoConnect]: false\n });\n if (!handlerConnection) {\n continue;\n }\n hasMatchingHandlers = true;\n const removeLogger = !resolutionContext?.quiet ? handler.log(connection) : void 0;\n try {\n if (!handler[kConnect](handlerConnection)) {\n removeLogger?.();\n }\n } catch (error) {\n if (!this.events.emit(\n new UnhandledWebSocketExceptionEvent(\"unhandledException\", {\n error,\n url: connection.client.url,\n protocols: connection.info.protocols\n })\n )) {\n console.error(error);\n devUtils.error(\n 'Encountered an unhandled exception during the handler lookup for \"%s\". Please see the original error above.',\n connection.client.url\n );\n }\n throw error;\n }\n }\n if (!hasMatchingHandlers) {\n await executeUnhandledFrameHandle(this, onUnhandledFrame).then(\n () => this.passthrough(),\n (error) => this.errorWith(error)\n );\n return false;\n }\n return true;\n }\n async getUnhandledMessage() {\n const { connection } = this.data;\n const details = `\n\n \\u2022 ${connection.client.url}\n\n`;\n return `intercepted a WebSocket connection without a matching event handler:${details}If you still wish to intercept this unhandled connection, please create an event handler for it.\nRead more: https://mswjs.io/docs/websocket`;\n }\n}\nexport {\n WebSocketNetworkFrame\n};\n//# sourceMappingURL=websocket-frame.mjs.map"],"names":["WebSocketConnectionEvent","TypedEvent","url","protocols","constructor","type","data","super","this","UnhandledWebSocketExceptionEvent","error","WebSocketNetworkFrame","NetworkFrame","options","connection","getHandlers","controller","getHandlersByKind","resolve","handlers","onUnhandledFrame","resolutionContext","events","emit","client","info","length","executeUnhandledFrameHandle","then","passthrough","errorWith","hasMatchingHandlers","handler","handlerConnection","run","baseUrl","toString","kAutoConnect","removeLogger","quiet","log","kConnect","console","devUtils","getUnhandledMessage"],"mappings":"+aAcA,MAAMA,UAAiCC,EAAAA,WACrCC,IACAC,UACA,WAAAC,CAAYC,EAAMC,GAChBC,MAAUF,EAAM,CAAA,GAChBG,KAAKN,IAAMI,EAAKJ,IAChBM,KAAKL,UAAYG,EAAKH,SACxB,EAEF,MAAMM,UAAyCR,EAAAA,WAC7CC,IACAC,UACAO,MACA,WAA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AAMkC,GACJ,MAAM9B,WAAEA,GAAeN,KAAKF,KAM5B,MAAO,uEALS,WAETQ,EAAWU,OAAOtB,uJAK3B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"websocket-frame.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/frames/websocket-frame.mjs"],"sourcesContent":["import { TypedEvent } from \"rettime\";\nimport {} from \"@mswjs/interceptors/WebSocket\";\nimport {\n kConnect,\n kAutoConnect\n} from '../../handlers/WebSocketHandler.mjs';\nimport {\n NetworkFrame\n} from './network-frame.mjs';\nimport {\n executeUnhandledFrameHandle\n} from '../on-unhandled-frame.mjs';\nimport { devUtils } from '../../utils/internal/devUtils.mjs';\nimport {} from '../handlers-controller.mjs';\nclass WebSocketConnectionEvent extends TypedEvent {\n url;\n protocols;\n constructor(type, data) {\n super(...[type, {}]);\n this.url = data.url;\n this.protocols = data.protocols;\n }\n}\nclass UnhandledWebSocketExceptionEvent extends TypedEvent {\n url;\n protocols;\n error;\n constructor(type, data) {\n super(...[type, {}]);\n this.url = data.url;\n this.protocols = data.protocols;\n this.error = data.error;\n }\n}\nclass WebSocketNetworkFrame extends NetworkFrame {\n constructor(options) {\n super(\"ws\", {\n connection: options.connection\n });\n }\n getHandlers(controller) {\n return controller.getHandlersByKind(\"websocket\");\n }\n async resolve(handlers, onUnhandledFrame, resolutionContext) {\n const { connection } = this.data;\n this.events.emit(\n new WebSocketConnectionEvent(\"connection\", {\n url: connection.client.url,\n protocols: connection.info.protocols\n })\n );\n if (handlers.length === 0) {\n await executeUnhandledFrameHandle(this, onUnhandledFrame).then(\n () => this.passthrough(),\n (error) => this.errorWith(error)\n );\n return false;\n }\n let hasMatchingHandlers = false;\n for (const handler of handlers) {\n const handlerConnection = await handler.run(connection, {\n baseUrl: resolutionContext?.baseUrl?.toString(),\n /**\n * @note Do not emit the \"connection\" event when running the handler.\n * Use the run only to get the resolved connection object.\n */\n [kAutoConnect]: false\n });\n if (!handlerConnection) {\n continue;\n }\n hasMatchingHandlers = true;\n const removeLogger = !resolutionContext?.quiet ? handler.log(connection) : void 0;\n try {\n if (!handler[kConnect](handlerConnection)) {\n removeLogger?.();\n }\n } catch (error) {\n if (!this.events.emit(\n new UnhandledWebSocketExceptionEvent(\"unhandledException\", {\n error,\n url: connection.client.url,\n protocols: connection.info.protocols\n })\n )) {\n console.error(error);\n devUtils.error(\n 'Encountered an unhandled exception during the handler lookup for \"%s\". Please see the original error above.',\n connection.client.url\n );\n }\n throw error;\n }\n }\n if (!hasMatchingHandlers) {\n await executeUnhandledFrameHandle(this, onUnhandledFrame).then(\n () => this.passthrough(),\n (error) => this.errorWith(error)\n );\n return false;\n }\n return true;\n }\n async getUnhandledMessage() {\n const { connection } = this.data;\n const details = `\n\n \\u2022 ${connection.client.url}\n\n`;\n return `intercepted a WebSocket connection without a matching event handler:${details}If you still wish to intercept this unhandled connection, please create an event handler for it.\nRead more: https://mswjs.io/docs/websocket`;\n }\n}\nexport {\n WebSocketNetworkFrame\n};\n//# sourceMappingURL=websocket-frame.mjs.map"],"names":["WebSocketConnectionEvent","TypedEvent","url","protocols","constructor","type","data","super","this","UnhandledWebSocketExceptionEvent","error","WebSocketNetworkFrame","NetworkFrame","options","connection","getHandlers","controller","getHandlersByKind","resolve","handlers","onUnhandledFrame","resolutionContext","events","emit","client","info","length","executeUnhandledFrameHandle","then","passthrough","errorWith","hasMatchingHandlers","handler","handlerConnection","run","baseUrl","toString","kAutoConnect","removeLogger","quiet","log","kConnect","console","devUtils","getUnhandledMessage"],"mappings":"gfAcA,MAAMA,UAAiCC,EACrCC,IACAC,UACA,WAAAC,CAAYC,EAAMC,GAChBC,MAAUF,EAAM,CAAA,GAChBG,KAAKN,IAAMI,EAAK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ACxD,IAAMpB,KAAKqB,cACVnB,GAAUF,KAAKsB,UAAUpB,KAErB,EAGX,CACA,yBAAMkC,GACJ,MAAM9B,WAAEA,GAAeN,KAAKF,KAM5B,MAAO,uEALS,WAETQ,EAAWU,OAAOtB,uJAK3B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers-controller.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"handlers-controller.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/handlers-controller.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport {} from '../handlers/RequestHandler.mjs';\nimport {} from '../handlers/WebSocketHandler.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { getSiblingHandlers } from '../utils/internal/attachSiblingHandlers.mjs';\nfunction groupHandlersByKind(handlers) {\n const groups = {};\n const pushUnique = (kind, handler) => {\n const bucket = groups[kind] ||= [];\n if (!bucket.includes(handler)) {\n bucket.push(handler);\n }\n };\n for (const handler of handlers) {\n pushUnique(handler.kind, handler);\n for (const sibling of getSiblingHandlers(handler)) {\n pushUnique(sibling.kind, sibling);\n }\n }\n return groups;\n}\nclass HandlersController {\n getInitialState(initialHandlers) {\n invariant(\n this.#validateHandlers(initialHandlers),\n devUtils.formatMessage(\n \"Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?\"\n )\n );\n const normalizedInitialHandlers = groupHandlersByKind(initialHandlers);\n return {\n initialHandlers: normalizedInitialHandlers,\n handlers: { ...normalizedInitialHandlers }\n };\n }\n currentHandlers() {\n return Object.values(this.getState().handlers).flat().filter((handler) => handler != null);\n }\n getHandlersByKind(kind) {\n return this.getState().handlers[kind] || [];\n }\n use(nextHandlers) {\n invariant(\n this.#validateHandlers(nextHandlers),\n devUtils.formatMessage(\n '[MSW] Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?'\n )\n );\n if (nextHandlers.length === 0) {\n return;\n }\n const { handlers } = this.getState();\n const overrides = groupHandlersByKind(nextHandlers);\n for (const kind in overrides) {\n const overridesForKind = overrides[kind];\n const existingForKind = handlers[kind];\n handlers[kind] = existingForKind ? [...overridesForKind, ...existingForKind] : overridesForKind;\n }\n this.setState({ handlers });\n }\n reset(nextHandlers) {\n invariant(\n nextHandlers.length > 0 ? this.#validateHandlers(nextHandlers) : true,\n devUtils.formatMessage(\n \"Failed to replace initial handlers during reset: invalid handlers. Did you forget to spread the handlers array?\"\n )\n );\n for (const handler of this.currentHandlers()) {\n if (\"reset\" in handler) {\n handler[\"reset\"]();\n }\n }\n const { initialHandlers } = this.getState();\n if (nextHandlers.length === 0) {\n this.setState({\n handlers: { ...initialHandlers }\n });\n return;\n }\n const normalizedNextHandlers = groupHandlersByKind(nextHandlers);\n this.setState({\n initialHandlers: normalizedNextHandlers,\n handlers: { ...normalizedNextHandlers }\n });\n }\n restore() {\n for (const handler of this.currentHandlers()) {\n if (\"restore\" in handler) {\n handler[\"restore\"]();\n }\n }\n }\n #validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n}\nclass InMemoryHandlersController extends HandlersController {\n #handlers;\n #initialHandlers;\n constructor(initialHandlers) {\n super();\n const initialState = this.getInitialState(initialHandlers);\n this.#initialHandlers = initialState.initialHandlers;\n this.#handlers = initialState.handlers;\n }\n getState() {\n return {\n initialHandlers: this.#initialHandlers,\n handlers: this.#handlers\n };\n }\n setState(nextState) {\n if (nextState.initialHandlers) {\n this.#initialHandlers = nextState.initialHandlers;\n }\n if (nextState.handlers) {\n this.#handlers = nextState.handlers;\n }\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n groupHandlersByKind\n};\n//# sourceMappingURL=handlers-controller.mjs.map"],"names":["groupHandlersByKind","handlers","groups","pushUnique","kind","handler","bucket","includes","push","sibling","getSiblingHandlers","HandlersController","getInitialState","initialHandlers","invariant","this","validateHandlers","devUtils","formatMessage","normalizedInitialHandlers","currentHandlers","Object","values","getState","flat","filter","getHandlersByKind","use","nextHandlers","length","overrides","overridesForKind","existingForKind","setState","reset","normalizedNextHandlers","restore","every","Array","isArray","constructor","super","initialState","nextState"],"mappings":"qNAKA,SAASA,EAAoBC,GAC3B,MAAMC,EAAS,CAAA,EACTC,EAAa,CAACC,EAAMC,KACxB,MAAMC,EAASJ,EAAOE,KAAU,GAC3BE,EAAOC,SAASF,IACnBC,EAAOE,KAAKH,IAGhB,IAAK,MAAMA,KAAWJ,EAAU,CAC9BE,EAAWE,EAAQD,KAAMC,GACzB,IAAK,MAAMI,KAAWC,qBAAmBL,GACvCF,EAAWM,EAAQL,KAAMK,EAE7B,CACA,OAAOP,CACT,CACA,MAAMS,EACJ,eAAAC,CAAgBC,GACdC,EAAAA,UACEC,MAAKC,EAAkBH,GACvBI,EAAAA,SAASC,cACP,gHAGJ,MAAMC,EAA4BnB,EAAoBa,GACtD,MAAO,CACLA,gBAAiBM,EACjBlB,SAAU,IAAKkB,GAEnB,CACA,eAAAC,GACE,OAAOC,OAAOC,OAAOP,KAAKQ,WAAWtB,UAAUuB,OAAOC,OAAQpB,GAAuB,MAAXA,EAC5E,CACA,iBAAAqB,CAAkBtB,GAChB,OAAOW,KAAKQ,WAAWtB,SAASG,IAAS,EAC3C,CACA,GAAAuB,CAAIC,GAOF,GANAd,EAAAA,UACEC,MAAKC,EAAkBY,GACvBX,EAAAA,SAASC,cACP,yIAGwB,IAAxBU,EAAaC,OACf,OAEF,MAAM5B,SAAEA,GAAac,KAAKQ,WACpBO,EAAY9B,EAAoB4B,GACtC,IAAK,MAAMxB,KAAQ0B,EAAW,CAC5B,MAAMC,EAAmBD,EAAU1B,GAC7B4B,EAAkB/B,EAASG,GACjCH,EAASG,GAAQ4B,EAAkB,IAAID,KAAqBC,GAAmBD,CACjF,CACAhB,KAAKkB,SAAS,CAAEhC,YAClB,CACA,KAAAiC,CAAMN,GACJd,EAAAA,YACEc,EAAaC,OAAS,IAAId,MAAKC,EAAkBY,GACjDX,EAAAA,SAASC,cACP,oHAGJ,IAAK,MAAMb,KAAWU,KAAKK,kBACrB,UAAWf,GACbA,EAAe,QAGnB,MAAMQ,gBAAEA,GAAoBE,KAAKQ,WACjC,GAA4B,IAAxBK,EAAaC,OAIf,YAHAd,KAAKkB,SAAS,CACZhC,SAAU,IAAKY,KAInB,MAAMsB,EAAyBnC,EAAoB4B,GACnDb,KAAKkB,SAAS,CACZpB,gBAAiBsB,EACjBlC,SAAU,IAAKkC,IAEnB,CACA,OAAAC,GACE,IAAK,MAAM/B,KAAWU,KAAKK,kBACrB,YAAaf,GACfA,EAAiB,SAGvB,CACA,EAAAW,CAAkBf,GAChB,OAAOA,EAASoC,MAAOhC,IAAaiC,MAAMC,QAAQlC,GACpD,kEAEF,cAAyCM,EACvCV,GACAY,GACA,WAAA2B,CAAY3B,GACV4B,QACA,MAAMC,EAAe3B,KAAKH,gBAAgBC,GAC1CE,MAAKF,EAAmB6B,EAAa7B,gBACrCE,MAAKd,EAAYyC,EAAazC,QAChC,CACA,QAAAsB,GACE,MAAO,CACLV,gBAAiBE,MAAKF,EACtBZ,SAAUc,MAAKd,EAEnB,CACA,QAAAgC,CAASU,GACHA,EAAU9B,kBACZE,MAAKF,EAAmB8B,EAAU9B,iBAEhC8B,EAAU1C,WACZc,MAAKd,EAAY0C,EAAU1C,SAE/B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers-controller.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"handlers-controller.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/handlers-controller.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport {} from '../handlers/RequestHandler.mjs';\nimport {} from '../handlers/WebSocketHandler.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { getSiblingHandlers } from '../utils/internal/attachSiblingHandlers.mjs';\nfunction groupHandlersByKind(handlers) {\n const groups = {};\n const pushUnique = (kind, handler) => {\n const bucket = groups[kind] ||= [];\n if (!bucket.includes(handler)) {\n bucket.push(handler);\n }\n };\n for (const handler of handlers) {\n pushUnique(handler.kind, handler);\n for (const sibling of getSiblingHandlers(handler)) {\n pushUnique(sibling.kind, sibling);\n }\n }\n return groups;\n}\nclass HandlersController {\n getInitialState(initialHandlers) {\n invariant(\n this.#validateHandlers(initialHandlers),\n devUtils.formatMessage(\n \"Failed to apply given request handlers: invalid input. Did you forget to spread the request handlers Array?\"\n )\n );\n const normalizedInitialHandlers = groupHandlersByKind(initialHandlers);\n return {\n initialHandlers: normalizedInitialHandlers,\n handlers: { ...normalizedInitialHandlers }\n };\n }\n currentHandlers() {\n return Object.values(this.getState().handlers).flat().filter((handler) => handler != null);\n }\n getHandlersByKind(kind) {\n return this.getState().handlers[kind] || [];\n }\n use(nextHandlers) {\n invariant(\n this.#validateHandlers(nextHandlers),\n devUtils.formatMessage(\n '[MSW] Failed to call \"use()\" with the given request handlers: invalid input. Did you forget to spread the array of request handlers?'\n )\n );\n if (nextHandlers.length === 0) {\n return;\n }\n const { handlers } = this.getState();\n const overrides = groupHandlersByKind(nextHandlers);\n for (const kind in overrides) {\n const overridesForKind = overrides[kind];\n const existingForKind = handlers[kind];\n handlers[kind] = existingForKind ? [...overridesForKind, ...existingForKind] : overridesForKind;\n }\n this.setState({ handlers });\n }\n reset(nextHandlers) {\n invariant(\n nextHandlers.length > 0 ? this.#validateHandlers(nextHandlers) : true,\n devUtils.formatMessage(\n \"Failed to replace initial handlers during reset: invalid handlers. Did you forget to spread the handlers array?\"\n )\n );\n for (const handler of this.currentHandlers()) {\n if (\"reset\" in handler) {\n handler[\"reset\"]();\n }\n }\n const { initialHandlers } = this.getState();\n if (nextHandlers.length === 0) {\n this.setState({\n handlers: { ...initialHandlers }\n });\n return;\n }\n const normalizedNextHandlers = groupHandlersByKind(nextHandlers);\n this.setState({\n initialHandlers: normalizedNextHandlers,\n handlers: { ...normalizedNextHandlers }\n });\n }\n restore() {\n for (const handler of this.currentHandlers()) {\n if (\"restore\" in handler) {\n handler[\"restore\"]();\n }\n }\n }\n #validateHandlers(handlers) {\n return handlers.every((handler) => !Array.isArray(handler));\n }\n}\nclass InMemoryHandlersController extends HandlersController {\n #handlers;\n #initialHandlers;\n constructor(initialHandlers) {\n super();\n const initialState = this.getInitialState(initialHandlers);\n this.#initialHandlers = initialState.initialHandlers;\n this.#handlers = initialState.handlers;\n }\n getState() {\n return {\n initialHandlers: this.#initialHandlers,\n handlers: this.#handlers\n };\n }\n setState(nextState) {\n if (nextState.initialHandlers) {\n this.#initialHandlers = nextState.initialHandlers;\n }\n if (nextState.handlers) {\n this.#handlers = nextState.handlers;\n }\n }\n}\nexport {\n HandlersController,\n InMemoryHandlersController,\n groupHandlersByKind\n};\n//# sourceMappingURL=handlers-controller.mjs.map"],"names":["groupHandlersByKind","handlers","groups","pushUnique","kind","handler","bucket","includes","push","sibling","getSiblingHandlers","HandlersController","getInitialState","initialHandlers","invariant","this","validateHandlers","devUtils","formatMessage","normalizedInitialHandlers","currentHandlers","Object","values","getState","flat","filter","getHandlersByKind","use","nextHandlers","length","overrides","overridesForKind","existingForKind","setState","reset","normalizedNextHandlers","restore","every","Array","isArray","InMemoryHandlersController","constructor","super","initialState","nextState"],"mappings":"6OAKA,SAASA,EAAoBC,GAC3B,MAAMC,EAAS,CAAA,EACTC,EAAa,CAACC,EAAMC,KACxB,MAAMC,EAASJ,EAAOE,KAAU,GAC3BE,EAAOC,SAASF,IACnBC,EAAOE,KAAKH,IAGhB,IAAK,MAAMA,KAAWJ,EAAU,CAC9BE,EAAWE,EAAQD,KAAMC,GACzB,IAAK,MAAMI,KAAWC,EAAmBL,GACvCF,EAAWM,EAAQL,KAAMK,EAE7B,CAC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,GACpD,EAEF,MAAMmC,UAAmC7B,EACvCV,GACAY,GACA,WAAA4B,CAAY5B,GACV6B,QACA,MAAMC,EAAe5B,KAAKH,gBAAgBC,GAC1CE,MAAKF,EAAmB8B,EAAa9B,gBACrCE,MAAKd,EAAY0C,EAAa1C,QAChC,CACA,QAAAsB,GACE,MAAO,CACLV,gBAAiBE,MAAKF,EACtBZ,SAAUc,MAAKd,EAEnB,CACA,QAAAgC,CAASW,GACHA,EAAU/B,kBACZE,MAAKF,EAAmB+B,EAAU/B,iBAEhC+B,EAAU3C,WACZc,MAAKd,EAAY2C,EAAU3C,SAE/B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-unhandled-frame.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"on-unhandled-frame.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/on-unhandled-frame.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { isCommonAssetRequest } from '../isCommonAssetRequest.mjs';\nimport { devUtils, InternalError } from '../utils/internal/devUtils.mjs';\nimport { HttpNetworkFrame } from './frames/http-frame.mjs';\nimport {} from './frames/network-frame.mjs';\nasync function executeUnhandledFrameHandle(frame, handle) {\n const printStrategyMessage = async (strategy) => {\n if (strategy === \"bypass\") {\n return;\n }\n const message = await frame.getUnhandledMessage();\n switch (strategy) {\n case \"warn\": {\n return devUtils.warn(\"Warning: %s\", message);\n }\n case \"error\": {\n return devUtils.error(\"Error: %s\", message);\n }\n }\n };\n const applyStrategy = async (strategy) => {\n invariant.as(\n InternalError,\n strategy === \"bypass\" || strategy === \"warn\" || strategy === \"error\",\n /**\n * @fixme Rename \"onUnhandledRequest\" to \"onUnhandledFrame\" in the error message\n * with the next major release.\n */\n devUtils.formatMessage(\n 'Failed to react to an unhandled network frame: unknown strategy \"%s\". Please provide one of the supported strategies (\"bypass\", \"warn\", \"error\") or a custom callback function as the value of the \"onUnhandledRequest\" option.',\n strategy\n )\n );\n if (strategy === \"bypass\") {\n return;\n }\n await printStrategyMessage(strategy);\n if (strategy === \"error\") {\n return Promise.reject(\n new InternalError(\n devUtils.formatMessage(\n 'Cannot bypass a request when using the \"error\" strategy for the \"onUnhandledRequest\" option.'\n )\n )\n );\n }\n };\n if (typeof handle === \"function\") {\n return handle({\n frame,\n defaults: {\n warn: printStrategyMessage.bind(null, \"warn\"),\n /**\n * @note The defaults only print the corresponding messages now.\n * They do not affect the frame resolution (e.g. do not error the frame).\n * That is only for backward compatibility reasons. In the future, these should\n * be an alias to `applyStrategy.bind(null, 'error')` instead.\n */\n error: printStrategyMessage.bind(null, \"error\")\n }\n });\n }\n if (frame instanceof HttpNetworkFrame && isCommonAssetRequest(frame.data.request)) {\n return;\n }\n return applyStrategy(handle);\n}\nexport {\n executeUnhandledFrameHandle\n};\n//# sourceMappingURL=on-unhandled-frame.mjs.map"],"names":["async","frame","handle","printStrategyMessage","strategy","message","getUnhandledMessage","devUtils","warn","error","defaults","bind","HttpNetworkFrame","isCommonAssetRequest","data","request","invariant","as","InternalError","formatMessage","Promise","reject","applyStrategy"],"mappings":"iRAKAA,eAA2CC,EAAOC,GAChD,MAAMC,EAAuBH,MAAOI,IAClC,GAAiB,WAAbA,EACF,OAEF,MAAMC,QAAgBJ,EAAMK,sBAC5B,OAAQF,GACN,IAAK,OACH,OAAOG,WAASC,KAAK,cAAeH,GAEtC,IAAK,QACH,OAAOE,WAASE,MAAM,YAAaJ,KA+BzC,MAAsB,mBAAXH,EACFA,EAAO,CACZD,QACAS,SAAU,CACRF,KAAML,EAAqBQ,KAAK,KAAM,QAOtCF,MAAON,EAAqBQ,KAAK,KAAM,YAIzCV,aAAiBW,EAAAA,kBAAoBC,EAAAA,qBAAqBZ,EAAMa,KAAKC,cAAzE,EA1CsBf,OAAOI,IAa3B,GAZAY,EAAAA,UAAUC,GACRC,EAAAA,cACa,WAAbd,GAAsC,SAAbA,GAAoC,UAAbA,EAKhDG,EAAAA,SAASY,cACP,kOACAf,IAGa,WAAbA,EAIJ,aADMD,EAAqBC,GACV,UAAbA,EACKgB,QAAQC,OACb,IAAIH,EAAAA,cACFX,EAAAA,SAASY,cACP,uGAJR,GA4BKG,CAAcpB,EACvB","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-unhandled-frame.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"on-unhandled-frame.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/on-unhandled-frame.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport { isCommonAssetRequest } from '../isCommonAssetRequest.mjs';\nimport { devUtils, InternalError } from '../utils/internal/devUtils.mjs';\nimport { HttpNetworkFrame } from './frames/http-frame.mjs';\nimport {} from './frames/network-frame.mjs';\nasync function executeUnhandledFrameHandle(frame, handle) {\n const printStrategyMessage = async (strategy) => {\n if (strategy === \"bypass\") {\n return;\n }\n const message = await frame.getUnhandledMessage();\n switch (strategy) {\n case \"warn\": {\n return devUtils.warn(\"Warning: %s\", message);\n }\n case \"error\": {\n return devUtils.error(\"Error: %s\", message);\n }\n }\n };\n const applyStrategy = async (strategy) => {\n invariant.as(\n InternalError,\n strategy === \"bypass\" || strategy === \"warn\" || strategy === \"error\",\n /**\n * @fixme Rename \"onUnhandledRequest\" to \"onUnhandledFrame\" in the error message\n * with the next major release.\n */\n devUtils.formatMessage(\n 'Failed to react to an unhandled network frame: unknown strategy \"%s\". Please provide one of the supported strategies (\"bypass\", \"warn\", \"error\") or a custom callback function as the value of the \"onUnhandledRequest\" option.',\n strategy\n )\n );\n if (strategy === \"bypass\") {\n return;\n }\n await printStrategyMessage(strategy);\n if (strategy === \"error\") {\n return Promise.reject(\n new InternalError(\n devUtils.formatMessage(\n 'Cannot bypass a request when using the \"error\" strategy for the \"onUnhandledRequest\" option.'\n )\n )\n );\n }\n };\n if (typeof handle === \"function\") {\n return handle({\n frame,\n defaults: {\n warn: printStrategyMessage.bind(null, \"warn\"),\n /**\n * @note The defaults only print the corresponding messages now.\n * They do not affect the frame resolution (e.g. do not error the frame).\n * That is only for backward compatibility reasons. In the future, these should\n * be an alias to `applyStrategy.bind(null, 'error')` instead.\n */\n error: printStrategyMessage.bind(null, \"error\")\n }\n });\n }\n if (frame instanceof HttpNetworkFrame && isCommonAssetRequest(frame.data.request)) {\n return;\n }\n return applyStrategy(handle);\n}\nexport {\n executeUnhandledFrameHandle\n};\n//# sourceMappingURL=on-unhandled-frame.mjs.map"],"names":["async","executeUnhandledFrameHandle","frame","handle","printStrategyMessage","strategy","message","getUnhandledMessage","devUtils","warn","error","defaults","bind","HttpNetworkFrame","isCommonAssetRequest","data","request","invariant","as","InternalError","formatMessage","Promise","reject","applyStrategy"],"mappings":"4SAKAA,eAAeC,EAA4BC,EAAOC,GAChD,MAAMC,EAAuBJ,MAAOK,IAClC,GAAiB,WAAbA,EACF,OAEF,MAAMC,QAAgBJ,EAAMK,sBAC5B,OAAQF,GACN,IAAK,OACH,OAAOG,EAASC,KAAK,cAAeH,GAEtC,IAAK,QACH,OAAOE,EAASE,MAAM,YAAaJ,KA+BzC,MAAsB,mBAAXH,EACFA,EAAO,CACZD,QACAS,SAAU,CACRF,KAAML,EAAqBQ,KAAK,KAAM,QAOtCF,MAAON,EAAqBQ,KAAK,KAAM,YAIzCV,aAAiBW,GAAoBC,EAAqBZ,EAAMa,KAAKC,cAAzE,EA1CsBhB,OAAOK,IAa3B,GAZAY,EAAUC,GACRC,EACa,WAAbd,GAAsC,SAAbA,GAAoC,UAAbA,EAKhDG,EAASY,cACP,kOACAf,IAGa,WAAbA,EAIJ,aADMD,EAAqBC,GACV,UAAbA,EACKgB,QAAQC,OACb,IAAIH,EACFX,EAASY,cACP,uGAJR,GA4BKG,CAAcpB,EACvB","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-utils.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"request-utils.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/request-utils.mjs"],"sourcesContent":["const REQUEST_INTENTION_HEADER_NAME = \"x-msw-intention\";\nvar RequestIntention = /* @__PURE__ */ ((RequestIntention2) => {\n RequestIntention2[\"passthrough\"] = \"passthrough\";\n return RequestIntention2;\n})(RequestIntention || {});\nfunction shouldBypassRequest(request) {\n return !!request.headers.get(\"accept\")?.includes(\"msw/passthrough\");\n}\nfunction isPassthroughResponse(response) {\n return response.status === 302 && response.headers.get(REQUEST_INTENTION_HEADER_NAME) === \"passthrough\" /* passthrough */;\n}\nfunction deleteRequestPassthroughHeader(request) {\n const acceptHeader = request.headers.get(\"accept\");\n if (acceptHeader) {\n const nextAcceptHeader = acceptHeader.replace(/(,\\s+)?msw\\/passthrough/, \"\");\n if (nextAcceptHeader) {\n request.headers.set(\"accept\", nextAcceptHeader);\n } else {\n request.headers.delete(\"accept\");\n }\n }\n}\nexport {\n REQUEST_INTENTION_HEADER_NAME,\n RequestIntention,\n deleteRequestPassthroughHeader,\n isPassthroughResponse,\n shouldBypassRequest\n};\n//# sourceMappingURL=request-utils.mjs.map"],"names":["REQUEST_INTENTION_HEADER_NAME","request","acceptHeader","headers","get","nextAcceptHeader","replace","set","delete","response","status","includes"],"mappings":"aAAK,MAACA,EAAgC,iGAWtC,SAAwCC,GACtC,MAAMC,EAAeD,EAAQE,QAAQC,IAAI,UACzC,GAAIF,EAAc,CAChB,MAAMG,EAAmBH,EAAaI,QAAQ,0BAA2B,IACrED,EACFJ,EAAQE,QAAQI,IAAI,SAAUF,GAE9BJ,EAAQE,QAAQK,OAAO,SAE3B,CACF,gCAbA,SAA+BC,GAC7B,OAA2B,MAApBA,EAASC,QAA0E,gBAAxDD,EAASN,QAAQC,IAAIJ,EACzD,8BALA,SAA6BC,GAC3B,QAASA,EAAQE,QAAQC,IAAI,WAAWO,SAAS,kBACnD","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-utils.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"request-utils.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/request-utils.mjs"],"sourcesContent":["const REQUEST_INTENTION_HEADER_NAME = \"x-msw-intention\";\nvar RequestIntention = /* @__PURE__ */ ((RequestIntention2) => {\n RequestIntention2[\"passthrough\"] = \"passthrough\";\n return RequestIntention2;\n})(RequestIntention || {});\nfunction shouldBypassRequest(request) {\n return !!request.headers.get(\"accept\")?.includes(\"msw/passthrough\");\n}\nfunction isPassthroughResponse(response) {\n return response.status === 302 && response.headers.get(REQUEST_INTENTION_HEADER_NAME) === \"passthrough\" /* passthrough */;\n}\nfunction deleteRequestPassthroughHeader(request) {\n const acceptHeader = request.headers.get(\"accept\");\n if (acceptHeader) {\n const nextAcceptHeader = acceptHeader.replace(/(,\\s+)?msw\\/passthrough/, \"\");\n if (nextAcceptHeader) {\n request.headers.set(\"accept\", nextAcceptHeader);\n } else {\n request.headers.delete(\"accept\");\n }\n }\n}\nexport {\n REQUEST_INTENTION_HEADER_NAME,\n RequestIntention,\n deleteRequestPassthroughHeader,\n isPassthroughResponse,\n shouldBypassRequest\n};\n//# sourceMappingURL=request-utils.mjs.map"],"names":["REQUEST_INTENTION_HEADER_NAME","shouldBypassRequest","request","headers","get","includes","isPassthroughResponse","response","status","deleteRequestPassthroughHeader","acceptHeader","nextAcceptHeader","replace","set","delete"],"mappings":"AAAK,MAACA,EAAgC,kBAKtC,SAASC,EAAoBC,GAC3B,QAASA,EAAQC,QAAQC,IAAI,WAAWC,SAAS,kBACnD,CACA,SAASC,EAAsBC,GAC7B,OAA2B,MAApBA,EAASC,QAA0E,gBAAxDD,EAASJ,QAAQC,IAAIJ,EACzD,CACA,SAASS,EAA+BP,GACtC,MAAMQ,EAAeR,EAAQC,QAAQC,IAAI,UACzC,GAAIM,EAAc,CAChB,MAAMC,EAAmBD,EAAaE,QAAQ,0BAA2B,IACrED,EACFT,EAAQC,QAAQU,IAAI,SAAUF,GAE9BT,EAAQC,QAAQW,OAAO,SAE3B,CACF","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptor-source.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"interceptor-source.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/sources/interceptor-source.mjs"],"sourcesContent":["import { BatchInterceptor } from \"@mswjs/interceptors\";\nimport { NetworkSource } from './network-source.mjs';\nimport { InternalError } from '../../utils/internal/devUtils.mjs';\nimport { HttpNetworkFrame, ResponseEvent } from '../frames/http-frame.mjs';\nimport { WebSocketNetworkFrame } from '../frames/websocket-frame.mjs';\nimport { deleteRequestPassthroughHeader } from '../request-utils.mjs';\nclass InterceptorSource extends NetworkSource {\n #interceptor;\n #frames;\n constructor(options) {\n super();\n this.#interceptor = new BatchInterceptor({\n name: \"interceptor-source\",\n interceptors: options.interceptors\n });\n this.#frames = /* @__PURE__ */ new Map();\n }\n enable() {\n this.#interceptor.apply();\n this.#interceptor.on(\"request\", this.#handleRequest.bind(this)).on(\"response\", this.#handleResponse.bind(this)).on(\"connection\", this.#handleWebSocketConnection.bind(this));\n }\n disable() {\n super.disable();\n this.#interceptor.dispose();\n this.#frames.clear();\n }\n async #handleRequest({\n requestId,\n request,\n controller\n }) {\n const httpFrame = new InterceptorHttpNetworkFrame({\n id: requestId,\n request,\n controller\n });\n this.#frames.set(requestId, httpFrame);\n await this.queue(httpFrame);\n }\n async #handleResponse({\n requestId,\n request,\n response,\n isMockedResponse\n }) {\n const httpFrame = this.#frames.get(requestId);\n this.#frames.delete(requestId);\n if (httpFrame == null) {\n return;\n }\n queueMicrotask(() => {\n try {\n httpFrame.events.emit(\n new ResponseEvent(\n isMockedResponse ? \"response:mocked\" : \"response:bypass\",\n {\n requestId,\n request,\n response\n }\n )\n );\n } finally {\n httpFrame.events.removeAllListeners();\n }\n });\n }\n async #handleWebSocketConnection(connection) {\n await this.queue(\n new InterceptorWebSocketNetworkFrame({\n connection\n })\n );\n }\n}\nclass InterceptorHttpNetworkFrame extends HttpNetworkFrame {\n #controller;\n constructor(options) {\n super({\n id: options.id,\n request: options.request\n });\n this.#controller = options.controller;\n }\n passthrough() {\n deleteRequestPassthroughHeader(this.data.request);\n }\n respondWith(response) {\n if (response) {\n this.#controller.respondWith(response);\n }\n }\n errorWith(reason) {\n if (reason instanceof Response) {\n return this.respondWith(reason);\n }\n if (reason instanceof InternalError) {\n this.#controller.errorWith(reason);\n }\n throw reason;\n }\n}\nclass InterceptorWebSocketNetworkFrame extends WebSocketNetworkFrame {\n constructor(args) {\n super({ connection: args.connection });\n args.connection.client.addEventListener(\n \"close\",\n () => {\n this.events.removeAllListeners();\n },\n {\n once: true\n }\n );\n }\n errorWith(reason) {\n if (reason instanceof Error) {\n const { client } = this.data.connection;\n const errorEvent = new Event(\"error\");\n Object.defineProperty(errorEvent, \"cause\", {\n enumerable: true,\n configurable: false,\n value: reason\n });\n client.socket.dispatchEvent(errorEvent);\n }\n }\n passthrough() {\n this.data.connection.server.connect();\n }\n}\nexport {\n InterceptorSource\n};\n//# sourceMappingURL=interceptor-source.mjs.map"],"names":["InterceptorSource","NetworkSource","interceptor","frames","constructor","options","super","this","BatchInterceptor","name","interceptors","Map","enable","apply","on","handleRequest","bind","handleResponse","handleWebSocketConnection","disable","dispose","clear","requestId","request","controller","httpFrame","InterceptorHttpNetworkFrame","id","set","queue","response","isMockedResponse","get","delete","queueMicrotask","events","emit","ResponseEvent","removeAllListeners","connection","InterceptorWebSocketNetworkFrame","HttpNetworkFrame","passthrough","deleteRequestPassthroughHeader","data","respondWith","errorWith","reason","Response","InternalError","WebSocketNetworkFrame","args","client","addEventListener","once","Error","errorEvent","Event","Object","defineProperty","enumerable","configurable","value","socket","dispatchEvent","server","connect"],"mappings":"inBAMA,MAAMA,UAA0BC,EAAAA,cAC9BC,GACAC,GACA,WAAAC,CAAYC,GACVC,QACAC,MAAKL,EAAe,IAAIM,IAAiB,CACvCC,KAAM,qBACNC,aAAcL,EAAQK,eAExBH,MAAKJ,EAA0B,IAAIQ,GACrC,CACA,MAAAC,GACEL,MAAKL,EAAaW,QAClBN,MAAKL,EAAaY,GAAG,UAAWP,MAAKQ,EAAeC,KAAKT,OAAOO,GAAG,WAAYP,MAAKU,EAAgBD,KAAKT,OAAOO,GAAG,aAAcP,MAAKW,EAA2BF,KAAKT,MACxK,CACA,OAAAY,GACEb,MAAMa,UACNZ,MAAKL,EAAakB,UAClBb,MAAKJ,EAAQkB,OACf,CACA,OAAMN,EAAeO,UACnBA,EAASC,QACTA,EAAOC,WACPA,IAEA,MAAMC,EAAY,IAAIC,EAA4B,CAChDC,GAAIL,EACJC,UACAC,eAEFjB,MAAKJ,EAAQyB,IAAIN,EAAWG,SACtBlB,KAAKsB,MAAMJ,EACnB,CACA,OAAMR,EAAgBK,UACpBA,EAASC,QACTA,EAAOO,SACPA,EAAQC,iBACRA,IAEA,MAAMN,EAAYlB,MAAKJ,EAAQ6B,IAAIV,GACnCf,MAAKJ,EAAQ8B,OAAOX,GACH,MAAbG,GAGJS,eAAe,KACb,IACET,EAAUU,OAAOC,KACf,IAAIC,EAAAA,cACFN,EAAmB,kBAAoB,kBACvC,CACET,YACAC,UACAO,aAIR,CAAC,QACCL,EAAUU,OAAOG,oBACnB,GAEJ,CACA,OAAMpB,CAA2BqB,SACzBhC,KAAKsB,MACT,IAAIW,EAAiC,CACnCD,eAGN,EAEF,MAAMb,UAAoCe,EAAAA,iBACxCjB,GACA,WAAApB,CAAYC,GACVC,MAAM,CACJqB,GAAItB,EAAQsB,GACZJ,QAASlB,EAAQkB,UAEnBhB,MAAKiB,EAAcnB,EAAQmB,UAC7B,CACA,WAAAkB,GACEC,iCAA+BpC,KAAKqC,KAAKrB,QAC3C,CACA,WAAAsB,CAAYf,GACNA,GACFvB,MAAKiB,EAAYqB,YAAYf,EAEjC,CACA,SAAAgB,CAAUC,GACR,GAAIA,aAAkBC,SACpB,OAAOzC,KAAKsC,YAAYE,GAK1B,MAHIA,aAAkBE,EAAAA,eACpB1C,MAAKiB,EAAYsB,UAAUC,GAEvBA,CACR,EAEF,MAAMP,UAAyCU,EAAAA,sBAC7C,WAAA9C,CAAY+C,GACV7C,MAAM,CAAEiC,WAAYY,EAAKZ,aACzBY,EAAKZ,WAAWa,OAAOC,iBACrB,QACA,KACE9C,KAAK4B,OAAOG,sBAEd,CACEgB,MAAM,GAGZ,CACA,SAAAR,CAAUC,GACR,GAAIA,aAAkBQ,MAAO,CAC3B,MAAMH,OAAEA,GAAW7C,KAAKqC,KAAKL,WACvBiB,EAAa,IAAIC,MAAM,SAC7BC,OAAOC,eAAeH,EAAY,QAAS,CACzCI,YAAY,EACZC,cAAc,EACdC,MAAOf,IAETK,EAAOW,OAAOC,cAAcR,EAC9B,CACF,CACA,WAAAd,GACEnC,KAAKqC,KAAKL,WAAW0B,OAAOC,SAC9B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptor-source.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"interceptor-source.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/sources/interceptor-source.mjs"],"sourcesContent":["import { BatchInterceptor } from \"@mswjs/interceptors\";\nimport { NetworkSource } from './network-source.mjs';\nimport { InternalError } from '../../utils/internal/devUtils.mjs';\nimport { HttpNetworkFrame, ResponseEvent } from '../frames/http-frame.mjs';\nimport { WebSocketNetworkFrame } from '../frames/websocket-frame.mjs';\nimport { deleteRequestPassthroughHeader } from '../request-utils.mjs';\nclass InterceptorSource extends NetworkSource {\n #interceptor;\n #frames;\n constructor(options) {\n super();\n this.#interceptor = new BatchInterceptor({\n name: \"interceptor-source\",\n interceptors: options.interceptors\n });\n this.#frames = /* @__PURE__ */ new Map();\n }\n enable() {\n this.#interceptor.apply();\n this.#interceptor.on(\"request\", this.#handleRequest.bind(this)).on(\"response\", this.#handleResponse.bind(this)).on(\"connection\", this.#handleWebSocketConnection.bind(this));\n }\n disable() {\n super.disable();\n this.#interceptor.dispose();\n this.#frames.clear();\n }\n async #handleRequest({\n requestId,\n request,\n controller\n }) {\n const httpFrame = new InterceptorHttpNetworkFrame({\n id: requestId,\n request,\n controller\n });\n this.#frames.set(requestId, httpFrame);\n await this.queue(httpFrame);\n }\n async #handleResponse({\n requestId,\n request,\n response,\n isMockedResponse\n }) {\n const httpFrame = this.#frames.get(requestId);\n this.#frames.delete(requestId);\n if (httpFrame == null) {\n return;\n }\n queueMicrotask(() => {\n try {\n httpFrame.events.emit(\n new ResponseEvent(\n isMockedResponse ? \"response:mocked\" : \"response:bypass\",\n {\n requestId,\n request,\n response\n }\n )\n );\n } finally {\n httpFrame.events.removeAllListeners();\n }\n });\n }\n async #handleWebSocketConnection(connection) {\n await this.queue(\n new InterceptorWebSocketNetworkFrame({\n connection\n })\n );\n }\n}\nclass InterceptorHttpNetworkFrame extends HttpNetworkFrame {\n #controller;\n constructor(options) {\n super({\n id: options.id,\n request: options.request\n });\n this.#controller = options.controller;\n }\n passthrough() {\n deleteRequestPassthroughHeader(this.data.request);\n }\n respondWith(response) {\n if (response) {\n this.#controller.respondWith(response);\n }\n }\n errorWith(reason) {\n if (reason instanceof Response) {\n return this.respondWith(reason);\n }\n if (reason instanceof InternalError) {\n this.#controller.errorWith(reason);\n }\n throw reason;\n }\n}\nclass InterceptorWebSocketNetworkFrame extends WebSocketNetworkFrame {\n constructor(args) {\n super({ connection: args.connection });\n args.connection.client.addEventListener(\n \"close\",\n () => {\n this.events.removeAllListeners();\n },\n {\n once: true\n }\n );\n }\n errorWith(reason) {\n if (reason instanceof Error) {\n const { client } = this.data.connection;\n const errorEvent = new Event(\"error\");\n Object.defineProperty(errorEvent, \"cause\", {\n enumerable: true,\n configurable: false,\n value: reason\n });\n client.socket.dispatchEvent(errorEvent);\n }\n }\n passthrough() {\n this.data.connection.server.connect();\n }\n}\nexport {\n InterceptorSource\n};\n//# sourceMappingURL=interceptor-source.mjs.map"],"names":["InterceptorSource","NetworkSource","interceptor","frames","constructor","options","super","this","BatchInterceptor","name","interceptors","Map","enable","apply","on","handleRequest","bind","handleResponse","handleWebSocketConnection","disable","dispose","clear","requestId","request","controller","httpFrame","InterceptorHttpNetworkFrame","id","set","queue","response","isMockedResponse","get","delete","queueMicrotask","events","emit","ResponseEvent","removeAllListeners","connection","InterceptorWebSocketNetworkFrame","HttpNetworkFrame","passthrough","deleteRequestPassthroughHeader","data","respondWith","errorWith","reason","Response","InternalError","WebSocketNetworkFrame","args","client","addEventListener","once","Error","errorEvent","Event","Object","defineProperty","enumerable","configurable","value","socket","dispatchEvent","server","connect"],"mappings":"2sBAMA,MAAMA,UAA0BC,EAC9BC,GACAC,GACA,WAAAC,CAAYC,GACVC,QACAC,MAAKL,EAAe,IAAIM,EAAiB,CACvCC,KAAM,qBACNC,aAAcL,EAAQK,eAExBH,MAAKJ,EAA0B,IAAIQ,GACrC,CACA,MAAAC,GACEL,MAAKL,EAAaW,QAClBN,MAAKL,EAAaY,GAAG,UAAWP,MAAKQ,EAAeC,KAAKT,OAAOO,GAAG,WAAYP,MAAKU,EAAg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AAK4B,OAAOG,sBAEd,CACEgB,MAAM,GAGZ,CACA,SAAAR,CAAUC,GACR,GAAIA,aAAkBQ,MAAO,CAC3B,MAAMH,OAAEA,GAAW7C,KAAKqC,KAAKL,WACvBiB,EAAa,IAAIC,MAAM,SAC7BC,OAAOC,eAAeH,EAAY,QAAS,CACzCI,YAAY,EACZC,cAAc,EACdC,MAAOf,IAETK,EAAOW,OAAOC,cAAcR,EAC9B,CACF,CACA,WAAAd,GACEnC,KAAKqC,KAAKL,WAAW0B,OAAOC,SAC9B","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-source.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"network-source.cjs.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/sources/network-source.mjs"],"sourcesContent":["import { Emitter, TypedEvent } from \"rettime\";\nimport {\n} from '../frames/network-frame.mjs';\nclass NetworkFrameEvent extends TypedEvent {\n frame;\n constructor(type, frame) {\n super(...[type, {}]);\n this.frame = frame;\n }\n}\nclass NetworkSource {\n emitter;\n constructor() {\n this.emitter = new Emitter();\n }\n async queue(frame) {\n await this.emitter.emitAsPromise(\n // @ts-expect-error Trouble handling a conditional type parameter.\n new NetworkFrameEvent(\"frame\", frame)\n );\n }\n on(type, listener, options) {\n this.emitter.on(type, listener, options);\n }\n disable() {\n this.emitter.removeAllListeners();\n }\n}\nexport {\n NetworkSource\n};\n//# sourceMappingURL=network-source.mjs.map"],"names":["NetworkFrameEvent","TypedEvent","frame","constructor","type","super","this","emitter","Emitter","queue","emitAsPromise","on","listener","options","disable","removeAllListeners"],"mappings":"2GAGA,MAAMA,UAA0BC,EAAAA,WAC9BC,MACA,WAAAC,CAAYC,EAAMF,GAChBG,MAAUD,EAAM,CAAA,GAChBE,KAAKJ,MAAQA,CACf,wBAEF,MACEK,QACA,WAAAJ,GACEG,KAAKC,QAAU,IAAIC,SACrB,CACA,WAAMC,CAAMP,SACJI,KAAKC,QAAQG,cAEjB,IAAIV,EAAkB,QAASE,GAEnC,CACA,EAAAS,CAAGP,EAAMQ,EAAUC,GACjBP,KAAKC,QAAQI,GAAGP,EAAMQ,EAAUC,EAClC,CACA,OAAAC,GACER,KAAKC,QAAQQ,oBACf","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-source.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"network-source.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/experimental/sources/network-source.mjs"],"sourcesContent":["import { Emitter, TypedEvent } from \"rettime\";\nimport {\n} from '../frames/network-frame.mjs';\nclass NetworkFrameEvent extends TypedEvent {\n frame;\n constructor(type, frame) {\n super(...[type, {}]);\n this.frame = frame;\n }\n}\nclass NetworkSource {\n emitter;\n constructor() {\n this.emitter = new Emitter();\n }\n async queue(frame) {\n await this.emitter.emitAsPromise(\n // @ts-expect-error Trouble handling a conditional type parameter.\n new NetworkFrameEvent(\"frame\", frame)\n );\n }\n on(type, listener, options) {\n this.emitter.on(type, listener, options);\n }\n disable() {\n this.emitter.removeAllListeners();\n }\n}\nexport {\n NetworkSource\n};\n//# sourceMappingURL=network-source.mjs.map"],"names":["NetworkFrameEvent","TypedEvent","frame","constructor","type","super","this","NetworkSource","emitter","Emitter","queue","emitAsPromise","on","listener","options","disable","removeAllListeners"],"mappings":"mHAGA,MAAMA,UAA0BC,EAC9BC,MACA,WAAAC,CAAYC,EAAMF,GAChBG,MAAUD,EAAM,CAAA,GAChBE,KAAKJ,MAAQA,CACf,EAEF,MAAMK,EACJC,QACA,WAAAL,GACEG,KAAKE,QAAU,IAAIC,CACrB,CACA,WAAMC,CAAMR,SACJI,KAAKE,QAAQG,cAEjB,IAAIX,EAAkB,QAASE,GAEnC,CACA,EAAAU,CAAGR,EAAMS,EAAUC,GACjBR,KAAKE,QAAQI,GAAGR,EAAMS,EAAUC,EAClC,CACA,OAAAC,GACET,KAAKE,QAAQQ,oBACf","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"HttpHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import {} from '../utils/executeHandlers.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"wjBAgBIA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAoB,MAAI,QACxBA,EAAsB,QAAI,UAC1BA,EAAqB,OAAI,SAClBA,GARyB,CAS/BD,GAAe,CAAA,GAClB,MAAME,UAAoBC,EAAAA,eACxB,WAAAC,CAAYC,EAAQC,EAAWC,EAAUC,GACvC,MAAMC,EAAmC,mBAAdH,EAA2B,qBAAuBA,EAC7EI,MAAM,CACJC,KAAM,CACJC,OAAQ,GAAGP,IAASI,EAAc,IAAIA,IAAgB,KACtDI,KAAMP,EACND,UAEFE,WACAC,YAEFM,KAAKC,+BACP,CACA,6BAAAA,GACE,MAAMV,OAAEA,EAAMQ,KAAEA,GAASC,KAAKH,KAC9B,IAAKE,GAAQA,aAAgBG,QAA0B,mBAATH,EAC5C,OAEUI,EAAAA,SAASJ,KACTA,GAGZK,EAAAA,SAASC,KACP,+EAA+Ed,KAAUQ,6MAE7F,CACA,WAAMO,CAA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AAQX,IAAI,WAAY5B,MACxBuC,QAAQX,IAAI,WAAYK,GACxBM,QAAQK,UACV","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"HttpHandler.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.mjs"],"sourcesContent":["import {} from '../utils/executeHandlers.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { isStringEqual } from '../utils/internal/isStringEqual.mjs';\nimport { getStatusCodeColor } from '../utils/logging/getStatusCodeColor.mjs';\nimport { getTimestamp } from '../utils/logging/getTimestamp.mjs';\nimport { serializeRequest } from '../utils/logging/serializeRequest.mjs';\nimport { serializeResponse } from '../utils/logging/serializeResponse.mjs';\nimport {\n matchRequestUrl\n} from '../utils/matching/matchRequestUrl.mjs';\nimport { toPublicUrl } from '../utils/request/toPublicUrl.mjs';\nimport { getAllRequestCookies } from '../utils/request/getRequestCookies.mjs';\nimport { cleanUrl } from '../utils/url/cleanUrl.mjs';\nimport {\n RequestHandler\n} from './RequestHandler.mjs';\nvar HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {\n HttpMethods2[\"HEAD\"] = \"HEAD\";\n HttpMethods2[\"GET\"] = \"GET\";\n HttpMethods2[\"POST\"] = \"POST\";\n HttpMethods2[\"PUT\"] = \"PUT\";\n HttpMethods2[\"PATCH\"] = \"PATCH\";\n HttpMethods2[\"OPTIONS\"] = \"OPTIONS\";\n HttpMethods2[\"DELETE\"] = \"DELETE\";\n return HttpMethods2;\n})(HttpMethods || {});\nclass HttpHandler extends RequestHandler {\n constructor(method, predicate, resolver, options) {\n const displayPath = typeof predicate === \"function\" ? \"[custom predicate]\" : predicate;\n super({\n info: {\n header: `${method}${displayPath ? ` ${displayPath}` : \"\"}`,\n path: predicate,\n method\n },\n resolver,\n options\n });\n this.checkRedundantQueryParameters();\n }\n checkRedundantQueryParameters() {\n const { method, path } = this.info;\n if (!path || path instanceof RegExp || typeof path === \"function\") {\n return;\n }\n const url = cleanUrl(path);\n if (url === path) {\n return;\n }\n devUtils.warn(\n `Found a redundant usage of query parameters in the request handler URL for \"${method} ${path}\". Please match against a path instead and access query parameters using \"new URL(request.url).searchParams\" instead. Learn more: https://mswjs.io/docs/http/intercepting-requests#querysearch-parameters`\n );\n }\n async parse(args) {\n const url = new URL(args.request.url);\n const cookies = getAllRequestCookies(args.request);\n if (typeof this.info.path === \"function\") {\n const customPredicateResult = await this.info.path({\n request: args.request,\n cookies\n });\n const match2 = typeof customPredicateResult === \"boolean\" ? {\n matches: customPredicateResult,\n params: {}\n } : customPredicateResult;\n return {\n match: match2,\n cookies\n };\n }\n const match = this.info.path ? matchRequestUrl(url, this.info.path, args.resolutionContext?.baseUrl) : { matches: false, params: {} };\n return {\n match,\n cookies\n };\n }\n async predicate(args) {\n const hasMatchingMethod = this.matchMethod(args.request.method);\n const hasMatchingUrl = args.parsedResult.match.matches;\n return hasMatchingMethod && hasMatchingUrl;\n }\n matchMethod(actualMethod) {\n return this.info.method instanceof RegExp ? this.info.method.test(actualMethod) : isStringEqual(this.info.method, actualMethod);\n }\n extendResolverArgs(args) {\n return {\n params: args.parsedResult.match?.params || {},\n cookies: args.parsedResult.cookies\n };\n }\n async log(args) {\n const publicUrl = toPublicUrl(args.request.url);\n const loggedRequest = await serializeRequest(args.request);\n const loggedResponse = await serializeResponse(args.response);\n const statusColor = getStatusCodeColor(loggedResponse.status);\n console.groupCollapsed(\n devUtils.formatMessage(\n `${getTimestamp()} ${args.request.method} ${publicUrl} (%c${loggedResponse.status} ${loggedResponse.statusText}%c)`\n ),\n `color:${statusColor}`,\n \"color:inherit\"\n );\n console.log(\"Request\", loggedRequest);\n console.log(\"Handler:\", this);\n console.log(\"Response\", loggedResponse);\n console.groupEnd();\n }\n}\nexport {\n HttpHandler,\n HttpMethods\n};\n//# sourceMappingURL=HttpHandler.mjs.map"],"names":["HttpMethods","HttpMethods2","HttpHandler","RequestHandler","constructor","method","predicate","resolver","options","displayPath","super","info","header","path","this","checkRedundantQueryParameters","RegExp","cleanUrl","devUtils","warn","parse","args","url","URL","request","cookies","getAllRequestCookies","customPredicateResult","match","matches","params","matchRequestUrl","resolutionContext","baseUrl","hasMatchingMethod","matchMethod","hasMatchingUrl","parsedResult","actualMethod","test","isStringEqual","extendResolverArgs","log","publicUrl","toPublicUrl","loggedRequest","serializeRequest","loggedResponse","serializeResponse","response","statusColor","getStatusCodeColor","status","console","groupCollapsed","formatMessage","getTimestamp","statusText","groupEnd"],"mappings":"qtBAgBG,IAACA,EAA8B,CAAEC,IAClCA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAmB,KAAI,OACvBA,EAAkB,IAAI,MACtBA,EAAoB,MAAI,QACxBA,EAAsB,QAAI,UAC1BA,EAAqB,OAAI,SAClBA,GARyB,CAS/BD,GAAe,CAAA,GAClB,MAAME,UAAoBC,EACxB,WAAAC,CAAYC,EAAQC,EAAWC,EAAUC,GACvC,MAAMC,EAAmC,mBAAdH,EAA2B,qBAAuBA,EAC7EI,MAAM,CACJC,KAAM,CACJC,OAAQ,GAAGP,IAASI,EAAc,IAAIA,IAAgB,KACtDI,KAAMP,EACND,UAEFE,WACAC,YAEFM,KAAKC,+BACP,CACA,6BAAAA,GACE,MAAMV,OAAEA,EAAMQ,KAAEA,GAASC,KAAKH,KAC9B,IAAKE,GAAQA,aAAgBG,QAA0B,mBAATH,EAC5C,OAEUI,EAASJ,KACTA,GAGZK,EAASC,KACP,+EAA+Ed,KAAUQ,6MAE7F,CACA,WAAMO,CAAMC,GACV,MAAMC,EAAM,IAAIC,IAAIF,EAAKG,QAAQF,KAC3BG,EAAUC,EAAqBL,EAAKG,SAC1C,GAA8B,mBAAnBV,KAAKH,KAAKE,KAAqB,CACxC,MAAM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_@types+node@20.19.39_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.mjs"],"sourcesContent":["import { Headers as HeadersPolyfill } from \"headers-polyfill\";\nimport { getCallFrame } from '../utils/internal/getCallFrame.mjs';\nimport {\n isIterable\n} from '../utils/internal/isIterable.mjs';\nimport {\n} from '../HttpResponse.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { getRawSetCookie } from '../utils/HttpResponse/decorators.mjs';\nclass RequestHandler {\n static cache = /* @__PURE__ */ new WeakMap();\n kind = \"request\";\n resolver;\n resolverIterator;\n resolverIteratorResult;\n resolverIteratorCleanups;\n options;\n scheduledCleanups;\n info;\n /**\n * Indicates whether this request handler has been used\n * (its resolver has successfully executed).\n */\n isUsed;\n constructor(args) {\n this.resolver = args.resolver;\n this.options = args.options;\n this.scheduledCleanups = /* @__PURE__ */ new Map();\n const callFrame = getCallFrame(new Error());\n this.info = {\n ...args.info,\n callFrame\n };\n this.isUsed = false;\n }\n /**\n * Reset the runtime state accumulated during response resolution,\n * such as generator iterator progress. Called when this handler is\n * removed from the active handlers list so re-adding it later starts\n * from a clean state.\n */\n reset() {\n this.scheduledCleanups.clear();\n const iterator = this.resolverIterator;\n this.resolverIterator = void 0;\n this.resolverIteratorResult = void 0;\n this.resolverIteratorCleanups = void 0;\n if (typeof iterator?.return === \"function\") {\n void Promise.resolve(iterator.return());\n }\n }\n /**\n * Restore this handler so it can match requests again after being\n * exhausted (e.g. via `{ once: true }`). Also clears any accumulated\n * resolution state.\n */\n restore() {\n if (this.options?.once) {\n this.reset();\n this.isUsed = false;\n }\n }\n /**\n * Parse the intercepted request to extract additional information from it.\n * Parsed result is then exposed to other methods of this request handler.\n */\n async parse(_args) {\n return {};\n }\n /**\n * Test if this handler matches the given request.\n *\n * This method is not used internally but is exposed\n * as a convenience method for consumers writing custom\n * handlers.\n */\n async test(args) {\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n return this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n }\n extendResolverArgs(_args) {\n return {};\n }\n // Clone the request instance before it's passed to the handler phases\n // and the response resolver so we can always read it for logging.\n // We only clone it once per request to avoid unnecessary overhead.\n cloneRequestOrGetFromCache(request) {\n const existingClone = RequestHandler.cache.get(request);\n if (typeof existingClone !== \"undefined\") {\n return existingClone;\n }\n const clonedRequest = request.clone();\n RequestHandler.cache.set(request, clonedRequest);\n return clonedRequest;\n }\n /**\n * Execute this request handler and produce a mocked response\n * using the given resolver function.\n */\n async run(args) {\n if (this.isUsed && this.options?.once) {\n return null;\n }\n const requestClone = this.cloneRequestOrGetFromCache(args.request);\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n const shouldInterceptRequest = await this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n if (!shouldInterceptRequest) {\n return null;\n }\n if (this.isUsed && this.options?.once) {\n return null;\n }\n this.isUsed = true;\n const executeResolver = this.wrapResolver(this.resolver);\n const resolverExtras = this.extendResolverArgs({\n request: args.request,\n parsedResult\n });\n const listenerController = new AbortController();\n args.request.signal.addEventListener(\n \"abort\",\n () => this.runScheduledCleanups(args.requestId),\n {\n once: true,\n signal: listenerController.signal\n }\n );\n const mockedResponsePromise = executeResolver({\n ...resolverExtras,\n finalize: (callback) => {\n this.scheduleCleanup(args.requestId, callback);\n },\n requestId: args.requestId,\n request: args.request\n }).catch((errorOrResponse) => {\n if (errorOrResponse instanceof Response) {\n return errorOrResponse;\n }\n throw errorOrResponse;\n }).finally(() => {\n listenerController.abort();\n });\n const mockedResponse = await mockedResponsePromise;\n if (mockedResponse) {\n forwardResponseCookies(mockedResponse);\n }\n const executionResult = this.createExecutionResult({\n // Pass the cloned request to the result so that logging\n // and other consumers could read its body once more.\n request: requestClone,\n requestId: args.requestId,\n response: mockedResponse,\n parsedResult\n });\n return executionResult;\n }\n wrapResolver(resolver) {\n return async (info) => {\n if (!this.resolverIterator) {\n let result;\n try {\n result = await resolver(info);\n } catch (error) {\n await this.runScheduledCleanups(info.requestId);\n throw error;\n }\n if (!isIterable(result)) {\n await this.runScheduledCleanups(info.requestId);\n return result;\n }\n const existingCleanups = this.scheduledCleanups.get(info.requestId);\n if (existingCleanups != null && existingCleanups.length > 0) {\n this.resolverIteratorCleanups = existingCleanups;\n this.scheduledCleanups.delete(info.requestId);\n }\n this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();\n }\n this.isUsed = false;\n const { done, value } = await this.resolverIterator.next();\n const nextResponse = await value;\n if (nextResponse) {\n this.resolverIteratorResult = nextResponse.clone();\n }\n if (done) {\n this.isUsed = true;\n await this.runScheduledCleanups(info.requestId);\n return this.resolverIteratorResult?.clone();\n }\n return nextResponse;\n };\n }\n createExecutionResult(args) {\n return {\n handler: this,\n request: args.request,\n requestId: args.requestId,\n response: args.response,\n parsedResult: args.parsedResult\n };\n }\n scheduleCleanup(requestId, callback) {\n if (this.resolverIterator) {\n ;\n (this.resolverIteratorCleanups ||= []).unshift(callback);\n return;\n }\n const cleanups = this.scheduledCleanups.get(requestId) || [];\n cleanups.unshift(callback);\n this.scheduledCleanups.set(requestId, cleanups);\n }\n async exhaustCleanups(cleanups) {\n const errors = [];\n for (const cleanup of cleanups) {\n try {\n await cleanup();\n } catch (error) {\n if (error instanceof Error) {\n errors.push(error);\n }\n }\n }\n if (errors.length > 0) {\n devUtils.error(\n 'Failed to execute cleanup for request handler \"%s\"',\n this.info.header,\n new AggregateError(\n errors,\n `Failed to execute cleanup for request handler \"${this.info.header}\"`\n )\n );\n }\n }\n async runScheduledCleanups(requestId) {\n if (this.resolverIterator && this.resolverIteratorCleanups != null && this.resolverIteratorCleanups.length > 0) {\n try {\n await this.exhaustCleanups(this.resolverIteratorCleanups);\n } finally {\n this.resolverIteratorCleanups = void 0;\n }\n return;\n }\n const cleanups = this.scheduledCleanups.get(requestId);\n if (!cleanups || cleanups.length == 0) {\n return;\n }\n await this.exhaustCleanups(cleanups);\n this.scheduledCleanups.delete(requestId);\n }\n}\nfunction forwardResponseCookies(response) {\n if (typeof document === \"undefined\") {\n return;\n }\n const responseCookies = getRawSetCookie(response);\n if (!responseCookies) {\n return;\n }\n const allResponseCookies = HeadersPolyfill.prototype.getSetCookie.call(\n new Headers([[\"set-cookie\", responseCookies]])\n );\n for (const cookieString of allResponseCookies) {\n document.cookie = cookieString;\n }\n}\nexport {\n RequestHandler,\n forwardResponseCookies\n};\n//# sourceMappingURL=RequestHandler.mjs.map"],"names":["RequestHandler","static","WeakMap","kind","resolver","resolverIterator","resolverIteratorResult","resolverIteratorCleanups","options","scheduledCleanups","info","isUsed","constructor","args","this","Map","callFrame","getCallFrame","Error","reset","clear","iterator","return","Promise","resolve","restore","once","parse","_args","test","parsedResult","request","resolutionContext","predicate","extendResolverArgs","cloneRequestOrGetFromCache","existingClone","cache","get","clonedRequest","clone","set","run","requestClone","executeResolver","wrapResolver","resolverExtras","listenerController","AbortController","signal","addEventListener","runScheduledCleanups","requestId","mockedResponsePromise","finalize","callback","scheduleCleanup","catch","errorOrResponse","Response","finally","abort","mockedResponse","forwardResponseCookies","createExecutionResult","response","async","result","error","isIterable","existingCleanups","length","delete","Symbol","asyncIterator","done","value","next","nextResponse","handler","unshift","cleanups","exhaustCleanups","errors","cleanup","push","devUtils","header","AggregateError","document","responseCookies","getRawSetCookie","allResponseCookies","HeadersPolyfill","prototype","getSetCookie","call","Headers","cookieString","cookie"],"mappings":"8TASA,MAAMA,EACJC,aAA+B,IAAIC,QACnCC,KAAO,UACPC,SACAC,iBACAC,uBACAC,yBACAC,QACAC,kBACAC,KAKAC,OACA,WAAAC,CAAYC,GACVC,KAAKV,SAAWS,EAAKT,SACrBU,KAAKN,QAAUK,EAAKL,QACpBM,KAAKL,kBAAoC,IAAIM,IAC7C,MAAMC,EAAYC,EAAAA,aAAa,IAAIC,OACnCJ,KAAKJ,KAAO,IACPG,EAAKH,KACRM,aAEFF,KAAKH,QAAS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,IAAIC,QAAQ,CAAC,CAAC,aAAcP,MAE9B,IAAK,MAAMQ,KAAgBN,EACzBH,SAASU,OAASD,CAEtB","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"RequestHandler.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.40_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.mjs"],"sourcesContent":["import { Headers as HeadersPolyfill } from \"headers-polyfill\";\nimport { getCallFrame } from '../utils/internal/getCallFrame.mjs';\nimport {\n isIterable\n} from '../utils/internal/isIterable.mjs';\nimport {\n} from '../HttpResponse.mjs';\nimport { devUtils } from '../utils/internal/devUtils.mjs';\nimport { getRawSetCookie } from '../utils/HttpResponse/decorators.mjs';\nclass RequestHandler {\n static cache = /* @__PURE__ */ new WeakMap();\n kind = \"request\";\n resolver;\n resolverIterator;\n resolverIteratorResult;\n resolverIteratorCleanups;\n options;\n scheduledCleanups;\n info;\n /**\n * Indicates whether this request handler has been used\n * (its resolver has successfully executed).\n */\n isUsed;\n constructor(args) {\n this.resolver = args.resolver;\n this.options = args.options;\n this.scheduledCleanups = /* @__PURE__ */ new Map();\n const callFrame = getCallFrame(new Error());\n this.info = {\n ...args.info,\n callFrame\n };\n this.isUsed = false;\n }\n /**\n * Reset the runtime state accumulated during response resolution,\n * such as generator iterator progress. Called when this handler is\n * removed from the active handlers list so re-adding it later starts\n * from a clean state.\n */\n reset() {\n this.scheduledCleanups.clear();\n const iterator = this.resolverIterator;\n this.resolverIterator = void 0;\n this.resolverIteratorResult = void 0;\n this.resolverIteratorCleanups = void 0;\n if (typeof iterator?.return === \"function\") {\n void Promise.resolve(iterator.return());\n }\n }\n /**\n * Restore this handler so it can match requests again after being\n * exhausted (e.g. via `{ once: true }`). Also clears any accumulated\n * resolution state.\n */\n restore() {\n if (this.options?.once) {\n this.reset();\n this.isUsed = false;\n }\n }\n /**\n * Parse the intercepted request to extract additional information from it.\n * Parsed result is then exposed to other methods of this request handler.\n */\n async parse(_args) {\n return {};\n }\n /**\n * Test if this handler matches the given request.\n *\n * This method is not used internally but is exposed\n * as a convenience method for consumers writing custom\n * handlers.\n */\n async test(args) {\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n return this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n }\n extendResolverArgs(_args) {\n return {};\n }\n // Clone the request instance before it's passed to the handler phases\n // and the response resolver so we can always read it for logging.\n // We only clone it once per request to avoid unnecessary overhead.\n cloneRequestOrGetFromCache(request) {\n const existingClone = RequestHandler.cache.get(request);\n if (typeof existingClone !== \"undefined\") {\n return existingClone;\n }\n const clonedRequest = request.clone();\n RequestHandler.cache.set(request, clonedRequest);\n return clonedRequest;\n }\n /**\n * Execute this request handler and produce a mocked response\n * using the given resolver function.\n */\n async run(args) {\n if (this.isUsed && this.options?.once) {\n return null;\n }\n const requestClone = this.cloneRequestOrGetFromCache(args.request);\n const parsedResult = await this.parse({\n request: args.request,\n resolutionContext: args.resolutionContext\n });\n const shouldInterceptRequest = await this.predicate({\n request: args.request,\n parsedResult,\n resolutionContext: args.resolutionContext\n });\n if (!shouldInterceptRequest) {\n return null;\n }\n if (this.isUsed && this.options?.once) {\n return null;\n }\n this.isUsed = true;\n const executeResolver = this.wrapResolver(this.resolver);\n const resolverExtras = this.extendResolverArgs({\n request: args.request,\n parsedResult\n });\n const listenerController = new AbortController();\n args.request.signal.addEventListener(\n \"abort\",\n () => this.runScheduledCleanups(args.requestId),\n {\n once: true,\n signal: listenerController.signal\n }\n );\n const mockedResponsePromise = executeResolver({\n ...resolverExtras,\n finalize: (callback) => {\n this.scheduleCleanup(args.requestId, callback);\n },\n requestId: args.requestId,\n request: args.request\n }).catch((errorOrResponse) => {\n if (errorOrResponse instanceof Response) {\n return errorOrResponse;\n }\n throw errorOrResponse;\n }).finally(() => {\n listenerController.abort();\n });\n const mockedResponse = await mockedResponsePromise;\n if (mockedResponse) {\n forwardResponseCookies(mockedResponse);\n }\n const executionResult = this.createExecutionResult({\n // Pass the cloned request to the result so that logging\n // and other consumers could read its body once more.\n request: requestClone,\n requestId: args.requestId,\n response: mockedResponse,\n parsedResult\n });\n return executionResult;\n }\n wrapResolver(resolver) {\n return async (info) => {\n if (!this.resolverIterator) {\n let result;\n try {\n result = await resolver(info);\n } catch (error) {\n await this.runScheduledCleanups(info.requestId);\n throw error;\n }\n if (!isIterable(result)) {\n await this.runScheduledCleanups(info.requestId);\n return result;\n }\n const existingCleanups = this.scheduledCleanups.get(info.requestId);\n if (existingCleanups != null && existingCleanups.length > 0) {\n this.resolverIteratorCleanups = existingCleanups;\n this.scheduledCleanups.delete(info.requestId);\n }\n this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();\n }\n this.isUsed = false;\n const { done, value } = await this.resolverIterator.next();\n const nextResponse = await value;\n if (nextResponse) {\n this.resolverIteratorResult = nextResponse.clone();\n }\n if (done) {\n this.isUsed = true;\n await this.runScheduledCleanups(info.requestId);\n return this.resolverIteratorResult?.clone();\n }\n return nextResponse;\n };\n }\n createExecutionResult(args) {\n return {\n handler: this,\n request: args.request,\n requestId: args.requestId,\n response: args.response,\n parsedResult: args.parsedResult\n };\n }\n scheduleCleanup(requestId, callback) {\n if (this.resolverIterator) {\n ;\n (this.resolverIteratorCleanups ||= []).unshift(callback);\n return;\n }\n const cleanups = this.scheduledCleanups.get(requestId) || [];\n cleanups.unshift(callback);\n this.scheduledCleanups.set(requestId, cleanups);\n }\n async exhaustCleanups(cleanups) {\n const errors = [];\n for (const cleanup of cleanups) {\n try {\n await cleanup();\n } catch (error) {\n if (error instanceof Error) {\n errors.push(error);\n }\n }\n }\n if (errors.length > 0) {\n devUtils.error(\n 'Failed to execute cleanup for request handler \"%s\"',\n this.info.header,\n new AggregateError(\n errors,\n `Failed to execute cleanup for request handler \"${this.info.header}\"`\n )\n );\n }\n }\n async runScheduledCleanups(requestId) {\n if (this.resolverIterator && this.resolverIteratorCleanups != null && this.resolverIteratorCleanups.length > 0) {\n try {\n await this.exhaustCleanups(this.resolverIteratorCleanups);\n } finally {\n this.resolverIteratorCleanups = void 0;\n }\n return;\n }\n const cleanups = this.scheduledCleanups.get(requestId);\n if (!cleanups || cleanups.length == 0) {\n return;\n }\n await this.exhaustCleanups(cleanups);\n this.scheduledCleanups.delete(requestId);\n }\n}\nfunction forwardResponseCookies(response) {\n if (typeof document === \"undefined\") {\n return;\n }\n const responseCookies = getRawSetCookie(response);\n if (!responseCookies) {\n return;\n }\n const allResponseCookies = HeadersPolyfill.prototype.getSetCookie.call(\n new Headers([[\"set-cookie\", responseCookies]])\n );\n for (const cookieString of allResponseCookies) {\n document.cookie = cookieString;\n }\n}\nexport {\n RequestHandler,\n forwardResponseCookies\n};\n//# sourceMappingURL=RequestHandler.mjs.map"],"names":["RequestHandler","static","WeakMap","kind","resolver","resolverIterator","resolverIteratorResult","resolverIteratorCleanups","options","scheduledCleanups","info","isUsed","constructor","args","this","Map","callFrame","getCallFrame","Error","reset","clear","iterator","return","Promise","resolve","restore","once","parse","_args","test","parsedResult","request","resolutionContext","predicate","extendResolverArgs","cloneRequestOrGetFromCache","existingClone","cache","get","clonedRequest","clone","set","run","requestClone","executeResolver","wrapResolver","resolverExtras","listenerController","AbortController","signal","addEventListener","runScheduledCleanups","requestId","mockedResponsePromise","finalize","callback","scheduleCleanup","catch","errorOrResponse","Response","finally","abort","mockedResponse","forwardResponseCookies","createExecutionResult","response","async","result","error","isIterable","existingCleanups","length","delete","Symbol","asyncIterator","done","value","next","nextResponse","handler","unshift","cleanups","exhaustCleanups","errors","cleanup","push","devUtils","header","AggregateError","document","responseCookies","getRawSetCookie","allResponseCookies","HeadersPolyfill","prototype","getSetCookie","call","Headers","cookieString","cookie"],"mappings":"8TASA,MAAMA,EACJC,aAA+B,IAAIC,QACnCC,KAAO,UACPC,SACAC,iBACAC,uBACAC,yBACAC,QACAC,kBACAC,KAKAC,OACA,WAAAC,CAAYC,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