@flipdish/portal-library 8.3.0 → 8.4.1
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 +1 -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/FileUpload/components/FileDropZone.cjs.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
- package/dist/mocks/msw/handlers.cjs.js +1 -1
- package/dist/mocks/msw/handlers.d.ts +1 -1
- package/dist/mocks/msw/handlers.js +1 -1
- package/dist/mocks/msw/server.cjs.js +1 -1
- package/dist/mocks/msw/server.d.ts +1 -1
- package/dist/mocks/msw/server.js +1 -1
- package/dist/node_modules/.pnpm/@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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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 +3 -2
- 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.30_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.30_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.30_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.30_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_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
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { Logger } from '../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.d.js';
|
|
2
|
-
import { Emitter, Listener } from '../../../../../../strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.d.js';
|
|
3
|
-
|
|
4
|
-
interface RequestControllerSource {
|
|
5
|
-
passthrough(): void;
|
|
6
|
-
respondWith(response: Response): void;
|
|
7
|
-
errorWith(reason?: unknown): void;
|
|
8
|
-
}
|
|
9
|
-
declare class RequestController {
|
|
10
|
-
#private;
|
|
11
|
-
protected readonly request: Request;
|
|
12
|
-
protected readonly source: RequestControllerSource;
|
|
13
|
-
static PENDING: 0;
|
|
14
|
-
static PASSTHROUGH: 1;
|
|
15
|
-
static RESPONSE: 2;
|
|
16
|
-
static ERROR: 3;
|
|
17
|
-
readyState: number;
|
|
18
|
-
/**
|
|
19
|
-
* A Promise that resolves when this controller handles a request.
|
|
20
|
-
* See `controller.readyState` for more information on the handling result.
|
|
21
|
-
*/
|
|
22
|
-
handled: Promise<void>;
|
|
23
|
-
constructor(request: Request, source: RequestControllerSource);
|
|
24
|
-
/**
|
|
25
|
-
* Perform this request as-is.
|
|
26
|
-
*/
|
|
27
|
-
passthrough(): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Respond to this request with the given `Response` instance.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* controller.respondWith(new Response())
|
|
33
|
-
* controller.respondWith(Response.json({ id }))
|
|
34
|
-
* controller.respondWith(Response.error())
|
|
35
|
-
*/
|
|
36
|
-
respondWith(response: Response): void;
|
|
37
|
-
/**
|
|
38
|
-
* Error this request with the given reason.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* controller.errorWith()
|
|
42
|
-
* controller.errorWith(new Error('Oops!'))
|
|
43
|
-
* controller.errorWith({ message: 'Oops!'})
|
|
44
|
-
*/
|
|
45
|
-
errorWith(reason?: unknown): void;
|
|
46
|
-
}
|
|
47
|
-
type HttpRequestEventMap = {
|
|
48
|
-
request: [
|
|
49
|
-
args: {
|
|
50
|
-
request: Request;
|
|
51
|
-
requestId: string;
|
|
52
|
-
controller: RequestController;
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
response: [
|
|
56
|
-
args: {
|
|
57
|
-
response: Response;
|
|
58
|
-
isMockedResponse: boolean;
|
|
59
|
-
request: Request;
|
|
60
|
-
requestId: string;
|
|
61
|
-
}
|
|
62
|
-
];
|
|
63
|
-
unhandledException: [
|
|
64
|
-
args: {
|
|
65
|
-
error: unknown;
|
|
66
|
-
request: Request;
|
|
67
|
-
requestId: string;
|
|
68
|
-
controller: RequestController;
|
|
69
|
-
}
|
|
70
|
-
];
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
type InterceptorEventMap = Record<string, any>;
|
|
74
|
-
type InterceptorSubscription = () => void;
|
|
75
|
-
declare enum InterceptorReadyState {
|
|
76
|
-
INACTIVE = "INACTIVE",
|
|
77
|
-
APPLYING = "APPLYING",
|
|
78
|
-
APPLIED = "APPLIED",
|
|
79
|
-
DISPOSING = "DISPOSING",
|
|
80
|
-
DISPOSED = "DISPOSED"
|
|
81
|
-
}
|
|
82
|
-
type ExtractEventNames<Events extends Record<string, any>> = Events extends Record<infer EventName, any> ? EventName : never;
|
|
83
|
-
declare class Interceptor<Events extends InterceptorEventMap> {
|
|
84
|
-
private readonly symbol;
|
|
85
|
-
protected emitter: Emitter<Events>;
|
|
86
|
-
protected subscriptions: Array<InterceptorSubscription>;
|
|
87
|
-
protected logger: Logger;
|
|
88
|
-
readyState: InterceptorReadyState;
|
|
89
|
-
constructor(symbol: symbol);
|
|
90
|
-
/**
|
|
91
|
-
* Determine if this interceptor can be applied
|
|
92
|
-
* in the current environment.
|
|
93
|
-
*/
|
|
94
|
-
protected checkEnvironment(): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Apply this interceptor to the current process.
|
|
97
|
-
* Returns an already running interceptor instance if it's present.
|
|
98
|
-
*/
|
|
99
|
-
apply(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Setup the module augments and stubs necessary for this interceptor.
|
|
102
|
-
* This method is not run if there's a running interceptor instance
|
|
103
|
-
* to prevent instantiating an interceptor multiple times.
|
|
104
|
-
*/
|
|
105
|
-
protected setup(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Listen to the interceptor's public events.
|
|
108
|
-
*/
|
|
109
|
-
on<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
110
|
-
once<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
111
|
-
off<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
|
|
112
|
-
removeAllListeners<EventName extends ExtractEventNames<Events>>(event?: EventName): this;
|
|
113
|
-
/**
|
|
114
|
-
* Disposes of any side-effects this interceptor has introduced.
|
|
115
|
-
*/
|
|
116
|
-
dispose(): void;
|
|
117
|
-
private getInstance;
|
|
118
|
-
private setInstance;
|
|
119
|
-
private clearInstance;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export { RequestController as R, InterceptorReadyState as h, Interceptor as i };
|
|
123
|
-
export type { ExtractEventNames as E, HttpRequestEventMap as H, RequestControllerSource as a, InterceptorEventMap as c, InterceptorSubscription as d };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-GKN5RBVR.cjs.js"),t=require("./chunk-R6T7CL5E.cjs.js"),s=require("./chunk-JXGB54LE.cjs.js"),n=require("./chunk-YWNGXXUQ.cjs.js"),o=require("http"),r=require("https"),i=require("net"),a=require("_http_common"),u=require("stream"),c=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js"),h=require("url"),p=require("../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.cjs.js");function l(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 d=class extends i.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]=l(e);return this.options.write(t,s,n),!0}end(...e){const[t,s,n]=l(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)}};var f=Symbol("kRawHeaders"),R=Symbol("kRestorePatches");function m(e,t,s){g(e,[]);const n=Reflect.get(e,f);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 g(e,t){Reflect.has(e,f)||function(e,t){Object.defineProperty(e,f,{value:t,enumerable:!1,configurable:!0})}(e,t)}function q(e){if(!Reflect.has(e,f))return Array.from(e.entries());const t=Reflect.get(e,f);return t.length>0?t:Array.from(e.entries())}function y(e){return e instanceof Headers?Reflect.get(e,f)||[]:Reflect.get(new Headers(e),f)}var w=Symbol("kRequestId"),b=class extends d{constructor(t){super({write:(e,t,s)=>{var n;"passthrough"!==this.socketState&&this.writeBuffer.push([e,t,s]),e&&("passthrough"===this.socketState&&(null==(n=this.originalSocket)||n.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=(t,o,r,i,a,c,h,p,l)=>{var d;this.shouldKeepAlive=l;const f=new URL(a||"",this.baseUrl),R=(null==(d=this.connectionOptions.method)?void 0:d.toUpperCase())||"GET",m=s.FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer,...r||[]]);this.requestRawHeadersBuffer.length=0;const g="GET"!==R&&"HEAD"!==R;(f.username||f.password)&&(m.has("authorization")||m.set("authorization",`Basic ${f.username}:${f.password}`),f.username="",f.password=""),this.requestStream=new u.Readable({read:()=>{this.flushWriteBuffer()}});const q=s.createRequestId();this.request=new Request(f,{method:R,headers:m,credentials:"same-origin",duplex:g?"half":void 0,body:g?u.Readable.toWeb(this.requestStream):null}),Reflect.set(this.request,w,q),n.setRawRequest(this.request,Reflect.get(this,"_httpMessage")),e.setRawRequestBodyStream(this.request,this.requestStream),this.request.headers.has(s.INTERNAL_REQUEST_ID_HEADER_NAME)?this.passthrough():this.onRequest({requestId:q,request:this.request,socket:this})},this.onResponseHeaders=e=>{this.responseRawHeadersBuffer.push(...e)},this.onResponseStart=(e,t,n,o,r,i,a)=>{const h=s.FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer,...n||[]]);this.responseRawHeadersBuffer.length=0;const p=new s.FetchResponse(s.FetchResponse.isResponseWithBody(i)?u.Readable.toWeb(this.responseStream=new u.Readable({read(){}})):null,{url:r,status:i,statusText:a,headers:h});c.invariant(this.request,"Failed to handle a response: request does not exist"),s.FetchResponse.setUrl(this.request.url,p),this.request.headers.has(s.INTERNAL_REQUEST_ID_HEADER_NAME)||(this.responseListenersPromise=this.onResponse({response:p,isMockedResponse:"mock"===this.socketState,requestId:Reflect.get(this.request,w),request:this.request,socket:this}))},this.connectionOptions=t.connectionOptions,this.createConnection=t.createConnection,this.onRequest=t.onRequest,this.onResponse=t.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 a.HTTPParser,this.requestParser.initialize(a.HTTPParser.REQUEST,{}),this.requestParser[a.HTTPParser.kOnHeaders]=this.onRequestHeaders.bind(this),this.requestParser[a.HTTPParser.kOnHeadersComplete]=this.onRequestStart.bind(this),this.requestParser[a.HTTPParser.kOnBody]=this.onRequestBody.bind(this),this.requestParser[a.HTTPParser.kOnMessageComplete]=this.onRequestEnd.bind(this),this.responseParser=new a.HTTPParser,this.responseParser.initialize(a.HTTPParser.RESPONSE,{}),this.responseParser[a.HTTPParser.kOnHeaders]=this.onResponseHeaders.bind(this),this.responseParser[a.HTTPParser.kOnHeadersComplete]=this.onResponseStart.bind(this),this.responseParser[a.HTTPParser.kOnBody]=this.onResponseBody.bind(this),this.responseParser[a.HTTPParser.kOnMessageComplete]=this.onResponseEnd.bind(this),this.once("finish",(()=>this.requestParser.free())),"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 this.responseParser.free(),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("error",(t=>{e.destroy(t)})),this.address=e.address.bind(e);let n=!1;for(;t=this.writeBuffer.shift();)if(void 0!==t){if(!n){const[o,r,i]=t,a=o.toString(),u=a.slice(0,a.indexOf("\r\n")+2),c=a.slice(o.indexOf("\r\n\r\n")),h=`${u}${q(this.request.headers).filter((([e])=>e.toLowerCase()!==s.INTERNAL_REQUEST_ID_HEADER_NAME)).map((([e,t])=>`${e}: ${t}`)).join("\r\n")}${c}`;e.write(h,r,i),n=!0;continue}e.write(...t)}if(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){var s,n,r;if(this.destroyed)return;if(c.invariant("mock"!==this.socketState,'[MockHttpSocket] Failed to respond to the "%s %s" request with "%s %s": the request has already been handled',null==(s=this.request)?void 0:s.method,null==(n=this.request)?void 0:n.url,e.status,e.statusText),t.isPropertyAccessible(e,"type")&&"error"===e.type)return void this.errorWith(new TypeError("Network error"));this.mockConnect(),this.socketState="mock",this.flushWriteBuffer();const i=new o.ServerResponse(new o.IncomingMessage(this));i.assignSocket(new d({write:(e,t,s)=>{this.push(e,t),null==s||s()},read(){}})),i.removeHeader("connection"),i.removeHeader("date");const a=q(e.headers);if(i.writeHead(e.status,e.statusText||o.STATUS_CODES[e.status],a),this.once("error",(()=>{i.destroy()})),e.body)try{const t=e.body.getReader();for(;;){const{done:e,value:s}=await t.read();if(e){i.end();break}i.write(s)}}catch(e){if(e instanceof Error)return i.destroy(),void this.destroy();throw i.destroy(),e}else i.end();this.shouldKeepAlive||(this.emit("readable"),null==(r=this.responseStream)||r.push(null),this.push(null))}errorWith(e){this.destroy(e)}mockConnect(){this.connecting=!1;const e=i.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){c.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){c.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)}},v=class extends o.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof o.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof o.Agent?{...e,...this.customAgent.options}:e;return new b({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},P=class extends r.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof o.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof o.Agent?{...e,...this.customAgent.options}:e;return new b({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},H=new p.Logger("utils getUrlByRequestOptions");function S(e){return e.agent instanceof o.Agent?e.agent:void 0}function A(e){if(e.port)return Number(e.port);const t=S(e);return(null==t?void 0:t.options.port)?Number(t.options.port):(null==t?void 0:t.defaultPort)?Number(t.defaultPort):void 0}function T(e){if(H.info("request options",e),e.uri)return H.info('constructing url from explicitly provided "options.uri": %s',e.uri),new URL(e.uri.href);H.info("figuring out url from request options...");const t=function(e){var t;if(e.protocol)return e.protocol;const s=S(e),n=null==s?void 0:s.protocol;if(n)return n;const o=A(e);return e.cert||443===o?"https:":(null==(t=e.uri)?void 0:t.protocol)||"http:"}(e);H.info("protocol",t);const s=A(e);H.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);H.info("hostname",n);const o=e.path||"/";H.info("path",o);const r=function(e){if(e.auth){const[t,s]=e.auth.split(":");return{username:t,password:s}}}(e);H.info("credentials",r);const i=r?`${r.username}:${r.password}@`:"";H.info("auth string:",i);const a=new URL(`${t}//${n}${void 0!==s?`:${s}`:""}${o}`);return a.username=(null==r?void 0:r.username)||"",a.password=(null==r?void 0:r.password)||"",H.info("created url:",a),a}var k=new p.Logger("cloneObject");function O(e){var t;return k.info("is plain object?",e),null!=e&&(null==(t=e.constructor)?void 0:t.name)?(k.info("checking the object constructor:",e.constructor.name),"Object"===e.constructor.name):(k.info("given object is undefined, not a plain object..."),!1)}function E(e){k.info("cloning object:",e);const t=Object.entries(e).reduce(((e,[t,s])=>(k.info("analyzing key-value pair:",t,s),e[t]=O(s)?E(s):s,e)),{});return O(e)?t:Object.assign(Object.getPrototypeOf(e),t)}var C=new p.Logger("http normalizeClientRequestArgs");function j(e,t){if(void 0===e[1]||"function"==typeof e[1])return C.info("request options not provided, deriving from the url",t),h.urlToHttpOptions(t);if(e[1]){C.info("has custom RequestOptions!",e[1]);const s=h.urlToHttpOptions(t);C.info("derived RequestOptions from the URL:",s),C.info("cloning RequestOptions...");const n=E(e[1]);return C.info("successfully cloned RequestOptions!",n),{...s,...n}}return C.info("using an empty object as request options"),{}}function B(e){return"function"==typeof e[1]?e[1]:e[2]}function L(e,s){let n,i,a;if(C.info("arguments",s),C.info("using default protocol:",e),0===s.length){const e=new h.URL("http://localhost");return[e,j(s,e)]}if("string"==typeof s[0]){C.info("first argument is a location string:",s[0]),n=new h.URL(s[0]),C.info("created a url:",n);const e=h.urlToHttpOptions(n);C.info("request options from url:",e),i=j(s,n),C.info("resolved request options:",i),a=B(s)}else if(s[0]instanceof h.URL)n=s[0],C.info("first argument is a URL:",n),void 0!==s[1]&&t.isObject(s[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=h.parse(t.path,!1);e.pathname=s.pathname||"",e.search=s.search||""}return e}(n,s[1])),i=j(s,n),C.info("derived request options:",i),a=B(s);else{if("hash"in s[0]&&!("method"in s[0])){const[n]=s;if(C.info("first argument is a legacy URL:",n),null===n.hostname)return C.info("given legacy URL is relative (no hostname)"),t.isObject(s[1])?L(e,[{path:n.path,...s[1]},s[2]]):L(e,[{path:n.path},s[1]]);C.info("given legacy url is absolute");const o=new h.URL(n.href);return void 0===s[1]?L(e,[o]):"function"==typeof s[1]?L(e,[o,s[1]]):L(e,[o,s[1],s[2]])}if(!t.isObject(s[0]))throw new Error(`Failed to construct ClientRequest with these parameters: ${s}`);i={...s[0]},C.info("first argument is RequestOptions:",i),i.protocol=i.protocol||e,C.info("normalized request options:",i),n=T(i),C.info("created a URL from RequestOptions:",n.href),a=B(s)}return i.protocol=i.protocol||n.protocol,i.method=i.method||"GET",i._defaultAgent||(C.info('has no default agent, setting the default agent for "%s"',i.protocol),i._defaultAgent="https:"===i.protocol?r.globalAgent:o.globalAgent),C.info("successfully resolved url:",n.href),C.info("successfully resolved options:",i),C.info("successfully resolved callback:",a),n instanceof h.URL||(n=n.toString()),[n,i,a]}var _=class extends s.Interceptor{constructor(){super(_.symbol),this.onRequest=async({request:e,socket:n})=>{const o=new s.RequestController(e,{passthrough(){n.passthrough()},async respondWith(e){await n.respondWith(e)},errorWith(e){e instanceof Error&&n.errorWith(e)}});await t.handleRequest({request:e,requestId:Reflect.get(e,w),controller:o,emitter:this.emitter})},this.onResponse=async({requestId:e,request:s,response:n,isMockedResponse:o})=>t.emitAsync(this.emitter,"response",{requestId:e,request:s,response:n,isMockedResponse:o})}setup(){const{ClientRequest:e,get:t,request:s}=o,{get:n,request:i}=r,a=this.onRequest.bind(this),u=this.onResponse.bind(this);o.ClientRequest=new Proxy(o.ClientRequest,{construct:(e,t)=>{const[s,n,o]=L("http:",t),r=new("https:"===n.protocol?P:v)({customAgent:n.agent,onRequest:a,onResponse:u});return n.agent=r,Reflect.construct(e,[s,n,o])}}),o.request=new Proxy(o.request,{apply:(e,t,s)=>{const[n,o,r]=L("http:",s),i=new v({customAgent:o.agent,onRequest:a,onResponse:u});return o.agent=i,Reflect.apply(e,t,[n,o,r])}}),o.get=new Proxy(o.get,{apply:(e,t,s)=>{const[n,o,r]=L("http:",s),i=new v({customAgent:o.agent,onRequest:a,onResponse:u});return o.agent=i,Reflect.apply(e,t,[n,o,r])}}),r.request=new Proxy(r.request,{apply:(e,t,s)=>{const[n,o,r]=L("https:",s),i=new P({customAgent:o.agent,onRequest:a,onResponse:u});return o.agent=i,Reflect.apply(e,t,[n,o,r])}}),r.get=new Proxy(r.get,{apply:(e,t,s)=>{const[n,o,r]=L("https:",s),i=new P({customAgent:o.agent,onRequest:a,onResponse:u});return o.agent=i,Reflect.apply(e,t,[n,o,r])}}),function(){if(Reflect.get(Headers,R))return Reflect.get(Headers,R);const{Headers:e,Request:t,Response:s}=globalThis,{set:n,append:o,delete:r}=Headers.prototype;Object.defineProperty(Headers,R,{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,R)},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,f)){const t=Reflect.construct(e,[Reflect.get(n,f)],s);return g(t,[...Reflect.get(n,f)]),t}const o=Reflect.construct(e,t,s);return Reflect.has(o,f)||g(o,Array.isArray(n)?n:Object.entries(n)),o}})}),Headers.prototype.set=new Proxy(Headers.prototype.set,{apply:(e,t,s)=>(m(t,s,"set"),Reflect.apply(e,t,s))}),Headers.prototype.append=new Proxy(Headers.prototype.append,{apply:(e,t,s)=>(m(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,f);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(...y(t[0].headers)),"object"==typeof t[1]&&null!=t[1].headers&&o.push(...y(t[1].headers)),o.length>0&&g(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&&g(n.headers,y(t[1].headers)),n}})})}(),this.subscriptions.push((()=>{o.ClientRequest=e,o.get=t,o.request=s,r.get=n,r.request=i,Reflect.get(Headers,R)&&Reflect.get(Headers,R)()}))}},x=_;x.symbol=Symbol("client-request-interceptor"),exports.ClientRequestInterceptor=x;
|
|
2
|
-
//# sourceMappingURL=chunk-5UGIB6OX.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-5UGIB6OX.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.mjs"],"sourcesContent":["import {\n setRawRequestBodyStream\n} from \"./chunk-GKN5RBVR.mjs\";\nimport {\n emitAsync,\n handleRequest,\n isObject,\n isPropertyAccessible\n} from \"./chunk-R6T7CL5E.mjs\";\nimport {\n FetchResponse,\n INTERNAL_REQUEST_ID_HEADER_NAME,\n Interceptor,\n RequestController,\n createRequestId\n} from \"./chunk-JXGB54LE.mjs\";\nimport {\n setRawRequest\n} from \"./chunk-YWNGXXUQ.mjs\";\n\n// src/interceptors/ClientRequest/index.ts\nimport http2 from \"http\";\nimport https2 from \"https\";\n\n// src/interceptors/ClientRequest/MockHttpSocket.ts\nimport net2 from \"net\";\nimport {\n HTTPParser\n} from \"_http_common\";\nimport { STATUS_CODES, IncomingMessage, ServerResponse } from \"http\";\nimport { Readable } from \"stream\";\nimport { invariant } from \"outvariant\";\n\n// src/interceptors/Socket/MockSocket.ts\nimport net from \"net\";\n\n// src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\nfunction normalizeSocketWriteArgs(args) {\n const normalized = [args[0], void 0, void 0];\n if (typeof args[1] === \"string\") {\n normalized[1] = args[1];\n } else if (typeof args[1] === \"function\") {\n normalized[2] = args[1];\n }\n if (typeof args[2] === \"function\") {\n normalized[2] = args[2];\n }\n return normalized;\n}\n\n// src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n constructor(options) {\n super();\n this.options = options;\n this.connecting = false;\n this.connect();\n this._final = (callback) => {\n callback(null);\n };\n }\n connect() {\n this.connecting = true;\n return this;\n }\n write(...args) {\n const [chunk, encoding, callback] = normalizeSocketWriteArgs(\n args\n );\n this.options.write(chunk, encoding, callback);\n return true;\n }\n end(...args) {\n const [chunk, encoding, callback] = normalizeSocketWriteArgs(\n args\n );\n this.options.write(chunk, encoding, callback);\n return super.end.apply(this, args);\n }\n push(chunk, encoding) {\n this.options.read(chunk, encoding);\n return super.push(chunk, encoding);\n }\n};\n\n// src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n if (\"href\" in options) {\n return new URL(options.href);\n }\n const protocol = options.port === 443 ? \"https:\" : \"http:\";\n const host = options.host;\n const url = new URL(`${protocol}//${host}`);\n if (options.port) {\n url.port = options.port.toString();\n }\n if (options.path) {\n url.pathname = options.path;\n }\n if (options.auth) {\n const [username, password] = options.auth.split(\":\");\n url.username = username;\n url.password = password;\n }\n return url;\n}\n\n// src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nvar kRawHeaders = Symbol(\"kRawHeaders\");\nvar kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n ensureRawHeadersSymbol(headers, []);\n const rawHeaders = Reflect.get(headers, kRawHeaders);\n if (behavior === \"set\") {\n for (let index = rawHeaders.length - 1; index >= 0; index--) {\n if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) {\n rawHeaders.splice(index, 1);\n }\n }\n }\n rawHeaders.push(args);\n}\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n if (Reflect.has(headers, kRawHeaders)) {\n return;\n }\n defineRawHeadersSymbol(headers, rawHeaders);\n}\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n Object.defineProperty(headers, kRawHeaders, {\n value: rawHeaders,\n enumerable: false,\n // Mark the symbol as configurable so its value can be overridden.\n // Overrides happen when merging raw headers from multiple sources.\n // E.g. new Request(new Request(url, { headers }), { headers })\n configurable: true\n });\n}\nfunction recordRawFetchHeaders() {\n if (Reflect.get(Headers, kRestorePatches)) {\n return Reflect.get(Headers, kRestorePatches);\n }\n const {\n Headers: OriginalHeaders,\n Request: OriginalRequest,\n Response: OriginalResponse\n } = globalThis;\n const { set, append, delete: headersDeleteMethod } = Headers.prototype;\n Object.defineProperty(Headers, kRestorePatches, {\n value: () => {\n Headers.prototype.set = set;\n Headers.prototype.append = append;\n Headers.prototype.delete = headersDeleteMethod;\n globalThis.Headers = OriginalHeaders;\n globalThis.Request = OriginalRequest;\n globalThis.Response = OriginalResponse;\n Reflect.deleteProperty(Headers, kRestorePatches);\n },\n enumerable: false,\n /**\n * @note Mark this property as configurable\n * so we can delete it using `Reflect.delete` during cleanup.\n */\n configurable: true\n });\n Object.defineProperty(globalThis, \"Headers\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Headers, {\n construct(target, args, newTarget) {\n const headersInit = args[0] || [];\n if (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n const headers2 = Reflect.construct(\n target,\n [Reflect.get(headersInit, kRawHeaders)],\n newTarget\n );\n ensureRawHeadersSymbol(headers2, [\n /**\n * @note Spread the retrieved headers to clone them.\n * This prevents multiple Headers instances from pointing\n * at the same internal \"rawHeaders\" array.\n */\n ...Reflect.get(headersInit, kRawHeaders)\n ]);\n return headers2;\n }\n const headers = Reflect.construct(target, args, newTarget);\n if (!Reflect.has(headers, kRawHeaders)) {\n const rawHeadersInit = Array.isArray(headersInit) ? headersInit : Object.entries(headersInit);\n ensureRawHeadersSymbol(headers, rawHeadersInit);\n }\n return headers;\n }\n })\n });\n Headers.prototype.set = new Proxy(Headers.prototype.set, {\n apply(target, thisArg, args) {\n recordRawHeader(thisArg, args, \"set\");\n return Reflect.apply(target, thisArg, args);\n }\n });\n Headers.prototype.append = new Proxy(Headers.prototype.append, {\n apply(target, thisArg, args) {\n recordRawHeader(thisArg, args, \"append\");\n return Reflect.apply(target, thisArg, args);\n }\n });\n Headers.prototype.delete = new Proxy(Headers.prototype.delete, {\n apply(target, thisArg, args) {\n const rawHeaders = Reflect.get(thisArg, kRawHeaders);\n if (rawHeaders) {\n for (let index = rawHeaders.length - 1; index >= 0; index--) {\n if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) {\n rawHeaders.splice(index, 1);\n }\n }\n }\n return Reflect.apply(target, thisArg, args);\n }\n });\n Object.defineProperty(globalThis, \"Request\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Request, {\n construct(target, args, newTarget) {\n const request = Reflect.construct(target, args, newTarget);\n const inferredRawHeaders = [];\n if (typeof args[0] === \"object\" && args[0].headers != null) {\n inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n }\n if (typeof args[1] === \"object\" && args[1].headers != null) {\n inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n }\n if (inferredRawHeaders.length > 0) {\n ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n }\n return request;\n }\n })\n });\n Object.defineProperty(globalThis, \"Response\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Response, {\n construct(target, args, newTarget) {\n const response = Reflect.construct(target, args, newTarget);\n if (typeof args[1] === \"object\" && args[1].headers != null) {\n ensureRawHeadersSymbol(\n response.headers,\n inferRawHeaders(args[1].headers)\n );\n }\n return response;\n }\n })\n });\n}\nfunction restoreHeadersPrototype() {\n if (!Reflect.get(Headers, kRestorePatches)) {\n return;\n }\n Reflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n if (!Reflect.has(headers, kRawHeaders)) {\n return Array.from(headers.entries());\n }\n const rawHeaders = Reflect.get(headers, kRawHeaders);\n return rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\nfunction inferRawHeaders(headers) {\n if (headers instanceof Headers) {\n return Reflect.get(headers, kRawHeaders) || [];\n }\n return Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n// src/interceptors/ClientRequest/MockHttpSocket.ts\nvar kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n constructor(options) {\n super({\n write: (chunk, encoding, callback) => {\n var _a;\n if (this.socketState !== \"passthrough\") {\n this.writeBuffer.push([chunk, encoding, callback]);\n }\n if (chunk) {\n if (this.socketState === \"passthrough\") {\n (_a = this.originalSocket) == null ? void 0 : _a.write(chunk, encoding, callback);\n }\n this.requestParser.execute(\n Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding)\n );\n }\n },\n read: (chunk) => {\n if (chunk !== null) {\n this.responseParser.execute(\n Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)\n );\n }\n }\n });\n this.requestRawHeadersBuffer = [];\n this.responseRawHeadersBuffer = [];\n this.writeBuffer = [];\n this.socketState = \"unknown\";\n /**\n * This callback might be called when the request is \"slow\":\n * - Request headers were fragmented across multiple TCP packages;\n * - Request headers were too large to be processed in a single run\n * (e.g. more than 30 request headers).\n * @note This is called before request start.\n */\n this.onRequestHeaders = (rawHeaders) => {\n this.requestRawHeadersBuffer.push(...rawHeaders);\n };\n this.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n var _a;\n this.shouldKeepAlive = shouldKeepAlive;\n const url = new URL(path || \"\", this.baseUrl);\n const method = ((_a = this.connectionOptions.method) == null ? void 0 : _a.toUpperCase()) || \"GET\";\n const headers = FetchResponse.parseRawHeaders([\n ...this.requestRawHeadersBuffer,\n ...rawHeaders || []\n ]);\n this.requestRawHeadersBuffer.length = 0;\n const canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n if (url.username || url.password) {\n if (!headers.has(\"authorization\")) {\n headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n }\n url.username = \"\";\n url.password = \"\";\n }\n this.requestStream = new Readable({\n /**\n * @note Provide the `read()` method so a `Readable` could be\n * used as the actual request body (the stream calls \"read()\").\n * We control the queue in the onRequestBody/End functions.\n */\n read: () => {\n this.flushWriteBuffer();\n }\n });\n const requestId = createRequestId();\n this.request = new Request(url, {\n method,\n headers,\n credentials: \"same-origin\",\n // @ts-expect-error Undocumented Fetch property.\n duplex: canHaveBody ? \"half\" : void 0,\n body: canHaveBody ? Readable.toWeb(this.requestStream) : null\n });\n Reflect.set(this.request, kRequestId, requestId);\n setRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n setRawRequestBodyStream(this.request, this.requestStream);\n if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n this.passthrough();\n return;\n }\n this.onRequest({\n requestId,\n request: this.request,\n socket: this\n });\n };\n /**\n * This callback might be called when the response is \"slow\":\n * - Response headers were fragmented across multiple TCP packages;\n * - Response headers were too large to be processed in a single run\n * (e.g. more than 30 response headers).\n * @note This is called before response start.\n */\n this.onResponseHeaders = (rawHeaders) => {\n this.responseRawHeadersBuffer.push(...rawHeaders);\n };\n this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n const headers = FetchResponse.parseRawHeaders([\n ...this.responseRawHeadersBuffer,\n ...rawHeaders || []\n ]);\n this.responseRawHeadersBuffer.length = 0;\n const response = new FetchResponse(\n /**\n * @note The Fetch API response instance exposed to the consumer\n * is created over the response stream of the HTTP parser. It is NOT\n * related to the Socket instance. This way, you can read response body\n * in response listener while the Socket instance delays the emission\n * of \"end\" and other events until those response listeners are finished.\n */\n FetchResponse.isResponseWithBody(status) ? Readable.toWeb(\n this.responseStream = new Readable({ read() {\n } })\n ) : null,\n {\n url,\n status,\n statusText,\n headers\n }\n );\n invariant(\n this.request,\n \"Failed to handle a response: request does not exist\"\n );\n FetchResponse.setUrl(this.request.url, response);\n if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n return;\n }\n this.responseListenersPromise = this.onResponse({\n response,\n isMockedResponse: this.socketState === \"mock\",\n requestId: Reflect.get(this.request, kRequestId),\n request: this.request,\n socket: this\n });\n };\n this.connectionOptions = options.connectionOptions;\n this.createConnection = options.createConnection;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n this.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n this.requestParser = new HTTPParser();\n this.requestParser.initialize(HTTPParser.REQUEST, {});\n this.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n this.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n this.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n this.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n this.responseParser = new HTTPParser();\n this.responseParser.initialize(HTTPParser.RESPONSE, {});\n this.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n this.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n this.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n this.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n this.once(\"finish\", () => this.requestParser.free());\n if (this.baseUrl.protocol === \"https:\") {\n Reflect.set(this, \"encrypted\", true);\n Reflect.set(this, \"authorized\", false);\n Reflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n Reflect.set(this, \"getSession\", () => void 0);\n Reflect.set(this, \"isSessionReused\", () => false);\n Reflect.set(this, \"getCipher\", () => ({ name: \"AES256-SHA\", standardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\", version: \"TLSv1.3\" }));\n }\n }\n emit(event, ...args) {\n const emitEvent = super.emit.bind(this, event, ...args);\n if (this.responseListenersPromise) {\n this.responseListenersPromise.finally(emitEvent);\n return this.listenerCount(event) > 0;\n }\n return emitEvent();\n }\n destroy(error) {\n this.responseParser.free();\n if (error) {\n this.emit(\"error\", error);\n }\n return super.destroy(error);\n }\n /**\n * Establish this Socket connection as-is and pipe\n * its data/events through this Socket.\n */\n passthrough() {\n this.socketState = \"passthrough\";\n if (this.destroyed) {\n return;\n }\n const socket = this.createConnection();\n this.originalSocket = socket;\n if (\"_handle\" in socket) {\n Object.defineProperty(this, \"_handle\", {\n value: socket._handle,\n enumerable: true,\n writable: true\n });\n }\n this.once(\"error\", (error) => {\n socket.destroy(error);\n });\n this.address = socket.address.bind(socket);\n let writeArgs;\n let headersWritten = false;\n while (writeArgs = this.writeBuffer.shift()) {\n if (writeArgs !== void 0) {\n if (!headersWritten) {\n const [chunk, encoding, callback] = writeArgs;\n const chunkString = chunk.toString();\n const chunkBeforeRequestHeaders = chunkString.slice(\n 0,\n chunkString.indexOf(\"\\r\\n\") + 2\n );\n const chunkAfterRequestHeaders = chunkString.slice(\n chunk.indexOf(\"\\r\\n\\r\\n\")\n );\n const rawRequestHeaders = getRawFetchHeaders(this.request.headers);\n const requestHeadersString = rawRequestHeaders.filter(([name]) => {\n return name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n }).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\");\n const headersChunk = `${chunkBeforeRequestHeaders}${requestHeadersString}${chunkAfterRequestHeaders}`;\n socket.write(headersChunk, encoding, callback);\n headersWritten = true;\n continue;\n }\n socket.write(...writeArgs);\n }\n }\n if (Reflect.get(socket, \"encrypted\")) {\n const tlsProperties = [\n \"encrypted\",\n \"authorized\",\n \"getProtocol\",\n \"getSession\",\n \"isSessionReused\",\n \"getCipher\"\n ];\n tlsProperties.forEach((propertyName) => {\n Object.defineProperty(this, propertyName, {\n enumerable: true,\n get: () => {\n const value = Reflect.get(socket, propertyName);\n return typeof value === \"function\" ? value.bind(socket) : value;\n }\n });\n });\n }\n socket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n this.connecting = socket.connecting;\n this.emit(\"connect\");\n }).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 this.push(chunk);\n }).on(\"error\", (error) => {\n Reflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n this.emit(\"error\", error);\n }).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 }\n /**\n * Convert the given Fetch API `Response` instance to an\n * HTTP message and push it to the socket.\n */\n async respondWith(response) {\n var _a, _b, _c;\n if (this.destroyed) {\n return;\n }\n invariant(\n this.socketState !== \"mock\",\n '[MockHttpSocket] Failed to respond to the \"%s %s\" request with \"%s %s\": the request has already been handled',\n (_a = this.request) == null ? void 0 : _a.method,\n (_b = this.request) == null ? void 0 : _b.url,\n response.status,\n response.statusText\n );\n if (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n this.errorWith(new TypeError(\"Network error\"));\n return;\n }\n this.mockConnect();\n this.socketState = \"mock\";\n this.flushWriteBuffer();\n const serverResponse = new ServerResponse(new IncomingMessage(this));\n serverResponse.assignSocket(\n new MockSocket({\n write: (chunk, encoding, callback) => {\n this.push(chunk, encoding);\n callback == null ? void 0 : callback();\n },\n read() {\n }\n })\n );\n serverResponse.removeHeader(\"connection\");\n serverResponse.removeHeader(\"date\");\n const rawResponseHeaders = getRawFetchHeaders(response.headers);\n serverResponse.writeHead(\n response.status,\n response.statusText || STATUS_CODES[response.status],\n rawResponseHeaders\n );\n this.once(\"error\", () => {\n serverResponse.destroy();\n });\n if (response.body) {\n try {\n const reader = response.body.getReader();\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n serverResponse.end();\n break;\n }\n serverResponse.write(value);\n }\n } catch (error) {\n if (error instanceof Error) {\n serverResponse.destroy();\n this.destroy();\n return;\n }\n serverResponse.destroy();\n throw error;\n }\n } else {\n serverResponse.end();\n }\n if (!this.shouldKeepAlive) {\n this.emit(\"readable\");\n (_c = this.responseStream) == null ? void 0 : _c.push(null);\n this.push(null);\n }\n }\n /**\n * Close this socket connection with the given error.\n */\n errorWith(error) {\n this.destroy(error);\n }\n mockConnect() {\n this.connecting = false;\n const isIPv6 = net2.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n const addressInfo = {\n address: isIPv6 ? \"::1\" : \"127.0.0.1\",\n family: isIPv6 ? \"IPv6\" : \"IPv4\",\n port: this.connectionOptions.port\n };\n this.address = () => addressInfo;\n this.emit(\n \"lookup\",\n null,\n addressInfo.address,\n addressInfo.family === \"IPv6\" ? 6 : 4,\n this.connectionOptions.host\n );\n this.emit(\"connect\");\n this.emit(\"ready\");\n if (this.baseUrl.protocol === \"https:\") {\n this.emit(\"secure\");\n this.emit(\"secureConnect\");\n this.emit(\n \"session\",\n this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\")\n );\n this.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n }\n }\n flushWriteBuffer() {\n for (const writeCall of this.writeBuffer) {\n if (typeof writeCall[2] === \"function\") {\n writeCall[2]();\n writeCall[2] = void 0;\n }\n }\n }\n onRequestBody(chunk) {\n invariant(\n this.requestStream,\n \"Failed to write to a request stream: stream does not exist\"\n );\n this.requestStream.push(chunk);\n }\n onRequestEnd() {\n if (this.requestStream) {\n this.requestStream.push(null);\n }\n }\n onResponseBody(chunk) {\n invariant(\n this.responseStream,\n \"Failed to write to a response stream: stream does not exist\"\n );\n this.responseStream.push(chunk);\n }\n onResponseEnd() {\n if (this.responseStream) {\n this.responseStream.push(null);\n }\n }\n};\n\n// src/interceptors/ClientRequest/agents.ts\nimport http from \"http\";\nimport https from \"https\";\nvar MockAgent = class extends http.Agent {\n constructor(options) {\n super();\n this.customAgent = options.customAgent;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n }\n createConnection(options, callback) {\n const createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n const createConnectionOptions = this.customAgent instanceof http.Agent ? {\n ...options,\n ...this.customAgent.options\n } : options;\n const socket = new MockHttpSocket({\n connectionOptions: options,\n createConnection: createConnection.bind(\n this.customAgent || this,\n createConnectionOptions,\n callback\n ),\n onRequest: this.onRequest.bind(this),\n onResponse: this.onResponse.bind(this)\n });\n return socket;\n }\n};\nvar MockHttpsAgent = class extends https.Agent {\n constructor(options) {\n super();\n this.customAgent = options.customAgent;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n }\n createConnection(options, callback) {\n const createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n const createConnectionOptions = this.customAgent instanceof http.Agent ? {\n ...options,\n ...this.customAgent.options\n } : options;\n const socket = new MockHttpSocket({\n connectionOptions: options,\n createConnection: createConnection.bind(\n this.customAgent || this,\n createConnectionOptions,\n callback\n ),\n onRequest: this.onRequest.bind(this),\n onResponse: this.onResponse.bind(this)\n });\n return socket;\n }\n};\n\n// src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nimport { urlToHttpOptions } from \"url\";\nimport {\n globalAgent as httpGlobalAgent\n} from \"http\";\nimport {\n globalAgent as httpsGlobalAgent\n} from \"https\";\nimport {\n URL as URL2,\n parse as parseUrl\n} from \"url\";\nimport { Logger as Logger3 } from \"@open-draft/logger\";\n\n// src/utils/getUrlByRequestOptions.ts\nimport { Agent } from \"http\";\nimport { Logger } from \"@open-draft/logger\";\nvar logger = new Logger(\"utils getUrlByRequestOptions\");\nvar DEFAULT_PATH = \"/\";\nvar DEFAULT_PROTOCOL = \"http:\";\nvar DEFAULT_HOSTNAME = \"localhost\";\nvar SSL_PORT = 443;\nfunction getAgent(options) {\n return options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n var _a;\n if (options.protocol) {\n return options.protocol;\n }\n const agent = getAgent(options);\n const agentProtocol = agent == null ? void 0 : agent.protocol;\n if (agentProtocol) {\n return agentProtocol;\n }\n const port = getPortByRequestOptions(options);\n const isSecureRequest = options.cert || port === SSL_PORT;\n return isSecureRequest ? \"https:\" : ((_a = options.uri) == null ? void 0 : _a.protocol) || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n if (options.port) {\n return Number(options.port);\n }\n const agent = getAgent(options);\n if (agent == null ? void 0 : agent.options.port) {\n return Number(agent.options.port);\n }\n if (agent == null ? void 0 : agent.defaultPort) {\n return Number(agent.defaultPort);\n }\n return void 0;\n}\nfunction getAuthByRequestOptions(options) {\n if (options.auth) {\n const [username, password] = options.auth.split(\":\");\n return { username, password };\n }\n}\nfunction isRawIPv6Address(host) {\n return host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n let host = options.hostname || options.host;\n if (host) {\n if (isRawIPv6Address(host)) {\n host = `[${host}]`;\n }\n return new URL(`http://${host}`).hostname;\n }\n return DEFAULT_HOSTNAME;\n}\nfunction getUrlByRequestOptions(options) {\n logger.info(\"request options\", options);\n if (options.uri) {\n logger.info(\n 'constructing url from explicitly provided \"options.uri\": %s',\n options.uri\n );\n return new URL(options.uri.href);\n }\n logger.info(\"figuring out url from request options...\");\n const protocol = getProtocolByRequestOptions(options);\n logger.info(\"protocol\", protocol);\n const port = getPortByRequestOptions(options);\n logger.info(\"port\", port);\n const hostname = getHostname(options);\n logger.info(\"hostname\", hostname);\n const path = options.path || DEFAULT_PATH;\n logger.info(\"path\", path);\n const credentials = getAuthByRequestOptions(options);\n logger.info(\"credentials\", credentials);\n const authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n logger.info(\"auth string:\", authString);\n const portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n const url = new URL(`${protocol}//${hostname}${portString}${path}`);\n url.username = (credentials == null ? void 0 : credentials.username) || \"\";\n url.password = (credentials == null ? void 0 : credentials.password) || \"\";\n logger.info(\"created url:\", url);\n return url;\n}\n\n// src/utils/cloneObject.ts\nimport { Logger as Logger2 } from \"@open-draft/logger\";\nvar logger2 = new Logger2(\"cloneObject\");\nfunction isPlainObject(obj) {\n var _a;\n logger2.info(\"is plain object?\", obj);\n if (obj == null || !((_a = obj.constructor) == null ? void 0 : _a.name)) {\n logger2.info(\"given object is undefined, not a plain object...\");\n return false;\n }\n logger2.info(\"checking the object constructor:\", obj.constructor.name);\n return obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n logger2.info(\"cloning object:\", obj);\n const enumerableProperties = Object.entries(obj).reduce(\n (acc, [key, value]) => {\n logger2.info(\"analyzing key-value pair:\", key, value);\n acc[key] = isPlainObject(value) ? cloneObject(value) : value;\n return acc;\n },\n {}\n );\n return isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n// src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nvar logger3 = new Logger3(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n if (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n logger3.info(\"request options not provided, deriving from the url\", url);\n return urlToHttpOptions(url);\n }\n if (args[1]) {\n logger3.info(\"has custom RequestOptions!\", args[1]);\n const requestOptionsFromUrl = urlToHttpOptions(url);\n logger3.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n logger3.info(\"cloning RequestOptions...\");\n const clonedRequestOptions = cloneObject(args[1]);\n logger3.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n return {\n ...requestOptionsFromUrl,\n ...clonedRequestOptions\n };\n }\n logger3.info(\"using an empty object as request options\");\n return {};\n}\nfunction overrideUrlByRequestOptions(url, options) {\n url.host = options.host || url.host;\n url.hostname = options.hostname || url.hostname;\n url.port = options.port ? options.port.toString() : url.port;\n if (options.path) {\n const parsedOptionsPath = parseUrl(options.path, false);\n url.pathname = parsedOptionsPath.pathname || \"\";\n url.search = parsedOptionsPath.search || \"\";\n }\n return url;\n}\nfunction resolveCallback(args) {\n return typeof args[1] === \"function\" ? args[1] : args[2];\n}\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n let url;\n let options;\n let callback;\n logger3.info(\"arguments\", args);\n logger3.info(\"using default protocol:\", defaultProtocol);\n if (args.length === 0) {\n const url2 = new URL2(\"http://localhost\");\n const options2 = resolveRequestOptions(args, url2);\n return [url2, options2];\n }\n if (typeof args[0] === \"string\") {\n logger3.info(\"first argument is a location string:\", args[0]);\n url = new URL2(args[0]);\n logger3.info(\"created a url:\", url);\n const requestOptionsFromUrl = urlToHttpOptions(url);\n logger3.info(\"request options from url:\", requestOptionsFromUrl);\n options = resolveRequestOptions(args, url);\n logger3.info(\"resolved request options:\", options);\n callback = resolveCallback(args);\n } else if (args[0] instanceof URL2) {\n url = args[0];\n logger3.info(\"first argument is a URL:\", url);\n if (typeof args[1] !== \"undefined\" && isObject(args[1])) {\n url = overrideUrlByRequestOptions(url, args[1]);\n }\n options = resolveRequestOptions(args, url);\n logger3.info(\"derived request options:\", options);\n callback = resolveCallback(args);\n } else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n const [legacyUrl] = args;\n logger3.info(\"first argument is a legacy URL:\", legacyUrl);\n if (legacyUrl.hostname === null) {\n logger3.info(\"given legacy URL is relative (no hostname)\");\n return isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [\n { path: legacyUrl.path, ...args[1] },\n args[2]\n ]) : normalizeClientRequestArgs(defaultProtocol, [\n { path: legacyUrl.path },\n args[1]\n ]);\n }\n logger3.info(\"given legacy url is absolute\");\n const resolvedUrl = new URL2(legacyUrl.href);\n return args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n resolvedUrl,\n args[1],\n args[2]\n ]);\n } else if (isObject(args[0])) {\n options = { ...args[0] };\n logger3.info(\"first argument is RequestOptions:\", options);\n options.protocol = options.protocol || defaultProtocol;\n logger3.info(\"normalized request options:\", options);\n url = getUrlByRequestOptions(options);\n logger3.info(\"created a URL from RequestOptions:\", url.href);\n callback = resolveCallback(args);\n } else {\n throw new Error(\n `Failed to construct ClientRequest with these parameters: ${args}`\n );\n }\n options.protocol = options.protocol || url.protocol;\n options.method = options.method || \"GET\";\n if (!options._defaultAgent) {\n logger3.info(\n 'has no default agent, setting the default agent for \"%s\"',\n options.protocol\n );\n options._defaultAgent = options.protocol === \"https:\" ? httpsGlobalAgent : httpGlobalAgent;\n }\n logger3.info(\"successfully resolved url:\", url.href);\n logger3.info(\"successfully resolved options:\", options);\n logger3.info(\"successfully resolved callback:\", callback);\n if (!(url instanceof URL2)) {\n url = url.toString();\n }\n return [url, options, callback];\n}\n\n// src/interceptors/ClientRequest/index.ts\nvar _ClientRequestInterceptor = class extends Interceptor {\n constructor() {\n super(_ClientRequestInterceptor.symbol);\n this.onRequest = async ({\n request,\n socket\n }) => {\n const controller = new RequestController(request, {\n passthrough() {\n socket.passthrough();\n },\n async respondWith(response) {\n await socket.respondWith(response);\n },\n errorWith(reason) {\n if (reason instanceof Error) {\n socket.errorWith(reason);\n }\n }\n });\n await handleRequest({\n request,\n requestId: Reflect.get(request, kRequestId),\n controller,\n emitter: this.emitter\n });\n };\n this.onResponse = async ({\n requestId,\n request,\n response,\n isMockedResponse\n }) => {\n return emitAsync(this.emitter, \"response\", {\n requestId,\n request,\n response,\n isMockedResponse\n });\n };\n }\n setup() {\n const {\n ClientRequest: OriginalClientRequest,\n get: originalGet,\n request: originalRequest\n } = http2;\n const { get: originalHttpsGet, request: originalHttpsRequest } = https2;\n const onRequest = this.onRequest.bind(this);\n const onResponse = this.onResponse.bind(this);\n http2.ClientRequest = new Proxy(http2.ClientRequest, {\n construct: (target, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const Agent2 = options.protocol === \"https:\" ? MockHttpsAgent : MockAgent;\n const mockAgent = new Agent2({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.construct(target, [url, options, callback]);\n }\n });\n http2.request = new Proxy(http2.request, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const mockAgent = new MockAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n http2.get = new Proxy(http2.get, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const mockAgent = new MockAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n https2.request = new Proxy(https2.request, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"https:\",\n args\n );\n const mockAgent = new MockHttpsAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n https2.get = new Proxy(https2.get, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"https:\",\n args\n );\n const mockAgent = new MockHttpsAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n recordRawFetchHeaders();\n this.subscriptions.push(() => {\n http2.ClientRequest = OriginalClientRequest;\n http2.get = originalGet;\n http2.request = originalRequest;\n https2.get = originalHttpsGet;\n https2.request = originalHttpsRequest;\n restoreHeadersPrototype();\n });\n }\n};\nvar ClientRequestInterceptor = _ClientRequestInterceptor;\nClientRequestInterceptor.symbol = Symbol(\"client-request-interceptor\");\n\nexport {\n ClientRequestInterceptor\n};\n//# sourceMappingURL=chunk-5UGIB6OX.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","kRequestId","MockHttpSocket","_a","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","socket","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","HTTPParser","initialize","REQUEST","kOnHeaders","bind","kOnHeadersComplete","kOnBody","onRequestBody","kOnMessageComplete","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","once","free","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","destroyed","writeArgs","_handle","writable","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","_b","_c","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","net2","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger2","Logger2","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger3","Logger3","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url2","URL2","isObject","parsedOptionsPath","parseUrl","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","httpsGlobalAgent","httpGlobalAgent","_ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","http2","originalHttpsGet","originalHttpsRequest","https2","Proxy","construct","target","mockAgent","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers2","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions","ClientRequestInterceptor"],"mappings":"4dAqCA,SAASA,EAAyBC,GAChC,MAAMC,EAAa,CAACD,EAAK,QAAI,OAAQ,GASrC,MARuB,iBAAZA,EAAK,GACdC,EAAW,GAAKD,EAAK,GACO,mBAAZA,EAAK,KACrBC,EAAW,GAAKD,EAAK,IAEA,mBAAZA,EAAK,KACdC,EAAW,GAAKD,EAAK,IAEhBC,CACT,CAGA,IAAIC,EAAa,cAAcC,EAAIC,OACjC,WAAAC,CAAYC,GACVC,QACAC,KAAKF,Q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,MANuB,iBAAZ9R,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SACzCE,EACE6E,EAAS/E,QACTqB,EAAgB7C,EAAK,GAAGwB,UAGrB+E,CACT,KAGN,CAm1BI4L,GACA3R,KAAK4R,cAAclR,MAAK,KACtByP,EAAMJ,cAAgBC,EACtBG,EAAM9O,IAAM4O,EACZE,EAAMpL,QAAUmL,EAChBI,EAAOjP,IAAM+O,EACbE,EAAOvL,QAAUsL,EAv1BhBjP,QAAQC,IAAIiB,QAASxB,IAG1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAu1BA,GAEEyQ,EAA2BzC,EAC/ByC,EAAyBvC,OAASzO,OAAO","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{setRawRequestBodyStream as e}from"./chunk-GKN5RBVR.js";import{handleRequest as t,emitAsync as s,isObject as o,isPropertyAccessible as n}from"./chunk-R6T7CL5E.js";import{Interceptor as r,RequestController as i,FetchResponse as a,createRequestId as u,INTERNAL_REQUEST_ID_HEADER_NAME as c}from"./chunk-JXGB54LE.js";import{setRawRequest as h}from"./chunk-YWNGXXUQ.js";import p,{globalAgent as l,ServerResponse as f,IncomingMessage as d,STATUS_CODES as m,Agent as R}from"http";import g,{globalAgent as y}from"https";import q from"net";import{HTTPParser as w}from"_http_common";import{Readable as b}from"stream";import{invariant as v}from"../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.js";import{URL as S,urlToHttpOptions as k,parse as H}from"url";import{Logger as P}from"../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js";function O(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 q.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,o]=O(e);return this.options.write(t,s,o),!0}end(...e){const[t,s,o]=O(e);return this.options.write(t,s,o),super.end.apply(this,e)}push(e,t){return this.options.read(e,t),super.push(e,t)}};var C=Symbol("kRawHeaders"),B=Symbol("kRestorePatches");function x(e,t,s){j(e,[]);const o=Reflect.get(e,C);if("set"===s)for(let e=o.length-1;e>=0;e--)o[e][0].toLowerCase()===t[0].toLowerCase()&&o.splice(e,1);o.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(e){return e instanceof Headers?Reflect.get(e,C)||[]:Reflect.get(new Headers(e),C)}var U=Symbol("kRequestId"),T=class extends A{constructor(t){super({write:(e,t,s)=>{var o;"passthrough"!==this.socketState&&this.writeBuffer.push([e,t,s]),e&&("passthrough"===this.socketState&&(null==(o=this.originalSocket)||o.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=(t,s,o,n,r,i,p,l,f)=>{var d;this.shouldKeepAlive=f;const m=new URL(r||"",this.baseUrl),R=(null==(d=this.connectionOptions.method)?void 0:d.toUpperCase())||"GET",g=a.parseRawHeaders([...this.requestRawHeadersBuffer,...o||[]]);this.requestRawHeadersBuffer.length=0;const y="GET"!==R&&"HEAD"!==R;(m.username||m.password)&&(g.has("authorization")||g.set("authorization",`Basic ${m.username}:${m.password}`),m.username="",m.password=""),this.requestStream=new b({read:()=>{this.flushWriteBuffer()}});const q=u();this.request=new Request(m,{method:R,headers:g,credentials:"same-origin",duplex:y?"half":void 0,body:y?b.toWeb(this.requestStream):null}),Reflect.set(this.request,U,q),h(this.request,Reflect.get(this,"_httpMessage")),e(this.request,this.requestStream),this.request.headers.has(c)?this.passthrough():this.onRequest({requestId:q,request:this.request,socket:this})},this.onResponseHeaders=e=>{this.responseRawHeadersBuffer.push(...e)},this.onResponseStart=(e,t,s,o,n,r,i)=>{const u=a.parseRawHeaders([...this.responseRawHeadersBuffer,...s||[]]);this.responseRawHeadersBuffer.length=0;const h=new a(a.isResponseWithBody(r)?b.toWeb(this.responseStream=new b({read(){}})):null,{url:n,status:r,statusText:i,headers:u});v(this.request,"Failed to handle a response: request does not exist"),a.setUrl(this.request.url,h),this.request.headers.has(c)||(this.responseListenersPromise=this.onResponse({response:h,isMockedResponse:"mock"===this.socketState,requestId:Reflect.get(this.request,U),request:this.request,socket:this}))},this.connectionOptions=t.connectionOptions,this.createConnection=t.createConnection,this.onRequest=t.onRequest,this.onResponse=t.onResponse,this.baseUrl=function(e){if("href"in e)return new URL(e.href);const t=443===e.port?"https:":"http:",s=e.host,o=new URL(`${t}//${s}`);if(e.port&&(o.port=e.port.toString()),e.path&&(o.pathname=e.path),e.auth){const[t,s]=e.auth.split(":");o.username=t,o.password=s}return o}(this.connectionOptions),this.requestParser=new w,this.requestParser.initialize(w.REQUEST,{}),this.requestParser[w.kOnHeaders]=this.onRequestHeaders.bind(this),this.requestParser[w.kOnHeadersComplete]=this.onRequestStart.bind(this),this.requestParser[w.kOnBody]=this.onRequestBody.bind(this),this.requestParser[w.kOnMessageComplete]=this.onRequestEnd.bind(this),this.responseParser=new w,this.responseParser.initialize(w.RESPONSE,{}),this.responseParser[w.kOnHeaders]=this.onResponseHeaders.bind(this),this.responseParser[w.kOnHeadersComplete]=this.onResponseStart.bind(this),this.responseParser[w.kOnBody]=this.onResponseBody.bind(this),this.responseParser[w.kOnMessageComplete]=this.onResponseEnd.bind(this),this.once("finish",(()=>this.requestParser.free())),"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 this.responseParser.free(),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("error",(t=>{e.destroy(t)})),this.address=e.address.bind(e);let s=!1;for(;t=this.writeBuffer.shift();)if(void 0!==t){if(!s){const[o,n,r]=t,i=o.toString(),a=i.slice(0,i.indexOf("\r\n")+2),u=i.slice(o.indexOf("\r\n\r\n")),h=`${a}${L(this.request.headers).filter((([e])=>e.toLowerCase()!==c)).map((([e,t])=>`${e}: ${t}`)).join("\r\n")}${u}`;e.write(h,n,r),s=!0;continue}e.write(...t)}if(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){var t,s,o;if(this.destroyed)return;if(v("mock"!==this.socketState,'[MockHttpSocket] Failed to respond to the "%s %s" request with "%s %s": the request has already been handled',null==(t=this.request)?void 0:t.method,null==(s=this.request)?void 0:s.url,e.status,e.statusText),n(e,"type")&&"error"===e.type)return void this.errorWith(new TypeError("Network error"));this.mockConnect(),this.socketState="mock",this.flushWriteBuffer();const r=new f(new d(this));r.assignSocket(new A({write:(e,t,s)=>{this.push(e,t),null==s||s()},read(){}})),r.removeHeader("connection"),r.removeHeader("date");const i=L(e.headers);if(r.writeHead(e.status,e.statusText||m[e.status],i),this.once("error",(()=>{r.destroy()})),e.body)try{const t=e.body.getReader();for(;;){const{done:e,value:s}=await t.read();if(e){r.end();break}r.write(s)}}catch(e){if(e instanceof Error)return r.destroy(),void this.destroy();throw r.destroy(),e}else r.end();this.shouldKeepAlive||(this.emit("readable"),null==(o=this.responseStream)||o.push(null),this.push(null))}errorWith(e){this.destroy(e)}mockConnect(){this.connecting=!1;const e=q.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){v(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){v(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 p.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof p.Agent?this.customAgent.createConnection:super.createConnection,o=this.customAgent instanceof p.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,o,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},$=class extends g.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof p.Agent?this.customAgent.createConnection:super.createConnection,o=this.customAgent instanceof p.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,o,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},W=new P("utils getUrlByRequestOptions");function I(e){return e.agent instanceof R?e.agent:void 0}function z(e){if(e.port)return Number(e.port);const t=I(e);return(null==t?void 0:t.options.port)?Number(t.options.port):(null==t?void 0:t.defaultPort)?Number(t.defaultPort):void 0}function N(e){if(W.info("request options",e),e.uri)return W.info('constructing url from explicitly provided "options.uri": %s',e.uri),new URL(e.uri.href);W.info("figuring out url from request options...");const t=function(e){var t;if(e.protocol)return e.protocol;const s=I(e),o=null==s?void 0:s.protocol;if(o)return o;const n=z(e);return e.cert||443===n?"https:":(null==(t=e.uri)?void 0:t.protocol)||"http:"}(e);W.info("protocol",t);const s=z(e);W.info("port",s);const o=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);W.info("hostname",o);const n=e.path||"/";W.info("path",n);const r=function(e){if(e.auth){const[t,s]=e.auth.split(":");return{username:t,password:s}}}(e);W.info("credentials",r);const i=r?`${r.username}:${r.password}@`:"";W.info("auth string:",i);const a=new URL(`${t}//${o}${void 0!==s?`:${s}`:""}${n}`);return a.username=(null==r?void 0:r.username)||"",a.password=(null==r?void 0:r.password)||"",W.info("created url:",a),a}var M=new P("cloneObject");function G(e){var t;return M.info("is plain object?",e),null!=e&&(null==(t=e.constructor)?void 0:t.name)?(M.info("checking the object constructor:",e.constructor.name),"Object"===e.constructor.name):(M.info("given object is undefined, not a plain object..."),!1)}function F(e){M.info("cloning object:",e);const t=Object.entries(e).reduce(((e,[t,s])=>(M.info("analyzing key-value pair:",t,s),e[t]=G(s)?F(s):s,e)),{});return G(e)?t:Object.assign(Object.getPrototypeOf(e),t)}var K=new P("http normalizeClientRequestArgs");function X(e,t){if(void 0===e[1]||"function"==typeof e[1])return K.info("request options not provided, deriving from the url",t),k(t);if(e[1]){K.info("has custom RequestOptions!",e[1]);const s=k(t);K.info("derived RequestOptions from the URL:",s),K.info("cloning RequestOptions...");const o=F(e[1]);return K.info("successfully cloned RequestOptions!",o),{...s,...o}}return K.info("using an empty object as request options"),{}}function Q(e){return"function"==typeof e[1]?e[1]:e[2]}function D(e,t){let s,n,r;if(K.info("arguments",t),K.info("using default protocol:",e),0===t.length){const e=new S("http://localhost");return[e,X(t,e)]}if("string"==typeof t[0]){K.info("first argument is a location string:",t[0]),s=new S(t[0]),K.info("created a url:",s);const e=k(s);K.info("request options from url:",e),n=X(t,s),K.info("resolved request options:",n),r=Q(t)}else if(t[0]instanceof S)s=t[0],K.info("first argument is a URL:",s),void 0!==t[1]&&o(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=H(t.path,!1);e.pathname=s.pathname||"",e.search=s.search||""}return e}(s,t[1])),n=X(t,s),K.info("derived request options:",n),r=Q(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)"),o(t[1])?D(e,[{path:s.path,...t[1]},t[2]]):D(e,[{path:s.path},t[1]]);K.info("given legacy url is absolute");const n=new S(s.href);return void 0===t[1]?D(e,[n]):"function"==typeof t[1]?D(e,[n,t[1]]):D(e,[n,t[1],t[2]])}if(!o(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=N(n),K.info("created a URL from RequestOptions:",s.href),r=Q(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?y:l),K.info("successfully resolved url:",s.href),K.info("successfully resolved options:",n),K.info("successfully resolved callback:",r),s instanceof S||(s=s.toString()),[s,n,r]}var J=class extends r{constructor(){super(J.symbol),this.onRequest=async({request:e,socket:s})=>{const o=new i(e,{passthrough(){s.passthrough()},async respondWith(e){await s.respondWith(e)},errorWith(e){e instanceof Error&&s.errorWith(e)}});await t({request:e,requestId:Reflect.get(e,U),controller:o,emitter:this.emitter})},this.onResponse=async({requestId:e,request:t,response:o,isMockedResponse:n})=>s(this.emitter,"response",{requestId:e,request:t,response:o,isMockedResponse:n})}setup(){const{ClientRequest:e,get:t,request:s}=p,{get:o,request:n}=g,r=this.onRequest.bind(this),i=this.onResponse.bind(this);p.ClientRequest=new Proxy(p.ClientRequest,{construct:(e,t)=>{const[s,o,n]=D("http:",t),a=new("https:"===o.protocol?$:_)({customAgent:o.agent,onRequest:r,onResponse:i});return o.agent=a,Reflect.construct(e,[s,o,n])}}),p.request=new Proxy(p.request,{apply:(e,t,s)=>{const[o,n,a]=D("http:",s),u=new _({customAgent:n.agent,onRequest:r,onResponse:i});return n.agent=u,Reflect.apply(e,t,[o,n,a])}}),p.get=new Proxy(p.get,{apply:(e,t,s)=>{const[o,n,a]=D("http:",s),u=new _({customAgent:n.agent,onRequest:r,onResponse:i});return n.agent=u,Reflect.apply(e,t,[o,n,a])}}),g.request=new Proxy(g.request,{apply:(e,t,s)=>{const[o,n,a]=D("https:",s),u=new $({customAgent:n.agent,onRequest:r,onResponse:i});return n.agent=u,Reflect.apply(e,t,[o,n,a])}}),g.get=new Proxy(g.get,{apply:(e,t,s)=>{const[o,n,a]=D("https:",s),u=new $({customAgent:n.agent,onRequest:r,onResponse:i});return n.agent=u,Reflect.apply(e,t,[o,n,a])}}),function(){if(Reflect.get(Headers,B))return Reflect.get(Headers,B);const{Headers:e,Request:t,Response:s}=globalThis,{set:o,append:n,delete:r}=Headers.prototype;Object.defineProperty(Headers,B,{value:()=>{Headers.prototype.set=o,Headers.prototype.append=n,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 o=t[0]||[];if(o instanceof Headers&&Reflect.has(o,C)){const t=Reflect.construct(e,[Reflect.get(o,C)],s);return j(t,[...Reflect.get(o,C)]),t}const n=Reflect.construct(e,t,s);return Reflect.has(n,C)||j(n,Array.isArray(o)?o:Object.entries(o)),n}})}),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 o=Reflect.get(t,C);if(o)for(let e=o.length-1;e>=0;e--)o[e][0].toLowerCase()===s[0].toLowerCase()&&o.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 o=Reflect.construct(e,t,s),n=[];return"object"==typeof t[0]&&null!=t[0].headers&&n.push(...E(t[0].headers)),"object"==typeof t[1]&&null!=t[1].headers&&n.push(...E(t[1].headers)),n.length>0&&j(o.headers,n),o}})}),Object.defineProperty(globalThis,"Response",{enumerable:!0,writable:!0,value:new Proxy(Response,{construct(e,t,s){const o=Reflect.construct(e,t,s);return"object"==typeof t[1]&&null!=t[1].headers&&j(o.headers,E(t[1].headers)),o}})})}(),this.subscriptions.push((()=>{p.ClientRequest=e,p.get=t,p.request=s,g.get=o,g.request=n,Reflect.get(Headers,B)&&Reflect.get(Headers,B)()}))}},V=J;V.symbol=Symbol("client-request-interceptor");export{V as ClientRequestInterceptor};
|
|
2
|
-
//# sourceMappingURL=chunk-5UGIB6OX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-5UGIB6OX.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.mjs"],"sourcesContent":["import {\n setRawRequestBodyStream\n} from \"./chunk-GKN5RBVR.mjs\";\nimport {\n emitAsync,\n handleRequest,\n isObject,\n isPropertyAccessible\n} from \"./chunk-R6T7CL5E.mjs\";\nimport {\n FetchResponse,\n INTERNAL_REQUEST_ID_HEADER_NAME,\n Interceptor,\n RequestController,\n createRequestId\n} from \"./chunk-JXGB54LE.mjs\";\nimport {\n setRawRequest\n} from \"./chunk-YWNGXXUQ.mjs\";\n\n// src/interceptors/ClientRequest/index.ts\nimport http2 from \"http\";\nimport https2 from \"https\";\n\n// src/interceptors/ClientRequest/MockHttpSocket.ts\nimport net2 from \"net\";\nimport {\n HTTPParser\n} from \"_http_common\";\nimport { STATUS_CODES, IncomingMessage, ServerResponse } from \"http\";\nimport { Readable } from \"stream\";\nimport { invariant } from \"outvariant\";\n\n// src/interceptors/Socket/MockSocket.ts\nimport net from \"net\";\n\n// src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\nfunction normalizeSocketWriteArgs(args) {\n const normalized = [args[0], void 0, void 0];\n if (typeof args[1] === \"string\") {\n normalized[1] = args[1];\n } else if (typeof args[1] === \"function\") {\n normalized[2] = args[1];\n }\n if (typeof args[2] === \"function\") {\n normalized[2] = args[2];\n }\n return normalized;\n}\n\n// src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n constructor(options) {\n super();\n this.options = options;\n this.connecting = false;\n this.connect();\n this._final = (callback) => {\n callback(null);\n };\n }\n connect() {\n this.connecting = true;\n return this;\n }\n write(...args) {\n const [chunk, encoding, callback] = normalizeSocketWriteArgs(\n args\n );\n this.options.write(chunk, encoding, callback);\n return true;\n }\n end(...args) {\n const [chunk, encoding, callback] = normalizeSocketWriteArgs(\n args\n );\n this.options.write(chunk, encoding, callback);\n return super.end.apply(this, args);\n }\n push(chunk, encoding) {\n this.options.read(chunk, encoding);\n return super.push(chunk, encoding);\n }\n};\n\n// src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n if (\"href\" in options) {\n return new URL(options.href);\n }\n const protocol = options.port === 443 ? \"https:\" : \"http:\";\n const host = options.host;\n const url = new URL(`${protocol}//${host}`);\n if (options.port) {\n url.port = options.port.toString();\n }\n if (options.path) {\n url.pathname = options.path;\n }\n if (options.auth) {\n const [username, password] = options.auth.split(\":\");\n url.username = username;\n url.password = password;\n }\n return url;\n}\n\n// src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nvar kRawHeaders = Symbol(\"kRawHeaders\");\nvar kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n ensureRawHeadersSymbol(headers, []);\n const rawHeaders = Reflect.get(headers, kRawHeaders);\n if (behavior === \"set\") {\n for (let index = rawHeaders.length - 1; index >= 0; index--) {\n if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) {\n rawHeaders.splice(index, 1);\n }\n }\n }\n rawHeaders.push(args);\n}\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n if (Reflect.has(headers, kRawHeaders)) {\n return;\n }\n defineRawHeadersSymbol(headers, rawHeaders);\n}\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n Object.defineProperty(headers, kRawHeaders, {\n value: rawHeaders,\n enumerable: false,\n // Mark the symbol as configurable so its value can be overridden.\n // Overrides happen when merging raw headers from multiple sources.\n // E.g. new Request(new Request(url, { headers }), { headers })\n configurable: true\n });\n}\nfunction recordRawFetchHeaders() {\n if (Reflect.get(Headers, kRestorePatches)) {\n return Reflect.get(Headers, kRestorePatches);\n }\n const {\n Headers: OriginalHeaders,\n Request: OriginalRequest,\n Response: OriginalResponse\n } = globalThis;\n const { set, append, delete: headersDeleteMethod } = Headers.prototype;\n Object.defineProperty(Headers, kRestorePatches, {\n value: () => {\n Headers.prototype.set = set;\n Headers.prototype.append = append;\n Headers.prototype.delete = headersDeleteMethod;\n globalThis.Headers = OriginalHeaders;\n globalThis.Request = OriginalRequest;\n globalThis.Response = OriginalResponse;\n Reflect.deleteProperty(Headers, kRestorePatches);\n },\n enumerable: false,\n /**\n * @note Mark this property as configurable\n * so we can delete it using `Reflect.delete` during cleanup.\n */\n configurable: true\n });\n Object.defineProperty(globalThis, \"Headers\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Headers, {\n construct(target, args, newTarget) {\n const headersInit = args[0] || [];\n if (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n const headers2 = Reflect.construct(\n target,\n [Reflect.get(headersInit, kRawHeaders)],\n newTarget\n );\n ensureRawHeadersSymbol(headers2, [\n /**\n * @note Spread the retrieved headers to clone them.\n * This prevents multiple Headers instances from pointing\n * at the same internal \"rawHeaders\" array.\n */\n ...Reflect.get(headersInit, kRawHeaders)\n ]);\n return headers2;\n }\n const headers = Reflect.construct(target, args, newTarget);\n if (!Reflect.has(headers, kRawHeaders)) {\n const rawHeadersInit = Array.isArray(headersInit) ? headersInit : Object.entries(headersInit);\n ensureRawHeadersSymbol(headers, rawHeadersInit);\n }\n return headers;\n }\n })\n });\n Headers.prototype.set = new Proxy(Headers.prototype.set, {\n apply(target, thisArg, args) {\n recordRawHeader(thisArg, args, \"set\");\n return Reflect.apply(target, thisArg, args);\n }\n });\n Headers.prototype.append = new Proxy(Headers.prototype.append, {\n apply(target, thisArg, args) {\n recordRawHeader(thisArg, args, \"append\");\n return Reflect.apply(target, thisArg, args);\n }\n });\n Headers.prototype.delete = new Proxy(Headers.prototype.delete, {\n apply(target, thisArg, args) {\n const rawHeaders = Reflect.get(thisArg, kRawHeaders);\n if (rawHeaders) {\n for (let index = rawHeaders.length - 1; index >= 0; index--) {\n if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) {\n rawHeaders.splice(index, 1);\n }\n }\n }\n return Reflect.apply(target, thisArg, args);\n }\n });\n Object.defineProperty(globalThis, \"Request\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Request, {\n construct(target, args, newTarget) {\n const request = Reflect.construct(target, args, newTarget);\n const inferredRawHeaders = [];\n if (typeof args[0] === \"object\" && args[0].headers != null) {\n inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n }\n if (typeof args[1] === \"object\" && args[1].headers != null) {\n inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n }\n if (inferredRawHeaders.length > 0) {\n ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n }\n return request;\n }\n })\n });\n Object.defineProperty(globalThis, \"Response\", {\n enumerable: true,\n writable: true,\n value: new Proxy(Response, {\n construct(target, args, newTarget) {\n const response = Reflect.construct(target, args, newTarget);\n if (typeof args[1] === \"object\" && args[1].headers != null) {\n ensureRawHeadersSymbol(\n response.headers,\n inferRawHeaders(args[1].headers)\n );\n }\n return response;\n }\n })\n });\n}\nfunction restoreHeadersPrototype() {\n if (!Reflect.get(Headers, kRestorePatches)) {\n return;\n }\n Reflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n if (!Reflect.has(headers, kRawHeaders)) {\n return Array.from(headers.entries());\n }\n const rawHeaders = Reflect.get(headers, kRawHeaders);\n return rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\nfunction inferRawHeaders(headers) {\n if (headers instanceof Headers) {\n return Reflect.get(headers, kRawHeaders) || [];\n }\n return Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n// src/interceptors/ClientRequest/MockHttpSocket.ts\nvar kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n constructor(options) {\n super({\n write: (chunk, encoding, callback) => {\n var _a;\n if (this.socketState !== \"passthrough\") {\n this.writeBuffer.push([chunk, encoding, callback]);\n }\n if (chunk) {\n if (this.socketState === \"passthrough\") {\n (_a = this.originalSocket) == null ? void 0 : _a.write(chunk, encoding, callback);\n }\n this.requestParser.execute(\n Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding)\n );\n }\n },\n read: (chunk) => {\n if (chunk !== null) {\n this.responseParser.execute(\n Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)\n );\n }\n }\n });\n this.requestRawHeadersBuffer = [];\n this.responseRawHeadersBuffer = [];\n this.writeBuffer = [];\n this.socketState = \"unknown\";\n /**\n * This callback might be called when the request is \"slow\":\n * - Request headers were fragmented across multiple TCP packages;\n * - Request headers were too large to be processed in a single run\n * (e.g. more than 30 request headers).\n * @note This is called before request start.\n */\n this.onRequestHeaders = (rawHeaders) => {\n this.requestRawHeadersBuffer.push(...rawHeaders);\n };\n this.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n var _a;\n this.shouldKeepAlive = shouldKeepAlive;\n const url = new URL(path || \"\", this.baseUrl);\n const method = ((_a = this.connectionOptions.method) == null ? void 0 : _a.toUpperCase()) || \"GET\";\n const headers = FetchResponse.parseRawHeaders([\n ...this.requestRawHeadersBuffer,\n ...rawHeaders || []\n ]);\n this.requestRawHeadersBuffer.length = 0;\n const canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n if (url.username || url.password) {\n if (!headers.has(\"authorization\")) {\n headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n }\n url.username = \"\";\n url.password = \"\";\n }\n this.requestStream = new Readable({\n /**\n * @note Provide the `read()` method so a `Readable` could be\n * used as the actual request body (the stream calls \"read()\").\n * We control the queue in the onRequestBody/End functions.\n */\n read: () => {\n this.flushWriteBuffer();\n }\n });\n const requestId = createRequestId();\n this.request = new Request(url, {\n method,\n headers,\n credentials: \"same-origin\",\n // @ts-expect-error Undocumented Fetch property.\n duplex: canHaveBody ? \"half\" : void 0,\n body: canHaveBody ? Readable.toWeb(this.requestStream) : null\n });\n Reflect.set(this.request, kRequestId, requestId);\n setRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n setRawRequestBodyStream(this.request, this.requestStream);\n if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n this.passthrough();\n return;\n }\n this.onRequest({\n requestId,\n request: this.request,\n socket: this\n });\n };\n /**\n * This callback might be called when the response is \"slow\":\n * - Response headers were fragmented across multiple TCP packages;\n * - Response headers were too large to be processed in a single run\n * (e.g. more than 30 response headers).\n * @note This is called before response start.\n */\n this.onResponseHeaders = (rawHeaders) => {\n this.responseRawHeadersBuffer.push(...rawHeaders);\n };\n this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n const headers = FetchResponse.parseRawHeaders([\n ...this.responseRawHeadersBuffer,\n ...rawHeaders || []\n ]);\n this.responseRawHeadersBuffer.length = 0;\n const response = new FetchResponse(\n /**\n * @note The Fetch API response instance exposed to the consumer\n * is created over the response stream of the HTTP parser. It is NOT\n * related to the Socket instance. This way, you can read response body\n * in response listener while the Socket instance delays the emission\n * of \"end\" and other events until those response listeners are finished.\n */\n FetchResponse.isResponseWithBody(status) ? Readable.toWeb(\n this.responseStream = new Readable({ read() {\n } })\n ) : null,\n {\n url,\n status,\n statusText,\n headers\n }\n );\n invariant(\n this.request,\n \"Failed to handle a response: request does not exist\"\n );\n FetchResponse.setUrl(this.request.url, response);\n if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n return;\n }\n this.responseListenersPromise = this.onResponse({\n response,\n isMockedResponse: this.socketState === \"mock\",\n requestId: Reflect.get(this.request, kRequestId),\n request: this.request,\n socket: this\n });\n };\n this.connectionOptions = options.connectionOptions;\n this.createConnection = options.createConnection;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n this.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n this.requestParser = new HTTPParser();\n this.requestParser.initialize(HTTPParser.REQUEST, {});\n this.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n this.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n this.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n this.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n this.responseParser = new HTTPParser();\n this.responseParser.initialize(HTTPParser.RESPONSE, {});\n this.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n this.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n this.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n this.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n this.once(\"finish\", () => this.requestParser.free());\n if (this.baseUrl.protocol === \"https:\") {\n Reflect.set(this, \"encrypted\", true);\n Reflect.set(this, \"authorized\", false);\n Reflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n Reflect.set(this, \"getSession\", () => void 0);\n Reflect.set(this, \"isSessionReused\", () => false);\n Reflect.set(this, \"getCipher\", () => ({ name: \"AES256-SHA\", standardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\", version: \"TLSv1.3\" }));\n }\n }\n emit(event, ...args) {\n const emitEvent = super.emit.bind(this, event, ...args);\n if (this.responseListenersPromise) {\n this.responseListenersPromise.finally(emitEvent);\n return this.listenerCount(event) > 0;\n }\n return emitEvent();\n }\n destroy(error) {\n this.responseParser.free();\n if (error) {\n this.emit(\"error\", error);\n }\n return super.destroy(error);\n }\n /**\n * Establish this Socket connection as-is and pipe\n * its data/events through this Socket.\n */\n passthrough() {\n this.socketState = \"passthrough\";\n if (this.destroyed) {\n return;\n }\n const socket = this.createConnection();\n this.originalSocket = socket;\n if (\"_handle\" in socket) {\n Object.defineProperty(this, \"_handle\", {\n value: socket._handle,\n enumerable: true,\n writable: true\n });\n }\n this.once(\"error\", (error) => {\n socket.destroy(error);\n });\n this.address = socket.address.bind(socket);\n let writeArgs;\n let headersWritten = false;\n while (writeArgs = this.writeBuffer.shift()) {\n if (writeArgs !== void 0) {\n if (!headersWritten) {\n const [chunk, encoding, callback] = writeArgs;\n const chunkString = chunk.toString();\n const chunkBeforeRequestHeaders = chunkString.slice(\n 0,\n chunkString.indexOf(\"\\r\\n\") + 2\n );\n const chunkAfterRequestHeaders = chunkString.slice(\n chunk.indexOf(\"\\r\\n\\r\\n\")\n );\n const rawRequestHeaders = getRawFetchHeaders(this.request.headers);\n const requestHeadersString = rawRequestHeaders.filter(([name]) => {\n return name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n }).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\");\n const headersChunk = `${chunkBeforeRequestHeaders}${requestHeadersString}${chunkAfterRequestHeaders}`;\n socket.write(headersChunk, encoding, callback);\n headersWritten = true;\n continue;\n }\n socket.write(...writeArgs);\n }\n }\n if (Reflect.get(socket, \"encrypted\")) {\n const tlsProperties = [\n \"encrypted\",\n \"authorized\",\n \"getProtocol\",\n \"getSession\",\n \"isSessionReused\",\n \"getCipher\"\n ];\n tlsProperties.forEach((propertyName) => {\n Object.defineProperty(this, propertyName, {\n enumerable: true,\n get: () => {\n const value = Reflect.get(socket, propertyName);\n return typeof value === \"function\" ? value.bind(socket) : value;\n }\n });\n });\n }\n socket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n this.connecting = socket.connecting;\n this.emit(\"connect\");\n }).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 this.push(chunk);\n }).on(\"error\", (error) => {\n Reflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n this.emit(\"error\", error);\n }).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 }\n /**\n * Convert the given Fetch API `Response` instance to an\n * HTTP message and push it to the socket.\n */\n async respondWith(response) {\n var _a, _b, _c;\n if (this.destroyed) {\n return;\n }\n invariant(\n this.socketState !== \"mock\",\n '[MockHttpSocket] Failed to respond to the \"%s %s\" request with \"%s %s\": the request has already been handled',\n (_a = this.request) == null ? void 0 : _a.method,\n (_b = this.request) == null ? void 0 : _b.url,\n response.status,\n response.statusText\n );\n if (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n this.errorWith(new TypeError(\"Network error\"));\n return;\n }\n this.mockConnect();\n this.socketState = \"mock\";\n this.flushWriteBuffer();\n const serverResponse = new ServerResponse(new IncomingMessage(this));\n serverResponse.assignSocket(\n new MockSocket({\n write: (chunk, encoding, callback) => {\n this.push(chunk, encoding);\n callback == null ? void 0 : callback();\n },\n read() {\n }\n })\n );\n serverResponse.removeHeader(\"connection\");\n serverResponse.removeHeader(\"date\");\n const rawResponseHeaders = getRawFetchHeaders(response.headers);\n serverResponse.writeHead(\n response.status,\n response.statusText || STATUS_CODES[response.status],\n rawResponseHeaders\n );\n this.once(\"error\", () => {\n serverResponse.destroy();\n });\n if (response.body) {\n try {\n const reader = response.body.getReader();\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n serverResponse.end();\n break;\n }\n serverResponse.write(value);\n }\n } catch (error) {\n if (error instanceof Error) {\n serverResponse.destroy();\n this.destroy();\n return;\n }\n serverResponse.destroy();\n throw error;\n }\n } else {\n serverResponse.end();\n }\n if (!this.shouldKeepAlive) {\n this.emit(\"readable\");\n (_c = this.responseStream) == null ? void 0 : _c.push(null);\n this.push(null);\n }\n }\n /**\n * Close this socket connection with the given error.\n */\n errorWith(error) {\n this.destroy(error);\n }\n mockConnect() {\n this.connecting = false;\n const isIPv6 = net2.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n const addressInfo = {\n address: isIPv6 ? \"::1\" : \"127.0.0.1\",\n family: isIPv6 ? \"IPv6\" : \"IPv4\",\n port: this.connectionOptions.port\n };\n this.address = () => addressInfo;\n this.emit(\n \"lookup\",\n null,\n addressInfo.address,\n addressInfo.family === \"IPv6\" ? 6 : 4,\n this.connectionOptions.host\n );\n this.emit(\"connect\");\n this.emit(\"ready\");\n if (this.baseUrl.protocol === \"https:\") {\n this.emit(\"secure\");\n this.emit(\"secureConnect\");\n this.emit(\n \"session\",\n this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\")\n );\n this.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n }\n }\n flushWriteBuffer() {\n for (const writeCall of this.writeBuffer) {\n if (typeof writeCall[2] === \"function\") {\n writeCall[2]();\n writeCall[2] = void 0;\n }\n }\n }\n onRequestBody(chunk) {\n invariant(\n this.requestStream,\n \"Failed to write to a request stream: stream does not exist\"\n );\n this.requestStream.push(chunk);\n }\n onRequestEnd() {\n if (this.requestStream) {\n this.requestStream.push(null);\n }\n }\n onResponseBody(chunk) {\n invariant(\n this.responseStream,\n \"Failed to write to a response stream: stream does not exist\"\n );\n this.responseStream.push(chunk);\n }\n onResponseEnd() {\n if (this.responseStream) {\n this.responseStream.push(null);\n }\n }\n};\n\n// src/interceptors/ClientRequest/agents.ts\nimport http from \"http\";\nimport https from \"https\";\nvar MockAgent = class extends http.Agent {\n constructor(options) {\n super();\n this.customAgent = options.customAgent;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n }\n createConnection(options, callback) {\n const createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n const createConnectionOptions = this.customAgent instanceof http.Agent ? {\n ...options,\n ...this.customAgent.options\n } : options;\n const socket = new MockHttpSocket({\n connectionOptions: options,\n createConnection: createConnection.bind(\n this.customAgent || this,\n createConnectionOptions,\n callback\n ),\n onRequest: this.onRequest.bind(this),\n onResponse: this.onResponse.bind(this)\n });\n return socket;\n }\n};\nvar MockHttpsAgent = class extends https.Agent {\n constructor(options) {\n super();\n this.customAgent = options.customAgent;\n this.onRequest = options.onRequest;\n this.onResponse = options.onResponse;\n }\n createConnection(options, callback) {\n const createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n const createConnectionOptions = this.customAgent instanceof http.Agent ? {\n ...options,\n ...this.customAgent.options\n } : options;\n const socket = new MockHttpSocket({\n connectionOptions: options,\n createConnection: createConnection.bind(\n this.customAgent || this,\n createConnectionOptions,\n callback\n ),\n onRequest: this.onRequest.bind(this),\n onResponse: this.onResponse.bind(this)\n });\n return socket;\n }\n};\n\n// src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nimport { urlToHttpOptions } from \"url\";\nimport {\n globalAgent as httpGlobalAgent\n} from \"http\";\nimport {\n globalAgent as httpsGlobalAgent\n} from \"https\";\nimport {\n URL as URL2,\n parse as parseUrl\n} from \"url\";\nimport { Logger as Logger3 } from \"@open-draft/logger\";\n\n// src/utils/getUrlByRequestOptions.ts\nimport { Agent } from \"http\";\nimport { Logger } from \"@open-draft/logger\";\nvar logger = new Logger(\"utils getUrlByRequestOptions\");\nvar DEFAULT_PATH = \"/\";\nvar DEFAULT_PROTOCOL = \"http:\";\nvar DEFAULT_HOSTNAME = \"localhost\";\nvar SSL_PORT = 443;\nfunction getAgent(options) {\n return options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n var _a;\n if (options.protocol) {\n return options.protocol;\n }\n const agent = getAgent(options);\n const agentProtocol = agent == null ? void 0 : agent.protocol;\n if (agentProtocol) {\n return agentProtocol;\n }\n const port = getPortByRequestOptions(options);\n const isSecureRequest = options.cert || port === SSL_PORT;\n return isSecureRequest ? \"https:\" : ((_a = options.uri) == null ? void 0 : _a.protocol) || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n if (options.port) {\n return Number(options.port);\n }\n const agent = getAgent(options);\n if (agent == null ? void 0 : agent.options.port) {\n return Number(agent.options.port);\n }\n if (agent == null ? void 0 : agent.defaultPort) {\n return Number(agent.defaultPort);\n }\n return void 0;\n}\nfunction getAuthByRequestOptions(options) {\n if (options.auth) {\n const [username, password] = options.auth.split(\":\");\n return { username, password };\n }\n}\nfunction isRawIPv6Address(host) {\n return host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n let host = options.hostname || options.host;\n if (host) {\n if (isRawIPv6Address(host)) {\n host = `[${host}]`;\n }\n return new URL(`http://${host}`).hostname;\n }\n return DEFAULT_HOSTNAME;\n}\nfunction getUrlByRequestOptions(options) {\n logger.info(\"request options\", options);\n if (options.uri) {\n logger.info(\n 'constructing url from explicitly provided \"options.uri\": %s',\n options.uri\n );\n return new URL(options.uri.href);\n }\n logger.info(\"figuring out url from request options...\");\n const protocol = getProtocolByRequestOptions(options);\n logger.info(\"protocol\", protocol);\n const port = getPortByRequestOptions(options);\n logger.info(\"port\", port);\n const hostname = getHostname(options);\n logger.info(\"hostname\", hostname);\n const path = options.path || DEFAULT_PATH;\n logger.info(\"path\", path);\n const credentials = getAuthByRequestOptions(options);\n logger.info(\"credentials\", credentials);\n const authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n logger.info(\"auth string:\", authString);\n const portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n const url = new URL(`${protocol}//${hostname}${portString}${path}`);\n url.username = (credentials == null ? void 0 : credentials.username) || \"\";\n url.password = (credentials == null ? void 0 : credentials.password) || \"\";\n logger.info(\"created url:\", url);\n return url;\n}\n\n// src/utils/cloneObject.ts\nimport { Logger as Logger2 } from \"@open-draft/logger\";\nvar logger2 = new Logger2(\"cloneObject\");\nfunction isPlainObject(obj) {\n var _a;\n logger2.info(\"is plain object?\", obj);\n if (obj == null || !((_a = obj.constructor) == null ? void 0 : _a.name)) {\n logger2.info(\"given object is undefined, not a plain object...\");\n return false;\n }\n logger2.info(\"checking the object constructor:\", obj.constructor.name);\n return obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n logger2.info(\"cloning object:\", obj);\n const enumerableProperties = Object.entries(obj).reduce(\n (acc, [key, value]) => {\n logger2.info(\"analyzing key-value pair:\", key, value);\n acc[key] = isPlainObject(value) ? cloneObject(value) : value;\n return acc;\n },\n {}\n );\n return isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n// src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nvar logger3 = new Logger3(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n if (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n logger3.info(\"request options not provided, deriving from the url\", url);\n return urlToHttpOptions(url);\n }\n if (args[1]) {\n logger3.info(\"has custom RequestOptions!\", args[1]);\n const requestOptionsFromUrl = urlToHttpOptions(url);\n logger3.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n logger3.info(\"cloning RequestOptions...\");\n const clonedRequestOptions = cloneObject(args[1]);\n logger3.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n return {\n ...requestOptionsFromUrl,\n ...clonedRequestOptions\n };\n }\n logger3.info(\"using an empty object as request options\");\n return {};\n}\nfunction overrideUrlByRequestOptions(url, options) {\n url.host = options.host || url.host;\n url.hostname = options.hostname || url.hostname;\n url.port = options.port ? options.port.toString() : url.port;\n if (options.path) {\n const parsedOptionsPath = parseUrl(options.path, false);\n url.pathname = parsedOptionsPath.pathname || \"\";\n url.search = parsedOptionsPath.search || \"\";\n }\n return url;\n}\nfunction resolveCallback(args) {\n return typeof args[1] === \"function\" ? args[1] : args[2];\n}\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n let url;\n let options;\n let callback;\n logger3.info(\"arguments\", args);\n logger3.info(\"using default protocol:\", defaultProtocol);\n if (args.length === 0) {\n const url2 = new URL2(\"http://localhost\");\n const options2 = resolveRequestOptions(args, url2);\n return [url2, options2];\n }\n if (typeof args[0] === \"string\") {\n logger3.info(\"first argument is a location string:\", args[0]);\n url = new URL2(args[0]);\n logger3.info(\"created a url:\", url);\n const requestOptionsFromUrl = urlToHttpOptions(url);\n logger3.info(\"request options from url:\", requestOptionsFromUrl);\n options = resolveRequestOptions(args, url);\n logger3.info(\"resolved request options:\", options);\n callback = resolveCallback(args);\n } else if (args[0] instanceof URL2) {\n url = args[0];\n logger3.info(\"first argument is a URL:\", url);\n if (typeof args[1] !== \"undefined\" && isObject(args[1])) {\n url = overrideUrlByRequestOptions(url, args[1]);\n }\n options = resolveRequestOptions(args, url);\n logger3.info(\"derived request options:\", options);\n callback = resolveCallback(args);\n } else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n const [legacyUrl] = args;\n logger3.info(\"first argument is a legacy URL:\", legacyUrl);\n if (legacyUrl.hostname === null) {\n logger3.info(\"given legacy URL is relative (no hostname)\");\n return isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [\n { path: legacyUrl.path, ...args[1] },\n args[2]\n ]) : normalizeClientRequestArgs(defaultProtocol, [\n { path: legacyUrl.path },\n args[1]\n ]);\n }\n logger3.info(\"given legacy url is absolute\");\n const resolvedUrl = new URL2(legacyUrl.href);\n return args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n resolvedUrl,\n args[1],\n args[2]\n ]);\n } else if (isObject(args[0])) {\n options = { ...args[0] };\n logger3.info(\"first argument is RequestOptions:\", options);\n options.protocol = options.protocol || defaultProtocol;\n logger3.info(\"normalized request options:\", options);\n url = getUrlByRequestOptions(options);\n logger3.info(\"created a URL from RequestOptions:\", url.href);\n callback = resolveCallback(args);\n } else {\n throw new Error(\n `Failed to construct ClientRequest with these parameters: ${args}`\n );\n }\n options.protocol = options.protocol || url.protocol;\n options.method = options.method || \"GET\";\n if (!options._defaultAgent) {\n logger3.info(\n 'has no default agent, setting the default agent for \"%s\"',\n options.protocol\n );\n options._defaultAgent = options.protocol === \"https:\" ? httpsGlobalAgent : httpGlobalAgent;\n }\n logger3.info(\"successfully resolved url:\", url.href);\n logger3.info(\"successfully resolved options:\", options);\n logger3.info(\"successfully resolved callback:\", callback);\n if (!(url instanceof URL2)) {\n url = url.toString();\n }\n return [url, options, callback];\n}\n\n// src/interceptors/ClientRequest/index.ts\nvar _ClientRequestInterceptor = class extends Interceptor {\n constructor() {\n super(_ClientRequestInterceptor.symbol);\n this.onRequest = async ({\n request,\n socket\n }) => {\n const controller = new RequestController(request, {\n passthrough() {\n socket.passthrough();\n },\n async respondWith(response) {\n await socket.respondWith(response);\n },\n errorWith(reason) {\n if (reason instanceof Error) {\n socket.errorWith(reason);\n }\n }\n });\n await handleRequest({\n request,\n requestId: Reflect.get(request, kRequestId),\n controller,\n emitter: this.emitter\n });\n };\n this.onResponse = async ({\n requestId,\n request,\n response,\n isMockedResponse\n }) => {\n return emitAsync(this.emitter, \"response\", {\n requestId,\n request,\n response,\n isMockedResponse\n });\n };\n }\n setup() {\n const {\n ClientRequest: OriginalClientRequest,\n get: originalGet,\n request: originalRequest\n } = http2;\n const { get: originalHttpsGet, request: originalHttpsRequest } = https2;\n const onRequest = this.onRequest.bind(this);\n const onResponse = this.onResponse.bind(this);\n http2.ClientRequest = new Proxy(http2.ClientRequest, {\n construct: (target, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const Agent2 = options.protocol === \"https:\" ? MockHttpsAgent : MockAgent;\n const mockAgent = new Agent2({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.construct(target, [url, options, callback]);\n }\n });\n http2.request = new Proxy(http2.request, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const mockAgent = new MockAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n http2.get = new Proxy(http2.get, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"http:\",\n args\n );\n const mockAgent = new MockAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n https2.request = new Proxy(https2.request, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"https:\",\n args\n );\n const mockAgent = new MockHttpsAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n https2.get = new Proxy(https2.get, {\n apply: (target, thisArg, args) => {\n const [url, options, callback] = normalizeClientRequestArgs(\n \"https:\",\n args\n );\n const mockAgent = new MockHttpsAgent({\n customAgent: options.agent,\n onRequest,\n onResponse\n });\n options.agent = mockAgent;\n return Reflect.apply(target, thisArg, [url, options, callback]);\n }\n });\n recordRawFetchHeaders();\n this.subscriptions.push(() => {\n http2.ClientRequest = OriginalClientRequest;\n http2.get = originalGet;\n http2.request = originalRequest;\n https2.get = originalHttpsGet;\n https2.request = originalHttpsRequest;\n restoreHeadersPrototype();\n });\n }\n};\nvar ClientRequestInterceptor = _ClientRequestInterceptor;\nClientRequestInterceptor.symbol = Symbol(\"client-request-interceptor\");\n\nexport {\n ClientRequestInterceptor\n};\n//# sourceMappingURL=chunk-5UGIB6OX.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","kRequestId","MockHttpSocket","_a","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","socket","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","HTTPParser","initialize","REQUEST","kOnHeaders","bind","kOnHeadersComplete","kOnBody","onRequestBody","kOnMessageComplete","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","once","free","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","destroyed","writeArgs","_handle","writable","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","_b","_c","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","net2","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger2","Logger2","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger3","Logger3","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url2","URL2","isObject","parsedOptionsPath","parseUrl","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","httpsGlobalAgent","httpGlobalAgent","_ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","http2","originalHttpsGet","originalHttpsRequest","https2","Proxy","construct","target","mockAgent","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers2","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions","ClientRequestInterceptor"],"mappings":"q3BAqCA,SAASA,EAAyBC,GAChC,MAAMC,EAAa,CAACD,EAAK,QAAI,OAAQ,GASrC,MARuB,iBAAZA,EAAK,GACdC,EAAW,GAAKD,EAAK,GACO,mBAAZA,EAAK,KACrBC,EAAW,GAAKD,EAAK,IAEA,mBAAZA,EAAK,KACdC,EAAW,GAAKD,EAAK,IAEhBC,CACT,CAGA,IAAIC,EAAa,cAAcC,EAAIC,OACjC,WAAAC,CAAYC,GACVC,QACAC,KAAKF,QAAUA,EACfE,KAAKC,YAAa,EAClBD,KAAKE,UACLF,KAAKG,OAAUC,IACbA,EAAS,MAEb,CACA,OAAAF,GAEE,OADAF,KAAKC,YAAa,EACXD,IACT,CACA,KAAAK,IAASb,GACP,MAAOc,EAAOC,EAAUH,GAAYb,EAClCC,GAGF,OADAQ,KAAKF,QAAQO,MAAMC,EAAOC,EAAUH,IAC7B,CACT,CACA,GAAAI,IAAOhB,GACL,MAAOc,EAAOC,EAAUH,GAAYb,EAClCC,GAGF,OADAQ,KA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UC,EAAQjR,EAAM8R,GAC1CI,EAAqB,GAU3B,MATuB,iBAAZlS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SACzC0Q,EAAmBhR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UAE9B,iBAAZxB,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SACzC0Q,EAAmBhR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UAEjD0Q,EAAmBnQ,OAAS,GAC9BL,EAAuB6D,EAAQ/D,QAAS0Q,GAEnC3M,CACT,MAGJpD,OAAOC,eAAeoP,WAAY,WAAY,CAC5ClP,YAAY,EACZ+G,UAAU,EACVhH,MAAO,IAAI0O,MAAMO,SAAU,CACzB,SAAAN,CAAUC,EAAQjR,EAAM8R,GACtB,MAAMvL,EAAW3E,QAAQoP,UAAUC,EAAQjR,EAAM8R,GAOjD,MANuB,iBAAZ9R,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SACzCE,EACE6E,EAAS/E,QACTqB,EAAgB7C,EAAK,GAAGwB,UAGrB+E,CACT,KAGN,CAm1BI4L,GACA3R,KAAK4R,cAAclR,MAAK,KACtByP,EAAMJ,cAAgBC,EACtBG,EAAM9O,IAAM4O,EACZE,EAAMpL,QAAUmL,EAChBI,EAAOjP,IAAM+O,EACbE,EAAOvL,QAAUsL,EAv1BhBjP,QAAQC,IAAIiB,QAASxB,IAG1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAu1BA,GAEEyQ,EAA2BzC,EAC/ByC,EAAyBvC,OAASzO,OAAO","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-6HYIRFX2.cjs.js"),t=require("./chunk-TX5GBTFY.cjs.js"),s=require("./chunk-6YM4PLBI.cjs.js"),r=require("./chunk-R6T7CL5E.cjs.js"),n=require("./chunk-JXGB54LE.cjs.js"),o=require("./chunk-YWNGXXUQ.cjs.js"),i=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js"),a=require("../../../../../../is-node-process@1.2.0/node_modules/is-node-process/lib/index.cjs.js");var u=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=(null==t?void 0:t.target)||null,this.currentTarget=(null==t?void 0:t.currentTarget)||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,s){this.type=e,this.bubbles=!!t,this.cancelable=!!s}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},l=class extends u{constructor(e,t){super(e),this.lengthComputable=(null==t?void 0:t.lengthComputable)||!1,this.composed=(null==t?void 0:t.composed)||!1,this.loaded=(null==t?void 0:t.loaded)||0,this.total=(null==t?void 0:t.total)||0}},h="undefined"!=typeof ProgressEvent;function d(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const s=Reflect.getPrototypeOf(e);return s?d(s,t):null}function c(e,t){const s=new Proxy(e,function(e){const{constructorCall:t,methodCall:s,getProperty:r,setProperty:n}=e,o={};void 0!==t&&(o.construct=function(e,s,r){const n=Reflect.construct.bind(null,e,s,r);return t.call(r,s,n)});return o.set=function(e,t,s){const r=()=>{const r=d(e,t)||e,n=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==(null==n?void 0:n.set)?(n.set.apply(e,[s]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:s})};return void 0!==n?n.call(e,[t,s],r):r()},o.get=function(e,t,n){const o=()=>e[t],i=void 0!==r?r.call(e,[t,n],o):o();return"function"==typeof i?(...r)=>{const n=i.bind(e,...r);return void 0!==s?s.call(e,[t,r],n):n()}:i},o}(t));return s}function p(e){const t=new Headers,s=e.split(/[\r\n]+/);for(const e of s){if(""===e.trim())continue;const[s,...r]=e.split(": "),n=r.join(": ");t.append(s,n)}return t}async function g(e){const t=e.headers.get("content-length");if(null!=t&&""!==t)return Number(t);return(await e.arrayBuffer()).byteLength}var f=Symbol("kIsRequestHandled"),q=a.isNodeProcess(),y=Symbol("kFetchRequest"),m=class{constructor(t,s){this.initialRequest=t,this.logger=s,this.method="GET",this.url=null,this[f]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=n.createRequestId(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=c(t,{setProperty:([e,t],s)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),s()}return s()},methodCall:([t,s],r)=>{switch(t){case"open":{const[e,t]=s;return void 0===t?(this.method="GET",this.url=v(e)):(this.method=e,this.url=v(t)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),r()}case"addEventListener":{const[e,t]=s;return this.registerEvent(e,t),this.logger.info("addEventListener",e,t),r()}case"setRequestHeader":{const[e,t]=s;return this.requestHeaders.set(e,t),this.logger.info("setRequestHeader",e,t),r()}case"send":{const[t]=s;this.request.addEventListener("load",(()=>{if(void 0!==this.onResponse){const e=function(e,t){const s=n.FetchResponse.isResponseWithBody(e.status)?t:null;return new n.FetchResponse(s,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:p(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[f],request:i,requestId:this.requestId})}}));const o="string"==typeof t?e.encodeBuffer(t):t,i=this.toFetchApiRequest(o);this[y]=i.clone(),queueMicrotask((()=>{var e;((null==(e=this.onRequest)?void 0:e.call(this,{request:i,requestId:this.requestId}))||Promise.resolve()).finally((()=>{if(!this[f])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),q&&this.request.setRequestHeader(n.INTERNAL_REQUEST_ID_HEADER_NAME,this.requestId),r()}))}));break}default:return r()}}}),R(this.request,"upload",c(this.request.upload,{setProperty:([e,t],s)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const s=e.slice(2);this.registerUploadEvent(s,t)}}return s()},methodCall:([e,t],s)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),s()}}}))}registerEvent(e,t){const s=(this.events.get(e)||[]).concat(t);this.events.set(e,s),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const s=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,s),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[f]=!0,this[y]){const e=await g(this[y]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),R(this.request,"status",e.status),R(this.request,"statusText",e.statusText),R(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,s,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const n=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],n),n}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map((([e,t])=>`${e}: ${t}`)).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await g(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const s=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),n=async()=>{const{value:e,done:o}=await r.read();if(o)return this.logger.info("response body stream done!"),void s();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const s=new Uint8Array(e.byteLength+t.byteLength);return s.set(e,0),s.set(t,e.byteLength),s}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),n()};n()}else s()}responseBufferToText(){return e.decodeBuffer(this.responseBuffer)}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const t=e.toArrayBuffer(this.responseBuffer);return this.logger.info("resolved response ArrayBuffer",t),t}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}}get responseText(){if(i.invariant(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(i.invariant(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):(t=e,["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some((e=>t.startsWith(e)))?(new DOMParser).parseFromString(this.responseBufferToText(),e):null);var t}errorWith(e){this[f]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(R(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,s){const r=t[`on${e}`],n=function(e,t,s){const r=h?ProgressEvent:l;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:(null==s?void 0:s.loaded)||0,total:(null==s?void 0:s.total)||0}):new u(t,{target:e,currentTarget:e})}(t,e,s);this.logger.info('trigger "%s"',e,s||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,n));const o=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[s,r]of o)s===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach((e=>e.call(t,n))))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,s=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t}),r=c(s.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,s]=t;this.request.setRequestHeader(e,s);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${s.method} ${s.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}});return R(s,"headers",r),o.setRawRequest(s,this.request),this.logger.info("converted request to a Fetch API Request!",s),s}};function v(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function R(e,t,s){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:s})}var b=class extends n.Interceptor{constructor(){super(b.interceptorSymbol)}checkEnvironment(){return t.hasConfigurableGlobal("XMLHttpRequest")}setup(){const e=this.logger.extend("setup");e.info('patching "XMLHttpRequest" module...');const t=globalThis.XMLHttpRequest;i.invariant(!t[s.IS_PATCHED_MODULE],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:t}){return new Proxy(globalThis.XMLHttpRequest,{construct(s,o,i){t.info("constructed new XMLHttpRequest");const a=Reflect.construct(s,o,i),u=Object.getOwnPropertyDescriptors(s.prototype);for(const e in u)Reflect.defineProperty(a,e,u[e]);const l=new m(a,t);return l.onRequest=async function({request:t,requestId:s}){const o=new n.RequestController(t,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{r.isResponseError(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await r.handleRequest({request:t,requestId:s,controller:o,emitter:e})},l.onResponse=async function({response:t,isMockedResponse:s,request:r,requestId:n}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:s,request:r,requestId:n})},l.request}})}({emitter:this.emitter,logger:this.logger}),e.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,s.IS_PATCHED_MODULE,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((()=>{Object.defineProperty(globalThis.XMLHttpRequest,s.IS_PATCHED_MODULE,{value:void 0}),globalThis.XMLHttpRequest=t,e.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)}))}},E=b;E.interceptorSymbol=Symbol("xhr"),exports.XMLHttpRequestInterceptor=E;
|
|
2
|
-
//# sourceMappingURL=chunk-5V3SIIW2.cjs.js.map
|