@flipdish/portal-library 8.4.0 → 8.4.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/organisms/AssetManager/LibraryTabContent/index.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.d.ts +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.js +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.d.ts +2 -2
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.d.ts +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js.map +1 -1
- package/dist/components/organisms/AssetManager/index.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/index.d.ts +2 -1
- package/dist/components/organisms/AssetManager/index.js +1 -1
- package/dist/components/organisms/AssetManager/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.d.ts +2 -2
- package/dist/components/organisms/AssetManager/services/asset.service.js +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
- package/dist/components/organisms/AssetManager/types/assets.type.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/types/assets.type.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/types/assets.type.d.ts +1 -0
- package/dist/components/organisms/AssetManager/types/assets.type.js +2 -0
- package/dist/components/organisms/AssetManager/types/assets.type.js.map +1 -0
- 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/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js → @mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js} +2 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +230 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-D_YqR8qU.d.d.ts +27 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-DJ2akVWI.d.d.ts +120 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js → @mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js} +2 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +28 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js.map +1 -0
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +1 -1
- package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +2 -0
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +2 -0
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
- package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +3 -3
- package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/node/index.js +2 -0
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js +1 -1
- package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js +1 -1
- package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js.map +1 -1
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js +1 -1
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/type-fest@5.4.3/node_modules/type-fest/source/is-equal.d.d.ts +41 -0
- package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-never.d.d.ts +2 -2
- package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/merge.d.d.ts +21 -9
- package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/omit-index-signature.d.d.ts +8 -4
- package/dist/utilities/apiUtils.cjs.js +2 -0
- package/dist/utilities/apiUtils.cjs.js.map +1 -0
- package/dist/utilities/apiUtils.d.ts +32 -0
- package/dist/utilities/apiUtils.js +2 -0
- package/dist/utilities/apiUtils.js.map +1 -0
- package/package.json +2 -1
- package/dist/components/organisms/AssetManager/types/index.cjs.js +0 -2
- package/dist/components/organisms/AssetManager/types/index.cjs.js.map +0 -1
- package/dist/components/organisms/AssetManager/types/index.d.ts +0 -36
- package/dist/components/organisms/AssetManager/types/index.js +0 -2
- package/dist/components/organisms/AssetManager/types/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +0 -225
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-cb9a2eee.d.d.ts +0 -25
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-dc0a39b5.d.d.ts +0 -123
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +0 -26
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js +0 -2
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +0 -1
- package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -2
- package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +0 -2
- package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +0 -2
- package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.js +0 -2
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js +0 -2
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js +0 -2
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +0 -2
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +0 -1
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js +0 -2
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js.map +0 -1
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.js +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/if.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/internal/object.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/internal/type.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-any.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-optional-key-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/optional-keys-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/partial-deep.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/pick-index-signature.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/primitive.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/required-keys-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/simplify.d.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs"],"sourcesContent":["import { r as Interceptor, t as createRequestId } from \"../../createRequestId-DQcIlohW.mjs\";\nimport { n as emitAsync, t as hasConfigurableGlobal } from \"../../hasConfigurableGlobal-C8kXFDic.mjs\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { invariant } from \"outvariant\";\n\n//#region src/interceptors/WebSocket/utils/bindEvent.ts\nfunction bindEvent(target, event) {\n\tObject.defineProperties(event, {\n\t\ttarget: {\n\t\t\tvalue: target,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t},\n\t\tcurrentTarget: {\n\t\t\tvalue: target,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t}\n\t});\n\treturn event;\n}\n\n//#endregion\n//#region src/interceptors/WebSocket/utils/events.ts\nconst kCancelable = Symbol(\"kCancelable\");\nconst kDefaultPrevented = Symbol(\"kDefaultPrevented\");\n/**\n* A `MessageEvent` superset that supports event cancellation\n* in Node.js. It's rather non-intrusive so it can be safely\n* used in the browser as well.\n*\n* @see https://github.com/nodejs/node/issues/51767\n*/\nvar CancelableMessageEvent = class extends MessageEvent {\n\tconstructor(type, init) {\n\t\tsuper(type, init);\n\t\tthis[kCancelable] = !!init.cancelable;\n\t\tthis[kDefaultPrevented] = false;\n\t}\n\tget cancelable() {\n\t\treturn this[kCancelable];\n\t}\n\tset cancelable(nextCancelable) {\n\t\tthis[kCancelable] = nextCancelable;\n\t}\n\tget defaultPrevented() {\n\t\treturn this[kDefaultPrevented];\n\t}\n\tset defaultPrevented(nextDefaultPrevented) {\n\t\tthis[kDefaultPrevented] = nextDefaultPrevented;\n\t}\n\tpreventDefault() {\n\t\tif (this.cancelable && !this[kDefaultPrevented]) this[kDefaultPrevented] = true;\n\t}\n};\nvar CloseEvent = class extends Event {\n\tconstructor(type, init = {}) {\n\t\tsuper(type, init);\n\t\tthis.code = init.code === void 0 ? 0 : init.code;\n\t\tthis.reason = init.reason === void 0 ? \"\" : init.reason;\n\t\tthis.wasClean = init.wasClean === void 0 ? false : init.wasClean;\n\t}\n};\nvar CancelableCloseEvent = class extends CloseEvent {\n\tconstructor(type, init = {}) {\n\t\tsuper(type, init);\n\t\tthis[kCancelable] = !!init.cancelable;\n\t\tthis[kDefaultPrevented] = false;\n\t}\n\tget cancelable() {\n\t\treturn this[kCancelable];\n\t}\n\tset cancelable(nextCancelable) {\n\t\tthis[kCancelable] = nextCancelable;\n\t}\n\tget defaultPrevented() {\n\t\treturn this[kDefaultPrevented];\n\t}\n\tset defaultPrevented(nextDefaultPrevented) {\n\t\tthis[kDefaultPrevented] = nextDefaultPrevented;\n\t}\n\tpreventDefault() {\n\t\tif (this.cancelable && !this[kDefaultPrevented]) this[kDefaultPrevented] = true;\n\t}\n};\n\n//#endregion\n//#region src/interceptors/WebSocket/WebSocketClientConnection.ts\nconst kEmitter$1 = Symbol(\"kEmitter\");\nconst kBoundListener$1 = Symbol(\"kBoundListener\");\nvar WebSocketClientConnectionProtocol = class {};\n/**\n* The WebSocket client instance represents an incoming\n* client connection. The user can control the connection,\n* send and receive events.\n*/\nvar WebSocketClientConnection = class {\n\tconstructor(socket, transport) {\n\t\tthis.socket = socket;\n\t\tthis.transport = transport;\n\t\tthis.id = createRequestId();\n\t\tthis.url = new URL(socket.url);\n\t\tthis[kEmitter$1] = new EventTarget();\n\t\tthis.transport.addEventListener(\"outgoing\", (event) => {\n\t\t\tconst message = bindEvent(this.socket, new CancelableMessageEvent(\"message\", {\n\t\t\t\tdata: event.data,\n\t\t\t\torigin: event.origin,\n\t\t\t\tcancelable: true\n\t\t\t}));\n\t\t\tthis[kEmitter$1].dispatchEvent(message);\n\t\t\tif (message.defaultPrevented) event.preventDefault();\n\t\t});\n\t\t/**\n\t\t* Emit the \"close\" event on the \"client\" connection\n\t\t* whenever the underlying transport is closed.\n\t\t* @note \"client.close()\" does NOT dispatch the \"close\"\n\t\t* event on the WebSocket because it uses non-configurable\n\t\t* close status code. Thus, we listen to the transport\n\t\t* instead of the WebSocket's \"close\" event.\n\t\t*/\n\t\tthis.transport.addEventListener(\"close\", (event) => {\n\t\t\tthis[kEmitter$1].dispatchEvent(bindEvent(this.socket, new CloseEvent(\"close\", event)));\n\t\t});\n\t}\n\t/**\n\t* Listen for the outgoing events from the connected WebSocket client.\n\t*/\n\taddEventListener(type, listener, options) {\n\t\tif (!Reflect.has(listener, kBoundListener$1)) {\n\t\t\tconst boundListener = listener.bind(this.socket);\n\t\t\tObject.defineProperty(listener, kBoundListener$1, {\n\t\t\t\tvalue: boundListener,\n\t\t\t\tenumerable: false,\n\t\t\t\tconfigurable: false\n\t\t\t});\n\t\t}\n\t\tthis[kEmitter$1].addEventListener(type, Reflect.get(listener, kBoundListener$1), options);\n\t}\n\t/**\n\t* Removes the listener for the given event.\n\t*/\n\tremoveEventListener(event, listener, options) {\n\t\tthis[kEmitter$1].removeEventListener(event, Reflect.get(listener, kBoundListener$1), options);\n\t}\n\t/**\n\t* Send data to the connected client.\n\t*/\n\tsend(data) {\n\t\tthis.transport.send(data);\n\t}\n\t/**\n\t* Close the WebSocket connection.\n\t* @param {number} code A status code (see https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1).\n\t* @param {string} reason A custom connection close reason.\n\t*/\n\tclose(code, reason) {\n\t\tthis.transport.close(code, reason);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/WebSocket/WebSocketOverride.ts\nconst WEBSOCKET_CLOSE_CODE_RANGE_ERROR = \"InvalidAccessError: close code out of user configurable range\";\nconst kPassthroughPromise = Symbol(\"kPassthroughPromise\");\nconst kOnSend = Symbol(\"kOnSend\");\nconst kClose = Symbol(\"kClose\");\nvar WebSocketOverride = class extends EventTarget {\n\tstatic {\n\t\tthis.CONNECTING = 0;\n\t}\n\tstatic {\n\t\tthis.OPEN = 1;\n\t}\n\tstatic {\n\t\tthis.CLOSING = 2;\n\t}\n\tstatic {\n\t\tthis.CLOSED = 3;\n\t}\n\tconstructor(url, protocols) {\n\t\tsuper();\n\t\tthis.CONNECTING = 0;\n\t\tthis.OPEN = 1;\n\t\tthis.CLOSING = 2;\n\t\tthis.CLOSED = 3;\n\t\tthis._onopen = null;\n\t\tthis._onmessage = null;\n\t\tthis._onerror = null;\n\t\tthis._onclose = null;\n\t\tthis.url = url.toString();\n\t\tthis.protocol = \"\";\n\t\tthis.extensions = \"\";\n\t\tthis.binaryType = \"blob\";\n\t\tthis.readyState = this.CONNECTING;\n\t\tthis.bufferedAmount = 0;\n\t\tthis[kPassthroughPromise] = new DeferredPromise();\n\t\tqueueMicrotask(async () => {\n\t\t\tif (await this[kPassthroughPromise]) return;\n\t\t\tthis.protocol = typeof protocols === \"string\" ? protocols : Array.isArray(protocols) && protocols.length > 0 ? protocols[0] : \"\";\n\t\t\t/**\n\t\t\t* @note Check that nothing has prevented this connection\n\t\t\t* (e.g. called `client.close()` in the connection listener).\n\t\t\t* If the connection has been prevented, never dispatch the open event,.\n\t\t\t*/\n\t\t\tif (this.readyState === this.CONNECTING) {\n\t\t\t\tthis.readyState = this.OPEN;\n\t\t\t\tthis.dispatchEvent(bindEvent(this, new Event(\"open\")));\n\t\t\t}\n\t\t});\n\t}\n\tset onopen(listener) {\n\t\tthis.removeEventListener(\"open\", this._onopen);\n\t\tthis._onopen = listener;\n\t\tif (listener !== null) this.addEventListener(\"open\", listener);\n\t}\n\tget onopen() {\n\t\treturn this._onopen;\n\t}\n\tset onmessage(listener) {\n\t\tthis.removeEventListener(\"message\", this._onmessage);\n\t\tthis._onmessage = listener;\n\t\tif (listener !== null) this.addEventListener(\"message\", listener);\n\t}\n\tget onmessage() {\n\t\treturn this._onmessage;\n\t}\n\tset onerror(listener) {\n\t\tthis.removeEventListener(\"error\", this._onerror);\n\t\tthis._onerror = listener;\n\t\tif (listener !== null) this.addEventListener(\"error\", listener);\n\t}\n\tget onerror() {\n\t\treturn this._onerror;\n\t}\n\tset onclose(listener) {\n\t\tthis.removeEventListener(\"close\", this._onclose);\n\t\tthis._onclose = listener;\n\t\tif (listener !== null) this.addEventListener(\"close\", listener);\n\t}\n\tget onclose() {\n\t\treturn this._onclose;\n\t}\n\t/**\n\t* @see https://websockets.spec.whatwg.org/#ref-for-dom-websocket-send%E2%91%A0\n\t*/\n\tsend(data) {\n\t\tif (this.readyState === this.CONNECTING) {\n\t\t\tthis.close();\n\t\t\tthrow new DOMException(\"InvalidStateError\");\n\t\t}\n\t\tif (this.readyState === this.CLOSING || this.readyState === this.CLOSED) return;\n\t\tthis.bufferedAmount += getDataSize(data);\n\t\tqueueMicrotask(() => {\n\t\t\tthis.bufferedAmount = 0;\n\t\t\t/**\n\t\t\t* @note Notify the parent about outgoing data.\n\t\t\t* This notifies the transport and the connection\n\t\t\t* listens to the outgoing data to emit the \"message\" event.\n\t\t\t*/\n\t\t\tthis[kOnSend]?.(data);\n\t\t});\n\t}\n\tclose(code = 1e3, reason) {\n\t\tinvariant(code, WEBSOCKET_CLOSE_CODE_RANGE_ERROR);\n\t\tinvariant(code === 1e3 || code >= 3e3 && code <= 4999, WEBSOCKET_CLOSE_CODE_RANGE_ERROR);\n\t\tthis[kClose](code, reason);\n\t}\n\t[kClose](code = 1e3, reason, wasClean = true) {\n\t\t/**\n\t\t* @note Move this check here so that even internal closures,\n\t\t* like those triggered by the `server` connection, are not\n\t\t* performed twice.\n\t\t*/\n\t\tif (this.readyState === this.CLOSING || this.readyState === this.CLOSED) return;\n\t\tthis.readyState = this.CLOSING;\n\t\tqueueMicrotask(() => {\n\t\t\tthis.readyState = this.CLOSED;\n\t\t\tthis.dispatchEvent(bindEvent(this, new CloseEvent(\"close\", {\n\t\t\t\tcode,\n\t\t\t\treason,\n\t\t\t\twasClean\n\t\t\t})));\n\t\t\tthis._onopen = null;\n\t\t\tthis._onmessage = null;\n\t\t\tthis._onerror = null;\n\t\t\tthis._onclose = null;\n\t\t});\n\t}\n\taddEventListener(type, listener, options) {\n\t\treturn super.addEventListener(type, listener, options);\n\t}\n\tremoveEventListener(type, callback, options) {\n\t\treturn super.removeEventListener(type, callback, options);\n\t}\n};\nfunction getDataSize(data) {\n\tif (typeof data === \"string\") return data.length;\n\tif (data instanceof Blob) return data.size;\n\treturn data.byteLength;\n}\n\n//#endregion\n//#region src/interceptors/WebSocket/WebSocketServerConnection.ts\nconst kEmitter = Symbol(\"kEmitter\");\nconst kBoundListener = Symbol(\"kBoundListener\");\nconst kSend = Symbol(\"kSend\");\nvar WebSocketServerConnectionProtocol = class {};\n/**\n* The WebSocket server instance represents the actual production\n* WebSocket server connection. It's idle by default but you can\n* establish it by calling `server.connect()`.\n*/\nvar WebSocketServerConnection = class {\n\tconstructor(client, transport, createConnection) {\n\t\tthis.client = client;\n\t\tthis.transport = transport;\n\t\tthis.createConnection = createConnection;\n\t\tthis[kEmitter] = new EventTarget();\n\t\tthis.mockCloseController = new AbortController();\n\t\tthis.realCloseController = new AbortController();\n\t\tthis.transport.addEventListener(\"outgoing\", (event) => {\n\t\t\tif (typeof this.realWebSocket === \"undefined\") return;\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tif (!event.defaultPrevented)\n /**\n\t\t\t\t* @note Use the internal send mechanism so consumers can tell\n\t\t\t\t* apart direct user calls to `server.send()` and internal calls.\n\t\t\t\t* E.g. MSW has to ignore this internal call to log out messages correctly.\n\t\t\t\t*/\n\t\t\t\tthis[kSend](event.data);\n\t\t\t});\n\t\t});\n\t\tthis.transport.addEventListener(\"incoming\", this.handleIncomingMessage.bind(this));\n\t}\n\t/**\n\t* The `WebSocket` instance connected to the original server.\n\t* Accessing this before calling `server.connect()` will throw.\n\t*/\n\tget socket() {\n\t\tinvariant(this.realWebSocket, \"Cannot access \\\"socket\\\" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?\");\n\t\treturn this.realWebSocket;\n\t}\n\t/**\n\t* Open connection to the original WebSocket server.\n\t*/\n\tconnect() {\n\t\tinvariant(!this.realWebSocket || this.realWebSocket.readyState !== WebSocket.OPEN, \"Failed to call \\\"connect()\\\" on the original WebSocket instance: the connection already open\");\n\t\tconst realWebSocket = this.createConnection();\n\t\trealWebSocket.binaryType = this.client.binaryType;\n\t\trealWebSocket.addEventListener(\"open\", (event) => {\n\t\t\tthis[kEmitter].dispatchEvent(bindEvent(this.realWebSocket, new Event(\"open\", event)));\n\t\t}, { once: true });\n\t\trealWebSocket.addEventListener(\"message\", (event) => {\n\t\t\tthis.transport.dispatchEvent(bindEvent(this.realWebSocket, new MessageEvent(\"incoming\", {\n\t\t\t\tdata: event.data,\n\t\t\t\torigin: event.origin\n\t\t\t})));\n\t\t});\n\t\tthis.client.addEventListener(\"close\", (event) => {\n\t\t\tthis.handleMockClose(event);\n\t\t}, { signal: this.mockCloseController.signal });\n\t\trealWebSocket.addEventListener(\"close\", (event) => {\n\t\t\tthis.handleRealClose(event);\n\t\t}, { signal: this.realCloseController.signal });\n\t\trealWebSocket.addEventListener(\"error\", () => {\n\t\t\tconst errorEvent = bindEvent(realWebSocket, new Event(\"error\", { cancelable: true }));\n\t\t\tthis[kEmitter].dispatchEvent(errorEvent);\n\t\t\tif (!errorEvent.defaultPrevented) this.client.dispatchEvent(bindEvent(this.client, new Event(\"error\")));\n\t\t});\n\t\tthis.realWebSocket = realWebSocket;\n\t}\n\t/**\n\t* Listen for the incoming events from the original WebSocket server.\n\t*/\n\taddEventListener(event, listener, options) {\n\t\tif (!Reflect.has(listener, kBoundListener)) {\n\t\t\tconst boundListener = listener.bind(this.client);\n\t\t\tObject.defineProperty(listener, kBoundListener, {\n\t\t\t\tvalue: boundListener,\n\t\t\t\tenumerable: false\n\t\t\t});\n\t\t}\n\t\tthis[kEmitter].addEventListener(event, Reflect.get(listener, kBoundListener), options);\n\t}\n\t/**\n\t* Remove the listener for the given event.\n\t*/\n\tremoveEventListener(event, listener, options) {\n\t\tthis[kEmitter].removeEventListener(event, Reflect.get(listener, kBoundListener), options);\n\t}\n\t/**\n\t* Send data to the original WebSocket server.\n\t* @example\n\t* server.send('hello')\n\t* server.send(new Blob(['hello']))\n\t* server.send(new TextEncoder().encode('hello'))\n\t*/\n\tsend(data) {\n\t\tthis[kSend](data);\n\t}\n\t[kSend](data) {\n\t\tconst { realWebSocket } = this;\n\t\tinvariant(realWebSocket, \"Failed to call \\\"server.send()\\\" for \\\"%s\\\": the connection is not open. Did you forget to call \\\"server.connect()\\\"?\", this.client.url);\n\t\tif (realWebSocket.readyState === WebSocket.CLOSING || realWebSocket.readyState === WebSocket.CLOSED) return;\n\t\tif (realWebSocket.readyState === WebSocket.CONNECTING) {\n\t\t\trealWebSocket.addEventListener(\"open\", () => {\n\t\t\t\trealWebSocket.send(data);\n\t\t\t}, { once: true });\n\t\t\treturn;\n\t\t}\n\t\trealWebSocket.send(data);\n\t}\n\t/**\n\t* Close the actual server connection.\n\t*/\n\tclose() {\n\t\tconst { realWebSocket } = this;\n\t\tinvariant(realWebSocket, \"Failed to close server connection for \\\"%s\\\": the connection is not open. Did you forget to call \\\"server.connect()\\\"?\", this.client.url);\n\t\tthis.realCloseController.abort();\n\t\tif (realWebSocket.readyState === WebSocket.CLOSING || realWebSocket.readyState === WebSocket.CLOSED) return;\n\t\trealWebSocket.close();\n\t\tqueueMicrotask(() => {\n\t\t\tthis[kEmitter].dispatchEvent(bindEvent(this.realWebSocket, new CancelableCloseEvent(\"close\", {\n\t\t\t\tcode: 1e3,\n\t\t\t\tcancelable: true\n\t\t\t})));\n\t\t});\n\t}\n\thandleIncomingMessage(event) {\n\t\tconst messageEvent = bindEvent(event.target, new CancelableMessageEvent(\"message\", {\n\t\t\tdata: event.data,\n\t\t\torigin: event.origin,\n\t\t\tcancelable: true\n\t\t}));\n\t\t/**\n\t\t* @note Emit \"message\" event on the server connection\n\t\t* instance to let the interceptor know about these\n\t\t* incoming events from the original server. In that listener,\n\t\t* the interceptor can modify or skip the event forwarding\n\t\t* to the mock WebSocket instance.\n\t\t*/\n\t\tthis[kEmitter].dispatchEvent(messageEvent);\n\t\t/**\n\t\t* @note Forward the incoming server events to the client.\n\t\t* Preventing the default on the message event stops this.\n\t\t*/\n\t\tif (!messageEvent.defaultPrevented) this.client.dispatchEvent(bindEvent(\n\t\t\t/**\n\t\t\t* @note Bind the forwarded original server events\n\t\t\t* to the mock WebSocket instance so it would\n\t\t\t* dispatch them straight away.\n\t\t\t*/\n\t\t\tthis.client,\n\t\t\tnew MessageEvent(\"message\", {\n\t\t\t\tdata: event.data,\n\t\t\t\torigin: event.origin\n\t\t\t})\n\t\t));\n\t}\n\thandleMockClose(_event) {\n\t\tif (this.realWebSocket) this.realWebSocket.close();\n\t}\n\thandleRealClose(event) {\n\t\tthis.mockCloseController.abort();\n\t\tconst closeEvent = bindEvent(this.realWebSocket, new CancelableCloseEvent(\"close\", {\n\t\t\tcode: event.code,\n\t\t\treason: event.reason,\n\t\t\twasClean: event.wasClean,\n\t\t\tcancelable: true\n\t\t}));\n\t\tthis[kEmitter].dispatchEvent(closeEvent);\n\t\tif (!closeEvent.defaultPrevented) this.client[kClose](event.code, event.reason);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/WebSocket/WebSocketClassTransport.ts\n/**\n* Abstraction over the given mock `WebSocket` instance that allows\n* for controlling that instance (e.g. sending and receiving messages).\n*/\nvar WebSocketClassTransport = class extends EventTarget {\n\tconstructor(socket) {\n\t\tsuper();\n\t\tthis.socket = socket;\n\t\tthis.socket.addEventListener(\"close\", (event) => {\n\t\t\tthis.dispatchEvent(bindEvent(this.socket, new CloseEvent(\"close\", event)));\n\t\t});\n\t\t/**\n\t\t* Emit the \"outgoing\" event on the transport\n\t\t* whenever the WebSocket client sends data (\"ws.send()\").\n\t\t*/\n\t\tthis.socket[kOnSend] = (data) => {\n\t\t\tthis.dispatchEvent(bindEvent(this.socket, new CancelableMessageEvent(\"outgoing\", {\n\t\t\t\tdata,\n\t\t\t\torigin: this.socket.url,\n\t\t\t\tcancelable: true\n\t\t\t})));\n\t\t};\n\t}\n\taddEventListener(type, callback, options) {\n\t\treturn super.addEventListener(type, callback, options);\n\t}\n\tdispatchEvent(event) {\n\t\treturn super.dispatchEvent(event);\n\t}\n\tsend(data) {\n\t\tqueueMicrotask(() => {\n\t\t\tif (this.socket.readyState === this.socket.CLOSING || this.socket.readyState === this.socket.CLOSED) return;\n\t\t\tconst dispatchEvent = () => {\n\t\t\t\tthis.socket.dispatchEvent(bindEvent(\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Setting this event's \"target\" to the\n\t\t\t\t\t* WebSocket override instance is important.\n\t\t\t\t\t* This way it can tell apart original incoming events\n\t\t\t\t\t* (must be forwarded to the transport) from the\n\t\t\t\t\t* mocked message events like the one below\n\t\t\t\t\t* (must be dispatched on the client instance).\n\t\t\t\t\t*/\n\t\t\t\t\tthis.socket,\n\t\t\t\t\tnew MessageEvent(\"message\", {\n\t\t\t\t\t\tdata,\n\t\t\t\t\t\torigin: this.socket.url\n\t\t\t\t\t})\n\t\t\t\t));\n\t\t\t};\n\t\t\tif (this.socket.readyState === this.socket.CONNECTING) this.socket.addEventListener(\"open\", () => {\n\t\t\t\tdispatchEvent();\n\t\t\t}, { once: true });\n\t\t\telse dispatchEvent();\n\t\t});\n\t}\n\tclose(code, reason) {\n\t\t/**\n\t\t* @note Call the internal close method directly\n\t\t* to allow closing the connection with the status codes\n\t\t* that are non-configurable by the user (> 1000 <= 1015).\n\t\t*/\n\t\tthis.socket[kClose](code, reason);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/WebSocket/index.ts\n/**\n* Intercept the outgoing WebSocket connections created using\n* the global `WebSocket` class.\n*/\nvar WebSocketInterceptor = class WebSocketInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"websocket\");\n\t}\n\tconstructor() {\n\t\tsuper(WebSocketInterceptor.symbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"WebSocket\");\n\t}\n\tsetup() {\n\t\tconst originalWebSocketDescriptor = Object.getOwnPropertyDescriptor(globalThis, \"WebSocket\");\n\t\tconst WebSocketProxy = new Proxy(globalThis.WebSocket, { construct: (target, args, newTarget) => {\n\t\t\tconst [url, protocols] = args;\n\t\t\tconst createConnection = () => {\n\t\t\t\treturn Reflect.construct(target, args, newTarget);\n\t\t\t};\n\t\t\tconst socket = new WebSocketOverride(url, protocols);\n\t\t\tconst transport = new WebSocketClassTransport(socket);\n\t\t\tqueueMicrotask(async () => {\n\t\t\t\ttry {\n\t\t\t\t\tconst server = new WebSocketServerConnection(socket, transport, createConnection);\n\t\t\t\t\tconst hasConnectionListeners = this.emitter.listenerCount(\"connection\") > 0;\n\t\t\t\t\tawait emitAsync(this.emitter, \"connection\", {\n\t\t\t\t\t\tclient: new WebSocketClientConnection(socket, transport),\n\t\t\t\t\t\tserver,\n\t\t\t\t\t\tinfo: { protocols }\n\t\t\t\t\t});\n\t\t\t\t\tif (hasConnectionListeners) socket[kPassthroughPromise].resolve(false);\n\t\t\t\t\telse {\n\t\t\t\t\t\tsocket[kPassthroughPromise].resolve(true);\n\t\t\t\t\t\tserver.connect();\n\t\t\t\t\t\tserver.addEventListener(\"open\", () => {\n\t\t\t\t\t\t\tsocket.dispatchEvent(bindEvent(socket, new Event(\"open\")));\n\t\t\t\t\t\t\tif (server[\"realWebSocket\"]) socket.protocol = server[\"realWebSocket\"].protocol;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} catch (error) {\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Translate unhandled exceptions during the connection\n\t\t\t\t\t* handling (i.e. interceptor exceptions) as WebSocket connection\n\t\t\t\t\t* closures with error. This prevents from the exceptions occurring\n\t\t\t\t\t* in `queueMicrotask` from being process-wide and uncatchable.\n\t\t\t\t\t*/\n\t\t\t\t\tif (error instanceof Error) {\n\t\t\t\t\t\tsocket.dispatchEvent(new Event(\"error\"));\n\t\t\t\t\t\tif (socket.readyState !== WebSocket.CLOSING && socket.readyState !== WebSocket.CLOSED) socket[kClose](1011, error.message, false);\n\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn socket;\n\t\t} });\n\t\tObject.defineProperty(globalThis, \"WebSocket\", {\n\t\t\tvalue: WebSocketProxy,\n\t\t\tconfigurable: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis, \"WebSocket\", originalWebSocketDescriptor);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { CancelableCloseEvent, CancelableMessageEvent, CloseEvent, WebSocketClientConnection, WebSocketClientConnectionProtocol, WebSocketInterceptor, WebSocketServerConnection, WebSocketServerConnectionProtocol };\n//# sourceMappingURL=index.mjs.map"],"names":["bindEvent","target","event","Object","defineProperties","value","enumerable","writable","currentTarget","kCancelable","Symbol","kDefaultPrevented","CancelableMessageEvent","MessageEvent","constructor","type","init","super","this","cancelable","nextCancelable","defaultPrevented","nextDefaultPrevented","preventDefault","CloseEvent","Event","code","reason","wasClean","CancelableCloseEvent","kEmitter$1","kBoundListener$1","WebSocketClientConnection","socket","transport","id","createRequestId","url","URL","EventTarget","addEventListener","message","data","origin","dispatchEvent","listener","options","Reflect","has","boundListener","bind","defineProperty","configurable","get","removeEventListener","send","close","WEBSOCKET_CLOSE_CODE_RANGE_ERROR","kPassthroughPromise","kOnSend","kClose","WebSocketOverride","CONNECTING","OPEN","CLOSING","CLOSED","protocols","_onopen","_onmessage","_onerror","_onclose","toString","protocol","extensions","binaryType","readyState","bufferedAmount","DeferredPromise","queueMicrotask","async","Array","isArray","length","onopen","onmessage","onerror","onclose","DOMException","Blob","size","byteLength","getDataSize","invariant","callback","kEmitter","kBoundListener","kSend","WebSocketServerConnection","client","createConnection","mockCloseController","AbortController","realCloseController","realWebSocket","handleIncomingMessage","connect","WebSocket","once","handleMockClose","signal","handleRealClose","errorEvent","abort","messageEvent","_event","closeEvent","WebSocketClassTransport","WebSocketInterceptor","Interceptor","symbol","checkEnvironment","hasConfigurableGlobal","setup","originalWebSocketDescriptor","getOwnPropertyDescriptor","globalThis","WebSocketProxy","Proxy","construct","args","newTarget","server","hasConnectionListeners","emitter","listenerCount","emitAsync","info","resolve","error","Error","console","subscriptions","push"],"mappings":"sXAMA,SAASA,EAAUC,EAAQC,GAa1B,OAZAC,OAAOC,iBAAiBF,EAAO,CAC9BD,OAAQ,CACPI,MAAOJ,EACPK,YAAY,EACZC,UAAU,GAEXC,cAAe,CACdH,MAAOJ,EACPK,YAAY,EACZC,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KAAKmH,QAAS,aAAc,CAC3CnC,OAAQ,IAAIlE,EAA0BC,EAAQC,GAC9CiG,SACAK,KAAM,CAAEtE,eAELkE,EAAwBnG,EAAOyB,GAAqB+E,SAAQ,IAE/DxG,EAAOyB,GAAqB+E,SAAQ,GACpCN,EAAO1B,UACP0B,EAAO3F,iBAAiB,QAAQ,KAC/BP,EAAOW,cAAc5C,EAAUiC,EAAQ,IAAIR,MAAM,UAC7C0G,EAAsB,gBAAGlG,EAAOuC,SAAW2D,EAAsB,cAAE3D,aAG1E,CAAE,MAAOkE,GAOJA,aAAiBC,QACpB1G,EAAOW,cAAc,IAAInB,MAAM,UAC3BQ,EAAO0C,aAAe+B,UAAU1C,SAAW/B,EAAO0C,aAAe+B,UAAUzC,QAAQhC,EAAO2B,GAAQ,KAAM8E,EAAMjG,SAAS,GAC3HmG,QAAQF,MAAMA,GAEhB,KAEMzG,KAER9B,OAAOgD,eAAe0E,WAAY,YAAa,CAC9CxH,MAAOyH,EACP1E,cAAc,IAEflC,KAAK2H,cAAcC,MAAK,KACvB3I,OAAOgD,eAAe0E,WAAY,YAAaF,KAEjD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("./fetchUtils-CoU35g3M.cjs.js"),s=class s extends t.s{constructor(t){s.symbol=Symbol(t.name),super(s.symbol),this.interceptors=t.interceptors}setup(){const t=this.logger.extend("setup");t.info("applying all %d interceptors...",this.interceptors.length);for(const s of this.interceptors)t.info('applying "%s" interceptor...',s.constructor.name),s.apply(),t.info("adding interceptor dispose subscription"),this.subscriptions.push((()=>s.dispose()))}on(t,s){for(const e of this.interceptors)e.on(t,s);return this}once(t,s){for(const e of this.interceptors)e.once(t,s);return this}off(t,s){for(const e of this.interceptors)e.off(t,s);return this}removeAllListeners(t){for(const s of this.interceptors)s.removeAllListeners(t);return this}};exports.t=s;
|
|
2
|
+
//# sourceMappingURL=BatchInterceptor-DFaBPilf.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchInterceptor-DFaBPilf.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.mjs"],"sourcesContent":["import { s as Interceptor } from \"./fetchUtils-CoU35g3M.mjs\";\n\n//#region src/BatchInterceptor.ts\n/**\n* A batch interceptor that exposes a single interface\n* to apply and operate with multiple interceptors at once.\n*/\nvar BatchInterceptor = class BatchInterceptor extends Interceptor {\n\tconstructor(options) {\n\t\tBatchInterceptor.symbol = Symbol(options.name);\n\t\tsuper(BatchInterceptor.symbol);\n\t\tthis.interceptors = options.interceptors;\n\t}\n\tsetup() {\n\t\tconst logger = this.logger.extend(\"setup\");\n\t\tlogger.info(\"applying all %d interceptors...\", this.interceptors.length);\n\t\tfor (const interceptor of this.interceptors) {\n\t\t\tlogger.info(\"applying \\\"%s\\\" interceptor...\", interceptor.constructor.name);\n\t\t\tinterceptor.apply();\n\t\t\tlogger.info(\"adding interceptor dispose subscription\");\n\t\t\tthis.subscriptions.push(() => interceptor.dispose());\n\t\t}\n\t}\n\ton(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.on(event, listener);\n\t\treturn this;\n\t}\n\tonce(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.once(event, listener);\n\t\treturn this;\n\t}\n\toff(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.off(event, listener);\n\t\treturn this;\n\t}\n\tremoveAllListeners(event) {\n\t\tfor (const interceptors of this.interceptors) interceptors.removeAllListeners(event);\n\t\treturn this;\n\t}\n};\n\n//#endregion\nexport { BatchInterceptor as t };\n//# sourceMappingURL=BatchInterceptor-DFaBPilf.mjs.map"],"names":["BatchInterceptor","Interceptor","constructor","options","symbol","Symbol","name","super","this","interceptors","setup","logger","extend","info","length","interceptor","apply","subscriptions","push","dispose","on","event","listener","once","off","removeAllListeners"],"mappings":"2DAOIA,EAAmB,MAAMA,UAAyBC,IACrD,WAAAC,CAAYC,GACXH,EAAiBI,OAASC,OAAOF,EAAQG,MACzCC,MAAMP,EAAiBI,QACvBI,KAAKC,aAAeN,EAAQM,YAC7B,CACA,KAAAC,GACC,MAAMC,EAASH,KAAKG,OAAOC,OAAO,SAClCD,EAAOE,KAAK,kCAAmCL,KAAKC,aAAaK,QACjE,IAAK,MAAMC,KAAeP,KAAKC,aAC9BE,EAAOE,KAAK,+BAAkCE,EAAYb,YAAYI,MACtES,EAAYC,QACZL,EAAOE,KAAK,2CACZL,KAAKS,cAAcC,MAAK,IAAMH,EAAYI,WAE5C,CACA,EAAAC,CAAGC,EAAOC,GACT,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYK,GAAGC,EAAOC,GACnE,OAAOd,IACR,CACA,IAAAe,CAAKF,EAAOC,GACX,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYQ,KAAKF,EAAOC,GACrE,OAAOd,IACR,CACA,GAAAgB,CAAIH,EAAOC,GACV,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYS,IAAIH,EAAOC,GACpE,OAAOd,IACR,CACA,kBAAAiB,CAAmBJ,GAClB,IAAK,MAAMZ,KAAgBD,KAAKC,aAAcA,EAAagB,mBAAmBJ,GAC9E,OAAOb,IACR","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as t}from"./fetchUtils-CoU35g3M.js";var s=class s extends t{constructor(t){s.symbol=Symbol(t.name),super(s.symbol),this.interceptors=t.interceptors}setup(){const t=this.logger.extend("setup");t.info("applying all %d interceptors...",this.interceptors.length);for(const s of this.interceptors)t.info('applying "%s" interceptor...',s.constructor.name),s.apply(),t.info("adding interceptor dispose subscription"),this.subscriptions.push((()=>s.dispose()))}on(t,s){for(const o of this.interceptors)o.on(t,s);return this}once(t,s){for(const o of this.interceptors)o.once(t,s);return this}off(t,s){for(const o of this.interceptors)o.off(t,s);return this}removeAllListeners(t){for(const s of this.interceptors)s.removeAllListeners(t);return this}};export{s as t};
|
|
2
|
+
//# sourceMappingURL=BatchInterceptor-DFaBPilf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchInterceptor-DFaBPilf.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.mjs"],"sourcesContent":["import { s as Interceptor } from \"./fetchUtils-CoU35g3M.mjs\";\n\n//#region src/BatchInterceptor.ts\n/**\n* A batch interceptor that exposes a single interface\n* to apply and operate with multiple interceptors at once.\n*/\nvar BatchInterceptor = class BatchInterceptor extends Interceptor {\n\tconstructor(options) {\n\t\tBatchInterceptor.symbol = Symbol(options.name);\n\t\tsuper(BatchInterceptor.symbol);\n\t\tthis.interceptors = options.interceptors;\n\t}\n\tsetup() {\n\t\tconst logger = this.logger.extend(\"setup\");\n\t\tlogger.info(\"applying all %d interceptors...\", this.interceptors.length);\n\t\tfor (const interceptor of this.interceptors) {\n\t\t\tlogger.info(\"applying \\\"%s\\\" interceptor...\", interceptor.constructor.name);\n\t\t\tinterceptor.apply();\n\t\t\tlogger.info(\"adding interceptor dispose subscription\");\n\t\t\tthis.subscriptions.push(() => interceptor.dispose());\n\t\t}\n\t}\n\ton(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.on(event, listener);\n\t\treturn this;\n\t}\n\tonce(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.once(event, listener);\n\t\treturn this;\n\t}\n\toff(event, listener) {\n\t\tfor (const interceptor of this.interceptors) interceptor.off(event, listener);\n\t\treturn this;\n\t}\n\tremoveAllListeners(event) {\n\t\tfor (const interceptors of this.interceptors) interceptors.removeAllListeners(event);\n\t\treturn this;\n\t}\n};\n\n//#endregion\nexport { BatchInterceptor as t };\n//# sourceMappingURL=BatchInterceptor-DFaBPilf.mjs.map"],"names":["BatchInterceptor","Interceptor","constructor","options","symbol","Symbol","name","super","this","interceptors","setup","logger","extend","info","length","interceptor","apply","subscriptions","push","dispose","on","event","listener","once","off","removeAllListeners"],"mappings":"6CAOG,IAACA,EAAmB,MAAMA,UAAyBC,EACrD,WAAAC,CAAYC,GACXH,EAAiBI,OAASC,OAAOF,EAAQG,MACzCC,MAAMP,EAAiBI,QACvBI,KAAKC,aAAeN,EAAQM,YAC7B,CACA,KAAAC,GACC,MAAMC,EAASH,KAAKG,OAAOC,OAAO,SAClCD,EAAOE,KAAK,kCAAmCL,KAAKC,aAAaK,QACjE,IAAK,MAAMC,KAAeP,KAAKC,aAC9BE,EAAOE,KAAK,+BAAkCE,EAAYb,YAAYI,MACtES,EAAYC,QACZL,EAAOE,KAAK,2CACZL,KAAKS,cAAcC,MAAK,IAAMH,EAAYI,WAE5C,CACA,EAAAC,CAAGC,EAAOC,GACT,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYK,GAAGC,EAAOC,GACnE,OAAOd,IACR,CACA,IAAAe,CAAKF,EAAOC,GACX,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYQ,KAAKF,EAAOC,GACrE,OAAOd,IACR,CACA,GAAAgB,CAAIH,EAAOC,GACV,IAAK,MAAMP,KAAeP,KAAKC,aAAcM,EAAYS,IAAIH,EAAOC,GACpE,OAAOd,IACR,CACA,kBAAAiB,CAAmBJ,GAClB,IAAK,MAAMZ,KAAgBD,KAAKC,aAAcA,EAAagB,mBAAmBJ,GAC9E,OAAOb,IACR","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as Interceptor, t as ExtractEventNames } from './Interceptor-DJ2akVWI.d.js';
|
|
2
|
+
import { EventMap, Listener } from '../../../../../../strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.d.js';
|
|
3
|
+
|
|
4
|
+
//#region src/BatchInterceptor.d.ts
|
|
5
|
+
interface BatchInterceptorOptions<InterceptorList extends ReadonlyArray<Interceptor<any>>> {
|
|
6
|
+
name: string;
|
|
7
|
+
interceptors: InterceptorList;
|
|
8
|
+
}
|
|
9
|
+
type ExtractEventMapType<InterceptorList extends ReadonlyArray<Interceptor<any>>> = InterceptorList extends ReadonlyArray<infer InterceptorType> ? InterceptorType extends Interceptor<infer EventMap> ? EventMap : never : never;
|
|
10
|
+
/**
|
|
11
|
+
* A batch interceptor that exposes a single interface
|
|
12
|
+
* to apply and operate with multiple interceptors at once.
|
|
13
|
+
*/
|
|
14
|
+
declare class BatchInterceptor<InterceptorList extends ReadonlyArray<Interceptor<any>>, Events extends EventMap = ExtractEventMapType<InterceptorList>> extends Interceptor<Events> {
|
|
15
|
+
static symbol: symbol;
|
|
16
|
+
private interceptors;
|
|
17
|
+
constructor(options: BatchInterceptorOptions<InterceptorList>);
|
|
18
|
+
protected setup(): void;
|
|
19
|
+
on<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
20
|
+
once<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
21
|
+
off<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
22
|
+
removeAllListeners<EventName extends ExtractEventNames<Events>>(event?: EventName | undefined): this;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=BatchInterceptor-D_YqR8qU.d.cts.map
|
|
25
|
+
|
|
26
|
+
export { BatchInterceptor as t };
|
|
27
|
+
export type { BatchInterceptorOptions as n, ExtractEventMapType as r };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./fetchUtils-CoU35g3M.cjs.js"),t=require("./getRawRequest-DnwmXyOW.cjs.js"),s=require("./handleRequest-Y97UwBbF.cjs.js"),n=require("./node-DwCc6iuP.cjs.js"),o=require("../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.cjs.js"),r=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js"),i=require("node:http"),a=require("node:https"),u=require("node:net"),c=require("_http_common"),h=require("node:stream"),p=require("node:url"),l=require("http");function d(e){const t=[e[0],void 0,void 0];return"string"==typeof e[1]?t[1]=e[1]:"function"==typeof e[1]&&(t[2]=e[1]),"function"==typeof e[2]&&(t[2]=e[2]),t}var f=class extends u.Socket{constructor(e){super(),this.options=e,this.connecting=!1,this.connect(),this._final=e=>{e(null)}}connect(){return this.connecting=!0,this}write(...e){const[t,s,n]=d(e);return this.options.write(t,s,n),!0}end(...e){const[t,s,n]=d(e);return this.options.write(t,s,n),super.end.apply(this,e)}push(e,t){return this.options.read(e,t),super.push(e,t)}};const m=Symbol("kRawHeaders"),g=Symbol("kRestorePatches");function R(e,t,s){q(e,[]);const n=Reflect.get(e,m);if("set"===s)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===t[0].toLowerCase()&&n.splice(e,1);n.push(t)}function q(e,t){Reflect.has(e,m)||function(e,t){Object.defineProperty(e,m,{value:t,enumerable:!1,configurable:!0})}(e,t)}function y(e){if(!Reflect.has(e,m))return Array.from(e.entries());const t=Reflect.get(e,m);return t.length>0?t:Array.from(e.entries())}function w(e){return e instanceof Headers?Reflect.get(e,m)||[]:Reflect.get(new Headers(e),m)}function b(e,t){e._consumed&&e.unconsume(),e._headers=[],e._url="",e.socket=null,e.incoming=null,e.outgoing=null,e.maxHeaderPairs=2e3,e._consumed=!1,e.onIncoming=null,e[c.HTTPParser.kOnHeaders]=null,e[c.HTTPParser.kOnHeadersComplete]=null,e[c.HTTPParser.kOnMessageBegin]=null,e[c.HTTPParser.kOnMessageComplete]=null,e[c.HTTPParser.kOnBody]=null,e[c.HTTPParser.kOnExecute]=null,e[c.HTTPParser.kOnTimeout]=null,e.remove(),e.free(),t&&(t.destroyed?t.parser=null:t.once("end",(()=>{t.parser=null})))}const P=Symbol("kRequestId");var H=class extends f{constructor(s){super({write:(e,t,s)=>{"passthrough"!==this.socketState&&this.writeBuffer.push([e,t,s]),e&&("passthrough"===this.socketState&&this.originalSocket?.write(e,t,s),this.requestParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e,t)))},read:e=>{null!==e&&this.responseParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e))}}),this.requestRawHeadersBuffer=[],this.responseRawHeadersBuffer=[],this.writeBuffer=[],this.socketState="unknown",this.onRequestHeaders=e=>{this.requestRawHeadersBuffer.push(...e)},this.onRequestStart=(s,o,r,i,a,u,c,p,l)=>{this.shouldKeepAlive=l;const d=new URL(a||"",this.baseUrl),f=this.connectionOptions.method?.toUpperCase()||"GET",m=e.t.parseRawHeaders([...this.requestRawHeadersBuffer,...r||[]]);this.requestRawHeadersBuffer.length=0;const g="GET"!==f&&"HEAD"!==f;(d.username||d.password)&&(m.has("authorization")||m.set("authorization",`Basic ${d.username}:${d.password}`),d.username="",d.password=""),this.requestStream=new h.Readable({read:()=>{this.flushWriteBuffer()}});const R=e.r();this.request=new Request(d,{method:f,headers:m,credentials:"same-origin",duplex:g?"half":void 0,body:g?h.Readable.toWeb(this.requestStream):null}),Reflect.set(this.request,P,R),t.n(this.request,Reflect.get(this,"_httpMessage")),n.n(this.request,this.requestStream),this.request.headers.has(e.o)?this.passthrough():this.onRequest({requestId:R,request:this.request,socket:this})},this.onResponseHeaders=e=>{this.responseRawHeadersBuffer.push(...e)},this.onResponseStart=(t,s,n,o,i,a,u)=>{const c=e.t.parseRawHeaders([...this.responseRawHeadersBuffer,...n||[]]);this.responseRawHeadersBuffer.length=0;const p=new e.t(e.t.isResponseWithBody(a)?h.Readable.toWeb(this.responseStream=new h.Readable({read(){}})):null,{url:i,status:a,statusText:u,headers:c});r.invariant(this.request,"Failed to handle a response: request does not exist"),e.t.setUrl(this.request.url,p),this.request.headers.has(e.o)||(this.responseListenersPromise=this.onResponse({response:p,isMockedResponse:"mock"===this.socketState,requestId:Reflect.get(this.request,P),request:this.request,socket:this}))},this.connectionOptions=s.connectionOptions,this.createConnection=s.createConnection,this.onRequest=s.onRequest,this.onResponse=s.onResponse,this.baseUrl=function(e){if("href"in e)return new URL(e.href);const t=443===e.port?"https:":"http:",s=e.host,n=new URL(`${t}//${s}`);if(e.port&&(n.port=e.port.toString()),e.path&&(n.pathname=e.path),e.auth){const[t,s]=e.auth.split(":");n.username=t,n.password=s}return n}(this.connectionOptions),this.requestParser=new c.HTTPParser,this.requestParser.initialize(c.HTTPParser.REQUEST,{}),this.requestParser[c.HTTPParser.kOnHeaders]=this.onRequestHeaders.bind(this),this.requestParser[c.HTTPParser.kOnHeadersComplete]=this.onRequestStart.bind(this),this.requestParser[c.HTTPParser.kOnBody]=this.onRequestBody.bind(this),this.requestParser[c.HTTPParser.kOnMessageComplete]=this.onRequestEnd.bind(this),this.responseParser=new c.HTTPParser,this.responseParser.initialize(c.HTTPParser.RESPONSE,{}),this.responseParser[c.HTTPParser.kOnHeaders]=this.onResponseHeaders.bind(this),this.responseParser[c.HTTPParser.kOnHeadersComplete]=this.onResponseStart.bind(this),this.responseParser[c.HTTPParser.kOnBody]=this.onResponseBody.bind(this),this.responseParser[c.HTTPParser.kOnMessageComplete]=this.onResponseEnd.bind(this),this.once("finish",(()=>b(this.requestParser,this))),"https:"===this.baseUrl.protocol&&(Reflect.set(this,"encrypted",!0),Reflect.set(this,"authorized",!1),Reflect.set(this,"getProtocol",(()=>"TLSv1.3")),Reflect.set(this,"getSession",(()=>{})),Reflect.set(this,"isSessionReused",(()=>!1)),Reflect.set(this,"getCipher",(()=>({name:"AES256-SHA",standardName:"TLS_RSA_WITH_AES_256_CBC_SHA",version:"TLSv1.3"}))))}emit(e,...t){const s=super.emit.bind(this,e,...t);return this.responseListenersPromise?(this.responseListenersPromise.finally(s),this.listenerCount(e)>0):s()}destroy(e){return b(this.responseParser,this),e&&this.emit("error",e),super.destroy(e)}passthrough(){if(this.socketState="passthrough",this.destroyed)return;const t=this.createConnection();let s;this.originalSocket=t,"_handle"in t&&Object.defineProperty(this,"_handle",{value:t._handle,enumerable:!0,writable:!0}),this.once("close",(()=>{t.removeAllListeners(),t.destroyed||t.destroy(),this.originalSocket=void 0})),this.address=t.address.bind(t);let n=!1;for(;s=this.writeBuffer.shift();)if(void 0!==s){if(!n){const[o,r,i]=s,a=o.toString(),u=a.slice(0,a.indexOf("\r\n")+2),c=a.slice(o.indexOf("\r\n\r\n")),h=`${u}${y(this.request.headers).filter((([t])=>t.toLowerCase()!==e.o)).map((([e,t])=>`${e}: ${t}`)).join("\r\n")}${c}`;t.write(h,r,i),n=!0;continue}t.write(...s)}Reflect.get(t,"encrypted")&&["encrypted","authorized","getProtocol","getSession","isSessionReused","getCipher"].forEach((e=>{Object.defineProperty(this,e,{enumerable:!0,get:()=>{const s=Reflect.get(t,e);return"function"==typeof s?s.bind(t):s}})})),t.on("lookup",((...e)=>this.emit("lookup",...e))).on("connect",(()=>{this.connecting=t.connecting,this.emit("connect")})).on("secureConnect",(()=>this.emit("secureConnect"))).on("secure",(()=>this.emit("secure"))).on("session",(e=>this.emit("session",e))).on("ready",(()=>this.emit("ready"))).on("drain",(()=>this.emit("drain"))).on("data",(e=>{this.push(e)})).on("error",(e=>{Reflect.set(this,"_hadError",Reflect.get(t,"_hadError")),this.emit("error",e)})).on("resume",(()=>this.emit("resume"))).on("timeout",(()=>this.emit("timeout"))).on("prefinish",(()=>this.emit("prefinish"))).on("finish",(()=>this.emit("finish"))).on("close",(e=>this.emit("close",e))).on("end",(()=>this.emit("end")))}async respondWith(e){if(this.destroyed)return;if(r.invariant("mock"!==this.socketState,'[MockHttpSocket] Failed to respond to the "%s %s" request with "%s %s": the request has already been handled',this.request?.method,this.request?.url,e.status,e.statusText),s.a(e,"type")&&"error"===e.type)return void this.errorWith(new TypeError("Network error"));this.mockConnect(),this.socketState="mock",this.flushWriteBuffer();const t=new i.ServerResponse(new i.IncomingMessage(this));t.assignSocket(new f({write:(e,t,s)=>{this.push(e,t),s?.()},read(){}})),t.removeHeader("connection"),t.removeHeader("date");const n=y(e.headers);if(t.writeHead(e.status,e.statusText||i.STATUS_CODES[e.status],n),this.once("error",(()=>{t.destroy()})),e.body)try{const s=e.body.getReader();for(;;){const{done:e,value:n}=await s.read();if(e){t.end();break}t.write(n)}}catch(e){if(e instanceof Error)return t.destroy(),void this.destroy();throw t.destroy(),e}else t.end();this.shouldKeepAlive||(this.emit("readable"),this.responseStream?.push(null),this.push(null))}errorWith(e){this.destroy(e)}mockConnect(){this.connecting=!1;const e=u.isIPv6(this.connectionOptions.hostname)||6===this.connectionOptions.family,t={address:e?"::1":"127.0.0.1",family:e?"IPv6":"IPv4",port:this.connectionOptions.port};this.address=()=>t,this.emit("lookup",null,t.address,"IPv6"===t.family?6:4,this.connectionOptions.host),this.emit("connect"),this.emit("ready"),"https:"===this.baseUrl.protocol&&(this.emit("secure"),this.emit("secureConnect"),this.emit("session",this.connectionOptions.session||Buffer.from("mock-session-renegotiate")),this.emit("session",Buffer.from("mock-session-resume")))}flushWriteBuffer(){for(const e of this.writeBuffer)"function"==typeof e[2]&&(e[2](),e[2]=void 0)}onRequestBody(e){r.invariant(this.requestStream,"Failed to write to a request stream: stream does not exist"),this.requestStream.push(e)}onRequestEnd(){this.requestStream&&this.requestStream.push(null)}onResponseBody(e){r.invariant(this.responseStream,"Failed to write to a response stream: stream does not exist"),this.responseStream.push(e)}onResponseEnd(){this.responseStream&&this.responseStream.push(null)}},T=class extends i.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof i.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof i.Agent?{...e,...this.customAgent.options}:e;return new H({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},v=class extends a.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof i.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof i.Agent?{...e,...this.customAgent.options}:e;return new H({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}};const S=new o.Logger("utils getUrlByRequestOptions");function k(e){return e.agent instanceof l.Agent?e.agent:void 0}function O(e){if(e.port)return Number(e.port);const t=k(e);return t?.options.port?Number(t.options.port):t?.defaultPort?Number(t.defaultPort):void 0}function A(e){if(S.info("request options",e),e.uri)return S.info('constructing url from explicitly provided "options.uri": %s',e.uri),new URL(e.uri.href);S.info("figuring out url from request options...");const t=function(e){if(e.protocol)return e.protocol;const t=k(e)?.protocol;if(t)return t;const s=O(e);return e.cert||443===s?"https:":e.uri?.protocol||"http:"}(e);S.info("protocol",t);const s=O(e);S.info("port",s);const n=function(e){let t=e.hostname||e.host;return t?(function(e){return e.includes(":")&&!e.startsWith("[")&&!e.endsWith("]")}(t)&&(t=`[${t}]`),new URL(`http://${t}`).hostname):"localhost"}(e);S.info("hostname",n);const o=e.path||"/";S.info("path",o);const r=function(e){if(e.auth){const[t,s]=e.auth.split(":");return{username:t,password:s}}}(e);S.info("credentials",r);const i=r?`${r.username}:${r.password}@`:"";S.info("auth string:",i);const a=new URL(`${t}//${n}${void 0!==s?`:${s}`:""}${o}`);return a.username=r?.username||"",a.password=r?.password||"",S.info("created url:",a),a}const C=new o.Logger("cloneObject");function B(e){return C.info("is plain object?",e),null!=e&&e.constructor?.name?(C.info("checking the object constructor:",e.constructor.name),"Object"===e.constructor.name):(C.info("given object is undefined, not a plain object..."),!1)}function j(e){C.info("cloning object:",e);const t=Object.entries(e).reduce(((e,[t,s])=>(C.info("analyzing key-value pair:",t,s),e[t]=B(s)?j(s):s,e)),{});return B(e)?t:Object.assign(Object.getPrototypeOf(e),t)}const x=new o.Logger("http normalizeClientRequestArgs");function L(e,t){if(void 0===e[1]||"function"==typeof e[1])return x.info("request options not provided, deriving from the url",t),p.urlToHttpOptions(t);if(e[1]){x.info("has custom RequestOptions!",e[1]);const s=p.urlToHttpOptions(t);x.info("derived RequestOptions from the URL:",s),x.info("cloning RequestOptions...");const n=j(e[1]);return x.info("successfully cloned RequestOptions!",n),{...s,...n}}return x.info("using an empty object as request options"),{}}function U(e){return"function"==typeof e[1]?e[1]:e[2]}function _(e,t){let n,o,r;if(x.info("arguments",t),x.info("using default protocol:",e),0===t.length){const e=new p.URL("http://localhost");return[e,L(t,e)]}if("string"==typeof t[0]){x.info("first argument is a location string:",t[0]),n=new p.URL(t[0]),x.info("created a url:",n);const e=p.urlToHttpOptions(n);x.info("request options from url:",e),o=L(t,n),x.info("resolved request options:",o),r=U(t)}else if(t[0]instanceof p.URL)n=t[0],x.info("first argument is a URL:",n),void 0!==t[1]&&s.r(t[1])&&(n=function(e,t){if(e.host=t.host||e.host,e.hostname=t.hostname||e.hostname,e.port=t.port?t.port.toString():e.port,t.path){const s=p.parse(t.path,!1);e.pathname=s.pathname||"",e.search=s.search||""}return e}(n,t[1])),o=L(t,n),x.info("derived request options:",o),r=U(t);else{if("hash"in t[0]&&!("method"in t[0])){const[n]=t;if(x.info("first argument is a legacy URL:",n),null===n.hostname)return x.info("given legacy URL is relative (no hostname)"),s.r(t[1])?_(e,[{path:n.path,...t[1]},t[2]]):_(e,[{path:n.path},t[1]]);x.info("given legacy url is absolute");const o=new p.URL(n.href);return void 0===t[1]?_(e,[o]):"function"==typeof t[1]?_(e,[o,t[1]]):_(e,[o,t[1],t[2]])}if(!s.r(t[0]))throw new Error(`Failed to construct ClientRequest with these parameters: ${t}`);o={...t[0]},x.info("first argument is RequestOptions:",o),o.protocol=o.protocol||e,x.info("normalized request options:",o),n=A(o),x.info("created a URL from RequestOptions:",n.href),r=U(t)}return o.protocol=o.protocol||n.protocol,o.method=o.method||"GET",o._defaultAgent||(x.info('has no default agent, setting the default agent for "%s"',o.protocol),o._defaultAgent="https:"===o.protocol?a.globalAgent:i.globalAgent),x.info("successfully resolved url:",n.href),x.info("successfully resolved options:",o),x.info("successfully resolved callback:",r),n instanceof p.URL||(n=n.toString()),[n,o,r]}var E=class t extends e.s{static{this.symbol=Symbol("client-request-interceptor")}constructor(){super(t.symbol),this.onRequest=async({request:t,socket:n})=>{const o=new e.i(t,{passthrough(){n.passthrough()},async respondWith(e){await n.respondWith(e)},errorWith(e){e instanceof Error&&n.errorWith(e)}});await s.t({request:t,requestId:Reflect.get(t,P),controller:o,emitter:this.emitter})},this.onResponse=async({requestId:e,request:t,response:n,isMockedResponse:o})=>s.i(this.emitter,"response",{requestId:e,request:t,response:n,isMockedResponse:o})}setup(){const{ClientRequest:e,get:t,request:s}=i,{get:n,request:o}=a,r=this.onRequest.bind(this),u=this.onResponse.bind(this);i.ClientRequest=new Proxy(i.ClientRequest,{construct:(e,t)=>{const[s,n,o]=_("http:",t);return n.agent=new("https:"===n.protocol?v:T)({customAgent:n.agent,onRequest:r,onResponse:u}),Reflect.construct(e,[s,n,o])}}),i.request=new Proxy(i.request,{apply:(e,t,s)=>{const[n,o,i]=_("http:",s);return o.agent=new T({customAgent:o.agent,onRequest:r,onResponse:u}),Reflect.apply(e,t,[n,o,i])}}),i.get=new Proxy(i.get,{apply:(e,t,s)=>{const[n,o,i]=_("http:",s);return o.agent=new T({customAgent:o.agent,onRequest:r,onResponse:u}),Reflect.apply(e,t,[n,o,i])}}),a.request=new Proxy(a.request,{apply:(e,t,s)=>{const[n,o,i]=_("https:",s);return o.agent=new v({customAgent:o.agent,onRequest:r,onResponse:u}),Reflect.apply(e,t,[n,o,i])}}),a.get=new Proxy(a.get,{apply:(e,t,s)=>{const[n,o,i]=_("https:",s);return o.agent=new v({customAgent:o.agent,onRequest:r,onResponse:u}),Reflect.apply(e,t,[n,o,i])}}),function(){if(Reflect.get(Headers,g))return Reflect.get(Headers,g);const{Headers:e,Request:t,Response:s}=globalThis,{set:n,append:o,delete:r}=Headers.prototype;Object.defineProperty(Headers,g,{value:()=>{Headers.prototype.set=n,Headers.prototype.append=o,Headers.prototype.delete=r,globalThis.Headers=e,globalThis.Request=t,globalThis.Response=s,Reflect.deleteProperty(Headers,g)},enumerable:!1,configurable:!0}),Object.defineProperty(globalThis,"Headers",{enumerable:!0,writable:!0,value:new Proxy(Headers,{construct(e,t,s){const n=t[0]||[];if(n instanceof Headers&&Reflect.has(n,m)){const t=Reflect.construct(e,[Reflect.get(n,m)],s);return q(t,[...Reflect.get(n,m)]),t}const o=Reflect.construct(e,t,s);return Reflect.has(o,m)||q(o,Array.isArray(n)?n:Object.entries(n)),o}})}),Headers.prototype.set=new Proxy(Headers.prototype.set,{apply:(e,t,s)=>(R(t,s,"set"),Reflect.apply(e,t,s))}),Headers.prototype.append=new Proxy(Headers.prototype.append,{apply:(e,t,s)=>(R(t,s,"append"),Reflect.apply(e,t,s))}),Headers.prototype.delete=new Proxy(Headers.prototype.delete,{apply(e,t,s){const n=Reflect.get(t,m);if(n)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===s[0].toLowerCase()&&n.splice(e,1);return Reflect.apply(e,t,s)}}),Object.defineProperty(globalThis,"Request",{enumerable:!0,writable:!0,value:new Proxy(Request,{construct(e,t,s){const n=Reflect.construct(e,t,s),o=[];return"object"==typeof t[0]&&null!=t[0].headers&&o.push(...w(t[0].headers)),"object"==typeof t[1]&&null!=t[1].headers&&o.push(...w(t[1].headers)),o.length>0&&q(n.headers,o),n}})}),Object.defineProperty(globalThis,"Response",{enumerable:!0,writable:!0,value:new Proxy(Response,{construct(e,t,s){const n=Reflect.construct(e,t,s);return"object"==typeof t[1]&&null!=t[1].headers&&q(n.headers,w(t[1].headers)),n}})})}(),this.subscriptions.push((()=>{i.ClientRequest=e,i.get=t,i.request=s,a.get=n,a.request=o,Reflect.get(Headers,g)&&Reflect.get(Headers,g)()}))}};exports.t=E;
|
|
2
|
+
//# sourceMappingURL=ClientRequest-Ca8Qykuv.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientRequest-Ca8Qykuv.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.mjs"],"sourcesContent":["import { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { a as isPropertyAccessible, i as emitAsync, r as isObject, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { n as setRawRequestBodyStream } from \"./node-DwCc6iuP.mjs\";\nimport { Logger } from \"@open-draft/logger\";\nimport { invariant } from \"outvariant\";\nimport http, { IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from \"node:http\";\nimport https, { globalAgent as globalAgent$1 } from \"node:https\";\nimport net from \"node:net\";\nimport { HTTPParser } from \"_http_common\";\nimport { Readable } from \"node:stream\";\nimport { URL as URL$1, parse, urlToHttpOptions } from \"node:url\";\nimport { Agent } from \"http\";\n\n//#region src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\n/**\n* Normalizes the arguments provided to the `Writable.prototype.write()`\n* and `Writable.prototype.end()`.\n*/\nfunction normalizeSocketWriteArgs(args) {\n\tconst normalized = [\n\t\targs[0],\n\t\tvoid 0,\n\t\tvoid 0\n\t];\n\tif (typeof args[1] === \"string\") normalized[1] = args[1];\n\telse if (typeof args[1] === \"function\") normalized[2] = args[1];\n\tif (typeof args[2] === \"function\") normalized[2] = args[2];\n\treturn normalized;\n}\n\n//#endregion\n//#region src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.connecting = false;\n\t\tthis.connect();\n\t\tthis._final = (callback) => {\n\t\t\tcallback(null);\n\t\t};\n\t}\n\tconnect() {\n\t\tthis.connecting = true;\n\t\treturn this;\n\t}\n\twrite(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn true;\n\t}\n\tend(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn super.end.apply(this, args);\n\t}\n\tpush(chunk, encoding) {\n\t\tthis.options.read(chunk, encoding);\n\t\treturn super.push(chunk, encoding);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n\tif (\"href\" in options) return new URL(options.href);\n\tconst protocol = options.port === 443 ? \"https:\" : \"http:\";\n\tconst host = options.host;\n\tconst url = new URL(`${protocol}//${host}`);\n\tif (options.port) url.port = options.port.toString();\n\tif (options.path) url.pathname = options.path;\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\turl.username = username;\n\t\turl.password = password;\n\t}\n\treturn url;\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nconst kRawHeaders = Symbol(\"kRawHeaders\");\nconst kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n\tensureRawHeadersSymbol(headers, []);\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\tif (behavior === \"set\") {\n\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t}\n\trawHeaders.push(args);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, this function does nothing.\n*/\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n\tif (Reflect.has(headers, kRawHeaders)) return;\n\tdefineRawHeadersSymbol(headers, rawHeaders);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, it gets overridden.\n*/\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n\tObject.defineProperty(headers, kRawHeaders, {\n\t\tvalue: rawHeaders,\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n}\n/**\n* Patch the global `Headers` class to store raw headers.\n* This is for compatibility with `IncomingMessage.prototype.rawHeaders`.\n*\n* @note Node.js has their own raw headers symbol but it\n* only records the first header name in case of multi-value headers.\n* Any other headers are normalized before comparing. This makes it\n* incompatible with the `rawHeaders` format.\n*\n* let h = new Headers()\n* h.append('X-Custom', 'one')\n* h.append('x-custom', 'two')\n* h[Symbol('headers map')] // Map { 'X-Custom' => 'one, two' }\n*/\nfunction recordRawFetchHeaders() {\n\tif (Reflect.get(Headers, kRestorePatches)) return Reflect.get(Headers, kRestorePatches);\n\tconst { Headers: OriginalHeaders, Request: OriginalRequest, Response: OriginalResponse } = globalThis;\n\tconst { set, append, delete: headersDeleteMethod } = Headers.prototype;\n\tObject.defineProperty(Headers, kRestorePatches, {\n\t\tvalue: () => {\n\t\t\tHeaders.prototype.set = set;\n\t\t\tHeaders.prototype.append = append;\n\t\t\tHeaders.prototype.delete = headersDeleteMethod;\n\t\t\tglobalThis.Headers = OriginalHeaders;\n\t\t\tglobalThis.Request = OriginalRequest;\n\t\t\tglobalThis.Response = OriginalResponse;\n\t\t\tReflect.deleteProperty(Headers, kRestorePatches);\n\t\t},\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n\tObject.defineProperty(globalThis, \"Headers\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Headers, { construct(target, args, newTarget) {\n\t\t\tconst headersInit = args[0] || [];\n\t\t\tif (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n\t\t\t\tconst headers$1 = Reflect.construct(target, [Reflect.get(headersInit, kRawHeaders)], newTarget);\n\t\t\t\tensureRawHeadersSymbol(headers$1, [...Reflect.get(headersInit, kRawHeaders)]);\n\t\t\t\treturn headers$1;\n\t\t\t}\n\t\t\tconst headers = Reflect.construct(target, args, newTarget);\n\t\t\tif (!Reflect.has(headers, kRawHeaders)) ensureRawHeadersSymbol(headers, Array.isArray(headersInit) ? headersInit : Object.entries(headersInit));\n\t\t\treturn headers;\n\t\t} })\n\t});\n\tHeaders.prototype.set = new Proxy(Headers.prototype.set, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"set\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.append = new Proxy(Headers.prototype.append, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"append\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.delete = new Proxy(Headers.prototype.delete, { apply(target, thisArg, args) {\n\t\tconst rawHeaders = Reflect.get(thisArg, kRawHeaders);\n\t\tif (rawHeaders) {\n\t\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t\t}\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tObject.defineProperty(globalThis, \"Request\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Request, { construct(target, args, newTarget) {\n\t\t\tconst request = Reflect.construct(target, args, newTarget);\n\t\t\tconst inferredRawHeaders = [];\n\t\t\tif (typeof args[0] === \"object\" && args[0].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n\t\t\tif (inferredRawHeaders.length > 0) ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n\t\t\treturn request;\n\t\t} })\n\t});\n\tObject.defineProperty(globalThis, \"Response\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Response, { construct(target, args, newTarget) {\n\t\t\tconst response = Reflect.construct(target, args, newTarget);\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) ensureRawHeadersSymbol(response.headers, inferRawHeaders(args[1].headers));\n\t\t\treturn response;\n\t\t} })\n\t});\n}\nfunction restoreHeadersPrototype() {\n\tif (!Reflect.get(Headers, kRestorePatches)) return;\n\tReflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n\tif (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\treturn rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\n/**\n* Infers the raw headers from the given `HeadersInit` provided\n* to the Request/Response constructor.\n*\n* If the `init.headers` is a Headers instance, use it directly.\n* That means the headers were created standalone and already have\n* the raw headers stored.\n* If the `init.headers` is a HeadersInit, create a new Headers\n* instance out of it.\n*/\nfunction inferRawHeaders(headers) {\n\tif (headers instanceof Headers) return Reflect.get(headers, kRawHeaders) || [];\n\treturn Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/parserUtils.ts\n/**\n* @see https://github.com/nodejs/node/blob/f3adc11e37b8bfaaa026ea85c1cf22e3a0e29ae9/lib/_http_common.js#L180\n*/\nfunction freeParser(parser, socket) {\n\tif (parser._consumed) parser.unconsume();\n\tparser._headers = [];\n\tparser._url = \"\";\n\tparser.socket = null;\n\tparser.incoming = null;\n\tparser.outgoing = null;\n\tparser.maxHeaderPairs = 2e3;\n\tparser._consumed = false;\n\tparser.onIncoming = null;\n\tparser[HTTPParser.kOnHeaders] = null;\n\tparser[HTTPParser.kOnHeadersComplete] = null;\n\tparser[HTTPParser.kOnMessageBegin] = null;\n\tparser[HTTPParser.kOnMessageComplete] = null;\n\tparser[HTTPParser.kOnBody] = null;\n\tparser[HTTPParser.kOnExecute] = null;\n\tparser[HTTPParser.kOnTimeout] = null;\n\tparser.remove();\n\tparser.free();\n\tif (socket)\n /**\n\t* @note Unassigning the socket's parser will fail this assertion\n\t* if there's still some data being processed on the socket:\n\t* @see https://github.com/nodejs/node/blob/4e1f39b678b37017ac9baa0971e3aeecd3b67b51/lib/_http_client.js#L613\n\t*/\n\tif (socket.destroyed) socket.parser = null;\n\telse socket.once(\"end\", () => {\n\t\tsocket.parser = null;\n\t});\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/MockHttpSocket.ts\nconst kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n\tconstructor(options) {\n\t\tsuper({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tif (this.socketState !== \"passthrough\") this.writeBuffer.push([\n\t\t\t\t\tchunk,\n\t\t\t\t\tencoding,\n\t\t\t\t\tcallback\n\t\t\t\t]);\n\t\t\t\tif (chunk) {\n\t\t\t\t\t/**\n\t\t\t\t\t* Forward any writes to the mock socket to the underlying original socket.\n\t\t\t\t\t* This ensures functional duplex connections, like WebSocket.\n\t\t\t\t\t* @see https://github.com/mswjs/interceptors/issues/682\n\t\t\t\t\t*/\n\t\t\t\t\tif (this.socketState === \"passthrough\") this.originalSocket?.write(chunk, encoding, callback);\n\t\t\t\t\tthis.requestParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n\t\t\t\t}\n\t\t\t},\n\t\t\tread: (chunk) => {\n\t\t\t\tif (chunk !== null)\n /**\n\t\t\t\t* @todo We need to free the parser if the connection has been\n\t\t\t\t* upgraded to a non-HTTP protocol. It won't be able to parse data\n\t\t\t\t* from that point onward anyway. No need to keep it in memory.\n\t\t\t\t*/\n\t\t\t\tthis.responseParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n\t\t\t}\n\t\t});\n\t\tthis.requestRawHeadersBuffer = [];\n\t\tthis.responseRawHeadersBuffer = [];\n\t\tthis.writeBuffer = [];\n\t\tthis.socketState = \"unknown\";\n\t\tthis.onRequestHeaders = (rawHeaders) => {\n\t\t\tthis.requestRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n\t\t\tthis.shouldKeepAlive = shouldKeepAlive;\n\t\t\tconst url = new URL(path || \"\", this.baseUrl);\n\t\t\tconst method = this.connectionOptions.method?.toUpperCase() || \"GET\";\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.requestRawHeadersBuffer.length = 0;\n\t\t\tconst canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n\t\t\tif (url.username || url.password) {\n\t\t\t\tif (!headers.has(\"authorization\")) headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n\t\t\t\turl.username = \"\";\n\t\t\t\turl.password = \"\";\n\t\t\t}\n\t\t\tthis.requestStream = new Readable({ read: () => {\n\t\t\t\tthis.flushWriteBuffer();\n\t\t\t} });\n\t\t\tconst requestId = createRequestId();\n\t\t\tthis.request = new Request(url, {\n\t\t\t\tmethod,\n\t\t\t\theaders,\n\t\t\t\tcredentials: \"same-origin\",\n\t\t\t\tduplex: canHaveBody ? \"half\" : void 0,\n\t\t\t\tbody: canHaveBody ? Readable.toWeb(this.requestStream) : null\n\t\t\t});\n\t\t\tReflect.set(this.request, kRequestId, requestId);\n\t\t\tsetRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n\t\t\tsetRawRequestBodyStream(this.request, this.requestStream);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n\t\t\t\tthis.passthrough();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.onRequest({\n\t\t\t\trequestId,\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.onResponseHeaders = (rawHeaders) => {\n\t\t\tthis.responseRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.responseRawHeadersBuffer.length = 0;\n\t\t\tconst response = new FetchResponse(\n\t\t\t\t/**\n\t\t\t\t* @note The Fetch API response instance exposed to the consumer\n\t\t\t\t* is created over the response stream of the HTTP parser. It is NOT\n\t\t\t\t* related to the Socket instance. This way, you can read response body\n\t\t\t\t* in response listener while the Socket instance delays the emission\n\t\t\t\t* of \"end\" and other events until those response listeners are finished.\n\t\t\t\t*/\n\t\t\t\tFetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,\n\t\t\t\t{\n\t\t\t\t\turl,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstatusText,\n\t\t\t\t\theaders\n\t\t\t\t}\n\t\t\t);\n\t\t\tinvariant(this.request, \"Failed to handle a response: request does not exist\");\n\t\t\tFetchResponse.setUrl(this.request.url, response);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;\n\t\t\tthis.responseListenersPromise = this.onResponse({\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse: this.socketState === \"mock\",\n\t\t\t\trequestId: Reflect.get(this.request, kRequestId),\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.connectionOptions = options.connectionOptions;\n\t\tthis.createConnection = options.createConnection;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t\tthis.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n\t\tthis.requestParser = new HTTPParser();\n\t\tthis.requestParser.initialize(HTTPParser.REQUEST, {});\n\t\tthis.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n\t\tthis.responseParser = new HTTPParser();\n\t\tthis.responseParser.initialize(HTTPParser.RESPONSE, {});\n\t\tthis.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n\t\tthis.once(\"finish\", () => freeParser(this.requestParser, this));\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tReflect.set(this, \"encrypted\", true);\n\t\t\tReflect.set(this, \"authorized\", false);\n\t\t\tReflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n\t\t\tReflect.set(this, \"getSession\", () => void 0);\n\t\t\tReflect.set(this, \"isSessionReused\", () => false);\n\t\t\tReflect.set(this, \"getCipher\", () => ({\n\t\t\t\tname: \"AES256-SHA\",\n\t\t\t\tstandardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\",\n\t\t\t\tversion: \"TLSv1.3\"\n\t\t\t}));\n\t\t}\n\t}\n\temit(event, ...args) {\n\t\tconst emitEvent = super.emit.bind(this, event, ...args);\n\t\tif (this.responseListenersPromise) {\n\t\t\tthis.responseListenersPromise.finally(emitEvent);\n\t\t\treturn this.listenerCount(event) > 0;\n\t\t}\n\t\treturn emitEvent();\n\t}\n\tdestroy(error) {\n\t\tfreeParser(this.responseParser, this);\n\t\tif (error) this.emit(\"error\", error);\n\t\treturn super.destroy(error);\n\t}\n\t/**\n\t* Establish this Socket connection as-is and pipe\n\t* its data/events through this Socket.\n\t*/\n\tpassthrough() {\n\t\tthis.socketState = \"passthrough\";\n\t\tif (this.destroyed) return;\n\t\tconst socket = this.createConnection();\n\t\tthis.originalSocket = socket;\n\t\t/**\n\t\t* @note Inherit the original socket's connection handle.\n\t\t* Without this, each push to the mock socket results in a\n\t\t* new \"connection\" listener being added (i.e. buffering pushes).\n\t\t* @see https://github.com/nodejs/node/blob/b18153598b25485ce4f54d0c5cb830a9457691ee/lib/net.js#L734\n\t\t*/\n\t\tif (\"_handle\" in socket) Object.defineProperty(this, \"_handle\", {\n\t\t\tvalue: socket._handle,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t});\n\t\tthis.once(\"close\", () => {\n\t\t\tsocket.removeAllListeners();\n\t\t\tif (!socket.destroyed) socket.destroy();\n\t\t\tthis.originalSocket = void 0;\n\t\t});\n\t\tthis.address = socket.address.bind(socket);\n\t\tlet writeArgs;\n\t\tlet headersWritten = false;\n\t\twhile (writeArgs = this.writeBuffer.shift()) if (writeArgs !== void 0) {\n\t\t\tif (!headersWritten) {\n\t\t\t\tconst [chunk, encoding, callback] = writeArgs;\n\t\t\t\tconst chunkString = chunk.toString();\n\t\t\t\tconst chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf(\"\\r\\n\") + 2);\n\t\t\t\tconst chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf(\"\\r\\n\\r\\n\"));\n\t\t\t\tconst headersChunk = `${chunkBeforeRequestHeaders}${getRawFetchHeaders(this.request.headers).filter(([name]) => {\n\t\t\t\t\treturn name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n\t\t\t\t}).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\")}${chunkAfterRequestHeaders}`;\n\t\t\t\tsocket.write(headersChunk, encoding, callback);\n\t\t\t\theadersWritten = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsocket.write(...writeArgs);\n\t\t}\n\t\tif (Reflect.get(socket, \"encrypted\")) [\n\t\t\t\"encrypted\",\n\t\t\t\"authorized\",\n\t\t\t\"getProtocol\",\n\t\t\t\"getSession\",\n\t\t\t\"isSessionReused\",\n\t\t\t\"getCipher\"\n\t\t].forEach((propertyName) => {\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tenumerable: true,\n\t\t\t\tget: () => {\n\t\t\t\t\tconst value = Reflect.get(socket, propertyName);\n\t\t\t\t\treturn typeof value === \"function\" ? value.bind(socket) : value;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tsocket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n\t\t\tthis.connecting = socket.connecting;\n\t\t\tthis.emit(\"connect\");\n\t\t}).on(\"secureConnect\", () => this.emit(\"secureConnect\")).on(\"secure\", () => this.emit(\"secure\")).on(\"session\", (session) => this.emit(\"session\", session)).on(\"ready\", () => this.emit(\"ready\")).on(\"drain\", () => this.emit(\"drain\")).on(\"data\", (chunk) => {\n\t\t\tthis.push(chunk);\n\t\t}).on(\"error\", (error) => {\n\t\t\tReflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n\t\t\tthis.emit(\"error\", error);\n\t\t}).on(\"resume\", () => this.emit(\"resume\")).on(\"timeout\", () => this.emit(\"timeout\")).on(\"prefinish\", () => this.emit(\"prefinish\")).on(\"finish\", () => this.emit(\"finish\")).on(\"close\", (hadError) => this.emit(\"close\", hadError)).on(\"end\", () => this.emit(\"end\"));\n\t}\n\t/**\n\t* Convert the given Fetch API `Response` instance to an\n\t* HTTP message and push it to the socket.\n\t*/\n\tasync respondWith(response) {\n\t\tif (this.destroyed) return;\n\t\tinvariant(this.socketState !== \"mock\", \"[MockHttpSocket] Failed to respond to the \\\"%s %s\\\" request with \\\"%s %s\\\": the request has already been handled\", this.request?.method, this.request?.url, response.status, response.statusText);\n\t\tif (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\treturn;\n\t\t}\n\t\tthis.mockConnect();\n\t\tthis.socketState = \"mock\";\n\t\tthis.flushWriteBuffer();\n\t\tconst serverResponse = new ServerResponse(new IncomingMessage(this));\n\t\t/**\n\t\t* Assign a mock socket instance to the server response to\n\t\t* spy on the response chunk writes. Push the transformed response chunks\n\t\t* to this `MockHttpSocket` instance to trigger the \"data\" event.\n\t\t* @note Providing the same `MockSocket` instance when creating `ServerResponse`\n\t\t* does not have the same effect.\n\t\t* @see https://github.com/nodejs/node/blob/10099bb3f7fd97bb9dd9667188426866b3098e07/test/parallel/test-http-server-response-standalone.js#L32\n\t\t*/\n\t\tserverResponse.assignSocket(new MockSocket({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tthis.push(chunk, encoding);\n\t\t\t\tcallback?.();\n\t\t\t},\n\t\t\tread() {}\n\t\t}));\n\t\t/**\n\t\t* @note Remove the `Connection` and `Date` response headers\n\t\t* injected by `ServerResponse` by default. Those are required\n\t\t* from the server but the interceptor is NOT technically a server.\n\t\t* It's confusing to add response headers that the developer didn't\n\t\t* specify themselves. They can always add these if they wish.\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.date\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.connection\n\t\t*/\n\t\tserverResponse.removeHeader(\"connection\");\n\t\tserverResponse.removeHeader(\"date\");\n\t\tconst rawResponseHeaders = getRawFetchHeaders(response.headers);\n\t\t/**\n\t\t* @note Call `.writeHead` in order to set the raw response headers\n\t\t* in the same case as they were provided by the developer. Using\n\t\t* `.setHeader()`/`.appendHeader()` normalizes header names.\n\t\t*/\n\t\tserverResponse.writeHead(response.status, response.statusText || STATUS_CODES[response.status], rawResponseHeaders);\n\t\tthis.once(\"error\", () => {\n\t\t\tserverResponse.destroy();\n\t\t});\n\t\tif (response.body) try {\n\t\t\tconst reader = response.body.getReader();\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tserverResponse.end();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tserverResponse.write(value);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error) {\n\t\t\t\tserverResponse.destroy();\n\t\t\t\t/**\n\t\t\t\t* @note Destroy the request socket gracefully.\n\t\t\t\t* Response stream errors do NOT produce request errors.\n\t\t\t\t*/\n\t\t\t\tthis.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tserverResponse.destroy();\n\t\t\tthrow error;\n\t\t}\n\t\telse serverResponse.end();\n\t\tif (!this.shouldKeepAlive) {\n\t\t\tthis.emit(\"readable\");\n\t\t\t/**\n\t\t\t* @todo @fixme This is likely a hack.\n\t\t\t* Since we push null to the socket, it never propagates to the\n\t\t\t* parser, and the parser never calls \"onResponseEnd\" to close\n\t\t\t* the response stream. We are closing the stream here manually\n\t\t\t* but that shouldn't be the case.\n\t\t\t*/\n\t\t\tthis.responseStream?.push(null);\n\t\t\tthis.push(null);\n\t\t}\n\t}\n\t/**\n\t* Close this socket connection with the given error.\n\t*/\n\terrorWith(error) {\n\t\tthis.destroy(error);\n\t}\n\tmockConnect() {\n\t\tthis.connecting = false;\n\t\tconst isIPv6 = net.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n\t\tconst addressInfo = {\n\t\t\taddress: isIPv6 ? \"::1\" : \"127.0.0.1\",\n\t\t\tfamily: isIPv6 ? \"IPv6\" : \"IPv4\",\n\t\t\tport: this.connectionOptions.port\n\t\t};\n\t\tthis.address = () => addressInfo;\n\t\tthis.emit(\"lookup\", null, addressInfo.address, addressInfo.family === \"IPv6\" ? 6 : 4, this.connectionOptions.host);\n\t\tthis.emit(\"connect\");\n\t\tthis.emit(\"ready\");\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tthis.emit(\"secure\");\n\t\t\tthis.emit(\"secureConnect\");\n\t\t\tthis.emit(\"session\", this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\"));\n\t\t\tthis.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n\t\t}\n\t}\n\tflushWriteBuffer() {\n\t\tfor (const writeCall of this.writeBuffer) if (typeof writeCall[2] === \"function\") {\n\t\t\twriteCall[2]();\n\t\t\t/**\n\t\t\t* @note Remove the callback from the write call\n\t\t\t* so it doesn't get called twice on passthrough\n\t\t\t* if `request.end()` was called within `request.write()`.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/684\n\t\t\t*/\n\t\t\twriteCall[2] = void 0;\n\t\t}\n\t}\n\tonRequestBody(chunk) {\n\t\tinvariant(this.requestStream, \"Failed to write to a request stream: stream does not exist\");\n\t\tthis.requestStream.push(chunk);\n\t}\n\tonRequestEnd() {\n\t\tif (this.requestStream) this.requestStream.push(null);\n\t}\n\tonResponseBody(chunk) {\n\t\tinvariant(this.responseStream, \"Failed to write to a response stream: stream does not exist\");\n\t\tthis.responseStream.push(chunk);\n\t}\n\tonResponseEnd() {\n\t\tif (this.responseStream) this.responseStream.push(null);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/ClientRequest/agents.ts\nvar MockAgent = class extends http.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\nvar MockHttpsAgent = class extends https.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\n\n//#endregion\n//#region src/utils/getUrlByRequestOptions.ts\nconst logger$2 = new Logger(\"utils getUrlByRequestOptions\");\nconst DEFAULT_PATH = \"/\";\nconst DEFAULT_PROTOCOL = \"http:\";\nconst DEFAULT_HOSTNAME = \"localhost\";\nconst SSL_PORT = 443;\nfunction getAgent(options) {\n\treturn options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n\tif (options.protocol) return options.protocol;\n\tconst agentProtocol = getAgent(options)?.protocol;\n\tif (agentProtocol) return agentProtocol;\n\tconst port = getPortByRequestOptions(options);\n\treturn options.cert || port === SSL_PORT ? \"https:\" : options.uri?.protocol || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n\tif (options.port) return Number(options.port);\n\tconst agent = getAgent(options);\n\tif (agent?.options.port) return Number(agent.options.port);\n\tif (agent?.defaultPort) return Number(agent.defaultPort);\n}\nfunction getAuthByRequestOptions(options) {\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\treturn {\n\t\t\tusername,\n\t\t\tpassword\n\t\t};\n\t}\n}\n/**\n* Returns true if host looks like an IPv6 address without surrounding brackets\n* It assumes any host containing `:` is definitely not IPv4 and probably IPv6,\n* but note that this could include invalid IPv6 addresses as well.\n*/\nfunction isRawIPv6Address(host) {\n\treturn host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n\tlet host = options.hostname || options.host;\n\tif (host) {\n\t\tif (isRawIPv6Address(host)) host = `[${host}]`;\n\t\treturn new URL(`http://${host}`).hostname;\n\t}\n\treturn DEFAULT_HOSTNAME;\n}\n/**\n* Creates a `URL` instance from a given `RequestOptions` object.\n*/\nfunction getUrlByRequestOptions(options) {\n\tlogger$2.info(\"request options\", options);\n\tif (options.uri) {\n\t\tlogger$2.info(\"constructing url from explicitly provided \\\"options.uri\\\": %s\", options.uri);\n\t\treturn new URL(options.uri.href);\n\t}\n\tlogger$2.info(\"figuring out url from request options...\");\n\tconst protocol = getProtocolByRequestOptions(options);\n\tlogger$2.info(\"protocol\", protocol);\n\tconst port = getPortByRequestOptions(options);\n\tlogger$2.info(\"port\", port);\n\tconst hostname = getHostname(options);\n\tlogger$2.info(\"hostname\", hostname);\n\tconst path = options.path || DEFAULT_PATH;\n\tlogger$2.info(\"path\", path);\n\tconst credentials = getAuthByRequestOptions(options);\n\tlogger$2.info(\"credentials\", credentials);\n\tconst authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n\tlogger$2.info(\"auth string:\", authString);\n\tconst portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n\tconst url = new URL(`${protocol}//${hostname}${portString}${path}`);\n\turl.username = credentials?.username || \"\";\n\turl.password = credentials?.password || \"\";\n\tlogger$2.info(\"created url:\", url);\n\treturn url;\n}\n\n//#endregion\n//#region src/utils/cloneObject.ts\nconst logger$1 = new Logger(\"cloneObject\");\nfunction isPlainObject(obj) {\n\tlogger$1.info(\"is plain object?\", obj);\n\tif (obj == null || !obj.constructor?.name) {\n\t\tlogger$1.info(\"given object is undefined, not a plain object...\");\n\t\treturn false;\n\t}\n\tlogger$1.info(\"checking the object constructor:\", obj.constructor.name);\n\treturn obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n\tlogger$1.info(\"cloning object:\", obj);\n\tconst enumerableProperties = Object.entries(obj).reduce((acc, [key, value]) => {\n\t\tlogger$1.info(\"analyzing key-value pair:\", key, value);\n\t\tacc[key] = isPlainObject(value) ? cloneObject(value) : value;\n\t\treturn acc;\n\t}, {});\n\treturn isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nconst logger = new Logger(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n\tif (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n\t\tlogger.info(\"request options not provided, deriving from the url\", url);\n\t\treturn urlToHttpOptions(url);\n\t}\n\tif (args[1]) {\n\t\tlogger.info(\"has custom RequestOptions!\", args[1]);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n\t\t/**\n\t\t* Clone the request options to lock their state\n\t\t* at the moment they are provided to `ClientRequest`.\n\t\t* @see https://github.com/mswjs/interceptors/issues/86\n\t\t*/\n\t\tlogger.info(\"cloning RequestOptions...\");\n\t\tconst clonedRequestOptions = cloneObject(args[1]);\n\t\tlogger.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n\t\treturn {\n\t\t\t...requestOptionsFromUrl,\n\t\t\t...clonedRequestOptions\n\t\t};\n\t}\n\tlogger.info(\"using an empty object as request options\");\n\treturn {};\n}\n/**\n* Overrides the given `URL` instance with the explicit properties provided\n* on the `RequestOptions` object. The options object takes precedence,\n* and will replace URL properties like \"host\", \"path\", and \"port\", if specified.\n*/\nfunction overrideUrlByRequestOptions(url, options) {\n\turl.host = options.host || url.host;\n\turl.hostname = options.hostname || url.hostname;\n\turl.port = options.port ? options.port.toString() : url.port;\n\tif (options.path) {\n\t\tconst parsedOptionsPath = parse(options.path, false);\n\t\turl.pathname = parsedOptionsPath.pathname || \"\";\n\t\turl.search = parsedOptionsPath.search || \"\";\n\t}\n\treturn url;\n}\nfunction resolveCallback(args) {\n\treturn typeof args[1] === \"function\" ? args[1] : args[2];\n}\n/**\n* Normalizes parameters given to a `http.request` call\n* so it always has a `URL` and `RequestOptions`.\n*/\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n\tlet url;\n\tlet options;\n\tlet callback;\n\tlogger.info(\"arguments\", args);\n\tlogger.info(\"using default protocol:\", defaultProtocol);\n\tif (args.length === 0) {\n\t\tconst url$1 = new URL$1(\"http://localhost\");\n\t\treturn [url$1, resolveRequestOptions(args, url$1)];\n\t}\n\tif (typeof args[0] === \"string\") {\n\t\tlogger.info(\"first argument is a location string:\", args[0]);\n\t\turl = new URL$1(args[0]);\n\t\tlogger.info(\"created a url:\", url);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"request options from url:\", requestOptionsFromUrl);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"resolved request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (args[0] instanceof URL$1) {\n\t\turl = args[0];\n\t\tlogger.info(\"first argument is a URL:\", url);\n\t\tif (typeof args[1] !== \"undefined\" && isObject(args[1])) url = overrideUrlByRequestOptions(url, args[1]);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"derived request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n\t\tconst [legacyUrl] = args;\n\t\tlogger.info(\"first argument is a legacy URL:\", legacyUrl);\n\t\tif (legacyUrl.hostname === null) {\n\t\t\t/**\n\t\t\t* We are dealing with a relative url, so use the path as an \"option\" and\n\t\t\t* merge in any existing options, giving priority to existing options -- i.e. a path in any\n\t\t\t* existing options will take precedence over the one contained in the url. This is consistent\n\t\t\t* with the behaviour in ClientRequest.\n\t\t\t* @see https://github.com/nodejs/node/blob/d84f1312915fe45fe0febe888db692c74894c382/lib/_http_client.js#L122\n\t\t\t*/\n\t\t\tlogger.info(\"given legacy URL is relative (no hostname)\");\n\t\t\treturn isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [{\n\t\t\t\tpath: legacyUrl.path,\n\t\t\t\t...args[1]\n\t\t\t}, args[2]]) : normalizeClientRequestArgs(defaultProtocol, [{ path: legacyUrl.path }, args[1]]);\n\t\t}\n\t\tlogger.info(\"given legacy url is absolute\");\n\t\tconst resolvedUrl = new URL$1(legacyUrl.href);\n\t\treturn args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n\t\t\tresolvedUrl,\n\t\t\targs[1],\n\t\t\targs[2]\n\t\t]);\n\t} else if (isObject(args[0])) {\n\t\toptions = { ...args[0] };\n\t\tlogger.info(\"first argument is RequestOptions:\", options);\n\t\toptions.protocol = options.protocol || defaultProtocol;\n\t\tlogger.info(\"normalized request options:\", options);\n\t\turl = getUrlByRequestOptions(options);\n\t\tlogger.info(\"created a URL from RequestOptions:\", url.href);\n\t\tcallback = resolveCallback(args);\n\t} else throw new Error(`Failed to construct ClientRequest with these parameters: ${args}`);\n\toptions.protocol = options.protocol || url.protocol;\n\toptions.method = options.method || \"GET\";\n\t/**\n\t* Ensure that the default Agent is always set.\n\t* This prevents the protocol mismatch for requests with { agent: false },\n\t* where the global Agent is inferred.\n\t* @see https://github.com/mswjs/msw/issues/1150\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L130\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L157-L159\n\t*/\n\tif (!options._defaultAgent) {\n\t\tlogger.info(\"has no default agent, setting the default agent for \\\"%s\\\"\", options.protocol);\n\t\toptions._defaultAgent = options.protocol === \"https:\" ? globalAgent$1 : globalAgent;\n\t}\n\tlogger.info(\"successfully resolved url:\", url.href);\n\tlogger.info(\"successfully resolved options:\", options);\n\tlogger.info(\"successfully resolved callback:\", callback);\n\t/**\n\t* @note If the user-provided URL is not a valid URL in Node.js,\n\t* (e.g. the one provided by the JSDOM polyfills), case it to\n\t* string. Otherwise, this throws on Node.js incompatibility\n\t* (`ERR_INVALID_ARG_TYPE` on the connection listener)\n\t* @see https://github.com/node-fetch/node-fetch/issues/1376#issuecomment-966435555\n\t*/\n\tif (!(url instanceof URL$1)) url = url.toString();\n\treturn [\n\t\turl,\n\t\toptions,\n\t\tcallback\n\t];\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/index.ts\nvar ClientRequestInterceptor = class ClientRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"client-request-interceptor\");\n\t}\n\tconstructor() {\n\t\tsuper(ClientRequestInterceptor.symbol);\n\t\tthis.onRequest = async ({ request, socket }) => {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough() {\n\t\t\t\t\tsocket.passthrough();\n\t\t\t\t},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait socket.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith(reason) {\n\t\t\t\t\tif (reason instanceof Error) socket.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId: Reflect.get(request, kRequestId),\n\t\t\t\tcontroller,\n\t\t\t\temitter: this.emitter\n\t\t\t});\n\t\t};\n\t\tthis.onResponse = async ({ requestId, request, response, isMockedResponse }) => {\n\t\t\treturn emitAsync(this.emitter, \"response\", {\n\t\t\t\trequestId,\n\t\t\t\trequest,\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse\n\t\t\t});\n\t\t};\n\t}\n\tsetup() {\n\t\tconst { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http;\n\t\tconst { get: originalHttpsGet, request: originalHttpsRequest } = https;\n\t\tconst onRequest = this.onRequest.bind(this);\n\t\tconst onResponse = this.onResponse.bind(this);\n\t\thttp.ClientRequest = new Proxy(http.ClientRequest, { construct: (target, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new (options.protocol === \"https:\" ? MockHttpsAgent : MockAgent)({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.construct(target, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.request = new Proxy(http.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.get = new Proxy(http.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.request = new Proxy(https.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.get = new Proxy(https.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\trecordRawFetchHeaders();\n\t\tthis.subscriptions.push(() => {\n\t\t\thttp.ClientRequest = OriginalClientRequest;\n\t\t\thttp.get = originalGet;\n\t\t\thttp.request = originalRequest;\n\t\t\thttps.get = originalHttpsGet;\n\t\t\thttps.request = originalHttpsRequest;\n\t\t\trestoreHeadersPrototype();\n\t\t});\n\t}\n};\n\n//#endregion\nexport { ClientRequestInterceptor as t };\n//# sourceMappingURL=ClientRequest-Ca8Qykuv.mjs.map"],"names":["normalizeSocketWriteArgs","args","normalized","MockSocket","net","Socket","constructor","options","super","this","connecting","connect","_final","callback","write","chunk","encoding","end","apply","push","read","kRawHeaders","Symbol","kRestorePatches","recordRawHeader","headers","behavior","ensureRawHeadersSymbol","rawHeaders","Reflect","get","index","length","toLowerCase","splice","has","Object","defineProperty","value","enumerable","configurable","defineRawHeadersSymbol","getRawFetchHeaders","Array","from","entries","inferRawHeaders","Headers","freeParser","parser","socket","_consumed","unconsume","_headers","_url","incoming","outgoing","maxHeaderPairs","onIncoming","HTTPParser","kOnHeaders","kOnHeadersComplete","kOnMessageBegin","kOnMessageComplete","kOnBody","kOnExecute","kOnTimeout","remove","free","destroyed","once","kRequestId","MockHttpSocket","socketState","writeBuffer","originalSocket","requestParser","execute","Buffer","isBuffer","responseParser","requestRawHeadersBuffer","responseRawHeadersBuffer","onRequestHeaders","onRequestStart","versionMajor","versionMinor","_","path","__","___","____","shouldKeepAlive","url","URL","baseUrl","method","connectionOptions","toUpperCase","FetchResponse","parseRawHeaders","canHaveBody","username","password","set","requestStream","Readable","flushWriteBuffer","requestId","createRequestId","request","Request","credentials","duplex","body","toWeb","setRawRequest","setRawRequestBodyStream","INTERNAL_REQUEST_ID_HEADER_NAME","passthrough","onRequest","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","initialize","REQUEST","bind","onRequestBody","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","writeArgs","_handle","writable","removeAllListeners","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger$2","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger$1","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url$1","URL$1","isObject","parsedOptionsPath","parse","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","globalAgent$1","globalAgent","ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","originalHttpsGet","originalHttpsRequest","Proxy","construct","target","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers$1","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions"],"mappings":"2hBAmBA,SAASA,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oS,GACnD,MAAMvL,EAAUjF,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAC1CI,EAAqB,GAI3B,MAHuB,iBAAZxS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBgR,EAAmBtR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UACxF,iBAAZxB,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBgR,EAAmBtR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UAC3GgR,EAAmBzQ,OAAS,GAAGL,EAAuBmF,EAAQrF,QAASgR,GACpE3L,CACR,MAED1E,OAAOC,eAAe0P,WAAY,WAAY,CAC7CxP,YAAY,EACZ4H,UAAU,EACV7H,MAAO,IAAIiP,MAAMM,SAAU,CAAE,SAAAL,CAAUC,EAAQxR,EAAMoS,GACpD,MAAMxK,EAAWhG,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAEjD,MADuB,iBAAZpS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBE,EAAuBkG,EAASpG,QAASqB,EAAgB7C,EAAK,GAAGwB,UACtHoG,CACR,KAEF,CA0zBE6K,GACAjS,KAAKkS,cAAcxR,MAAK,KACvB2L,EAAKmE,cAAgBC,EACrBpE,EAAKhL,IAAMqP,EACXrE,EAAKhG,QAAUsK,EACfjE,EAAMrL,IAAMuP,EACZlE,EAAMrG,QAAUwK,EA9zBbzP,QAAQC,IAAIiB,QAASxB,IAC1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAg0BA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as e,i as t,t as s,r as n,o}from"./fetchUtils-CoU35g3M.js";import{n as r}from"./getRawRequest-DnwmXyOW.js";import{t as i,i as a,r as u,a as c}from"./handleRequest-Y97UwBbF.js";import{n as h}from"./node-DwCc6iuP.js";import{Logger as p}from"../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js";import{invariant as l}from"../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.js";import f,{globalAgent as d,ServerResponse as m,IncomingMessage as g,STATUS_CODES as R}from"node:http";import y,{globalAgent as q}from"node:https";import w from"node:net";import{HTTPParser as b}from"_http_common";import{Readable as k}from"node:stream";import{URL as v,urlToHttpOptions as H,parse as S}from"node:url";import{Agent as O}from"http";function P(e){const t=[e[0],void 0,void 0];return"string"==typeof e[1]?t[1]=e[1]:"function"==typeof e[1]&&(t[2]=e[1]),"function"==typeof e[2]&&(t[2]=e[2]),t}var A=class extends w.Socket{constructor(e){super(),this.options=e,this.connecting=!1,this.connect(),this._final=e=>{e(null)}}connect(){return this.connecting=!0,this}write(...e){const[t,s,n]=P(e);return this.options.write(t,s,n),!0}end(...e){const[t,s,n]=P(e);return this.options.write(t,s,n),super.end.apply(this,e)}push(e,t){return this.options.read(e,t),super.push(e,t)}};const C=Symbol("kRawHeaders"),B=Symbol("kRestorePatches");function x(e,t,s){j(e,[]);const n=Reflect.get(e,C);if("set"===s)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===t[0].toLowerCase()&&n.splice(e,1);n.push(t)}function j(e,t){Reflect.has(e,C)||function(e,t){Object.defineProperty(e,C,{value:t,enumerable:!1,configurable:!0})}(e,t)}function L(e){if(!Reflect.has(e,C))return Array.from(e.entries());const t=Reflect.get(e,C);return t.length>0?t:Array.from(e.entries())}function _(e){return e instanceof Headers?Reflect.get(e,C)||[]:Reflect.get(new Headers(e),C)}function U(e,t){e._consumed&&e.unconsume(),e._headers=[],e._url="",e.socket=null,e.incoming=null,e.outgoing=null,e.maxHeaderPairs=2e3,e._consumed=!1,e.onIncoming=null,e[b.kOnHeaders]=null,e[b.kOnHeadersComplete]=null,e[b.kOnMessageBegin]=null,e[b.kOnMessageComplete]=null,e[b.kOnBody]=null,e[b.kOnExecute]=null,e[b.kOnTimeout]=null,e.remove(),e.free(),t&&(t.destroyed?t.parser=null:t.once("end",(()=>{t.parser=null})))}const E=Symbol("kRequestId");var T=class extends A{constructor(e){super({write:(e,t,s)=>{"passthrough"!==this.socketState&&this.writeBuffer.push([e,t,s]),e&&("passthrough"===this.socketState&&this.originalSocket?.write(e,t,s),this.requestParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e,t)))},read:e=>{null!==e&&this.responseParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e))}}),this.requestRawHeadersBuffer=[],this.responseRawHeadersBuffer=[],this.writeBuffer=[],this.socketState="unknown",this.onRequestHeaders=e=>{this.requestRawHeadersBuffer.push(...e)},this.onRequestStart=(e,t,i,a,u,c,p,l,f)=>{this.shouldKeepAlive=f;const d=new URL(u||"",this.baseUrl),m=this.connectionOptions.method?.toUpperCase()||"GET",g=s.parseRawHeaders([...this.requestRawHeadersBuffer,...i||[]]);this.requestRawHeadersBuffer.length=0;const R="GET"!==m&&"HEAD"!==m;(d.username||d.password)&&(g.has("authorization")||g.set("authorization",`Basic ${d.username}:${d.password}`),d.username="",d.password=""),this.requestStream=new k({read:()=>{this.flushWriteBuffer()}});const y=n();this.request=new Request(d,{method:m,headers:g,credentials:"same-origin",duplex:R?"half":void 0,body:R?k.toWeb(this.requestStream):null}),Reflect.set(this.request,E,y),r(this.request,Reflect.get(this,"_httpMessage")),h(this.request,this.requestStream),this.request.headers.has(o)?this.passthrough():this.onRequest({requestId:y,request:this.request,socket:this})},this.onResponseHeaders=e=>{this.responseRawHeadersBuffer.push(...e)},this.onResponseStart=(e,t,n,r,i,a,u)=>{const c=s.parseRawHeaders([...this.responseRawHeadersBuffer,...n||[]]);this.responseRawHeadersBuffer.length=0;const h=new s(s.isResponseWithBody(a)?k.toWeb(this.responseStream=new k({read(){}})):null,{url:i,status:a,statusText:u,headers:c});l(this.request,"Failed to handle a response: request does not exist"),s.setUrl(this.request.url,h),this.request.headers.has(o)||(this.responseListenersPromise=this.onResponse({response:h,isMockedResponse:"mock"===this.socketState,requestId:Reflect.get(this.request,E),request:this.request,socket:this}))},this.connectionOptions=e.connectionOptions,this.createConnection=e.createConnection,this.onRequest=e.onRequest,this.onResponse=e.onResponse,this.baseUrl=function(e){if("href"in e)return new URL(e.href);const t=443===e.port?"https:":"http:",s=e.host,n=new URL(`${t}//${s}`);if(e.port&&(n.port=e.port.toString()),e.path&&(n.pathname=e.path),e.auth){const[t,s]=e.auth.split(":");n.username=t,n.password=s}return n}(this.connectionOptions),this.requestParser=new b,this.requestParser.initialize(b.REQUEST,{}),this.requestParser[b.kOnHeaders]=this.onRequestHeaders.bind(this),this.requestParser[b.kOnHeadersComplete]=this.onRequestStart.bind(this),this.requestParser[b.kOnBody]=this.onRequestBody.bind(this),this.requestParser[b.kOnMessageComplete]=this.onRequestEnd.bind(this),this.responseParser=new b,this.responseParser.initialize(b.RESPONSE,{}),this.responseParser[b.kOnHeaders]=this.onResponseHeaders.bind(this),this.responseParser[b.kOnHeadersComplete]=this.onResponseStart.bind(this),this.responseParser[b.kOnBody]=this.onResponseBody.bind(this),this.responseParser[b.kOnMessageComplete]=this.onResponseEnd.bind(this),this.once("finish",(()=>U(this.requestParser,this))),"https:"===this.baseUrl.protocol&&(Reflect.set(this,"encrypted",!0),Reflect.set(this,"authorized",!1),Reflect.set(this,"getProtocol",(()=>"TLSv1.3")),Reflect.set(this,"getSession",(()=>{})),Reflect.set(this,"isSessionReused",(()=>!1)),Reflect.set(this,"getCipher",(()=>({name:"AES256-SHA",standardName:"TLS_RSA_WITH_AES_256_CBC_SHA",version:"TLSv1.3"}))))}emit(e,...t){const s=super.emit.bind(this,e,...t);return this.responseListenersPromise?(this.responseListenersPromise.finally(s),this.listenerCount(e)>0):s()}destroy(e){return U(this.responseParser,this),e&&this.emit("error",e),super.destroy(e)}passthrough(){if(this.socketState="passthrough",this.destroyed)return;const e=this.createConnection();let t;this.originalSocket=e,"_handle"in e&&Object.defineProperty(this,"_handle",{value:e._handle,enumerable:!0,writable:!0}),this.once("close",(()=>{e.removeAllListeners(),e.destroyed||e.destroy(),this.originalSocket=void 0})),this.address=e.address.bind(e);let s=!1;for(;t=this.writeBuffer.shift();)if(void 0!==t){if(!s){const[n,r,i]=t,a=n.toString(),u=a.slice(0,a.indexOf("\r\n")+2),c=a.slice(n.indexOf("\r\n\r\n")),h=`${u}${L(this.request.headers).filter((([e])=>e.toLowerCase()!==o)).map((([e,t])=>`${e}: ${t}`)).join("\r\n")}${c}`;e.write(h,r,i),s=!0;continue}e.write(...t)}Reflect.get(e,"encrypted")&&["encrypted","authorized","getProtocol","getSession","isSessionReused","getCipher"].forEach((t=>{Object.defineProperty(this,t,{enumerable:!0,get:()=>{const s=Reflect.get(e,t);return"function"==typeof s?s.bind(e):s}})})),e.on("lookup",((...e)=>this.emit("lookup",...e))).on("connect",(()=>{this.connecting=e.connecting,this.emit("connect")})).on("secureConnect",(()=>this.emit("secureConnect"))).on("secure",(()=>this.emit("secure"))).on("session",(e=>this.emit("session",e))).on("ready",(()=>this.emit("ready"))).on("drain",(()=>this.emit("drain"))).on("data",(e=>{this.push(e)})).on("error",(t=>{Reflect.set(this,"_hadError",Reflect.get(e,"_hadError")),this.emit("error",t)})).on("resume",(()=>this.emit("resume"))).on("timeout",(()=>this.emit("timeout"))).on("prefinish",(()=>this.emit("prefinish"))).on("finish",(()=>this.emit("finish"))).on("close",(e=>this.emit("close",e))).on("end",(()=>this.emit("end")))}async respondWith(e){if(this.destroyed)return;if(l("mock"!==this.socketState,'[MockHttpSocket] Failed to respond to the "%s %s" request with "%s %s": the request has already been handled',this.request?.method,this.request?.url,e.status,e.statusText),c(e,"type")&&"error"===e.type)return void this.errorWith(new TypeError("Network error"));this.mockConnect(),this.socketState="mock",this.flushWriteBuffer();const t=new m(new g(this));t.assignSocket(new A({write:(e,t,s)=>{this.push(e,t),s?.()},read(){}})),t.removeHeader("connection"),t.removeHeader("date");const s=L(e.headers);if(t.writeHead(e.status,e.statusText||R[e.status],s),this.once("error",(()=>{t.destroy()})),e.body)try{const s=e.body.getReader();for(;;){const{done:e,value:n}=await s.read();if(e){t.end();break}t.write(n)}}catch(e){if(e instanceof Error)return t.destroy(),void this.destroy();throw t.destroy(),e}else t.end();this.shouldKeepAlive||(this.emit("readable"),this.responseStream?.push(null),this.push(null))}errorWith(e){this.destroy(e)}mockConnect(){this.connecting=!1;const e=w.isIPv6(this.connectionOptions.hostname)||6===this.connectionOptions.family,t={address:e?"::1":"127.0.0.1",family:e?"IPv6":"IPv4",port:this.connectionOptions.port};this.address=()=>t,this.emit("lookup",null,t.address,"IPv6"===t.family?6:4,this.connectionOptions.host),this.emit("connect"),this.emit("ready"),"https:"===this.baseUrl.protocol&&(this.emit("secure"),this.emit("secureConnect"),this.emit("session",this.connectionOptions.session||Buffer.from("mock-session-renegotiate")),this.emit("session",Buffer.from("mock-session-resume")))}flushWriteBuffer(){for(const e of this.writeBuffer)"function"==typeof e[2]&&(e[2](),e[2]=void 0)}onRequestBody(e){l(this.requestStream,"Failed to write to a request stream: stream does not exist"),this.requestStream.push(e)}onRequestEnd(){this.requestStream&&this.requestStream.push(null)}onResponseBody(e){l(this.responseStream,"Failed to write to a response stream: stream does not exist"),this.responseStream.push(e)}onResponseEnd(){this.responseStream&&this.responseStream.push(null)}},$=class extends f.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof f.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof f.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},W=class extends y.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof f.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof f.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}};const I=new p("utils getUrlByRequestOptions");function M(e){return e.agent instanceof O?e.agent:void 0}function z(e){if(e.port)return Number(e.port);const t=M(e);return t?.options.port?Number(t.options.port):t?.defaultPort?Number(t.defaultPort):void 0}function F(e){if(I.info("request options",e),e.uri)return I.info('constructing url from explicitly provided "options.uri": %s',e.uri),new URL(e.uri.href);I.info("figuring out url from request options...");const t=function(e){if(e.protocol)return e.protocol;const t=M(e)?.protocol;if(t)return t;const s=z(e);return e.cert||443===s?"https:":e.uri?.protocol||"http:"}(e);I.info("protocol",t);const s=z(e);I.info("port",s);const n=function(e){let t=e.hostname||e.host;return t?(function(e){return e.includes(":")&&!e.startsWith("[")&&!e.endsWith("]")}(t)&&(t=`[${t}]`),new URL(`http://${t}`).hostname):"localhost"}(e);I.info("hostname",n);const o=e.path||"/";I.info("path",o);const r=function(e){if(e.auth){const[t,s]=e.auth.split(":");return{username:t,password:s}}}(e);I.info("credentials",r);const i=r?`${r.username}:${r.password}@`:"";I.info("auth string:",i);const a=new URL(`${t}//${n}${void 0!==s?`:${s}`:""}${o}`);return a.username=r?.username||"",a.password=r?.password||"",I.info("created url:",a),a}const N=new p("cloneObject");function D(e){return N.info("is plain object?",e),null!=e&&e.constructor?.name?(N.info("checking the object constructor:",e.constructor.name),"Object"===e.constructor.name):(N.info("given object is undefined, not a plain object..."),!1)}function G(e){N.info("cloning object:",e);const t=Object.entries(e).reduce(((e,[t,s])=>(N.info("analyzing key-value pair:",t,s),e[t]=D(s)?G(s):s,e)),{});return D(e)?t:Object.assign(Object.getPrototypeOf(e),t)}const K=new p("http normalizeClientRequestArgs");function Q(e,t){if(void 0===e[1]||"function"==typeof e[1])return K.info("request options not provided, deriving from the url",t),H(t);if(e[1]){K.info("has custom RequestOptions!",e[1]);const s=H(t);K.info("derived RequestOptions from the URL:",s),K.info("cloning RequestOptions...");const n=G(e[1]);return K.info("successfully cloned RequestOptions!",n),{...s,...n}}return K.info("using an empty object as request options"),{}}function X(e){return"function"==typeof e[1]?e[1]:e[2]}function Y(e,t){let s,n,o;if(K.info("arguments",t),K.info("using default protocol:",e),0===t.length){const e=new v("http://localhost");return[e,Q(t,e)]}if("string"==typeof t[0]){K.info("first argument is a location string:",t[0]),s=new v(t[0]),K.info("created a url:",s);const e=H(s);K.info("request options from url:",e),n=Q(t,s),K.info("resolved request options:",n),o=X(t)}else if(t[0]instanceof v)s=t[0],K.info("first argument is a URL:",s),void 0!==t[1]&&u(t[1])&&(s=function(e,t){if(e.host=t.host||e.host,e.hostname=t.hostname||e.hostname,e.port=t.port?t.port.toString():e.port,t.path){const s=S(t.path,!1);e.pathname=s.pathname||"",e.search=s.search||""}return e}(s,t[1])),n=Q(t,s),K.info("derived request options:",n),o=X(t);else{if("hash"in t[0]&&!("method"in t[0])){const[s]=t;if(K.info("first argument is a legacy URL:",s),null===s.hostname)return K.info("given legacy URL is relative (no hostname)"),u(t[1])?Y(e,[{path:s.path,...t[1]},t[2]]):Y(e,[{path:s.path},t[1]]);K.info("given legacy url is absolute");const n=new v(s.href);return void 0===t[1]?Y(e,[n]):"function"==typeof t[1]?Y(e,[n,t[1]]):Y(e,[n,t[1],t[2]])}if(!u(t[0]))throw new Error(`Failed to construct ClientRequest with these parameters: ${t}`);n={...t[0]},K.info("first argument is RequestOptions:",n),n.protocol=n.protocol||e,K.info("normalized request options:",n),s=F(n),K.info("created a URL from RequestOptions:",s.href),o=X(t)}return n.protocol=n.protocol||s.protocol,n.method=n.method||"GET",n._defaultAgent||(K.info('has no default agent, setting the default agent for "%s"',n.protocol),n._defaultAgent="https:"===n.protocol?q:d),K.info("successfully resolved url:",s.href),K.info("successfully resolved options:",n),K.info("successfully resolved callback:",o),s instanceof v||(s=s.toString()),[s,n,o]}var J=class s extends e{static{this.symbol=Symbol("client-request-interceptor")}constructor(){super(s.symbol),this.onRequest=async({request:e,socket:s})=>{const n=new t(e,{passthrough(){s.passthrough()},async respondWith(e){await s.respondWith(e)},errorWith(e){e instanceof Error&&s.errorWith(e)}});await i({request:e,requestId:Reflect.get(e,E),controller:n,emitter:this.emitter})},this.onResponse=async({requestId:e,request:t,response:s,isMockedResponse:n})=>a(this.emitter,"response",{requestId:e,request:t,response:s,isMockedResponse:n})}setup(){const{ClientRequest:e,get:t,request:s}=f,{get:n,request:o}=y,r=this.onRequest.bind(this),i=this.onResponse.bind(this);f.ClientRequest=new Proxy(f.ClientRequest,{construct:(e,t)=>{const[s,n,o]=Y("http:",t);return n.agent=new("https:"===n.protocol?W:$)({customAgent:n.agent,onRequest:r,onResponse:i}),Reflect.construct(e,[s,n,o])}}),f.request=new Proxy(f.request,{apply:(e,t,s)=>{const[n,o,a]=Y("http:",s);return o.agent=new $({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),f.get=new Proxy(f.get,{apply:(e,t,s)=>{const[n,o,a]=Y("http:",s);return o.agent=new $({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),y.request=new Proxy(y.request,{apply:(e,t,s)=>{const[n,o,a]=Y("https:",s);return o.agent=new W({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),y.get=new Proxy(y.get,{apply:(e,t,s)=>{const[n,o,a]=Y("https:",s);return o.agent=new W({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),function(){if(Reflect.get(Headers,B))return Reflect.get(Headers,B);const{Headers:e,Request:t,Response:s}=globalThis,{set:n,append:o,delete:r}=Headers.prototype;Object.defineProperty(Headers,B,{value:()=>{Headers.prototype.set=n,Headers.prototype.append=o,Headers.prototype.delete=r,globalThis.Headers=e,globalThis.Request=t,globalThis.Response=s,Reflect.deleteProperty(Headers,B)},enumerable:!1,configurable:!0}),Object.defineProperty(globalThis,"Headers",{enumerable:!0,writable:!0,value:new Proxy(Headers,{construct(e,t,s){const n=t[0]||[];if(n instanceof Headers&&Reflect.has(n,C)){const t=Reflect.construct(e,[Reflect.get(n,C)],s);return j(t,[...Reflect.get(n,C)]),t}const o=Reflect.construct(e,t,s);return Reflect.has(o,C)||j(o,Array.isArray(n)?n:Object.entries(n)),o}})}),Headers.prototype.set=new Proxy(Headers.prototype.set,{apply:(e,t,s)=>(x(t,s,"set"),Reflect.apply(e,t,s))}),Headers.prototype.append=new Proxy(Headers.prototype.append,{apply:(e,t,s)=>(x(t,s,"append"),Reflect.apply(e,t,s))}),Headers.prototype.delete=new Proxy(Headers.prototype.delete,{apply(e,t,s){const n=Reflect.get(t,C);if(n)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===s[0].toLowerCase()&&n.splice(e,1);return Reflect.apply(e,t,s)}}),Object.defineProperty(globalThis,"Request",{enumerable:!0,writable:!0,value:new Proxy(Request,{construct(e,t,s){const n=Reflect.construct(e,t,s),o=[];return"object"==typeof t[0]&&null!=t[0].headers&&o.push(..._(t[0].headers)),"object"==typeof t[1]&&null!=t[1].headers&&o.push(..._(t[1].headers)),o.length>0&&j(n.headers,o),n}})}),Object.defineProperty(globalThis,"Response",{enumerable:!0,writable:!0,value:new Proxy(Response,{construct(e,t,s){const n=Reflect.construct(e,t,s);return"object"==typeof t[1]&&null!=t[1].headers&&j(n.headers,_(t[1].headers)),n}})})}(),this.subscriptions.push((()=>{f.ClientRequest=e,f.get=t,f.request=s,y.get=n,y.request=o,Reflect.get(Headers,B)&&Reflect.get(Headers,B)()}))}};export{J as t};
|
|
2
|
+
//# sourceMappingURL=ClientRequest-Ca8Qykuv.js.map
|