@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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "./JsonSettings";
|
|
4
|
-
export declare class JsonShapeDeserializer
|
|
5
|
-
extends SerdeContextConfig
|
|
6
|
-
implements ShapeDeserializer<string>
|
|
7
|
-
{
|
|
8
|
-
readonly settings: JsonSettings;
|
|
9
|
-
constructor(settings: JsonSettings);
|
|
10
|
-
read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
|
|
11
|
-
readObject(schema: Schema, data: DocumentType): any;
|
|
12
|
-
protected _read(schema: Schema, value: unknown): any;
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
3
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
4
|
-
import { JsonSettings } from "./JsonSettings";
|
|
5
|
-
export declare class JsonShapeSerializer
|
|
6
|
-
extends SerdeContextConfig
|
|
7
|
-
implements ShapeSerializer<string>
|
|
8
|
-
{
|
|
9
|
-
readonly settings: JsonSettings;
|
|
10
|
-
protected buffer: any;
|
|
11
|
-
protected useReplacer: boolean;
|
|
12
|
-
protected rootSchema: NormalizedSchema | undefined;
|
|
13
|
-
constructor(settings: JsonSettings);
|
|
14
|
-
write(schema: Schema, value: unknown): void;
|
|
15
|
-
flush(): string;
|
|
16
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
17
|
-
protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
|
|
18
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare class JsonBytesStringAdapter extends Uint8Array {
|
|
2
|
-
private string;
|
|
3
|
-
static allocUnsafe(bytes: number): JsonBytesStringAdapter;
|
|
4
|
-
toString(): string;
|
|
5
|
-
valueOf(): any;
|
|
6
|
-
includes(searchString: string | number, position?: number): boolean;
|
|
7
|
-
indexOf(searchString: string | number, position?: number): number;
|
|
8
|
-
lastIndexOf(searchString: string | number, position?: number): number;
|
|
9
|
-
startsWith(searchString: string, position?: number): boolean;
|
|
10
|
-
endsWith(searchString: string, endPosition?: number): boolean;
|
|
11
|
-
match(regexp: string | RegExp): RegExpMatchArray | null;
|
|
12
|
-
replace(searchValue: string | RegExp, replaceValue: string): string;
|
|
13
|
-
search(regexp: string | RegExp): number;
|
|
14
|
-
split(separator: string | RegExp, limit?: number): string[];
|
|
15
|
-
substring(start: number, end?: number): string;
|
|
16
|
-
trim(): string;
|
|
17
|
-
trimStart(): string;
|
|
18
|
-
trimEnd(): string;
|
|
19
|
-
charAt(pos: number): string;
|
|
20
|
-
charCodeAt(index: number): number;
|
|
21
|
-
padStart(maxLength: number, fillString?: string): string;
|
|
22
|
-
padEnd(maxLength: number, fillString?: string): string;
|
|
23
|
-
repeat(count: number): string;
|
|
24
|
-
toUpperCase(): string;
|
|
25
|
-
toLowerCase(): string;
|
|
26
|
-
private s;
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "../JsonSettings";
|
|
4
|
-
export declare class JsonShapeDeserializer2
|
|
5
|
-
extends SerdeContextConfig
|
|
6
|
-
implements ShapeDeserializer<string>
|
|
7
|
-
{
|
|
8
|
-
readonly settings: JsonSettings;
|
|
9
|
-
constructor(settings: JsonSettings);
|
|
10
|
-
read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
|
|
11
|
-
readObject(schema: Schema, data: DocumentType): any;
|
|
12
|
-
protected _read(schema: Schema, value: unknown): any;
|
|
13
|
-
private _readStruct;
|
|
14
|
-
private needsTransform;
|
|
15
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
3
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
4
|
-
import { JsonSettings } from "../JsonSettings";
|
|
5
|
-
export declare class JsonShapeSerializer2
|
|
6
|
-
extends SerdeContextConfig
|
|
7
|
-
implements ShapeSerializer<Uint8Array>
|
|
8
|
-
{
|
|
9
|
-
readonly settings: JsonSettings;
|
|
10
|
-
private json;
|
|
11
|
-
private i;
|
|
12
|
-
private rootSchema;
|
|
13
|
-
private rawValue;
|
|
14
|
-
private passthrough;
|
|
15
|
-
constructor(settings: JsonSettings);
|
|
16
|
-
write(schema: Schema, value: unknown): void;
|
|
17
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
18
|
-
flush(): Uint8Array;
|
|
19
|
-
protected ensure(byteCount: number): void;
|
|
20
|
-
protected writeAscii(s: string): void;
|
|
21
|
-
protected writeAsciiQuoted(s: string): void;
|
|
22
|
-
protected writeJsonString(s: string): void;
|
|
23
|
-
protected writeUnicodeEscape(code: number): void;
|
|
24
|
-
protected static readonly B64: Uint8Array;
|
|
25
|
-
protected writeBase64(data: Uint8Array): void;
|
|
26
|
-
protected writeValue(
|
|
27
|
-
schema: Schema,
|
|
28
|
-
value: unknown,
|
|
29
|
-
container: NormalizedSchema | undefined,
|
|
30
|
-
): void;
|
|
31
|
-
protected writeStruct(ns: NormalizedSchema, value: Record<string, unknown>): void;
|
|
32
|
-
protected writeList(ns: NormalizedSchema, value: unknown[], isDocument?: boolean): void;
|
|
33
|
-
protected writeMap(
|
|
34
|
-
ns: NormalizedSchema,
|
|
35
|
-
value: Record<string, unknown>,
|
|
36
|
-
isDocument?: boolean,
|
|
37
|
-
): void;
|
|
38
|
-
protected writeTimestamp(ns: NormalizedSchema, value: Date): void;
|
|
39
|
-
}
|
package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpResponse, Schema, SerdeFunctions } from "@smithy/types";
|
|
2
|
-
export declare function parseJsonBody(streamBody: any, context: SerdeFunctions): Promise<any>;
|
|
3
|
-
export declare function parseJsonBody(
|
|
4
|
-
streamBody: any,
|
|
5
|
-
context: SerdeFunctions,
|
|
6
|
-
schema: Schema,
|
|
7
|
-
): Promise<any>;
|
|
8
|
-
export declare const parseJsonErrorBody: (errorBody: any, context: SerdeFunctions) => Promise<any>;
|
|
9
|
-
export declare const loadRestJsonErrorCode: (output: HttpResponse, data: any) => string | undefined;
|
|
10
|
-
export declare const loadJsonRpcErrorCode: (
|
|
11
|
-
output: HttpResponse,
|
|
12
|
-
data: any,
|
|
13
|
-
queryCompat?: boolean,
|
|
14
|
-
) => string | undefined;
|
|
@@ -1,536 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* content-disposition
|
|
3
|
-
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
4
|
-
* MIT Licensed
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
'use strict'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Module exports.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
module.exports = contentDisposition
|
|
15
|
-
module.exports.parse = parse
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* TextDecoder instance for UTF-8 decoding when decodeURIComponent fails due to invalid byte sequences.
|
|
19
|
-
* @type {TextDecoder}
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const utf8Decoder = new TextDecoder('utf-8')
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%")
|
|
26
|
-
* @private
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g // eslint-disable-line no-control-regex
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* RegExp to match non-latin1 characters.
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* RegExp to match quoted-pair in RFC 2616
|
|
40
|
-
*
|
|
41
|
-
* quoted-pair = "\" CHAR
|
|
42
|
-
* CHAR = <any US-ASCII character (octets 0 - 127)>
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
var QESC_REGEXP = /\\([\u0000-\u007f])/g // eslint-disable-line no-control-regex
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* RegExp to match chars that must be quoted-pair in RFC 2616
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
var QUOTE_REGEXP = /([\\"])/g
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* RegExp for various RFC 2616 grammar
|
|
57
|
-
*
|
|
58
|
-
* parameter = token "=" ( token | quoted-string )
|
|
59
|
-
* token = 1*<any CHAR except CTLs or separators>
|
|
60
|
-
* separators = "(" | ")" | "<" | ">" | "@"
|
|
61
|
-
* | "," | ";" | ":" | "\" | <">
|
|
62
|
-
* | "/" | "[" | "]" | "?" | "="
|
|
63
|
-
* | "{" | "}" | SP | HT
|
|
64
|
-
* quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
|
|
65
|
-
* qdtext = <any TEXT except <">>
|
|
66
|
-
* quoted-pair = "\" CHAR
|
|
67
|
-
* CHAR = <any US-ASCII character (octets 0 - 127)>
|
|
68
|
-
* TEXT = <any OCTET except CTLs, but including LWS>
|
|
69
|
-
* LWS = [CRLF] 1*( SP | HT )
|
|
70
|
-
* CRLF = CR LF
|
|
71
|
-
* CR = <US-ASCII CR, carriage return (13)>
|
|
72
|
-
* LF = <US-ASCII LF, linefeed (10)>
|
|
73
|
-
* SP = <US-ASCII SP, space (32)>
|
|
74
|
-
* HT = <US-ASCII HT, horizontal-tab (9)>
|
|
75
|
-
* CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
|
|
76
|
-
* OCTET = <any 8-bit sequence of data>
|
|
77
|
-
* @private
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
var PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g // eslint-disable-line no-control-regex
|
|
81
|
-
var TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/
|
|
82
|
-
var TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* RegExp for various RFC 5987 grammar
|
|
86
|
-
*
|
|
87
|
-
* ext-value = charset "'" [ language ] "'" value-chars
|
|
88
|
-
* charset = "UTF-8" / "ISO-8859-1" / mime-charset
|
|
89
|
-
* mime-charset = 1*mime-charsetc
|
|
90
|
-
* mime-charsetc = ALPHA / DIGIT
|
|
91
|
-
* / "!" / "#" / "$" / "%" / "&"
|
|
92
|
-
* / "+" / "-" / "^" / "_" / "`"
|
|
93
|
-
* / "{" / "}" / "~"
|
|
94
|
-
* language = ( 2*3ALPHA [ extlang ] )
|
|
95
|
-
* / 4ALPHA
|
|
96
|
-
* / 5*8ALPHA
|
|
97
|
-
* extlang = *3( "-" 3ALPHA )
|
|
98
|
-
* value-chars = *( pct-encoded / attr-char )
|
|
99
|
-
* pct-encoded = "%" HEXDIG HEXDIG
|
|
100
|
-
* attr-char = ALPHA / DIGIT
|
|
101
|
-
* / "!" / "#" / "$" / "&" / "+" / "-" / "."
|
|
102
|
-
* / "^" / "_" / "`" / "|" / "~"
|
|
103
|
-
* @private
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
var EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* RegExp for various RFC 6266 grammar
|
|
110
|
-
*
|
|
111
|
-
* disposition-type = "inline" | "attachment" | disp-ext-type
|
|
112
|
-
* disp-ext-type = token
|
|
113
|
-
* disposition-parm = filename-parm | disp-ext-parm
|
|
114
|
-
* filename-parm = "filename" "=" value
|
|
115
|
-
* | "filename*" "=" ext-value
|
|
116
|
-
* disp-ext-parm = token "=" value
|
|
117
|
-
* | ext-token "=" ext-value
|
|
118
|
-
* ext-token = <the characters in token, followed by "*">
|
|
119
|
-
* @private
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/ // eslint-disable-line no-control-regex
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Create an attachment Content-Disposition header.
|
|
126
|
-
*
|
|
127
|
-
* @param {string} [filename]
|
|
128
|
-
* @param {object} [options]
|
|
129
|
-
* @param {string} [options.type=attachment]
|
|
130
|
-
* @param {string|boolean} [options.fallback=true]
|
|
131
|
-
* @return {string}
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
function contentDisposition (filename, options) {
|
|
136
|
-
var opts = options || {}
|
|
137
|
-
|
|
138
|
-
// get type
|
|
139
|
-
var type = opts.type || 'attachment'
|
|
140
|
-
|
|
141
|
-
// get parameters
|
|
142
|
-
var params = createparams(filename, opts.fallback)
|
|
143
|
-
|
|
144
|
-
// format into string
|
|
145
|
-
return format(new ContentDisposition(type, params))
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Create parameters object from filename and fallback.
|
|
150
|
-
*
|
|
151
|
-
* @param {string} [filename]
|
|
152
|
-
* @param {string|boolean} [fallback=true]
|
|
153
|
-
* @return {object}
|
|
154
|
-
* @private
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
function createparams (filename, fallback) {
|
|
158
|
-
if (filename === undefined) {
|
|
159
|
-
return
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
var params = {}
|
|
163
|
-
|
|
164
|
-
if (typeof filename !== 'string') {
|
|
165
|
-
throw new TypeError('filename must be a string')
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// fallback defaults to true
|
|
169
|
-
if (fallback === undefined) {
|
|
170
|
-
fallback = true
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (typeof fallback !== 'string' && typeof fallback !== 'boolean') {
|
|
174
|
-
throw new TypeError('fallback must be a string or boolean')
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (typeof fallback === 'string' && NON_LATIN1_REGEXP.test(fallback)) {
|
|
178
|
-
throw new TypeError('fallback must be ISO-8859-1 string')
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// restrict to file base name
|
|
182
|
-
var name = basename(filename)
|
|
183
|
-
|
|
184
|
-
// determine if name is suitable for quoted string
|
|
185
|
-
var isQuotedString = TEXT_REGEXP.test(name)
|
|
186
|
-
|
|
187
|
-
// generate fallback name
|
|
188
|
-
var fallbackName = typeof fallback !== 'string'
|
|
189
|
-
? fallback && getlatin1(name)
|
|
190
|
-
: basename(fallback)
|
|
191
|
-
var hasFallback = typeof fallbackName === 'string' && fallbackName !== name
|
|
192
|
-
|
|
193
|
-
// set extended filename parameter
|
|
194
|
-
if (hasFallback || !isQuotedString || hasHexEscape(name)) {
|
|
195
|
-
params['filename*'] = name
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// set filename parameter
|
|
199
|
-
if (isQuotedString || hasFallback) {
|
|
200
|
-
params.filename = hasFallback
|
|
201
|
-
? fallbackName
|
|
202
|
-
: name
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
return params
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Format object to Content-Disposition header.
|
|
210
|
-
*
|
|
211
|
-
* @param {object} obj
|
|
212
|
-
* @param {string} obj.type
|
|
213
|
-
* @param {object} [obj.parameters]
|
|
214
|
-
* @return {string}
|
|
215
|
-
* @private
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
|
-
function format (obj) {
|
|
219
|
-
var parameters = obj.parameters
|
|
220
|
-
var type = obj.type
|
|
221
|
-
|
|
222
|
-
if (!type || typeof type !== 'string' || !TOKEN_REGEXP.test(type)) {
|
|
223
|
-
throw new TypeError('invalid type')
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// start with normalized type
|
|
227
|
-
var string = String(type).toLowerCase()
|
|
228
|
-
|
|
229
|
-
// append parameters
|
|
230
|
-
if (parameters && typeof parameters === 'object') {
|
|
231
|
-
var param
|
|
232
|
-
var params = Object.keys(parameters).sort()
|
|
233
|
-
|
|
234
|
-
for (var i = 0; i < params.length; i++) {
|
|
235
|
-
param = params[i]
|
|
236
|
-
|
|
237
|
-
var val = param.slice(-1) === '*'
|
|
238
|
-
? ustring(parameters[param])
|
|
239
|
-
: qstring(parameters[param])
|
|
240
|
-
|
|
241
|
-
string += '; ' + param + '=' + val
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
return string
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Decode a RFC 5987 field value (gracefully).
|
|
250
|
-
*
|
|
251
|
-
* @param {string} str
|
|
252
|
-
* @return {string}
|
|
253
|
-
* @private
|
|
254
|
-
*/
|
|
255
|
-
|
|
256
|
-
function decodefield (str) {
|
|
257
|
-
const match = EXT_VALUE_REGEXP.exec(str)
|
|
258
|
-
|
|
259
|
-
if (!match) {
|
|
260
|
-
throw new TypeError('invalid extended field value')
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
const charset = match[1].toLowerCase()
|
|
264
|
-
const encoded = match[2]
|
|
265
|
-
|
|
266
|
-
switch (charset) {
|
|
267
|
-
case 'iso-8859-1':
|
|
268
|
-
{
|
|
269
|
-
const binary = decodeHexEscapes(encoded)
|
|
270
|
-
return getlatin1(binary)
|
|
271
|
-
}
|
|
272
|
-
case 'utf-8':
|
|
273
|
-
case 'utf8':
|
|
274
|
-
{
|
|
275
|
-
try {
|
|
276
|
-
return decodeURIComponent(encoded)
|
|
277
|
-
} catch {
|
|
278
|
-
// Failed to decode with decodeURIComponent, fallback to lenient decoding which replaces invalid UTF-8 byte sequences with the Unicode replacement character
|
|
279
|
-
// TODO: Consider removing in the next major version to be more strict about invalid percent-encodings
|
|
280
|
-
const binary = decodeHexEscapes(encoded)
|
|
281
|
-
|
|
282
|
-
const bytes = new Uint8Array(binary.length)
|
|
283
|
-
for (let idx = 0; idx < binary.length; idx++) {
|
|
284
|
-
bytes[idx] = binary.charCodeAt(idx)
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
return utf8Decoder.decode(bytes)
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
throw new TypeError('unsupported charset in extended field')
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Get ISO-8859-1 version of string.
|
|
296
|
-
*
|
|
297
|
-
* @param {string} val
|
|
298
|
-
* @return {string}
|
|
299
|
-
* @private
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
function getlatin1 (val) {
|
|
303
|
-
// simple Unicode -> ISO-8859-1 transformation
|
|
304
|
-
return String(val).replace(NON_LATIN1_REGEXP, '?')
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Parse Content-Disposition header string.
|
|
309
|
-
*
|
|
310
|
-
* @param {string} string
|
|
311
|
-
* @return {object}
|
|
312
|
-
* @public
|
|
313
|
-
*/
|
|
314
|
-
|
|
315
|
-
function parse (string) {
|
|
316
|
-
if (!string || typeof string !== 'string') {
|
|
317
|
-
throw new TypeError('argument string is required')
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
var match = DISPOSITION_TYPE_REGEXP.exec(string)
|
|
321
|
-
|
|
322
|
-
if (!match) {
|
|
323
|
-
throw new TypeError('invalid type format')
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
// normalize type
|
|
327
|
-
var index = match[0].length
|
|
328
|
-
var type = match[1].toLowerCase()
|
|
329
|
-
|
|
330
|
-
var key
|
|
331
|
-
var names = []
|
|
332
|
-
var params = {}
|
|
333
|
-
var value
|
|
334
|
-
|
|
335
|
-
// calculate index to start at
|
|
336
|
-
index = PARAM_REGEXP.lastIndex = match[0].slice(-1) === ';'
|
|
337
|
-
? index - 1
|
|
338
|
-
: index
|
|
339
|
-
|
|
340
|
-
// match parameters
|
|
341
|
-
while ((match = PARAM_REGEXP.exec(string))) {
|
|
342
|
-
if (match.index !== index) {
|
|
343
|
-
throw new TypeError('invalid parameter format')
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
index += match[0].length
|
|
347
|
-
key = match[1].toLowerCase()
|
|
348
|
-
value = match[2]
|
|
349
|
-
|
|
350
|
-
if (names.indexOf(key) !== -1) {
|
|
351
|
-
throw new TypeError('invalid duplicate parameter')
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
names.push(key)
|
|
355
|
-
|
|
356
|
-
if (key.indexOf('*') + 1 === key.length) {
|
|
357
|
-
// decode extended value
|
|
358
|
-
key = key.slice(0, -1)
|
|
359
|
-
value = decodefield(value)
|
|
360
|
-
|
|
361
|
-
// overwrite existing value
|
|
362
|
-
params[key] = value
|
|
363
|
-
continue
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
if (typeof params[key] === 'string') {
|
|
367
|
-
continue
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
if (value[0] === '"') {
|
|
371
|
-
// remove quotes and escapes
|
|
372
|
-
value = value
|
|
373
|
-
.slice(1, -1)
|
|
374
|
-
.replace(QESC_REGEXP, '$1')
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
params[key] = value
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (index !== -1 && index !== string.length) {
|
|
381
|
-
throw new TypeError('invalid parameter format')
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
return new ContentDisposition(type, params)
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Percent encode a single character.
|
|
389
|
-
*
|
|
390
|
-
* @param {string} char
|
|
391
|
-
* @return {string}
|
|
392
|
-
* @private
|
|
393
|
-
*/
|
|
394
|
-
|
|
395
|
-
function pencode (char) {
|
|
396
|
-
return '%' + String(char)
|
|
397
|
-
.charCodeAt(0)
|
|
398
|
-
.toString(16)
|
|
399
|
-
.toUpperCase()
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Quote a string for HTTP.
|
|
404
|
-
*
|
|
405
|
-
* @param {string} val
|
|
406
|
-
* @return {string}
|
|
407
|
-
* @private
|
|
408
|
-
*/
|
|
409
|
-
|
|
410
|
-
function qstring (val) {
|
|
411
|
-
var str = String(val)
|
|
412
|
-
|
|
413
|
-
return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"'
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Encode a Unicode string for HTTP (RFC 5987).
|
|
418
|
-
*
|
|
419
|
-
* @param {string} val
|
|
420
|
-
* @return {string}
|
|
421
|
-
* @private
|
|
422
|
-
*/
|
|
423
|
-
|
|
424
|
-
function ustring (val) {
|
|
425
|
-
var str = String(val)
|
|
426
|
-
|
|
427
|
-
// percent encode as UTF-8
|
|
428
|
-
var encoded = encodeURIComponent(str)
|
|
429
|
-
.replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode)
|
|
430
|
-
|
|
431
|
-
return 'UTF-8\'\'' + encoded
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Class for parsed Content-Disposition header for v8 optimization
|
|
436
|
-
*
|
|
437
|
-
* @public
|
|
438
|
-
* @param {string} type
|
|
439
|
-
* @param {object} parameters
|
|
440
|
-
* @constructor
|
|
441
|
-
*/
|
|
442
|
-
|
|
443
|
-
function ContentDisposition (type, parameters) {
|
|
444
|
-
this.type = type
|
|
445
|
-
this.parameters = parameters
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Return the last portion of a path
|
|
450
|
-
*
|
|
451
|
-
* @param {string} path
|
|
452
|
-
* @returns {string}
|
|
453
|
-
*/
|
|
454
|
-
function basename (path) {
|
|
455
|
-
const normalized = path.replaceAll('\\', '/')
|
|
456
|
-
|
|
457
|
-
let end = normalized.length
|
|
458
|
-
while (end > 0 && normalized[end - 1] === '/') {
|
|
459
|
-
end--
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
if (end === 0) {
|
|
463
|
-
return ''
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
let start = end - 1
|
|
467
|
-
while (start >= 0 && normalized[start] !== '/') {
|
|
468
|
-
start--
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
return normalized.slice(start + 1, end)
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Check if a character is a hex digit [0-9A-Fa-f]
|
|
476
|
-
*
|
|
477
|
-
* @param {string} char
|
|
478
|
-
* @return {boolean}
|
|
479
|
-
* @private
|
|
480
|
-
*/
|
|
481
|
-
function isHexDigit (char) {
|
|
482
|
-
const code = char.charCodeAt(0)
|
|
483
|
-
return (
|
|
484
|
-
(code >= 48 && code <= 57) || // 0-9
|
|
485
|
-
(code >= 65 && code <= 70) || // A-F
|
|
486
|
-
(code >= 97 && code <= 102) // a-f
|
|
487
|
-
)
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Check if a string contains percent encoding escapes.
|
|
492
|
-
*
|
|
493
|
-
* @param {string} str
|
|
494
|
-
* @return {boolean}
|
|
495
|
-
* @private
|
|
496
|
-
*/
|
|
497
|
-
function hasHexEscape (str) {
|
|
498
|
-
const maxIndex = str.length - 3
|
|
499
|
-
let lastIndex = -1
|
|
500
|
-
|
|
501
|
-
while ((lastIndex = str.indexOf('%', lastIndex + 1)) !== -1 && lastIndex <= maxIndex) {
|
|
502
|
-
if (isHexDigit(str[lastIndex + 1]) && isHexDigit(str[lastIndex + 2])) {
|
|
503
|
-
return true
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
return false
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Decode hex escapes in a string (e.g., %20 -> space)
|
|
512
|
-
*
|
|
513
|
-
* @param {string} str
|
|
514
|
-
* @return {string}
|
|
515
|
-
* @private
|
|
516
|
-
*/
|
|
517
|
-
function decodeHexEscapes (str) {
|
|
518
|
-
const firstEscape = str.indexOf('%')
|
|
519
|
-
if (firstEscape === -1) return str
|
|
520
|
-
|
|
521
|
-
let result = str.slice(0, firstEscape)
|
|
522
|
-
for (let idx = firstEscape; idx < str.length; idx++) {
|
|
523
|
-
if (
|
|
524
|
-
str[idx] === '%' &&
|
|
525
|
-
idx + 2 < str.length &&
|
|
526
|
-
isHexDigit(str[idx + 1]) &&
|
|
527
|
-
isHexDigit(str[idx + 2])
|
|
528
|
-
) {
|
|
529
|
-
result += String.fromCharCode(Number.parseInt(str[idx + 1] + str[idx + 2], 16))
|
|
530
|
-
idx += 2
|
|
531
|
-
} else {
|
|
532
|
-
result += str[idx]
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
return result
|
|
536
|
-
}
|