@qqbrowser/openclaw-qbot 0.10.11 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +67 -57
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +5 -5
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +46 -50
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +3 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +16 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +21 -26
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +9 -10
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +7 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntimeClient.js +7 -10
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/BedrockRuntimeServiceException.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +6 -8
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +6 -11
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +7 -4
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +13 -46
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +67 -55
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -2
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +595 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +717 -2
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +588 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +54 -39
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +59 -0
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +36 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +26 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +37 -0
- package/node_modules/@aws-sdk/{middleware-host-header/dist-es/index.js → core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.js +3 -0
- package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.js +1 -1
- package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/check-features.js +2 -2
- package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/user-agent-middleware.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js +2 -0
- package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +1 -1
- package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/aws.js +1 -1
- package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/isVirtualHostableS3Bucket.js +1 -1
- package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/partition.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js +1 -0
- package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/resolveDefaultAwsRegionalEndpointsConfig.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.browser.js +1 -0
- package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getTypeScriptUserAgentPair.js +1 -1
- package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/nodeAppIdConfigOptions.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +7 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +26 -11
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +2 -0
- package/node_modules/@aws-sdk/{util-format-url/dist-es/index.js → core/dist-es/submodules/util/util-format-url/format-url.js} +1 -1
- package/node_modules/@aws-sdk/core/package.json +39 -17
- package/node_modules/@aws-sdk/core/util.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +15 -9
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +10 -10
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +13 -7
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +18 -12
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +9 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -14
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +14 -15
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +19 -9
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +16 -17
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +3 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -34
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -7
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js +1 -1
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -5
- package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +1 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +1 -1
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-websocket/dist-cjs/index.js +13 -15
- package/node_modules/@aws-sdk/middleware-websocket/dist-es/WebSocketFetchHandler.js +5 -5
- package/node_modules/@aws-sdk/middleware-websocket/dist-es/WebsocketSignatureV4.js +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketEndpointMiddleware.js +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/EventSigningTransformStream.js +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/EventStreamPayloadHandler.js +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +524 -63
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +458 -60
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +403 -60
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +597 -60
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +831 -58
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +6 -9
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +6 -9
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js +6 -9
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +6 -9
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +6 -9
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +3 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -37
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +38 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +2 -2
- package/node_modules/@aws-sdk/{middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js → signature-v4-multi-region/dist-es/SignatureV4SignWithCredentials.js} +5 -10
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +3 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -6
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +18 -19
- package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +6 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +60 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +6 -6
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@cacheable/memory/package.json +2 -6
- package/node_modules/@clack/core/dist/index.mjs +9 -9
- package/node_modules/@clack/core/package.json +2 -1
- package/node_modules/@clack/prompts/dist/index.mjs +122 -121
- package/node_modules/@clack/prompts/package.json +2 -2
- package/node_modules/@grammyjs/types/package.json +1 -1
- package/node_modules/@nodable/entities/package.json +1 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +1 -1
- package/node_modules/@nodable/entities/src/entities.js +0 -18
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +440 -73
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +71 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +298 -35
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +78 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +2 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +440 -73
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +71 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +298 -35
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +78 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +2 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +469 -97
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +72 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +307 -43
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +81 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +1 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +2 -13
- package/node_modules/@opentelemetry/semantic-conventions/package.json +2 -2
- package/node_modules/@protobufjs/eventemitter/index.js +17 -7
- package/node_modules/@protobufjs/eventemitter/package.json +2 -2
- package/node_modules/@protobufjs/fetch/index.js +4 -7
- package/node_modules/@protobufjs/fetch/package.json +7 -5
- package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@protobufjs/inquire/index.js +1 -0
- package/node_modules/@protobufjs/inquire/package.json +1 -1
- package/node_modules/@slack/bolt/dist/App.js +8 -12
- package/node_modules/@slack/bolt/dist/context/index.js +7 -7
- package/node_modules/@slack/bolt/dist/index.js +16 -16
- package/node_modules/@slack/bolt/dist/receivers/AwsLambdaReceiver.js +2 -0
- package/node_modules/@slack/bolt/dist/receivers/ExpressReceiver.js +8 -1
- package/node_modules/@slack/bolt/dist/receivers/HTTPReceiver.js +4 -2
- package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +1 -1
- package/node_modules/@slack/bolt/dist/receivers/verify-request.js +3 -0
- package/node_modules/@slack/bolt/dist/receivers/verify-signing-secret.js +12 -0
- package/node_modules/@slack/bolt/dist/types/actions/index.js +1 -1
- package/node_modules/@slack/bolt/dist/types/index.js +3 -3
- package/node_modules/@slack/bolt/package.json +4 -4
- package/node_modules/@slack/web-api/dist/file-upload.js +4 -2
- package/node_modules/@slack/web-api/package.json +2 -2
- package/node_modules/@smithy/core/cbor.js +0 -1
- package/node_modules/@smithy/core/checksum.js +1 -1
- package/node_modules/@smithy/core/client.js +0 -1
- package/node_modules/@smithy/core/config.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +128 -176
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +183 -87
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +128 -176
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
- package/node_modules/@smithy/core/dist-es/index.js +6 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +12 -7
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +9 -5
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +10 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js +19 -21
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.browser.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +1 -1
- package/node_modules/{@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js → @smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js} +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/endpoints.js +0 -1
- package/node_modules/@smithy/core/event-streams.js +0 -1
- package/node_modules/@smithy/core/package.json +20 -11
- package/node_modules/@smithy/core/protocols.js +0 -1
- package/node_modules/@smithy/core/retry.js +1 -1
- package/node_modules/@smithy/core/schema.js +0 -1
- package/node_modules/@smithy/core/serde.js +0 -1
- package/node_modules/@smithy/core/transport.js +5 -0
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@smithy/signature-v4/package.json +3 -3
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -7
- package/node_modules/@smithy/util-utf8/dist-es/index.js +3 -1
- package/node_modules/@smithy/util-utf8/package.json +33 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/dist/index.js +10 -5
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/package.json +1 -1
- package/node_modules/axios/dist/axios.js +81 -53
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/browser/axios.cjs +96 -64
- package/node_modules/axios/dist/esm/axios.js +96 -64
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/node/axios.cjs +206 -85
- package/node_modules/axios/index.d.cts +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +6 -2
- package/node_modules/axios/lib/adapters/http.js +139 -29
- package/node_modules/axios/lib/adapters/xhr.js +2 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +1 -33
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/composeSignals.js +48 -47
- package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
- package/node_modules/axios/lib/helpers/fromDataURI.js +18 -5
- package/node_modules/axios/lib/helpers/progressEventReducer.js +3 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/utils.js +8 -7
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/axios/node_modules/agent-base/package.json +64 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
- package/node_modules/axios/package.json +3 -1
- package/node_modules/discord-api-types/package.json +8 -8
- package/node_modules/discord-api-types/payloads/v10/oauth2.js +7 -0
- package/node_modules/discord-api-types/payloads/v9/oauth2.js +7 -0
- package/node_modules/discord-api-types/rest/v10/index.js +3 -2
- package/node_modules/discord-api-types/rest/v9/index.js +3 -2
- package/node_modules/es-object-atoms/package.json +6 -7
- package/node_modules/es-object-atoms/tsconfig.json +1 -0
- package/node_modules/eventsource-parser/dist/index.cjs +21 -10
- package/node_modules/eventsource-parser/dist/index.d.cts +33 -10
- package/node_modules/eventsource-parser/dist/index.js +21 -10
- package/node_modules/eventsource-parser/dist/stream.cjs +4 -3
- package/node_modules/eventsource-parser/dist/stream.d.cts +16 -3
- package/node_modules/eventsource-parser/dist/stream.js +4 -3
- package/node_modules/eventsource-parser/package.json +8 -8
- package/node_modules/express-rate-limit/dist/index.cjs +1 -1
- package/node_modules/express-rate-limit/dist/index.mjs +1 -1
- package/node_modules/express-rate-limit/package.json +9 -9
- package/node_modules/fast-wrap-ansi/lib/main.js +0 -1
- package/node_modules/fast-wrap-ansi/package.json +10 -10
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/package.json +2 -4
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +1 -1
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +4 -0
- package/node_modules/grammy/out/bot.js +1 -0
- package/node_modules/grammy/out/context.js +236 -74
- package/node_modules/grammy/out/convenience/constants.js +1 -0
- package/node_modules/grammy/out/convenience/frameworks.js +21 -17
- package/node_modules/grammy/out/core/api.js +280 -141
- package/node_modules/grammy/out/filter.js +5 -1
- package/node_modules/grammy/out/web.mjs +191 -61
- package/node_modules/grammy/package.json +2 -2
- package/node_modules/hasown/package.json +4 -5
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/perf.js +1 -2
- package/node_modules/lru-cache/package.json +8 -8
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/protobufjs/dist/light/protobuf.js +354 -234
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.js +75 -29
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.js +425 -286
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/ext/descriptor/index.js +7 -2
- package/node_modules/protobufjs/package.json +8 -5
- package/node_modules/protobufjs/src/converter.js +17 -10
- package/node_modules/protobufjs/src/encoder.js +8 -5
- package/node_modules/protobufjs/src/enum.js +2 -2
- package/node_modules/protobufjs/src/field.js +1 -1
- package/node_modules/protobufjs/src/namespace.js +10 -4
- package/node_modules/protobufjs/src/object.js +6 -6
- package/node_modules/protobufjs/src/parse.js +49 -30
- package/node_modules/protobufjs/src/root.js +18 -10
- package/node_modules/protobufjs/src/roots.js +1 -1
- package/node_modules/protobufjs/src/service.js +4 -2
- package/node_modules/protobufjs/src/type.js +12 -7
- package/node_modules/protobufjs/src/util/fs.js +11 -0
- package/node_modules/protobufjs/src/util/minimal.js +42 -9
- package/node_modules/protobufjs/src/util/patterns.js +0 -1
- package/node_modules/protobufjs/src/util.js +19 -4
- package/node_modules/protobufjs/src/wrappers.js +11 -7
- package/node_modules/protobufjs/src/writer.js +11 -9
- package/node_modules/qs/dist/qs.js +15 -15
- package/node_modules/qs/eslint.config.mjs +1 -0
- package/node_modules/qs/lib/parse.js +52 -22
- package/node_modules/qs/lib/stringify.js +11 -4
- package/node_modules/qs/package.json +2 -2
- package/node_modules/semver/classes/range.js +7 -0
- package/node_modules/semver/package.json +1 -1
- package/node_modules/semver/ranges/subset.js +2 -2
- package/node_modules/shell-quote/package.json +5 -6
- package/node_modules/shell-quote/quote.js +43 -1
- package/node_modules/thread-stream/.claude/settings.local.json +15 -0
- package/node_modules/thread-stream/CLAUDE.md +64 -0
- package/node_modules/thread-stream/index.js +41 -13
- package/node_modules/thread-stream/lib/indexes.js +3 -1
- package/node_modules/thread-stream/lib/worker.js +20 -8
- package/node_modules/thread-stream/package.json +1 -1
- package/node_modules/type-is/index.js +8 -18
- package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/type-is/node_modules/content-type/package.json +52 -0
- package/node_modules/type-is/package.json +9 -5
- package/node_modules/undici/lib/api/api-request.js +1 -1
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +3 -3
- package/node_modules/undici/lib/core/connect.js +16 -0
- package/node_modules/undici/lib/core/request.js +17 -2
- package/node_modules/undici/lib/core/socks5-client.js +10 -5
- package/node_modules/undici/lib/core/socks5-utils.js +17 -22
- package/node_modules/undici/lib/dispatcher/client-h1.js +64 -20
- package/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/undici/lib/dispatcher/h2c-client.js +1 -1
- package/node_modules/undici/lib/global.js +10 -1
- package/node_modules/undici/lib/mock/mock-call-history.js +15 -15
- package/node_modules/undici/lib/util/cache.js +8 -7
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +17 -6
- package/node_modules/undici/lib/web/fetch/index.js +5 -2
- package/node_modules/undici/lib/web/webidl/index.js +5 -5
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +1 -7
- package/node_modules/undici/package.json +1 -1
- package/node_modules/ws/lib/receiver.js +54 -0
- package/node_modules/ws/lib/sender.js +6 -1
- package/node_modules/ws/lib/websocket-server.js +8 -0
- package/node_modules/ws/lib/websocket.js +14 -0
- package/node_modules/ws/package.json +1 -1
- package/package.json +1 -1
- package/skills/qqbrowser-playbook/SKILL.md +330 -0
- package/skills/qqbrowser-skill/SKILL.md +355 -160
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/package.json +0 -66
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +0 -66
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -157
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -16
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -81
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -10
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +0 -70
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +0 -41
- package/node_modules/@aws-sdk/middleware-host-header/package.json +0 -59
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +0 -48
- package/node_modules/@aws-sdk/middleware-logger/dist-es/index.js +0 -1
- package/node_modules/@aws-sdk/middleware-logger/package.json +0 -59
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -29
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +0 -33
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +0 -5
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -63
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +0 -581
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +0 -11
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +0 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +0 -36
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +0 -32
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +0 -9
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +0 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +0 -41
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +0 -42
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +0 -33
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +0 -39
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +0 -14
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +0 -49
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +0 -13
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +0 -38
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +0 -41
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +0 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +0 -7
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +0 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +0 -1
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +0 -17
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +0 -51
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +0 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +0 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +0 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +0 -79
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -194
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -63
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +0 -60
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +0 -100
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +0 -121
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +0 -38
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.js +0 -54
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +0 -50
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +0 -110
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +0 -56
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +0 -90
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +0 -64
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.browser.js +0 -39
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +0 -54
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +0 -49
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +0 -125
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +0 -56
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +0 -80
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +0 -56
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +0 -38
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +0 -54
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +0 -49
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +0 -90
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +0 -56
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +0 -80
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +0 -195
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +0 -38
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +0 -54
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +0 -49
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +0 -140
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +0 -55
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +0 -43
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +0 -144
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +0 -19
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +0 -150
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +0 -96
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.browser.js +0 -39
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +0 -74
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.native.js +0 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +0 -57
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +0 -13
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +0 -195
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +0 -38
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +0 -20
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +0 -6
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +0 -2
- package/node_modules/@aws-sdk/region-config-resolver/package.json +0 -62
- package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +0 -27
- package/node_modules/@aws-sdk/util-arn-parser/package.json +0 -55
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -406
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
- package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
- package/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
- package/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js +0 -34
- package/node_modules/@aws-sdk/util-format-url/package.json +0 -56
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js +0 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +0 -57
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +0 -58
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +0 -22
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +0 -55
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +0 -185
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +0 -69
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +0 -22
- package/node_modules/@smithy/config-resolver/dist-es/index.js +0 -1
- package/node_modules/@smithy/config-resolver/package.json +0 -41
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
- package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-es/index.js +0 -1
- package/node_modules/@smithy/eventstream-codec/package.json +0 -44
- package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +0 -9
- package/node_modules/@smithy/eventstream-serde-browser/dist-es/index.js +0 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +0 -44
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +0 -1
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +0 -44
- package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +0 -6
- package/node_modules/@smithy/eventstream-serde-node/dist-es/index.js +0 -1
- package/node_modules/@smithy/eventstream-serde-node/package.json +0 -44
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/hash-node/dist-es/index.js +0 -1
- package/node_modules/@smithy/hash-node/package.json +0 -41
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +0 -6
- package/node_modules/@smithy/invalid-dependency/dist-es/index.js +0 -1
- package/node_modules/@smithy/invalid-dependency/package.json +0 -41
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +0 -7
- package/node_modules/@smithy/middleware-content-length/dist-es/index.js +0 -1
- package/node_modules/@smithy/middleware-content-length/package.json +0 -41
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +0 -12
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +0 -41
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +0 -22
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +0 -1
- package/node_modules/@smithy/middleware-retry/package.json +0 -41
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +0 -9
- package/node_modules/@smithy/middleware-serde/dist-es/index.js +0 -1
- package/node_modules/@smithy/middleware-serde/package.json +0 -41
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/middleware-stack/dist-es/index.js +0 -1
- package/node_modules/@smithy/middleware-stack/package.json +0 -43
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/node-config-provider/dist-es/index.js +0 -1
- package/node_modules/@smithy/node-config-provider/package.json +0 -43
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -10
- package/node_modules/@smithy/property-provider/dist-es/index.js +0 -1
- package/node_modules/@smithy/property-provider/package.json +0 -41
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +0 -11
- package/node_modules/@smithy/protocol-http/dist-es/index.js +0 -1
- package/node_modules/@smithy/protocol-http/package.json +0 -42
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/querystring-builder/dist-es/index.js +0 -1
- package/node_modules/@smithy/querystring-builder/package.json +0 -41
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -16
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +0 -41
- package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +0 -75
- package/node_modules/@smithy/smithy-client/dist-es/index.js +0 -3
- package/node_modules/@smithy/smithy-client/package.json +0 -42
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/url-parser/dist-es/index.js +0 -1
- package/node_modules/@smithy/url-parser/package.json +0 -41
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +0 -6
- package/node_modules/@smithy/util-base64/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-base64/package.json +0 -42
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/util-body-length-browser/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-body-length-browser/package.json +0 -42
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/util-body-length-node/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-body-length-node/package.json +0 -42
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +0 -7
- package/node_modules/@smithy/util-config-provider/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-config-provider/package.json +0 -43
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +0 -41
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +0 -5
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +0 -41
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +0 -12
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/package.json +0 -45
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +0 -6
- package/node_modules/@smithy/util-hex-encoding/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-hex-encoding/package.json +0 -42
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +0 -6
- package/node_modules/@smithy/util-middleware/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-middleware/package.json +0 -46
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +0 -21
- package/node_modules/@smithy/util-retry/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-retry/package.json +0 -46
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +0 -14
- package/node_modules/@smithy/util-stream/dist-es/index.js +0 -1
- package/node_modules/@smithy/util-stream/package.json +0 -43
- package/node_modules/shell-quote/print.py +0 -3
- /package/node_modules/@aws-sdk/{middleware-logger/dist-es → core/dist-es/submodules/client/middleware-logger}/loggerMiddleware.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/configuration.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/getRecursionDetectionPlugin.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.browser.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-recursion-detection/dist-es → core/dist-es/submodules/client/middleware-recursion-detection}/recursionDetectionMiddleware.native.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/configurations.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/constants.js +0 -0
- /package/node_modules/@aws-sdk/{middleware-user-agent/dist-es → core/dist-es/submodules/client/middleware-user-agent}/encode-features.js +0 -0
- /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/extensions/index.js → core/dist-es/submodules/client/region-config-resolver/extensions.js} +0 -0
- /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.browser.js +0 -0
- /package/node_modules/@aws-sdk/{region-config-resolver/dist-es/regionConfig → core/dist-es/submodules/client/region-config-resolver}/stsRegionDefaultResolver.native.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/lib/aws/parseArn.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/EndpointRuleObject.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/ErrorRuleObject.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/RuleSetObject.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/TreeRuleObject.js +0 -0
- /package/node_modules/@aws-sdk/{util-endpoints/dist-es → core/dist-es/submodules/client/util-endpoints}/types/shared.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es → core/dist-es/submodules/client/util-user-agent-browser}/configurations.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es → core/dist-es/submodules/client/util-user-agent-browser}/createUserAgentStringParsingProvider.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es/index.js → core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js} +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-browser/dist-es/index.native.js → core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.native.js} +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/crt-availability.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/defaultUserAgent.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getNodeModulesParentDirs.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getRuntimeUserAgentPair.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getSanitizedDevTypeScriptVersion.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/getSanitizedTypeScriptVersion.js +0 -0
- /package/node_modules/@aws-sdk/{util-user-agent-node/dist-es → core/dist-es/submodules/client/util-user-agent-node}/is-crt-available.js +0 -0
- /package/node_modules/@aws-sdk/{util-arn-parser/dist-es/index.js → core/dist-es/submodules/util/util-arn-parser/arn.js} +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/fromUtf8.browser.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/fromUtf8.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUint8Array.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUtf8.browser.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-cjs/toUtf8.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/fromUtf8.browser.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/fromUtf8.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUint8Array.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUtf8.browser.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy → @smithy}/util-utf8/dist-es/toUtf8.js +0 -0
|
@@ -41,7 +41,7 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
|
41
41
|
} gen
|
|
42
42
|
("}");
|
|
43
43
|
} else gen
|
|
44
|
-
("if(
|
|
44
|
+
("if(!util.isObject(d%s))", prop)
|
|
45
45
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
46
46
|
("m%s=types[%i].fromObject(d%s,n+1)", prop, fieldIndex, prop);
|
|
47
47
|
} else {
|
|
@@ -61,14 +61,14 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
|
61
61
|
("m%s=d%s|0", prop, prop);
|
|
62
62
|
break;
|
|
63
63
|
case "uint64":
|
|
64
|
+
case "fixed64":
|
|
64
65
|
isUnsigned = true;
|
|
65
66
|
// eslint-disable-next-line no-fallthrough
|
|
66
67
|
case "int64":
|
|
67
68
|
case "sint64":
|
|
68
|
-
case "fixed64":
|
|
69
69
|
case "sfixed64": gen
|
|
70
70
|
("if(util.Long)")
|
|
71
|
-
("
|
|
71
|
+
("m%s=util.Long.fromValue(d%s,%j)", prop, prop, isUnsigned)
|
|
72
72
|
("else if(typeof d%s===\"string\")", prop)
|
|
73
73
|
("m%s=parseInt(d%s,10)", prop, prop)
|
|
74
74
|
("else if(typeof d%s===\"number\")", prop)
|
|
@@ -108,6 +108,8 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
108
108
|
var gen = util.codegen(["d", "n"], mtype.name + "$fromObject")
|
|
109
109
|
("if(d instanceof this.ctor)")
|
|
110
110
|
("return d")
|
|
111
|
+
("if(!util.isObject(d))")
|
|
112
|
+
("throw TypeError(%j)", mtype.fullName + ": object expected")
|
|
111
113
|
("if(n===undefined)n=0")
|
|
112
114
|
("if(n>util.recursionLimit)")
|
|
113
115
|
("throw Error(\"maximum nesting depth exceeded\")");
|
|
@@ -122,7 +124,7 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
122
124
|
// Map fields
|
|
123
125
|
if (field.map) { gen
|
|
124
126
|
("if(d%s){", prop)
|
|
125
|
-
("if(
|
|
127
|
+
("if(!util.isObject(d%s))", prop)
|
|
126
128
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
127
129
|
("m%s={}", prop)
|
|
128
130
|
("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", prop);
|
|
@@ -172,7 +174,7 @@ function genValuePartial_toObject(gen, field, fieldIndex, prop) {
|
|
|
172
174
|
if (field.resolvedType instanceof Enum) gen
|
|
173
175
|
("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", prop, fieldIndex, prop, prop, fieldIndex, prop, prop);
|
|
174
176
|
else gen
|
|
175
|
-
("d%s=types[%i].toObject(m%s,o)", prop, fieldIndex, prop);
|
|
177
|
+
("d%s=types[%i].toObject(m%s,o,q+1)", prop, fieldIndex, prop);
|
|
176
178
|
} else {
|
|
177
179
|
var isUnsigned = false;
|
|
178
180
|
switch (field.type) {
|
|
@@ -181,13 +183,15 @@ function genValuePartial_toObject(gen, field, fieldIndex, prop) {
|
|
|
181
183
|
("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", prop, prop, prop, prop);
|
|
182
184
|
break;
|
|
183
185
|
case "uint64":
|
|
186
|
+
case "fixed64":
|
|
184
187
|
isUnsigned = true;
|
|
185
188
|
// eslint-disable-next-line no-fallthrough
|
|
186
189
|
case "int64":
|
|
187
190
|
case "sint64":
|
|
188
|
-
case "fixed64":
|
|
189
191
|
case "sfixed64": gen
|
|
190
|
-
("if(typeof
|
|
192
|
+
("if(typeof BigInt!==\"undefined\"&&o.longs===BigInt)")
|
|
193
|
+
("d%s=typeof m%s===\"number\"?BigInt(m%s):util.Long.fromBits(m%s.low>>>0,m%s.high>>>0,%j).toBigInt()", prop, prop, prop, prop, prop, isUnsigned)
|
|
194
|
+
("else if(typeof m%s===\"number\")", prop)
|
|
191
195
|
("d%s=o.longs===String?String(m%s):m%s", prop, prop, prop)
|
|
192
196
|
("else") // Long-like
|
|
193
197
|
("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s", prop, prop, prop, prop, isUnsigned ? "true": "", prop);
|
|
@@ -214,9 +218,12 @@ converter.toObject = function toObject(mtype) {
|
|
|
214
218
|
var fields = mtype.fieldsArray.slice().sort(util.compareFieldsById);
|
|
215
219
|
if (!fields.length)
|
|
216
220
|
return util.codegen()("return {}");
|
|
217
|
-
var gen = util.codegen(["m", "o"], mtype.name + "$toObject")
|
|
221
|
+
var gen = util.codegen(["m", "o", "q"], mtype.name + "$toObject")
|
|
218
222
|
("if(!o)")
|
|
219
223
|
("o={}")
|
|
224
|
+
("if(q===undefined)q=0")
|
|
225
|
+
("if(q>util.recursionLimit)")
|
|
226
|
+
("throw Error(\"max depth exceeded\")")
|
|
220
227
|
("var d={}");
|
|
221
228
|
|
|
222
229
|
var repeatedFields = [],
|
|
@@ -255,9 +262,9 @@ converter.toObject = function toObject(mtype) {
|
|
|
255
262
|
else if (field.long) gen
|
|
256
263
|
("if(util.Long){")
|
|
257
264
|
("var n=new util.Long(%i,%i,%j)", field.typeDefault.low, field.typeDefault.high, field.typeDefault.unsigned)
|
|
258
|
-
("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", prop)
|
|
265
|
+
("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!==\"undefined\"&&o.longs===BigInt?n.toBigInt():n", prop)
|
|
259
266
|
("}else")
|
|
260
|
-
("d%s=o.longs===String?%j:%i", prop, field.typeDefault.toString(), field.typeDefault.toNumber());
|
|
267
|
+
("d%s=o.longs===String?%j:typeof BigInt!==\"undefined\"&&o.longs===BigInt?BigInt(%j):%i", prop, field.typeDefault.toString(), field.typeDefault.toString(), field.typeDefault.toNumber());
|
|
261
268
|
else if (field.bytes) {
|
|
262
269
|
var arrayDefault = Array.prototype.slice.call(field.typeDefault);
|
|
263
270
|
gen
|
|
@@ -16,8 +16,8 @@ var Enum = require("./enum"),
|
|
|
16
16
|
*/
|
|
17
17
|
function genTypePartial(gen, field, fieldIndex, ref) {
|
|
18
18
|
return field.delimited
|
|
19
|
-
? gen("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0)
|
|
20
|
-
: gen("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0);
|
|
19
|
+
? gen("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0)
|
|
20
|
+
: gen("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -27,9 +27,12 @@ function genTypePartial(gen, field, fieldIndex, ref) {
|
|
|
27
27
|
*/
|
|
28
28
|
function encoder(mtype) {
|
|
29
29
|
/* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */
|
|
30
|
-
var gen = util.codegen(["m", "w"], mtype.name + "$encode")
|
|
30
|
+
var gen = util.codegen(["m", "w", "q"], mtype.name + "$encode")
|
|
31
31
|
("if(!w)")
|
|
32
|
-
("w=Writer.create()")
|
|
32
|
+
("w=Writer.create()")
|
|
33
|
+
("if(q===undefined)q=0")
|
|
34
|
+
("if(q>util.recursionLimit)")
|
|
35
|
+
("throw Error(\"max depth exceeded\")");
|
|
33
36
|
|
|
34
37
|
var i, ref;
|
|
35
38
|
|
|
@@ -50,7 +53,7 @@ function encoder(mtype) {
|
|
|
50
53
|
("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", ref)
|
|
51
54
|
("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (field.id << 3 | 2) >>> 0, 8 | types.mapKey[field.keyType], field.keyType);
|
|
52
55
|
if (wireType === undefined) gen
|
|
53
|
-
("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", index, ref); // can't be groups
|
|
56
|
+
("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()", index, ref); // can't be groups
|
|
54
57
|
else gen
|
|
55
58
|
(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | wireType, type, ref);
|
|
56
59
|
gen
|
|
@@ -86,8 +86,8 @@ Enum.prototype._resolveFeatures = function _resolveFeatures(edition) {
|
|
|
86
86
|
ReflectionObject.prototype._resolveFeatures.call(this, edition);
|
|
87
87
|
|
|
88
88
|
Object.keys(this.values).forEach(key => {
|
|
89
|
-
var parentFeaturesCopy =
|
|
90
|
-
this._valuesFeatures[key] =
|
|
89
|
+
var parentFeaturesCopy = util.merge({}, this._features);
|
|
90
|
+
this._valuesFeatures[key] = util.merge(parentFeaturesCopy, this.valuesOptions && this.valuesOptions[key] && this.valuesOptions[key].features || {});
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
return this;
|
|
@@ -328,7 +328,7 @@ Field.prototype.resolve = function resolve() {
|
|
|
328
328
|
|
|
329
329
|
// convert to internal data type if necesssary
|
|
330
330
|
if (this.long) {
|
|
331
|
-
this.typeDefault = util.Long.fromNumber(this.typeDefault, this.type.
|
|
331
|
+
this.typeDefault = util.Long.fromNumber(this.typeDefault, this.type === "uint64" || this.type === "fixed64");
|
|
332
332
|
|
|
333
333
|
/* istanbul ignore else */
|
|
334
334
|
if (Object.freeze)
|
|
@@ -29,11 +29,13 @@ var Type, // cyclic
|
|
|
29
29
|
* @function
|
|
30
30
|
* @param {string} name Namespace name
|
|
31
31
|
* @param {Object.<string,*>} json JSON object
|
|
32
|
+
* @param {number} [depth] Current nesting depth, defaults to `0`
|
|
32
33
|
* @returns {Namespace} Created namespace
|
|
33
34
|
* @throws {TypeError} If arguments are invalid
|
|
34
35
|
*/
|
|
35
|
-
Namespace.fromJSON = function fromJSON(name, json) {
|
|
36
|
-
|
|
36
|
+
Namespace.fromJSON = function fromJSON(name, json, depth) {
|
|
37
|
+
depth = util.checkDepth(depth);
|
|
38
|
+
return new Namespace(name, json.options).addJSON(json.nested, depth);
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
/**
|
|
@@ -191,9 +193,11 @@ Namespace.prototype.toJSON = function toJSON(toJSONOptions) {
|
|
|
191
193
|
/**
|
|
192
194
|
* Adds nested objects to this namespace from nested object descriptors.
|
|
193
195
|
* @param {Object.<string,AnyNestedObject>} nestedJson Any nested object descriptors
|
|
196
|
+
* @param {number} [depth] Current nesting depth, defaults to `0`
|
|
194
197
|
* @returns {Namespace} `this`
|
|
195
198
|
*/
|
|
196
|
-
Namespace.prototype.addJSON = function addJSON(nestedJson) {
|
|
199
|
+
Namespace.prototype.addJSON = function addJSON(nestedJson, depth) {
|
|
200
|
+
depth = util.checkDepth(depth);
|
|
197
201
|
var ns = this;
|
|
198
202
|
/* istanbul ignore else */
|
|
199
203
|
if (nestedJson) {
|
|
@@ -208,7 +212,7 @@ Namespace.prototype.addJSON = function addJSON(nestedJson) {
|
|
|
208
212
|
? Service.fromJSON
|
|
209
213
|
: nested.id !== undefined
|
|
210
214
|
? Field.fromJSON
|
|
211
|
-
: Namespace.fromJSON )(names[i], nested)
|
|
215
|
+
: Namespace.fromJSON )(names[i], nested, depth + 1)
|
|
212
216
|
);
|
|
213
217
|
}
|
|
214
218
|
}
|
|
@@ -333,6 +337,8 @@ Namespace.prototype.define = function define(path, json) {
|
|
|
333
337
|
throw TypeError("illegal path");
|
|
334
338
|
if (path && path.length && path[0] === "")
|
|
335
339
|
throw Error("path must be relative");
|
|
340
|
+
if (path.length > util.recursionLimit)
|
|
341
|
+
throw Error("max depth exceeded");
|
|
336
342
|
|
|
337
343
|
var ptr = this;
|
|
338
344
|
while (path.length > 0) {
|
|
@@ -213,7 +213,7 @@ ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition)
|
|
|
213
213
|
throw new Error("Unknown edition for " + this.fullName);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
var protoFeatures =
|
|
216
|
+
var protoFeatures = util.merge({}, this.options && this.options.features,
|
|
217
217
|
this._inferLegacyProtoFeatures(edition));
|
|
218
218
|
|
|
219
219
|
if (this._edition) {
|
|
@@ -228,7 +228,7 @@ ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition)
|
|
|
228
228
|
} else {
|
|
229
229
|
throw new Error("Unknown edition: " + edition);
|
|
230
230
|
}
|
|
231
|
-
this._features =
|
|
231
|
+
this._features = util.merge(defaults, protoFeatures);
|
|
232
232
|
this._featuresResolved = true;
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
@@ -237,13 +237,13 @@ ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition)
|
|
|
237
237
|
// special-case it
|
|
238
238
|
/* istanbul ignore else */
|
|
239
239
|
if (this.partOf instanceof OneOf) {
|
|
240
|
-
var lexicalParentFeaturesCopy =
|
|
241
|
-
this._features =
|
|
240
|
+
var lexicalParentFeaturesCopy = util.merge({}, this.partOf._features);
|
|
241
|
+
this._features = util.merge(lexicalParentFeaturesCopy, protoFeatures);
|
|
242
242
|
} else if (this.declaringField) {
|
|
243
243
|
// Skip feature resolution of sister fields.
|
|
244
244
|
} else if (this.parent) {
|
|
245
|
-
var parentFeaturesCopy =
|
|
246
|
-
this._features =
|
|
245
|
+
var parentFeaturesCopy = util.merge({}, this.parent._features);
|
|
246
|
+
this._features = util.merge(parentFeaturesCopy, protoFeatures);
|
|
247
247
|
} else {
|
|
248
248
|
throw new Error("Unable to find a parent for " + this.fullName);
|
|
249
249
|
}
|
|
@@ -301,7 +301,10 @@ function parse(source, root, options) {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
function parseCommon(parent, token) {
|
|
304
|
+
function parseCommon(parent, token, depth) {
|
|
305
|
+
if (depth === undefined)
|
|
306
|
+
depth = 0;
|
|
307
|
+
// depth is checked by dispatched functions
|
|
305
308
|
switch (token) {
|
|
306
309
|
|
|
307
310
|
case "option":
|
|
@@ -310,7 +313,7 @@ function parse(source, root, options) {
|
|
|
310
313
|
return true;
|
|
311
314
|
|
|
312
315
|
case "message":
|
|
313
|
-
parseType(parent, token);
|
|
316
|
+
parseType(parent, token, depth + 1);
|
|
314
317
|
return true;
|
|
315
318
|
|
|
316
319
|
case "enum":
|
|
@@ -318,11 +321,11 @@ function parse(source, root, options) {
|
|
|
318
321
|
return true;
|
|
319
322
|
|
|
320
323
|
case "service":
|
|
321
|
-
parseService(parent, token);
|
|
324
|
+
parseService(parent, token, depth + 1);
|
|
322
325
|
return true;
|
|
323
326
|
|
|
324
327
|
case "extend":
|
|
325
|
-
parseExtension(parent, token);
|
|
328
|
+
parseExtension(parent, token, depth);
|
|
326
329
|
return true;
|
|
327
330
|
}
|
|
328
331
|
return false;
|
|
@@ -350,7 +353,11 @@ function parse(source, root, options) {
|
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
function parseType(parent, token) {
|
|
356
|
+
function parseType(parent, token, depth) {
|
|
357
|
+
if (depth === undefined)
|
|
358
|
+
depth = 0;
|
|
359
|
+
if (depth > util.nestingLimit)
|
|
360
|
+
throw Error("max depth exceeded");
|
|
354
361
|
|
|
355
362
|
/* istanbul ignore if */
|
|
356
363
|
if (!nameRe.test(token = next()))
|
|
@@ -358,7 +365,7 @@ function parse(source, root, options) {
|
|
|
358
365
|
|
|
359
366
|
var type = new Type(token);
|
|
360
367
|
ifBlock(type, function parseType_block(token) {
|
|
361
|
-
if (parseCommon(type, token))
|
|
368
|
+
if (parseCommon(type, token, depth))
|
|
362
369
|
return;
|
|
363
370
|
|
|
364
371
|
switch (token) {
|
|
@@ -372,22 +379,22 @@ function parse(source, root, options) {
|
|
|
372
379
|
throw illegal(token);
|
|
373
380
|
/* eslint-disable no-fallthrough */
|
|
374
381
|
case "repeated":
|
|
375
|
-
parseField(type, token);
|
|
382
|
+
parseField(type, token, undefined, depth + 1);
|
|
376
383
|
break;
|
|
377
384
|
|
|
378
385
|
case "optional":
|
|
379
386
|
/* istanbul ignore if */
|
|
380
387
|
if (edition === "proto3") {
|
|
381
|
-
parseField(type, "proto3_optional");
|
|
388
|
+
parseField(type, "proto3_optional", undefined, depth + 1);
|
|
382
389
|
} else if (edition !== "proto2") {
|
|
383
390
|
throw illegal(token);
|
|
384
391
|
} else {
|
|
385
|
-
parseField(type, "optional");
|
|
392
|
+
parseField(type, "optional", undefined, depth + 1);
|
|
386
393
|
}
|
|
387
394
|
break;
|
|
388
395
|
|
|
389
396
|
case "oneof":
|
|
390
|
-
parseOneOf(type, token);
|
|
397
|
+
parseOneOf(type, token, depth + 1);
|
|
391
398
|
break;
|
|
392
399
|
|
|
393
400
|
case "extensions":
|
|
@@ -405,7 +412,7 @@ function parse(source, root, options) {
|
|
|
405
412
|
}
|
|
406
413
|
|
|
407
414
|
push(token);
|
|
408
|
-
parseField(type, "optional");
|
|
415
|
+
parseField(type, "optional", undefined, depth + 1);
|
|
409
416
|
break;
|
|
410
417
|
}
|
|
411
418
|
});
|
|
@@ -415,10 +422,10 @@ function parse(source, root, options) {
|
|
|
415
422
|
}
|
|
416
423
|
}
|
|
417
424
|
|
|
418
|
-
function parseField(parent, rule, extend) {
|
|
425
|
+
function parseField(parent, rule, extend, depth) {
|
|
419
426
|
var type = next();
|
|
420
427
|
if (type === "group") {
|
|
421
|
-
parseGroup(parent, rule);
|
|
428
|
+
parseGroup(parent, rule, depth);
|
|
422
429
|
return;
|
|
423
430
|
}
|
|
424
431
|
// Type names can consume multiple tokens, in multiple variants:
|
|
@@ -475,7 +482,11 @@ function parse(source, root, options) {
|
|
|
475
482
|
}
|
|
476
483
|
}
|
|
477
484
|
|
|
478
|
-
function parseGroup(parent, rule) {
|
|
485
|
+
function parseGroup(parent, rule, depth) {
|
|
486
|
+
if (depth === undefined)
|
|
487
|
+
depth = 0;
|
|
488
|
+
if (depth > util.nestingLimit)
|
|
489
|
+
throw Error("max depth exceeded");
|
|
479
490
|
if (edition >= 2023) {
|
|
480
491
|
throw illegal("group");
|
|
481
492
|
}
|
|
@@ -503,20 +514,20 @@ function parse(source, root, options) {
|
|
|
503
514
|
break;
|
|
504
515
|
case "required":
|
|
505
516
|
case "repeated":
|
|
506
|
-
parseField(type, token);
|
|
517
|
+
parseField(type, token, undefined, depth + 1);
|
|
507
518
|
break;
|
|
508
519
|
|
|
509
520
|
case "optional":
|
|
510
521
|
/* istanbul ignore if */
|
|
511
522
|
if (edition === "proto3") {
|
|
512
|
-
parseField(type, "proto3_optional");
|
|
523
|
+
parseField(type, "proto3_optional", undefined, depth + 1);
|
|
513
524
|
} else {
|
|
514
|
-
parseField(type, "optional");
|
|
525
|
+
parseField(type, "optional", undefined, depth + 1);
|
|
515
526
|
}
|
|
516
527
|
break;
|
|
517
528
|
|
|
518
529
|
case "message":
|
|
519
|
-
parseType(type, token);
|
|
530
|
+
parseType(type, token, depth + 1);
|
|
520
531
|
break;
|
|
521
532
|
|
|
522
533
|
case "enum":
|
|
@@ -575,7 +586,7 @@ function parse(source, root, options) {
|
|
|
575
586
|
parent.add(field);
|
|
576
587
|
}
|
|
577
588
|
|
|
578
|
-
function parseOneOf(parent, token) {
|
|
589
|
+
function parseOneOf(parent, token, depth) {
|
|
579
590
|
|
|
580
591
|
/* istanbul ignore if */
|
|
581
592
|
if (!nameRe.test(token = next()))
|
|
@@ -588,7 +599,7 @@ function parse(source, root, options) {
|
|
|
588
599
|
skip(";");
|
|
589
600
|
} else {
|
|
590
601
|
push(token);
|
|
591
|
-
parseField(oneof, "optional");
|
|
602
|
+
parseField(oneof, "optional", undefined, depth);
|
|
592
603
|
}
|
|
593
604
|
});
|
|
594
605
|
parent.add(oneof);
|
|
@@ -693,7 +704,11 @@ function parse(source, root, options) {
|
|
|
693
704
|
setParsedOption(parent, option, optionValue, propName);
|
|
694
705
|
}
|
|
695
706
|
|
|
696
|
-
function parseOptionValue(parent, name) {
|
|
707
|
+
function parseOptionValue(parent, name, depth) {
|
|
708
|
+
if (depth === undefined)
|
|
709
|
+
depth = 0;
|
|
710
|
+
if (depth > util.recursionLimit)
|
|
711
|
+
throw Error("max depth exceeded");
|
|
697
712
|
// { a: "foo" b { c: "bar" } }
|
|
698
713
|
if (skip("{", true)) {
|
|
699
714
|
var objectResult = {};
|
|
@@ -716,7 +731,7 @@ function parse(source, root, options) {
|
|
|
716
731
|
// option (my_option) = {
|
|
717
732
|
// repeated_value: [ "foo", "bar" ]
|
|
718
733
|
// };
|
|
719
|
-
value = parseOptionValue(parent, name + "." + token);
|
|
734
|
+
value = parseOptionValue(parent, name + "." + token, depth + 1);
|
|
720
735
|
} else if (peek() === "[") {
|
|
721
736
|
value = [];
|
|
722
737
|
var lastValue;
|
|
@@ -781,7 +796,11 @@ function parse(source, root, options) {
|
|
|
781
796
|
return parent;
|
|
782
797
|
}
|
|
783
798
|
|
|
784
|
-
function parseService(parent, token) {
|
|
799
|
+
function parseService(parent, token, depth) {
|
|
800
|
+
if (depth === undefined)
|
|
801
|
+
depth = 0;
|
|
802
|
+
if (depth > util.recursionLimit)
|
|
803
|
+
throw Error("max depth exceeded");
|
|
785
804
|
|
|
786
805
|
/* istanbul ignore if */
|
|
787
806
|
if (!nameRe.test(token = next()))
|
|
@@ -789,7 +808,7 @@ function parse(source, root, options) {
|
|
|
789
808
|
|
|
790
809
|
var service = new Service(token);
|
|
791
810
|
ifBlock(service, function parseService_block(token) {
|
|
792
|
-
if (parseCommon(service, token)) {
|
|
811
|
+
if (parseCommon(service, token, depth)) {
|
|
793
812
|
return;
|
|
794
813
|
}
|
|
795
814
|
|
|
@@ -855,7 +874,7 @@ function parse(source, root, options) {
|
|
|
855
874
|
parent.add(method);
|
|
856
875
|
}
|
|
857
876
|
|
|
858
|
-
function parseExtension(parent, token) {
|
|
877
|
+
function parseExtension(parent, token, depth) {
|
|
859
878
|
|
|
860
879
|
/* istanbul ignore if */
|
|
861
880
|
if (!typeRefRe.test(token = next()))
|
|
@@ -867,15 +886,15 @@ function parse(source, root, options) {
|
|
|
867
886
|
|
|
868
887
|
case "required":
|
|
869
888
|
case "repeated":
|
|
870
|
-
parseField(parent, token, reference);
|
|
889
|
+
parseField(parent, token, reference, depth + 1);
|
|
871
890
|
break;
|
|
872
891
|
|
|
873
892
|
case "optional":
|
|
874
893
|
/* istanbul ignore if */
|
|
875
894
|
if (edition === "proto3") {
|
|
876
|
-
parseField(parent, "proto3_optional", reference);
|
|
895
|
+
parseField(parent, "proto3_optional", reference, depth + 1);
|
|
877
896
|
} else {
|
|
878
|
-
parseField(parent, "optional", reference);
|
|
897
|
+
parseField(parent, "optional", reference, depth + 1);
|
|
879
898
|
}
|
|
880
899
|
break;
|
|
881
900
|
|
|
@@ -884,7 +903,7 @@ function parse(source, root, options) {
|
|
|
884
903
|
if (edition === "proto2" || !typeRefRe.test(token))
|
|
885
904
|
throw illegal(token);
|
|
886
905
|
push(token);
|
|
887
|
-
parseField(parent, "optional", reference);
|
|
906
|
+
parseField(parent, "optional", reference, depth + 1);
|
|
888
907
|
break;
|
|
889
908
|
}
|
|
890
909
|
});
|
|
@@ -936,7 +955,7 @@ function parse(source, root, options) {
|
|
|
936
955
|
default:
|
|
937
956
|
|
|
938
957
|
/* istanbul ignore else */
|
|
939
|
-
if (parseCommon(ptr, token)) {
|
|
958
|
+
if (parseCommon(ptr, token, 0)) {
|
|
940
959
|
head = false;
|
|
941
960
|
continue;
|
|
942
961
|
}
|
|
@@ -55,14 +55,16 @@ function Root(options) {
|
|
|
55
55
|
* Loads a namespace descriptor into a root namespace.
|
|
56
56
|
* @param {INamespace} json Namespace descriptor
|
|
57
57
|
* @param {Root} [root] Root namespace, defaults to create a new one if omitted
|
|
58
|
+
* @param {number} [depth] Current nesting depth, defaults to `0`
|
|
58
59
|
* @returns {Root} Root namespace
|
|
59
60
|
*/
|
|
60
|
-
Root.fromJSON = function fromJSON(json, root) {
|
|
61
|
+
Root.fromJSON = function fromJSON(json, root, depth) {
|
|
62
|
+
depth = util.checkDepth(depth);
|
|
61
63
|
if (!root)
|
|
62
64
|
root = new Root();
|
|
63
65
|
if (json.options)
|
|
64
66
|
root.setOptions(json.options);
|
|
65
|
-
return root.addJSON(json.nested).resolveAll();
|
|
67
|
+
return root.addJSON(json.nested, depth).resolveAll();
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
/**
|
|
@@ -136,8 +138,12 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
// Processes a single file
|
|
139
|
-
function process(filename, source) {
|
|
141
|
+
function process(filename, source, depth) {
|
|
142
|
+
if (depth === undefined)
|
|
143
|
+
depth = 0;
|
|
140
144
|
try {
|
|
145
|
+
if (depth > util.recursionLimit)
|
|
146
|
+
throw Error("max depth exceeded");
|
|
141
147
|
if (util.isString(source) && source.charAt(0) === "{")
|
|
142
148
|
source = JSON.parse(source);
|
|
143
149
|
if (!util.isString(source))
|
|
@@ -150,11 +156,11 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
150
156
|
if (parsed.imports)
|
|
151
157
|
for (; i < parsed.imports.length; ++i)
|
|
152
158
|
if (resolved = getBundledFileName(parsed.imports[i]) || self.resolvePath(filename, parsed.imports[i]))
|
|
153
|
-
fetch(resolved);
|
|
159
|
+
fetch(resolved, false, depth + 1);
|
|
154
160
|
if (parsed.weakImports)
|
|
155
161
|
for (i = 0; i < parsed.weakImports.length; ++i)
|
|
156
162
|
if (resolved = getBundledFileName(parsed.weakImports[i]) || self.resolvePath(filename, parsed.weakImports[i]))
|
|
157
|
-
fetch(resolved, true);
|
|
163
|
+
fetch(resolved, true, depth + 1);
|
|
158
164
|
}
|
|
159
165
|
} catch (err) {
|
|
160
166
|
finish(err);
|
|
@@ -165,7 +171,9 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
// Fetches a single file
|
|
168
|
-
function fetch(filename, weak) {
|
|
174
|
+
function fetch(filename, weak, depth) {
|
|
175
|
+
if (depth === undefined)
|
|
176
|
+
depth = 0;
|
|
169
177
|
filename = getBundledFileName(filename) || filename;
|
|
170
178
|
|
|
171
179
|
// Skip if already loaded / attempted
|
|
@@ -177,12 +185,12 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
177
185
|
// Shortcut bundled definitions
|
|
178
186
|
if (filename in common) {
|
|
179
187
|
if (sync) {
|
|
180
|
-
process(filename, common[filename]);
|
|
188
|
+
process(filename, common[filename], depth);
|
|
181
189
|
} else {
|
|
182
190
|
++queued;
|
|
183
191
|
setTimeout(function() {
|
|
184
192
|
--queued;
|
|
185
|
-
process(filename, common[filename]);
|
|
193
|
+
process(filename, common[filename], depth);
|
|
186
194
|
});
|
|
187
195
|
}
|
|
188
196
|
return;
|
|
@@ -198,7 +206,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
198
206
|
finish(err);
|
|
199
207
|
return;
|
|
200
208
|
}
|
|
201
|
-
process(filename, source);
|
|
209
|
+
process(filename, source, depth);
|
|
202
210
|
} else {
|
|
203
211
|
++queued;
|
|
204
212
|
self.fetch(filename, function(err, source) {
|
|
@@ -215,7 +223,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
215
223
|
finish(null, self);
|
|
216
224
|
return;
|
|
217
225
|
}
|
|
218
|
-
process(filename, source);
|
|
226
|
+
process(filename, source, depth);
|
|
219
227
|
});
|
|
220
228
|
}
|
|
221
229
|
}
|
|
@@ -48,17 +48,19 @@ function Service(name, options) {
|
|
|
48
48
|
* Constructs a service from a service descriptor.
|
|
49
49
|
* @param {string} name Service name
|
|
50
50
|
* @param {IService} json Service descriptor
|
|
51
|
+
* @param {number} [depth] Current nesting depth, defaults to `0`
|
|
51
52
|
* @returns {Service} Created service
|
|
52
53
|
* @throws {TypeError} If arguments are invalid
|
|
53
54
|
*/
|
|
54
|
-
Service.fromJSON = function fromJSON(name, json) {
|
|
55
|
+
Service.fromJSON = function fromJSON(name, json, depth) {
|
|
56
|
+
depth = util.checkDepth(depth);
|
|
55
57
|
var service = new Service(name, json.options);
|
|
56
58
|
/* istanbul ignore else */
|
|
57
59
|
if (json.methods)
|
|
58
60
|
for (var names = Object.keys(json.methods), i = 0; i < names.length; ++i)
|
|
59
61
|
service.add(Method.fromJSON(names[i], json.methods[names[i]]));
|
|
60
62
|
if (json.nested)
|
|
61
|
-
service.addJSON(json.nested);
|
|
63
|
+
service.addJSON(json.nested, depth);
|
|
62
64
|
if (json.edition)
|
|
63
65
|
service._edition = json.edition;
|
|
64
66
|
service.comment = json.comment;
|
|
@@ -233,9 +233,14 @@ function clearCache(type) {
|
|
|
233
233
|
* Creates a message type from a message type descriptor.
|
|
234
234
|
* @param {string} name Message name
|
|
235
235
|
* @param {IType} json Message type descriptor
|
|
236
|
+
* @param {number} [depth] Current nesting depth, defaults to `0`
|
|
236
237
|
* @returns {Type} Created message type
|
|
237
238
|
*/
|
|
238
|
-
Type.fromJSON = function fromJSON(name, json) {
|
|
239
|
+
Type.fromJSON = function fromJSON(name, json, depth) {
|
|
240
|
+
if (depth === undefined)
|
|
241
|
+
depth = 0;
|
|
242
|
+
if (depth > util.nestingLimit)
|
|
243
|
+
throw Error("max depth exceeded");
|
|
239
244
|
var type = new Type(name, json.options);
|
|
240
245
|
type.extensions = json.extensions;
|
|
241
246
|
type.reserved = json.reserved;
|
|
@@ -262,7 +267,7 @@ Type.fromJSON = function fromJSON(name, json) {
|
|
|
262
267
|
? Enum.fromJSON
|
|
263
268
|
: nested.methods !== undefined
|
|
264
269
|
? Service.fromJSON
|
|
265
|
-
: Namespace.fromJSON )(names[i], nested)
|
|
270
|
+
: Namespace.fromJSON )(names[i], nested, depth + 1)
|
|
266
271
|
);
|
|
267
272
|
}
|
|
268
273
|
if (json.extensions && json.extensions.length)
|
|
@@ -513,8 +518,8 @@ Type.prototype.setup = function setup() {
|
|
|
513
518
|
* @param {Writer} [writer] Writer to encode to
|
|
514
519
|
* @returns {Writer} writer
|
|
515
520
|
*/
|
|
516
|
-
Type.prototype.encode = function encode_setup(message, writer) {
|
|
517
|
-
return this.setup().encode(
|
|
521
|
+
Type.prototype.encode = function encode_setup(message, writer) { // eslint-disable-line no-unused-vars
|
|
522
|
+
return this.setup().encode.apply(this, arguments); // overrides this method
|
|
518
523
|
};
|
|
519
524
|
|
|
520
525
|
/**
|
|
@@ -578,7 +583,7 @@ Type.prototype.fromObject = function fromObject(object, depth) {
|
|
|
578
583
|
* Conversion options as used by {@link Type#toObject} and {@link Message.toObject}.
|
|
579
584
|
* @interface IConversionOptions
|
|
580
585
|
* @property {Function} [longs] Long conversion type.
|
|
581
|
-
* Valid values are `String` and `Number` (the global types).
|
|
586
|
+
* Valid values are `BigInt`, `String` and `Number` (the global types).
|
|
582
587
|
* Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library.
|
|
583
588
|
* @property {Function} [enums] Enum value conversion type.
|
|
584
589
|
* Only valid value is `String` (the global type).
|
|
@@ -599,8 +604,8 @@ Type.prototype.fromObject = function fromObject(object, depth) {
|
|
|
599
604
|
* @param {IConversionOptions} [options] Conversion options
|
|
600
605
|
* @returns {Object.<string,*>} Plain object
|
|
601
606
|
*/
|
|
602
|
-
Type.prototype.toObject = function toObject(message, options) {
|
|
603
|
-
return this.setup().toObject(
|
|
607
|
+
Type.prototype.toObject = function toObject(message, options) { // eslint-disable-line no-unused-vars
|
|
608
|
+
return this.setup().toObject.apply(this, arguments);
|
|
604
609
|
};
|
|
605
610
|
|
|
606
611
|
/**
|