@psnext/slingcli 3.5.20261007-3 → 3.5.20261019-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/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
- package/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js +21 -86
- package/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +3 -103
- package/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-TFS67BSI.js → chunk-23QDZLZG.js} +20 -14
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-IB6ONE3U.js → chunk-QPFSTNX5.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{virtual-modules-P5ROWYIG.js → virtual-modules-GRXGP6ZA.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +11 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Errors.md +101 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/index.md +22 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/type-map.json +66 -66
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/constants.js +12 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/errors.js +38 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/request.js +39 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/util.js +26 -40
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +10 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool.js +99 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +153 -15
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +126 -52
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +31 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +116 -24
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +15 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +253 -73
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/response-error.js +72 -28
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/LICENSE.md +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/no-simd.js +1002 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/simd.js +1002 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +11 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +11 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/body.js +69 -53
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js +36 -33
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +54 -29
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/receiver.js +27 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +7 -5
- package/node_modules/@earendil-works/pi-coding-agent/package.json +2 -2
- package/node_modules/@hono/node-server/README.md +2 -0
- package/node_modules/@hono/node-server/dist/index.cjs +1 -1
- package/node_modules/@hono/node-server/dist/index.mjs +1 -1
- package/node_modules/@hono/node-server/dist/serve-static.cjs +2 -1
- package/node_modules/@hono/node-server/dist/serve-static.mjs +2 -1
- package/node_modules/@hono/node-server/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
- package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
- package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
- package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
- package/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/content-disposition/README.md +105 -35
- package/node_modules/content-disposition/dist/index.d.ts +72 -0
- package/node_modules/content-disposition/dist/index.js +388 -0
- package/node_modules/content-disposition/dist/index.js.map +1 -0
- package/node_modules/content-disposition/package.json +31 -19
- package/node_modules/express/Readme.md +15 -9
- package/node_modules/express/lib/application.js +2 -2
- package/node_modules/express/lib/request.js +32 -19
- package/node_modules/express/lib/response.js +27 -30
- package/node_modules/express/node_modules/content-type/LICENSE +22 -0
- package/node_modules/express/node_modules/content-type/README.md +71 -0
- package/node_modules/express/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/express/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/express/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/express/node_modules/content-type/package.json +52 -0
- package/node_modules/express/package.json +10 -10
- package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
- package/node_modules/fast-uri/README.md +8 -0
- package/node_modules/fast-uri/index.js +98 -18
- package/node_modules/fast-uri/lib/utils.js +52 -0
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
- package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
- package/node_modules/ip-address/README.md +70 -70
- package/node_modules/ip-address/dist/ipv6.js +7 -4
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +3 -0
- package/node_modules/ip-address/dist/v6/constants.js +3 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/package.json +2 -1
- package/node_modules/jose/README.md +2 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
- package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
- package/node_modules/jose/dist/types/key/export.d.ts +1 -1
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
- package/node_modules/jose/dist/types/key/import.d.ts +2 -2
- package/node_modules/jose/dist/types/types.d.ts +165 -107
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
- package/node_modules/jose/dist/types/util/errors.d.ts +1 -1
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
- package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
- package/node_modules/jose/dist/webapi/lib/key.js +4 -4
- package/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
- package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/jose/package.json +1 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +38 -14
- package/node_modules/qs/README.md +31 -3
- package/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/qs/lib/parse.js +94 -4
- package/node_modules/qs/lib/stringify.js +4 -4
- package/node_modules/qs/lib/utils.js +130 -6
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +174 -0
- package/node_modules/qs/test/stringify.js +263 -33
- package/node_modules/qs/test/utils.js +184 -0
- package/node_modules/undici/docs/docs/api/Client.md +2 -0
- package/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/undici/lib/core/symbols.js +1 -0
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
- package/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
- package/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
- package/node_modules/undici/lib/handler/cache-handler.js +48 -0
- package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
- package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
- package/node_modules/undici/lib/interceptor/decompress.js +15 -5
- package/node_modules/undici/lib/web/cookies/index.js +3 -1
- package/node_modules/undici/lib/web/cookies/parse.js +138 -137
- package/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
- package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/undici/lib/web/fetch/index.js +3 -3
- package/node_modules/undici/lib/web/infra/index.js +14 -0
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/client.d.ts +14 -0
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/package.json +5 -4
- package/slingshot/index.js +124 -124
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- package/node_modules/content-disposition/index.js +0 -536
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
- /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js
CHANGED
|
@@ -812,11 +812,8 @@ async function mainFetch (fetchParams, recursive) {
|
|
|
812
812
|
// https://fetch.spec.whatwg.org/#concept-scheme-fetch
|
|
813
813
|
// given a fetch params fetchParams
|
|
814
814
|
function schemeFetch (fetchParams) {
|
|
815
|
-
// Note: since the connection is destroyed on redirect, which sets fetchParams to a
|
|
816
|
-
// cancelled state, we do not want this condition to trigger *unless* there have been
|
|
817
|
-
// no redirects. See https://github.com/nodejs/undici/issues/1776
|
|
818
815
|
// 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
|
|
819
|
-
if (isCancelled(fetchParams)
|
|
816
|
+
if (isCancelled(fetchParams)) {
|
|
820
817
|
return Promise.resolve(makeAppropriateNetworkError(fetchParams))
|
|
821
818
|
}
|
|
822
819
|
|
|
@@ -1030,18 +1027,18 @@ function fetchFinale (fetchParams, response) {
|
|
|
1030
1027
|
// `Server-Timing` from response’s internal response’s header list.
|
|
1031
1028
|
// TODO
|
|
1032
1029
|
|
|
1033
|
-
// 3.
|
|
1030
|
+
// 3. If fetchParams’s request’s destination is "document", then set fetchParams’s controller’s
|
|
1031
|
+
// full timing info to fetchParams’s timing info.
|
|
1032
|
+
if (fetchParams.request.destination === 'document') {
|
|
1033
|
+
fetchParams.controller.fullTimingInfo = timingInfo
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// 4. Let processResponseEndOfBody be the following steps:
|
|
1034
1037
|
const processResponseEndOfBody = () => {
|
|
1035
1038
|
// 1. Let unsafeEndTime be the unsafe shared current time.
|
|
1036
1039
|
const unsafeEndTime = Date.now() // ?
|
|
1037
1040
|
|
|
1038
|
-
// 2.
|
|
1039
|
-
// full timing info to fetchParams’s timing info.
|
|
1040
|
-
if (fetchParams.request.destination === 'document') {
|
|
1041
|
-
fetchParams.controller.fullTimingInfo = timingInfo
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
// 3. Set fetchParams’s controller’s report timing steps to the following steps given a global object global:
|
|
1041
|
+
// 2. Set fetchParams’s controller’s report timing steps to the following steps given a global object global:
|
|
1045
1042
|
fetchParams.controller.reportTimingSteps = () => {
|
|
1046
1043
|
// 1. If fetchParams’s request’s URL’s scheme is not an HTTP(S) scheme, then return.
|
|
1047
1044
|
if (!urlIsHttpHttpsScheme(fetchParams.request.url)) {
|
|
@@ -1090,7 +1087,7 @@ function fetchFinale (fetchParams, response) {
|
|
|
1090
1087
|
}
|
|
1091
1088
|
}
|
|
1092
1089
|
|
|
1093
|
-
//
|
|
1090
|
+
// 3. Let processResponseEndOfBodyTask be the following steps:
|
|
1094
1091
|
const processResponseEndOfBodyTask = () => {
|
|
1095
1092
|
// 1. Set fetchParams’s request’s done flag.
|
|
1096
1093
|
fetchParams.request.done = true
|
|
@@ -1109,11 +1106,11 @@ function fetchFinale (fetchParams, response) {
|
|
|
1109
1106
|
}
|
|
1110
1107
|
}
|
|
1111
1108
|
|
|
1112
|
-
//
|
|
1109
|
+
// 4. Queue a fetch task to run processResponseEndOfBodyTask with fetchParams’s task destination
|
|
1113
1110
|
queueMicrotask(() => processResponseEndOfBodyTask())
|
|
1114
1111
|
}
|
|
1115
1112
|
|
|
1116
|
-
//
|
|
1113
|
+
// 5. If fetchParams’s process response is non-null, then queue a fetch task to run fetchParams’s
|
|
1117
1114
|
// process response given response, with fetchParams’s task destination.
|
|
1118
1115
|
if (fetchParams.processResponse != null) {
|
|
1119
1116
|
queueMicrotask(() => {
|
|
@@ -1122,11 +1119,14 @@ function fetchFinale (fetchParams, response) {
|
|
|
1122
1119
|
})
|
|
1123
1120
|
}
|
|
1124
1121
|
|
|
1125
|
-
//
|
|
1122
|
+
// 6. Let internalResponse be response, if response is a network error; otherwise response’s internal response.
|
|
1126
1123
|
const internalResponse = response.type === 'error' ? response : (response.internalResponse ?? response)
|
|
1127
1124
|
|
|
1128
|
-
//
|
|
1129
|
-
//
|
|
1125
|
+
// 7. If response is a network error, then run the WebDriver BiDi fetch error steps with request.
|
|
1126
|
+
// Otherwise, run the WebDriver BiDi response completed steps with request and response.
|
|
1127
|
+
|
|
1128
|
+
// 8. If internalResponse’s body is null, then run processResponseEndOfBody.
|
|
1129
|
+
// 9. Otherwise:
|
|
1130
1130
|
if (internalResponse.body == null) {
|
|
1131
1131
|
processResponseEndOfBody()
|
|
1132
1132
|
} else {
|
|
@@ -1144,6 +1144,27 @@ function fetchFinale (fetchParams, response) {
|
|
|
1144
1144
|
processResponseEndOfBody()
|
|
1145
1145
|
})
|
|
1146
1146
|
}
|
|
1147
|
+
|
|
1148
|
+
// 10. If fetchParams’s process response consume body is non-null, then:
|
|
1149
|
+
if (fetchParams.processResponseConsumeBody != null) {
|
|
1150
|
+
// 1. Let processBody given nullOrBytes be this step: run fetchParams’s
|
|
1151
|
+
// process response consume body given response and nullOrBytes.
|
|
1152
|
+
const processBody = (nullOrBytes) => fetchParams.processResponseConsumeBody(response, nullOrBytes)
|
|
1153
|
+
|
|
1154
|
+
// 2. Let processBodyError be this step: run fetchParams’s process
|
|
1155
|
+
// response consume body given response and failure.
|
|
1156
|
+
const processBodyError = () => fetchParams.processResponseConsumeBody(response, 'failure')
|
|
1157
|
+
|
|
1158
|
+
// 3. If internalResponse’s body is null, then queue a fetch task to run
|
|
1159
|
+
// processBody given null, with fetchParams’s task destination.
|
|
1160
|
+
if (internalResponse.body == null) {
|
|
1161
|
+
queueMicrotask(() => processBody(null))
|
|
1162
|
+
} else {
|
|
1163
|
+
// 4. Otherwise, fully read internalResponse’s body given processBody,
|
|
1164
|
+
// processBodyError, and fetchParams’s task destination.
|
|
1165
|
+
fullyReadBody(internalResponse.body, processBody, processBodyError)
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1147
1168
|
}
|
|
1148
1169
|
|
|
1149
1170
|
// https://fetch.spec.whatwg.org/#http-fetch
|
|
@@ -1219,7 +1240,7 @@ async function httpFetch (fetchParams) {
|
|
|
1219
1240
|
// encouraged to, transmit an RST_STREAM frame.
|
|
1220
1241
|
// See, https://github.com/whatwg/fetch/issues/1288
|
|
1221
1242
|
if (request.redirect !== 'manual') {
|
|
1222
|
-
fetchParams.controller.connection.destroy(
|
|
1243
|
+
fetchParams.controller.connection.destroy()
|
|
1223
1244
|
}
|
|
1224
1245
|
|
|
1225
1246
|
// 2. Switch on request’s redirect mode:
|
|
@@ -1828,12 +1849,10 @@ async function httpNetworkFetch (
|
|
|
1828
1849
|
fetchParams.controller.connection = {
|
|
1829
1850
|
abort: null,
|
|
1830
1851
|
destroyed: false,
|
|
1831
|
-
destroy (err
|
|
1852
|
+
destroy (err) {
|
|
1832
1853
|
if (!this.destroyed) {
|
|
1833
1854
|
this.destroyed = true
|
|
1834
|
-
|
|
1835
|
-
this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
|
|
1836
|
-
}
|
|
1855
|
+
this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
|
|
1837
1856
|
}
|
|
1838
1857
|
}
|
|
1839
1858
|
}
|
|
@@ -2261,8 +2280,6 @@ async function httpNetworkFetch (
|
|
|
2261
2280
|
appendHeadersListFromResponseHeaders(headersList, headers, rawHeaders)
|
|
2262
2281
|
const location = headersList.get('location', true)
|
|
2263
2282
|
|
|
2264
|
-
this.body = new Readable({ read: () => controller.resume() })
|
|
2265
|
-
|
|
2266
2283
|
const willFollow = location && request.redirect === 'follow' &&
|
|
2267
2284
|
redirectStatusSet.has(status)
|
|
2268
2285
|
|
|
@@ -2280,7 +2297,7 @@ async function httpNetworkFetch (
|
|
|
2280
2297
|
// CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).
|
|
2281
2298
|
const maxContentEncodings = 5
|
|
2282
2299
|
if (codings.length > maxContentEncodings) {
|
|
2283
|
-
|
|
2300
|
+
controller.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))
|
|
2284
2301
|
return
|
|
2285
2302
|
}
|
|
2286
2303
|
|
|
@@ -2309,7 +2326,11 @@ async function httpNetworkFetch (
|
|
|
2309
2326
|
} else if (coding === 'zstd') {
|
|
2310
2327
|
decoders.push(zlib.createZstdDecompress({
|
|
2311
2328
|
flush: zlib.constants.ZSTD_e_continue,
|
|
2312
|
-
finishFlush: zlib.constants.ZSTD_e_end
|
|
2329
|
+
finishFlush: zlib.constants.ZSTD_e_end,
|
|
2330
|
+
params: {
|
|
2331
|
+
// https://www.rfc-editor.org/rfc/rfc9659.html#section-3
|
|
2332
|
+
[zlib.constants.ZSTD_d_windowLogMax]: 23
|
|
2333
|
+
}
|
|
2313
2334
|
}))
|
|
2314
2335
|
} else {
|
|
2315
2336
|
decoders.length = 0
|
|
@@ -2318,6 +2339,8 @@ async function httpNetworkFetch (
|
|
|
2318
2339
|
}
|
|
2319
2340
|
}
|
|
2320
2341
|
|
|
2342
|
+
this.body = new Readable({ read: () => controller.resume() })
|
|
2343
|
+
|
|
2321
2344
|
const onError = (err) => this.onResponseError(controller, err)
|
|
2322
2345
|
|
|
2323
2346
|
resolve({
|
|
@@ -2369,7 +2392,7 @@ async function httpNetworkFetch (
|
|
|
2369
2392
|
this.body?.push(null)
|
|
2370
2393
|
},
|
|
2371
2394
|
|
|
2372
|
-
onResponseError (
|
|
2395
|
+
onResponseError (controller, error) {
|
|
2373
2396
|
if (this.abort) {
|
|
2374
2397
|
fetchParams.controller.off('terminated', this.abort)
|
|
2375
2398
|
}
|
|
@@ -2388,7 +2411,9 @@ async function httpNetworkFetch (
|
|
|
2388
2411
|
|
|
2389
2412
|
this.body?.destroy(error)
|
|
2390
2413
|
|
|
2391
|
-
|
|
2414
|
+
if (!controller?.aborted) {
|
|
2415
|
+
fetchParams.controller.terminate(error)
|
|
2416
|
+
}
|
|
2392
2417
|
|
|
2393
2418
|
reject(error)
|
|
2394
2419
|
},
|
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js
CHANGED
|
@@ -83,6 +83,7 @@ function buildAbort (acRef) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
let patchMethodWarning = false
|
|
86
|
+
let setRequestSignal, getRequestDispatcher, setRequestDispatcher, setRequestHeaders, getRequestState, setRequestState, removeRequestAbortListener
|
|
86
87
|
|
|
87
88
|
// https://fetch.spec.whatwg.org/#request-class
|
|
88
89
|
class Request {
|
|
@@ -600,7 +601,7 @@ class Request {
|
|
|
600
601
|
|
|
601
602
|
// Returns request’s HTTP method, which is "GET" by default.
|
|
602
603
|
get method () {
|
|
603
|
-
webidl.brandCheck(this, Request)
|
|
604
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
604
605
|
|
|
605
606
|
// The method getter steps are to return this’s request’s method.
|
|
606
607
|
return this.#state.method
|
|
@@ -608,7 +609,7 @@ class Request {
|
|
|
608
609
|
|
|
609
610
|
// Returns the URL of request as a string.
|
|
610
611
|
get url () {
|
|
611
|
-
webidl.brandCheck(this, Request)
|
|
612
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
612
613
|
|
|
613
614
|
// The url getter steps are to return this’s request’s URL, serialized.
|
|
614
615
|
return URLSerializer(this.#state.url)
|
|
@@ -618,7 +619,7 @@ class Request {
|
|
|
618
619
|
// Note that headers added in the network layer by the user agent will not
|
|
619
620
|
// be accounted for in this object, e.g., the "Host" header.
|
|
620
621
|
get headers () {
|
|
621
|
-
webidl.brandCheck(this, Request)
|
|
622
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
622
623
|
|
|
623
624
|
// The headers getter steps are to return this’s headers.
|
|
624
625
|
return this.#headers
|
|
@@ -627,7 +628,7 @@ class Request {
|
|
|
627
628
|
// Returns the kind of resource requested by request, e.g., "document"
|
|
628
629
|
// or "script".
|
|
629
630
|
get destination () {
|
|
630
|
-
webidl.brandCheck(this, Request)
|
|
631
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
631
632
|
|
|
632
633
|
// The destination getter are to return this’s request’s destination.
|
|
633
634
|
return this.#state.destination
|
|
@@ -639,7 +640,7 @@ class Request {
|
|
|
639
640
|
// during fetching to determine the value of the `Referer` header of the
|
|
640
641
|
// request being made.
|
|
641
642
|
get referrer () {
|
|
642
|
-
webidl.brandCheck(this, Request)
|
|
643
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
643
644
|
|
|
644
645
|
// 1. If this’s request’s referrer is "no-referrer", then return the
|
|
645
646
|
// empty string.
|
|
@@ -661,7 +662,7 @@ class Request {
|
|
|
661
662
|
// This is used during fetching to compute the value of the request’s
|
|
662
663
|
// referrer.
|
|
663
664
|
get referrerPolicy () {
|
|
664
|
-
webidl.brandCheck(this, Request)
|
|
665
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
665
666
|
|
|
666
667
|
// The referrerPolicy getter steps are to return this’s request’s referrer policy.
|
|
667
668
|
return this.#state.referrerPolicy
|
|
@@ -671,7 +672,7 @@ class Request {
|
|
|
671
672
|
// whether the request will use CORS, or will be restricted to same-origin
|
|
672
673
|
// URLs.
|
|
673
674
|
get mode () {
|
|
674
|
-
webidl.brandCheck(this, Request)
|
|
675
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
675
676
|
|
|
676
677
|
// The mode getter steps are to return this’s request’s mode.
|
|
677
678
|
return this.#state.mode
|
|
@@ -681,7 +682,7 @@ class Request {
|
|
|
681
682
|
// which is a string indicating whether credentials will be sent with the
|
|
682
683
|
// request always, never, or only when sent to a same-origin URL.
|
|
683
684
|
get credentials () {
|
|
684
|
-
webidl.brandCheck(this, Request)
|
|
685
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
685
686
|
|
|
686
687
|
// The credentials getter steps are to return this’s request’s credentials mode.
|
|
687
688
|
return this.#state.credentials
|
|
@@ -691,7 +692,7 @@ class Request {
|
|
|
691
692
|
// which is a string indicating how the request will
|
|
692
693
|
// interact with the browser’s cache when fetching.
|
|
693
694
|
get cache () {
|
|
694
|
-
webidl.brandCheck(this, Request)
|
|
695
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
695
696
|
|
|
696
697
|
// The cache getter steps are to return this’s request’s cache mode.
|
|
697
698
|
return this.#state.cache
|
|
@@ -702,7 +703,7 @@ class Request {
|
|
|
702
703
|
// request will be handled during fetching. A request
|
|
703
704
|
// will follow redirects by default.
|
|
704
705
|
get redirect () {
|
|
705
|
-
webidl.brandCheck(this, Request)
|
|
706
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
706
707
|
|
|
707
708
|
// The redirect getter steps are to return this’s request’s redirect mode.
|
|
708
709
|
return this.#state.redirect
|
|
@@ -712,7 +713,7 @@ class Request {
|
|
|
712
713
|
// cryptographic hash of the resource being fetched. Its value
|
|
713
714
|
// consists of multiple hashes separated by whitespace. [SRI]
|
|
714
715
|
get integrity () {
|
|
715
|
-
webidl.brandCheck(this, Request)
|
|
716
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
716
717
|
|
|
717
718
|
// The integrity getter steps are to return this’s request’s integrity
|
|
718
719
|
// metadata.
|
|
@@ -722,7 +723,7 @@ class Request {
|
|
|
722
723
|
// Returns a boolean indicating whether or not request can outlive the
|
|
723
724
|
// global in which it was created.
|
|
724
725
|
get keepalive () {
|
|
725
|
-
webidl.brandCheck(this, Request)
|
|
726
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
726
727
|
|
|
727
728
|
// The keepalive getter steps are to return this’s request’s keepalive.
|
|
728
729
|
return this.#state.keepalive
|
|
@@ -731,7 +732,7 @@ class Request {
|
|
|
731
732
|
// Returns a boolean indicating whether or not request is for a reload
|
|
732
733
|
// navigation.
|
|
733
734
|
get isReloadNavigation () {
|
|
734
|
-
webidl.brandCheck(this, Request)
|
|
735
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
735
736
|
|
|
736
737
|
// The isReloadNavigation getter steps are to return true if this’s
|
|
737
738
|
// request’s reload-navigation flag is set; otherwise false.
|
|
@@ -741,7 +742,7 @@ class Request {
|
|
|
741
742
|
// Returns a boolean indicating whether or not request is for a history
|
|
742
743
|
// navigation (a.k.a. back-forward navigation).
|
|
743
744
|
get isHistoryNavigation () {
|
|
744
|
-
webidl.brandCheck(this, Request)
|
|
745
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
745
746
|
|
|
746
747
|
// The isHistoryNavigation getter steps are to return true if this’s request’s
|
|
747
748
|
// history-navigation flag is set; otherwise false.
|
|
@@ -752,33 +753,33 @@ class Request {
|
|
|
752
753
|
// object indicating whether or not request has been aborted, and its
|
|
753
754
|
// abort event handler.
|
|
754
755
|
get signal () {
|
|
755
|
-
webidl.brandCheck(this, Request)
|
|
756
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
756
757
|
|
|
757
758
|
// The signal getter steps are to return this’s signal.
|
|
758
759
|
return this.#signal
|
|
759
760
|
}
|
|
760
761
|
|
|
761
762
|
get body () {
|
|
762
|
-
webidl.brandCheck(this, Request)
|
|
763
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
763
764
|
|
|
764
765
|
return this.#state.body ? this.#state.body.stream : null
|
|
765
766
|
}
|
|
766
767
|
|
|
767
768
|
get bodyUsed () {
|
|
768
|
-
webidl.brandCheck(this, Request)
|
|
769
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
769
770
|
|
|
770
771
|
return !!this.#state.body && util.isDisturbed(this.#state.body.stream)
|
|
771
772
|
}
|
|
772
773
|
|
|
773
774
|
get duplex () {
|
|
774
|
-
webidl.brandCheck(this, Request)
|
|
775
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
775
776
|
|
|
776
777
|
return 'half'
|
|
777
778
|
}
|
|
778
779
|
|
|
779
780
|
// Returns a clone of request.
|
|
780
781
|
clone () {
|
|
781
|
-
webidl.brandCheck(this, Request)
|
|
782
|
+
webidl.brandCheck(this, webidl.is.Request)
|
|
782
783
|
|
|
783
784
|
// 1. If this is unusable, then throw a TypeError.
|
|
784
785
|
if (bodyUnusable(this.#state)) {
|
|
@@ -840,73 +841,69 @@ class Request {
|
|
|
840
841
|
return `Request ${nodeUtil.formatWithOptions(options, properties)}`
|
|
841
842
|
}
|
|
842
843
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
844
|
+
static {
|
|
845
|
+
/**
|
|
846
|
+
* @param {Request} request
|
|
847
|
+
* @param {AbortSignal} newSignal
|
|
848
|
+
*/
|
|
849
|
+
setRequestSignal = (request, newSignal) => {
|
|
850
|
+
request.#signal = newSignal
|
|
851
|
+
}
|
|
851
852
|
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
853
|
+
/**
|
|
854
|
+
* @param {Request} request
|
|
855
|
+
*/
|
|
856
|
+
getRequestDispatcher = (request) => {
|
|
857
|
+
return request.#dispatcher
|
|
858
|
+
}
|
|
858
859
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
860
|
+
/**
|
|
861
|
+
* @param {Request} request
|
|
862
|
+
* @param {import('../../dispatcher/dispatcher')} newDispatcher
|
|
863
|
+
*/
|
|
864
|
+
setRequestDispatcher = (request, newDispatcher) => {
|
|
865
|
+
request.#dispatcher = newDispatcher
|
|
866
|
+
}
|
|
866
867
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
868
|
+
/**
|
|
869
|
+
* @param {Request} request
|
|
870
|
+
* @param {Headers} newHeaders
|
|
871
|
+
*/
|
|
872
|
+
setRequestHeaders = (request, newHeaders) => {
|
|
873
|
+
request.#headers = newHeaders
|
|
874
|
+
}
|
|
874
875
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
876
|
+
/**
|
|
877
|
+
* @param {Request} request
|
|
878
|
+
*/
|
|
879
|
+
getRequestState = (request) => {
|
|
880
|
+
return request.#state
|
|
881
|
+
}
|
|
881
882
|
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
883
|
+
/**
|
|
884
|
+
* @param {Request} request
|
|
885
|
+
* @param {any} newState
|
|
886
|
+
*/
|
|
887
|
+
setRequestState = (request, newState) => {
|
|
888
|
+
request.#state = newState
|
|
889
|
+
}
|
|
889
890
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
891
|
+
/**
|
|
892
|
+
* Removes the `abort` listener that makes this request's signal follow the
|
|
893
|
+
* signal passed to its constructor, if any. Idempotent.
|
|
894
|
+
* @param {Request} request
|
|
895
|
+
*/
|
|
896
|
+
removeRequestAbortListener = (request) => {
|
|
897
|
+
request.#abortCleanup?.()
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
webidl.is.Request = (arg) => {
|
|
901
|
+
return arg != null && typeof arg === 'object' && #state in arg
|
|
902
|
+
}
|
|
897
903
|
}
|
|
898
904
|
}
|
|
899
905
|
|
|
900
|
-
|
|
901
|
-
Reflect.deleteProperty(Request, 'setRequestSignal')
|
|
902
|
-
Reflect.deleteProperty(Request, 'getRequestDispatcher')
|
|
903
|
-
Reflect.deleteProperty(Request, 'setRequestDispatcher')
|
|
904
|
-
Reflect.deleteProperty(Request, 'setRequestHeaders')
|
|
905
|
-
Reflect.deleteProperty(Request, 'getRequestState')
|
|
906
|
-
Reflect.deleteProperty(Request, 'setRequestState')
|
|
907
|
-
Reflect.deleteProperty(Request, 'removeRequestAbortListener')
|
|
908
|
-
|
|
909
|
-
mixinBody(Request, getRequestState)
|
|
906
|
+
mixinBody(Request, getRequestState, webidl.is.Request)
|
|
910
907
|
|
|
911
908
|
// https://fetch.spec.whatwg.org/#requests
|
|
912
909
|
function makeRequest (init) {
|
|
@@ -1021,8 +1018,6 @@ Object.defineProperties(Request.prototype, {
|
|
|
1021
1018
|
}
|
|
1022
1019
|
})
|
|
1023
1020
|
|
|
1024
|
-
webidl.is.Request = webidl.util.MakeTypeAssertion(Request)
|
|
1025
|
-
|
|
1026
1021
|
/**
|
|
1027
1022
|
* @param {*} V
|
|
1028
1023
|
* @returns {import('../../../types/fetch').Request|string}
|
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js
CHANGED
|
@@ -23,6 +23,7 @@ const assert = require('node:assert')
|
|
|
23
23
|
const { isomorphicEncode, serializeJavascriptValueToJSONString } = require('../infra')
|
|
24
24
|
|
|
25
25
|
const textEncoder = new TextEncoder('utf-8')
|
|
26
|
+
let getResponseHeaders, setResponseHeaders, getResponseState, setResponseState
|
|
26
27
|
|
|
27
28
|
// https://fetch.spec.whatwg.org/#response-class
|
|
28
29
|
class Response {
|
|
@@ -145,7 +146,7 @@ class Response {
|
|
|
145
146
|
|
|
146
147
|
// Returns response’s type, e.g., "cors".
|
|
147
148
|
get type () {
|
|
148
|
-
webidl.brandCheck(this, Response)
|
|
149
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
149
150
|
|
|
150
151
|
// The type getter steps are to return this’s response’s type.
|
|
151
152
|
return this.#state.type
|
|
@@ -153,7 +154,7 @@ class Response {
|
|
|
153
154
|
|
|
154
155
|
// Returns response’s URL, if it has one; otherwise the empty string.
|
|
155
156
|
get url () {
|
|
156
|
-
webidl.brandCheck(this, Response)
|
|
157
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
157
158
|
|
|
158
159
|
const urlList = this.#state.urlList
|
|
159
160
|
|
|
@@ -171,7 +172,7 @@ class Response {
|
|
|
171
172
|
|
|
172
173
|
// Returns whether response was obtained through a redirect.
|
|
173
174
|
get redirected () {
|
|
174
|
-
webidl.brandCheck(this, Response)
|
|
175
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
175
176
|
|
|
176
177
|
// The redirected getter steps are to return true if this’s response’s URL
|
|
177
178
|
// list has more than one item; otherwise false.
|
|
@@ -180,7 +181,7 @@ class Response {
|
|
|
180
181
|
|
|
181
182
|
// Returns response’s status.
|
|
182
183
|
get status () {
|
|
183
|
-
webidl.brandCheck(this, Response)
|
|
184
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
184
185
|
|
|
185
186
|
// The status getter steps are to return this’s response’s status.
|
|
186
187
|
return this.#state.status
|
|
@@ -188,7 +189,7 @@ class Response {
|
|
|
188
189
|
|
|
189
190
|
// Returns whether response’s status is an ok status.
|
|
190
191
|
get ok () {
|
|
191
|
-
webidl.brandCheck(this, Response)
|
|
192
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
192
193
|
|
|
193
194
|
// The ok getter steps are to return true if this’s response’s status is an
|
|
194
195
|
// ok status; otherwise false.
|
|
@@ -197,7 +198,7 @@ class Response {
|
|
|
197
198
|
|
|
198
199
|
// Returns response’s status message.
|
|
199
200
|
get statusText () {
|
|
200
|
-
webidl.brandCheck(this, Response)
|
|
201
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
201
202
|
|
|
202
203
|
// The statusText getter steps are to return this’s response’s status
|
|
203
204
|
// message.
|
|
@@ -206,27 +207,27 @@ class Response {
|
|
|
206
207
|
|
|
207
208
|
// Returns response’s headers as Headers.
|
|
208
209
|
get headers () {
|
|
209
|
-
webidl.brandCheck(this, Response)
|
|
210
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
210
211
|
|
|
211
212
|
// The headers getter steps are to return this’s headers.
|
|
212
213
|
return this.#headers
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
get body () {
|
|
216
|
-
webidl.brandCheck(this, Response)
|
|
217
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
217
218
|
|
|
218
219
|
return this.#state.body ? this.#state.body.stream : null
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
get bodyUsed () {
|
|
222
|
-
webidl.brandCheck(this, Response)
|
|
223
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
223
224
|
|
|
224
225
|
return !!this.#state.body && util.isDisturbed(this.#state.body.stream)
|
|
225
226
|
}
|
|
226
227
|
|
|
227
228
|
// Returns a clone of response.
|
|
228
229
|
clone () {
|
|
229
|
-
webidl.brandCheck(this, Response)
|
|
230
|
+
webidl.brandCheck(this, webidl.is.Response)
|
|
230
231
|
|
|
231
232
|
// 1. If this is unusable, then throw a TypeError.
|
|
232
233
|
if (bodyUnusable(this.#state)) {
|
|
@@ -272,44 +273,44 @@ class Response {
|
|
|
272
273
|
return `Response ${nodeUtil.formatWithOptions(options, properties)}`
|
|
273
274
|
}
|
|
274
275
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
static {
|
|
277
|
+
/**
|
|
278
|
+
* @param {Response} response
|
|
279
|
+
*/
|
|
280
|
+
getResponseHeaders = (response) => {
|
|
281
|
+
return response.#headers
|
|
282
|
+
}
|
|
281
283
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
/**
|
|
285
|
+
* @param {Response} response
|
|
286
|
+
* @param {Headers} newHeaders
|
|
287
|
+
*/
|
|
288
|
+
setResponseHeaders = (response, newHeaders) => {
|
|
289
|
+
response.#headers = newHeaders
|
|
290
|
+
}
|
|
289
291
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
292
|
+
/**
|
|
293
|
+
* @param {Response} response
|
|
294
|
+
*/
|
|
295
|
+
getResponseState = (response) => {
|
|
296
|
+
return response.#state
|
|
297
|
+
}
|
|
296
298
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
/**
|
|
300
|
+
* @param {Response} response
|
|
301
|
+
* @param {any} newState
|
|
302
|
+
*/
|
|
303
|
+
setResponseState = (response, newState) => {
|
|
304
|
+
response.#state = newState
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
webidl.is.Response = (arg) => {
|
|
308
|
+
return arg != null && typeof arg === 'object' && #state in arg
|
|
309
|
+
}
|
|
303
310
|
}
|
|
304
311
|
}
|
|
305
312
|
|
|
306
|
-
|
|
307
|
-
Reflect.deleteProperty(Response, 'getResponseHeaders')
|
|
308
|
-
Reflect.deleteProperty(Response, 'setResponseHeaders')
|
|
309
|
-
Reflect.deleteProperty(Response, 'getResponseState')
|
|
310
|
-
Reflect.deleteProperty(Response, 'setResponseState')
|
|
311
|
-
|
|
312
|
-
mixinBody(Response, getResponseState)
|
|
313
|
+
mixinBody(Response, getResponseState, webidl.is.Response)
|
|
313
314
|
|
|
314
315
|
Object.defineProperties(Response.prototype, {
|
|
315
316
|
type: kEnumerableProperty,
|
|
@@ -624,8 +625,6 @@ webidl.converters.ResponseInit = webidl.dictionaryConverter([
|
|
|
624
625
|
}
|
|
625
626
|
])
|
|
626
627
|
|
|
627
|
-
webidl.is.Response = webidl.util.MakeTypeAssertion(Response)
|
|
628
|
-
|
|
629
628
|
module.exports = {
|
|
630
629
|
isNetworkError,
|
|
631
630
|
makeNetworkError,
|