@psnext/slingcli 3.5.20261007-3 → 3.5.20261026-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 +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- 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 +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +5 -5
- 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/CognitoIdentityClient.d.ts +2 -1
- 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/SigninClient.d.ts +2 -1
- 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/SSOClient.d.ts +2 -1
- 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/SSOOIDCClient.d.ts +2 -1
- 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/STSClient.d.ts +2 -1
- 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 +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- 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/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +15 -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/event-streams/index.browser.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +16 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +10 -0
- 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 +16 -6
- 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/body-parser/README.md +17 -13
- package/node_modules/body-parser/lib/read.js +74 -57
- package/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/body-parser/lib/utils.js +0 -15
- package/node_modules/body-parser/package.json +7 -12
- 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/hono/README.md +2 -3
- package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
- package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
- package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/cjs/utils/url.js +11 -6
- package/node_modules/hono/dist/helper/css/common.js +8 -3
- package/node_modules/hono/dist/helper/css/index.js +1 -1
- package/node_modules/hono/dist/helper/route/index.js +3 -1
- package/node_modules/hono/dist/jsx/base.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
- package/node_modules/hono/dist/types/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
- package/node_modules/hono/dist/utils/url.js +11 -6
- package/node_modules/hono/package.json +1 -1
- package/node_modules/ip-address/README.md +70 -70
- package/node_modules/ip-address/dist/common.js +2 -2
- package/node_modules/ip-address/dist/common.js.map +1 -1
- 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 +3 -2
- 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/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- 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/sling-default-packages.json +3 -2
- 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/on-finished/HISTORY.md +0 -98
- /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/body.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const util = require('../../core/util')
|
|
4
4
|
const {
|
|
5
|
-
ReadableStreamFrom,
|
|
6
5
|
readableStreamClose,
|
|
7
6
|
fullyReadBody,
|
|
8
7
|
extractMimeType
|
|
@@ -40,7 +39,6 @@ const streamRegistry = new FinalizationRegistry((weakRef) => {
|
|
|
40
39
|
function extractBody (object, keepalive = false) {
|
|
41
40
|
// 1. Let stream be null.
|
|
42
41
|
let stream = null
|
|
43
|
-
let controller = null
|
|
44
42
|
|
|
45
43
|
// 2. If object is a ReadableStream object, then set stream to object.
|
|
46
44
|
if (webidl.is.ReadableStream(object)) {
|
|
@@ -53,11 +51,44 @@ function extractBody (object, keepalive = false) {
|
|
|
53
51
|
// 4. Otherwise, set stream to a new ReadableStream object, and set
|
|
54
52
|
// up stream with byte reading support.
|
|
55
53
|
stream = new ReadableStream({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
start () {},
|
|
55
|
+
async pull (controller) {
|
|
56
|
+
// 19.1. Run action.
|
|
57
|
+
const result = action()
|
|
58
|
+
|
|
59
|
+
const iterator = result?.[Symbol.asyncIterator]?.()
|
|
60
|
+
if (iterator == null) {
|
|
61
|
+
// 19.2. Whenever one or more bytes are available and stream is not errored,
|
|
62
|
+
// enqueue the result of creating a Uint8Array from the available bytes into stream.
|
|
63
|
+
if (result?.length && !isErrored(stream)) {
|
|
64
|
+
controller.enqueue(typeof result === 'string' ? textEncoder.encode(result) : new Uint8Array(result))
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// 19.3. When running action is done, close stream.
|
|
68
|
+
queueMicrotask(() => readableStreamClose(controller))
|
|
69
|
+
return
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
while (true) {
|
|
73
|
+
const { value, done } = await iterator.next()
|
|
74
|
+
|
|
75
|
+
// 19.3. When running action is done, close stream.
|
|
76
|
+
if (done) {
|
|
77
|
+
queueMicrotask(() => readableStreamClose(controller))
|
|
78
|
+
return
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// 19.2. Whenever one or more bytes are available and stream is not errored,
|
|
82
|
+
// enqueue the result of creating a Uint8Array from the available bytes into stream.
|
|
83
|
+
if (value.length && !isErrored(stream)) {
|
|
84
|
+
controller.enqueue(new Uint8Array(value))
|
|
85
|
+
return
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
cancel (reason) {
|
|
90
|
+
return action()[Symbol.asyncIterator]?.().return(reason)
|
|
59
91
|
},
|
|
60
|
-
cancel () {},
|
|
61
92
|
type: 'bytes'
|
|
62
93
|
})
|
|
63
94
|
}
|
|
@@ -156,7 +187,7 @@ function extractBody (object, keepalive = false) {
|
|
|
156
187
|
// Set source to object.
|
|
157
188
|
source = object
|
|
158
189
|
|
|
159
|
-
|
|
190
|
+
const parts = (async function * () {
|
|
160
191
|
for (const part of blobParts) {
|
|
161
192
|
if (part.stream) {
|
|
162
193
|
yield * part.stream()
|
|
@@ -164,7 +195,8 @@ function extractBody (object, keepalive = false) {
|
|
|
164
195
|
yield part
|
|
165
196
|
}
|
|
166
197
|
}
|
|
167
|
-
}
|
|
198
|
+
})()
|
|
199
|
+
action = () => parts
|
|
168
200
|
|
|
169
201
|
// Set type to `multipart/form-data; boundary=`,
|
|
170
202
|
// followed by the multipart/form-data boundary string generated
|
|
@@ -197,49 +229,33 @@ function extractBody (object, keepalive = false) {
|
|
|
197
229
|
)
|
|
198
230
|
}
|
|
199
231
|
|
|
200
|
-
stream =
|
|
201
|
-
|
|
232
|
+
stream = webidl.is.ReadableStream(object)
|
|
233
|
+
? object
|
|
234
|
+
: ReadableStream.from(object).pipeThrough(new TransformStream({
|
|
235
|
+
transform (chunk, controller) {
|
|
236
|
+
const bytes = isUint8Array(chunk) ? chunk : Buffer.from(chunk)
|
|
237
|
+
if (bytes.byteLength) {
|
|
238
|
+
controller.enqueue(bytes)
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}))
|
|
202
242
|
}
|
|
203
243
|
|
|
204
|
-
//
|
|
244
|
+
// 18. If source is a byte sequence, then set action to a
|
|
205
245
|
// step that returns source and length to source’s length.
|
|
206
246
|
if (typeof source === 'string' || isUint8Array(source)) {
|
|
207
|
-
action = () =>
|
|
208
|
-
|
|
209
|
-
return source
|
|
210
|
-
}
|
|
247
|
+
action = () => source
|
|
248
|
+
length = typeof source === 'string' ? Buffer.byteLength(source) : source.length
|
|
211
249
|
}
|
|
212
250
|
|
|
213
|
-
//
|
|
214
|
-
|
|
215
|
-
;(async () => {
|
|
216
|
-
// 1. Run action.
|
|
217
|
-
const result = action()
|
|
218
|
-
|
|
219
|
-
// 2. Whenever one or more bytes are available and stream is not errored,
|
|
220
|
-
// enqueue the result of creating a Uint8Array from the available bytes into stream.
|
|
221
|
-
const iterator = result?.[Symbol.asyncIterator]?.()
|
|
222
|
-
if (iterator) {
|
|
223
|
-
for await (const bytes of iterator) {
|
|
224
|
-
if (isErrored(stream)) break
|
|
225
|
-
if (bytes.length) {
|
|
226
|
-
controller.enqueue(new Uint8Array(bytes))
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
} else if (result?.length && !isErrored(stream)) {
|
|
230
|
-
controller.enqueue(typeof result === 'string' ? textEncoder.encode(result) : new Uint8Array(result))
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// 3. When running action is done, close stream.
|
|
234
|
-
queueMicrotask(() => readableStreamClose(controller))
|
|
235
|
-
})()
|
|
236
|
-
}
|
|
251
|
+
// 19. If action is non-null, then run these steps in parallel:
|
|
252
|
+
// Note: this is done in the pull method of the stream created above
|
|
237
253
|
|
|
238
|
-
//
|
|
254
|
+
// 20. Let body be a body whose stream is stream, source is source,
|
|
239
255
|
// and length is length.
|
|
240
256
|
const body = { stream, source, length }
|
|
241
257
|
|
|
242
|
-
//
|
|
258
|
+
// 21. Return (body, type).
|
|
243
259
|
return [body, type]
|
|
244
260
|
}
|
|
245
261
|
|
|
@@ -293,7 +309,7 @@ function cloneBody (body) {
|
|
|
293
309
|
}
|
|
294
310
|
}
|
|
295
311
|
|
|
296
|
-
function bodyMixinMethods (
|
|
312
|
+
function bodyMixinMethods (brandCheck, getInternalState) {
|
|
297
313
|
const methods = {
|
|
298
314
|
blob () {
|
|
299
315
|
// The blob() method steps are to return the result of
|
|
@@ -313,7 +329,7 @@ function bodyMixinMethods (instance, getInternalState) {
|
|
|
313
329
|
// Return a Blob whose contents are bytes and type attribute
|
|
314
330
|
// is mimeType.
|
|
315
331
|
return new Blob([bytes], { type: mimeType })
|
|
316
|
-
},
|
|
332
|
+
}, brandCheck, getInternalState)
|
|
317
333
|
},
|
|
318
334
|
|
|
319
335
|
arrayBuffer () {
|
|
@@ -323,19 +339,19 @@ function bodyMixinMethods (instance, getInternalState) {
|
|
|
323
339
|
// whose contents are bytes.
|
|
324
340
|
return consumeBody(this, (bytes) => {
|
|
325
341
|
return new Uint8Array(bytes).buffer
|
|
326
|
-
},
|
|
342
|
+
}, brandCheck, getInternalState)
|
|
327
343
|
},
|
|
328
344
|
|
|
329
345
|
text () {
|
|
330
346
|
// The text() method steps are to return the result of running
|
|
331
347
|
// consume body with this and UTF-8 decode.
|
|
332
|
-
return consumeBody(this, utf8DecodeBytes,
|
|
348
|
+
return consumeBody(this, utf8DecodeBytes, brandCheck, getInternalState)
|
|
333
349
|
},
|
|
334
350
|
|
|
335
351
|
json () {
|
|
336
352
|
// The json() method steps are to return the result of running
|
|
337
353
|
// consume body with this and parse JSON from bytes.
|
|
338
|
-
return consumeBody(this, parseJSONFromBytes,
|
|
354
|
+
return consumeBody(this, parseJSONFromBytes, brandCheck, getInternalState)
|
|
339
355
|
},
|
|
340
356
|
|
|
341
357
|
formData () {
|
|
@@ -383,7 +399,7 @@ function bodyMixinMethods (instance, getInternalState) {
|
|
|
383
399
|
throw new TypeError(
|
|
384
400
|
'Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".'
|
|
385
401
|
)
|
|
386
|
-
},
|
|
402
|
+
}, brandCheck, getInternalState)
|
|
387
403
|
},
|
|
388
404
|
|
|
389
405
|
bytes () {
|
|
@@ -392,7 +408,7 @@ function bodyMixinMethods (instance, getInternalState) {
|
|
|
392
408
|
// result of creating a Uint8Array from bytes in this’s relevant realm.
|
|
393
409
|
return consumeBody(this, (bytes) => {
|
|
394
410
|
return new Uint8Array(bytes)
|
|
395
|
-
},
|
|
411
|
+
}, brandCheck, getInternalState)
|
|
396
412
|
},
|
|
397
413
|
|
|
398
414
|
textStream () {
|
|
@@ -442,20 +458,20 @@ function bodyMixinMethods (instance, getInternalState) {
|
|
|
442
458
|
return methods
|
|
443
459
|
}
|
|
444
460
|
|
|
445
|
-
function mixinBody (prototype, getInternalState) {
|
|
446
|
-
Object.assign(prototype.prototype, bodyMixinMethods(
|
|
461
|
+
function mixinBody (prototype, getInternalState, brandCheck) {
|
|
462
|
+
Object.assign(prototype.prototype, bodyMixinMethods(brandCheck, getInternalState))
|
|
447
463
|
}
|
|
448
464
|
|
|
449
465
|
/**
|
|
450
466
|
* @see https://fetch.spec.whatwg.org/#concept-body-consume-body
|
|
451
467
|
* @param {any} object internal state
|
|
452
468
|
* @param {(value: unknown) => unknown} convertBytesToJSValue
|
|
453
|
-
* @param {
|
|
469
|
+
* @param {import('../../../types/webidl').WebidlIsFunction} brandCheck
|
|
454
470
|
* @param {(target: any) => any} getInternalState
|
|
455
471
|
*/
|
|
456
|
-
function consumeBody (object, convertBytesToJSValue,
|
|
472
|
+
function consumeBody (object, convertBytesToJSValue, brandCheck, getInternalState) {
|
|
457
473
|
try {
|
|
458
|
-
webidl.brandCheck(object,
|
|
474
|
+
webidl.brandCheck(object, brandCheck)
|
|
459
475
|
} catch (e) {
|
|
460
476
|
return Promise.reject(e)
|
|
461
477
|
}
|
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const assert = require('node:assert')
|
|
4
|
-
const { forgivingBase64, collectASequenceOfCodePoints, collectASequenceOfCodePointsFast, isomorphicDecode, removeASCIIWhitespace, removeChars } = require('../infra')
|
|
4
|
+
const { asciiLowercase, forgivingBase64, collectASequenceOfCodePoints, collectASequenceOfCodePointsFast, isomorphicDecode, removeASCIIWhitespace, removeChars } = require('../infra')
|
|
5
5
|
|
|
6
6
|
const encoder = new TextEncoder()
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @see https://mimesniff.spec.whatwg.org/#http-token-code-point
|
|
10
10
|
*/
|
|
11
|
-
const HTTP_TOKEN_CODEPOINTS = /^[-!#$%&'*+.^_
|
|
11
|
+
const HTTP_TOKEN_CODEPOINTS = /^[-!#$%&'*+.^_`|~A-Za-z0-9]+$/u
|
|
12
12
|
const HTTP_WHITESPACE_REGEX = /[\u000A\u000D\u0009\u0020]/u // eslint-disable-line
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -69,7 +69,7 @@ function dataURLProcessor (dataURL) {
|
|
|
69
69
|
// 11. If mimeType ends with U+003B (;), followed by
|
|
70
70
|
// zero or more U+0020 SPACE, followed by an ASCII
|
|
71
71
|
// case-insensitive match for "base64", then:
|
|
72
|
-
if (
|
|
72
|
+
if (/;\u0020*[Bb][Aa][Ss][Ee]64$/u.test(mimeType)) {
|
|
73
73
|
// 1. Let stringBody be the isomorphic decode of body.
|
|
74
74
|
const stringBody = isomorphicDecode(body)
|
|
75
75
|
|
|
@@ -268,8 +268,8 @@ function parseMIMEType (input) {
|
|
|
268
268
|
return 'failure'
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
const typeLowercase = type
|
|
272
|
-
const subtypeLowercase = subtype
|
|
271
|
+
const typeLowercase = asciiLowercase(type)
|
|
272
|
+
const subtypeLowercase = asciiLowercase(subtype)
|
|
273
273
|
|
|
274
274
|
// 10. Let mimeType be a new MIME type record whose type
|
|
275
275
|
// is type, in ASCII lowercase, and subtype is subtype,
|
|
@@ -309,7 +309,7 @@ function parseMIMEType (input) {
|
|
|
309
309
|
|
|
310
310
|
// 4. Set parameterName to parameterName, in ASCII
|
|
311
311
|
// lowercase.
|
|
312
|
-
parameterName = parameterName
|
|
312
|
+
parameterName = asciiLowercase(parameterName)
|
|
313
313
|
|
|
314
314
|
// 5. If position is not past the end of input, then:
|
|
315
315
|
if (position.position < input.length) {
|
|
@@ -261,19 +261,27 @@ function parseContentDispositionAttribute (input, position) {
|
|
|
261
261
|
position
|
|
262
262
|
)
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
const charsetSeparator = headerValue.indexOf(0x27)
|
|
265
|
+
const languageSeparator = charsetSeparator === -1
|
|
266
|
+
? -1
|
|
267
|
+
: headerValue.indexOf(0x27, charsetSeparator + 1)
|
|
268
|
+
|
|
269
|
+
if (charsetSeparator === -1 || languageSeparator === -1) {
|
|
270
|
+
throw parsingError('expected charset and language separators in extended value')
|
|
271
|
+
}
|
|
272
|
+
|
|
265
273
|
if (
|
|
274
|
+
charsetSeparator !== 5 ||
|
|
266
275
|
(headerValue[0] !== 0x75 && headerValue[0] !== 0x55) || // u or U
|
|
267
276
|
(headerValue[1] !== 0x74 && headerValue[1] !== 0x54) || // t or T
|
|
268
277
|
(headerValue[2] !== 0x66 && headerValue[2] !== 0x46) || // f or F
|
|
269
278
|
headerValue[3] !== 0x2d || // -
|
|
270
279
|
headerValue[4] !== 0x38 // 8
|
|
271
280
|
) {
|
|
272
|
-
throw parsingError('unknown
|
|
281
|
+
throw parsingError('unknown charset, expected utf-8')
|
|
273
282
|
}
|
|
274
283
|
|
|
275
|
-
|
|
276
|
-
value = decodeURIComponent(decoder.decode(headerValue.subarray(7)))
|
|
284
|
+
value = decodeURIComponent(decoder.decode(headerValue.subarray(languageSeparator + 1)))
|
|
277
285
|
} else if (input[position.position] === 0x22 /* " */) {
|
|
278
286
|
// Quoted string
|
|
279
287
|
position.position++ // skip opening quote
|
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js
CHANGED
|
@@ -10,6 +10,8 @@ const random = runtimeFeatures.has('crypto')
|
|
|
10
10
|
? require('node:crypto').randomInt
|
|
11
11
|
: (max) => Math.floor(Math.random() * max)
|
|
12
12
|
|
|
13
|
+
let getFormDataState, setFormDataState, getFormDataBoundary
|
|
14
|
+
|
|
13
15
|
// https://xhr.spec.whatwg.org/#formdata
|
|
14
16
|
class FormData {
|
|
15
17
|
#state = []
|
|
@@ -28,7 +30,7 @@ class FormData {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
append (name, value, filename = undefined) {
|
|
31
|
-
webidl.brandCheck(this, FormData)
|
|
33
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
32
34
|
|
|
33
35
|
const prefix = 'FormData.append'
|
|
34
36
|
webidl.argumentLengthCheck(arguments, 2, prefix)
|
|
@@ -56,7 +58,7 @@ class FormData {
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
delete (name) {
|
|
59
|
-
webidl.brandCheck(this, FormData)
|
|
61
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
60
62
|
|
|
61
63
|
const prefix = 'FormData.delete'
|
|
62
64
|
webidl.argumentLengthCheck(arguments, 1, prefix)
|
|
@@ -69,7 +71,7 @@ class FormData {
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
get (name) {
|
|
72
|
-
webidl.brandCheck(this, FormData)
|
|
74
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
73
75
|
|
|
74
76
|
const prefix = 'FormData.get'
|
|
75
77
|
webidl.argumentLengthCheck(arguments, 1, prefix)
|
|
@@ -89,7 +91,7 @@ class FormData {
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
getAll (name) {
|
|
92
|
-
webidl.brandCheck(this, FormData)
|
|
94
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
93
95
|
|
|
94
96
|
const prefix = 'FormData.getAll'
|
|
95
97
|
webidl.argumentLengthCheck(arguments, 1, prefix)
|
|
@@ -106,7 +108,7 @@ class FormData {
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
has (name) {
|
|
109
|
-
webidl.brandCheck(this, FormData)
|
|
111
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
110
112
|
|
|
111
113
|
const prefix = 'FormData.has'
|
|
112
114
|
webidl.argumentLengthCheck(arguments, 1, prefix)
|
|
@@ -119,7 +121,7 @@ class FormData {
|
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
set (name, value, filename = undefined) {
|
|
122
|
-
webidl.brandCheck(this, FormData)
|
|
124
|
+
webidl.brandCheck(this, webidl.is.FormData)
|
|
123
125
|
|
|
124
126
|
const prefix = 'FormData.set'
|
|
125
127
|
webidl.argumentLengthCheck(arguments, 2, prefix)
|
|
@@ -184,40 +186,34 @@ class FormData {
|
|
|
184
186
|
return `FormData ${output.slice(output.indexOf(']') + 2)}`
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
static getFormDataState (formData) {
|
|
191
|
-
return formData.#state
|
|
192
|
-
}
|
|
189
|
+
static {
|
|
190
|
+
/** @param {FormData} formData */
|
|
191
|
+
getFormDataState = (formData) => formData.#state
|
|
193
192
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
/**
|
|
194
|
+
* @param {FormData} formData
|
|
195
|
+
* @param {any[]} newState
|
|
196
|
+
*/
|
|
197
|
+
setFormDataState = (formData, newState) => {
|
|
198
|
+
formData.#state = newState
|
|
199
|
+
}
|
|
201
200
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
/**
|
|
202
|
+
* @param {FormData} formData
|
|
203
|
+
* @returns {string | null}
|
|
204
|
+
*/
|
|
205
|
+
getFormDataBoundary = (formData) => {
|
|
206
|
+
// eslint-disable-next-line no-return-assign
|
|
207
|
+
return formData.#boundary ??= `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
|
208
|
+
}
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
webidl.is.FormData = (arg) => {
|
|
211
|
+
return arg != null && typeof arg === 'object' && #state in arg
|
|
212
|
+
}
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
|
|
216
|
-
Reflect.deleteProperty(FormData, 'getFormDataState')
|
|
217
|
-
Reflect.deleteProperty(FormData, 'setFormDataState')
|
|
218
|
-
Reflect.deleteProperty(FormData, 'getFormDataBoundary')
|
|
219
|
-
|
|
220
|
-
iteratorMixin('FormData', FormData, getFormDataState, 'name', 'value')
|
|
216
|
+
iteratorMixin('FormData', FormData, getFormDataState, 'name', 'value', webidl.is.FormData)
|
|
221
217
|
|
|
222
218
|
Object.defineProperties(FormData.prototype, {
|
|
223
219
|
append: kEnumerableProperty,
|
|
@@ -273,6 +269,4 @@ function makeEntry (name, value, filename) {
|
|
|
273
269
|
return { name, value }
|
|
274
270
|
}
|
|
275
271
|
|
|
276
|
-
webidl.is.FormData = webidl.util.MakeTypeAssertion(FormData)
|
|
277
|
-
|
|
278
272
|
module.exports = { FormData, makeEntry, setFormDataState, getFormDataBoundary }
|
package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
5
|
const { kConstruct } = require('../../core/symbols')
|
|
6
|
-
const { kEnumerableProperty } = require('../../core/util')
|
|
6
|
+
const { kEnumerableProperty, setHeader } = require('../../core/util')
|
|
7
7
|
const {
|
|
8
8
|
iteratorMixin,
|
|
9
9
|
isValidHeaderName,
|
|
@@ -320,7 +320,7 @@ class HeadersList {
|
|
|
320
320
|
|
|
321
321
|
if (this.headersMap.size !== 0) {
|
|
322
322
|
for (const { name, value } of this.headersMap.values()) {
|
|
323
|
-
headers
|
|
323
|
+
setHeader(headers, name, value)
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -423,6 +423,8 @@ class HeadersList {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
+
let getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList
|
|
427
|
+
|
|
426
428
|
// https://fetch.spec.whatwg.org/#headers-class
|
|
427
429
|
class Headers {
|
|
428
430
|
#guard
|
|
@@ -458,7 +460,7 @@ class Headers {
|
|
|
458
460
|
|
|
459
461
|
// https://fetch.spec.whatwg.org/#dom-headers-append
|
|
460
462
|
append (name, value) {
|
|
461
|
-
webidl.brandCheck(this, Headers)
|
|
463
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
462
464
|
|
|
463
465
|
webidl.argumentLengthCheck(arguments, 2, 'Headers.append')
|
|
464
466
|
|
|
@@ -471,7 +473,7 @@ class Headers {
|
|
|
471
473
|
|
|
472
474
|
// https://fetch.spec.whatwg.org/#dom-headers-delete
|
|
473
475
|
delete (name) {
|
|
474
|
-
webidl.brandCheck(this, Headers)
|
|
476
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
475
477
|
|
|
476
478
|
webidl.argumentLengthCheck(arguments, 1, 'Headers.delete')
|
|
477
479
|
|
|
@@ -515,7 +517,7 @@ class Headers {
|
|
|
515
517
|
|
|
516
518
|
// https://fetch.spec.whatwg.org/#dom-headers-get
|
|
517
519
|
get (name) {
|
|
518
|
-
webidl.brandCheck(this, Headers)
|
|
520
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
519
521
|
|
|
520
522
|
webidl.argumentLengthCheck(arguments, 1, 'Headers.get')
|
|
521
523
|
|
|
@@ -538,7 +540,7 @@ class Headers {
|
|
|
538
540
|
|
|
539
541
|
// https://fetch.spec.whatwg.org/#dom-headers-has
|
|
540
542
|
has (name) {
|
|
541
|
-
webidl.brandCheck(this, Headers)
|
|
543
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
542
544
|
|
|
543
545
|
webidl.argumentLengthCheck(arguments, 1, 'Headers.has')
|
|
544
546
|
|
|
@@ -561,7 +563,7 @@ class Headers {
|
|
|
561
563
|
|
|
562
564
|
// https://fetch.spec.whatwg.org/#dom-headers-set
|
|
563
565
|
set (name, value) {
|
|
564
|
-
webidl.brandCheck(this, Headers)
|
|
566
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
565
567
|
|
|
566
568
|
webidl.argumentLengthCheck(arguments, 2, 'Headers.set')
|
|
567
569
|
|
|
@@ -609,7 +611,7 @@ class Headers {
|
|
|
609
611
|
|
|
610
612
|
// https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
|
|
611
613
|
getSetCookie () {
|
|
612
|
-
webidl.brandCheck(this, Headers)
|
|
614
|
+
webidl.brandCheck(this, webidl.is.Headers)
|
|
613
615
|
|
|
614
616
|
// 1. If this’s header list does not contain `Set-Cookie`, then return « ».
|
|
615
617
|
// 2. Return the values of all headers in this’s header list whose name is
|
|
@@ -630,37 +632,38 @@ class Headers {
|
|
|
630
632
|
return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`
|
|
631
633
|
}
|
|
632
634
|
|
|
633
|
-
static
|
|
634
|
-
|
|
635
|
-
|
|
635
|
+
static {
|
|
636
|
+
/** @param {Headers} headers */
|
|
637
|
+
getHeadersGuard = (headers) => headers.#guard
|
|
636
638
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
639
|
+
/**
|
|
640
|
+
* @param {Headers} headers
|
|
641
|
+
* @param {string} guard
|
|
642
|
+
*/
|
|
643
|
+
setHeadersGuard = (headers, guard) => {
|
|
644
|
+
headers.#guard = guard
|
|
645
|
+
}
|
|
640
646
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
+
/**
|
|
648
|
+
* @param {Headers} headers
|
|
649
|
+
*/
|
|
650
|
+
getHeadersList = (headers) => headers.#headersList
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @param {Headers} target
|
|
654
|
+
* @param {HeadersList} list
|
|
655
|
+
*/
|
|
656
|
+
setHeadersList = (target, list) => {
|
|
657
|
+
target.#headersList = list
|
|
658
|
+
}
|
|
647
659
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
*/
|
|
652
|
-
static setHeadersList (target, list) {
|
|
653
|
-
target.#headersList = list
|
|
660
|
+
webidl.is.Headers = (arg) => {
|
|
661
|
+
return arg != null && typeof arg === 'object' && #guard in arg
|
|
662
|
+
}
|
|
654
663
|
}
|
|
655
664
|
}
|
|
656
665
|
|
|
657
|
-
|
|
658
|
-
Reflect.deleteProperty(Headers, 'getHeadersGuard')
|
|
659
|
-
Reflect.deleteProperty(Headers, 'setHeadersGuard')
|
|
660
|
-
Reflect.deleteProperty(Headers, 'getHeadersList')
|
|
661
|
-
Reflect.deleteProperty(Headers, 'setHeadersList')
|
|
662
|
-
|
|
663
|
-
iteratorMixin('Headers', Headers, headersListSortAndCombine, 0, 1)
|
|
666
|
+
iteratorMixin('Headers', Headers, headersListSortAndCombine, 0, 1, webidl.is.Headers)
|
|
664
667
|
|
|
665
668
|
Object.defineProperties(Headers.prototype, {
|
|
666
669
|
append: kEnumerableProperty,
|