lambda-live-debugger 1.10.5 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudFormation.d.ts +2 -1
- package/dist/cloudFormation.mjs +3 -2
- package/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +123 -27
- package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
- package/dist/frameworks/samFramework.d.ts +6 -0
- package/dist/frameworks/samFramework.mjs +65 -23
- package/dist/infraDeploy.mjs +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-cognito-identity/package.json +6 -6
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/package.json +5 -5
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot/package.json +5 -5
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-iot-data-plane/package.json +5 -5
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-lambda/package.json +5 -5
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/client-s3/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/credential-providers/package.json +13 -13
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/package.json +18 -15
- package/tsconfig.build.json +1 -1
- package/tsconfig.typecheck.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.940.0",
|
|
4
4
|
"description": "A collection of credential providers, without requiring service clients like STS, Cognito",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/client-cognito-identity": "3.
|
|
35
|
-
"@aws-sdk/core": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.
|
|
37
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
38
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
39
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
40
|
-
"@aws-sdk/credential-provider-login": "3.
|
|
41
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
42
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
43
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
44
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
45
|
-
"@aws-sdk/nested-clients": "3.
|
|
34
|
+
"@aws-sdk/client-cognito-identity": "3.940.0",
|
|
35
|
+
"@aws-sdk/core": "3.940.0",
|
|
36
|
+
"@aws-sdk/credential-provider-cognito-identity": "3.940.0",
|
|
37
|
+
"@aws-sdk/credential-provider-env": "3.940.0",
|
|
38
|
+
"@aws-sdk/credential-provider-http": "3.940.0",
|
|
39
|
+
"@aws-sdk/credential-provider-ini": "3.940.0",
|
|
40
|
+
"@aws-sdk/credential-provider-login": "3.940.0",
|
|
41
|
+
"@aws-sdk/credential-provider-node": "3.940.0",
|
|
42
|
+
"@aws-sdk/credential-provider-process": "3.940.0",
|
|
43
|
+
"@aws-sdk/credential-provider-sso": "3.940.0",
|
|
44
|
+
"@aws-sdk/credential-provider-web-identity": "3.940.0",
|
|
45
|
+
"@aws-sdk/nested-clients": "3.940.0",
|
|
46
46
|
"@aws-sdk/types": "3.936.0",
|
|
47
47
|
"@smithy/config-resolver": "^4.4.3",
|
|
48
48
|
"@smithy/core": "^3.18.5",
|
|
@@ -539,6 +539,44 @@ class SerdeContextConfig {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
+
function* serializingStructIterator(ns, sourceObject) {
|
|
543
|
+
if (ns.isUnitSchema()) {
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
const struct = ns.getSchema();
|
|
547
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
548
|
+
const key = struct[4][i];
|
|
549
|
+
const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
|
|
550
|
+
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
|
551
|
+
continue;
|
|
552
|
+
}
|
|
553
|
+
yield [key, memberNs];
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
|
557
|
+
if (ns.isUnitSchema()) {
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
const struct = ns.getSchema();
|
|
561
|
+
let keysRemaining = Object.keys(sourceObject).length;
|
|
562
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
563
|
+
if (keysRemaining === 0) {
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
const key = struct[4][i];
|
|
567
|
+
const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
|
|
568
|
+
let serializationKey = key;
|
|
569
|
+
if (nameTrait) {
|
|
570
|
+
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
|
571
|
+
}
|
|
572
|
+
if (!(serializationKey in sourceObject)) {
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
yield [key, memberNs];
|
|
576
|
+
keysRemaining -= 1;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
542
580
|
function jsonReviver(key, value, context) {
|
|
543
581
|
if (context?.source) {
|
|
544
582
|
const numericString = context.source;
|
|
@@ -652,7 +690,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
652
690
|
}
|
|
653
691
|
else if (ns.isStructSchema() && isObject) {
|
|
654
692
|
const out = {};
|
|
655
|
-
for (const [memberName, memberSchema] of ns.
|
|
693
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
|
|
656
694
|
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
657
695
|
const deserializedValue = this._read(memberSchema, value[fromKey]);
|
|
658
696
|
if (deserializedValue != null) {
|
|
@@ -829,10 +867,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
829
867
|
}
|
|
830
868
|
else if (ns.isStructSchema() && isObject) {
|
|
831
869
|
const out = {};
|
|
832
|
-
for (const [memberName, memberSchema] of ns
|
|
833
|
-
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
870
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
834
871
|
const serializableValue = this._write(memberSchema, value[memberName], ns);
|
|
835
872
|
if (serializableValue !== undefined) {
|
|
873
|
+
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
836
874
|
out[targetKey] = serializableValue;
|
|
837
875
|
}
|
|
838
876
|
}
|
|
@@ -1360,7 +1398,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1360
1398
|
}
|
|
1361
1399
|
else if (ns.isStructSchema()) {
|
|
1362
1400
|
if (value && typeof value === "object") {
|
|
1363
|
-
for (const [memberName, member] of ns
|
|
1401
|
+
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
|
1364
1402
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1365
1403
|
continue;
|
|
1366
1404
|
}
|
|
@@ -1657,7 +1695,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1657
1695
|
}
|
|
1658
1696
|
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
|
1659
1697
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1660
|
-
for (const [memberName, memberSchema] of ns
|
|
1698
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
1661
1699
|
const val = value[memberName];
|
|
1662
1700
|
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
1663
1701
|
if (memberSchema.getMergedTraits().xmlAttribute) {
|
|
@@ -209,6 +209,44 @@ class SerdeContextConfig {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
function* serializingStructIterator(ns, sourceObject) {
|
|
213
|
+
if (ns.isUnitSchema()) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
const struct = ns.getSchema();
|
|
217
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
218
|
+
const key = struct[4][i];
|
|
219
|
+
const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
|
|
220
|
+
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
yield [key, memberNs];
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
|
227
|
+
if (ns.isUnitSchema()) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const struct = ns.getSchema();
|
|
231
|
+
let keysRemaining = Object.keys(sourceObject).length;
|
|
232
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
233
|
+
if (keysRemaining === 0) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
const key = struct[4][i];
|
|
237
|
+
const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
|
|
238
|
+
let serializationKey = key;
|
|
239
|
+
if (nameTrait) {
|
|
240
|
+
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
|
241
|
+
}
|
|
242
|
+
if (!(serializationKey in sourceObject)) {
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
yield [key, memberNs];
|
|
246
|
+
keysRemaining -= 1;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
212
250
|
function jsonReviver(key, value, context) {
|
|
213
251
|
if (context?.source) {
|
|
214
252
|
const numericString = context.source;
|
|
@@ -322,7 +360,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
322
360
|
}
|
|
323
361
|
else if (ns.isStructSchema() && isObject) {
|
|
324
362
|
const out = {};
|
|
325
|
-
for (const [memberName, memberSchema] of ns.
|
|
363
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
|
|
326
364
|
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
327
365
|
const deserializedValue = this._read(memberSchema, value[fromKey]);
|
|
328
366
|
if (deserializedValue != null) {
|
|
@@ -499,10 +537,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
499
537
|
}
|
|
500
538
|
else if (ns.isStructSchema() && isObject) {
|
|
501
539
|
const out = {};
|
|
502
|
-
for (const [memberName, memberSchema] of ns
|
|
503
|
-
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
540
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
504
541
|
const serializableValue = this._write(memberSchema, value[memberName], ns);
|
|
505
542
|
if (serializableValue !== undefined) {
|
|
543
|
+
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
506
544
|
out[targetKey] = serializableValue;
|
|
507
545
|
}
|
|
508
546
|
}
|
|
@@ -1030,7 +1068,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1030
1068
|
}
|
|
1031
1069
|
else if (ns.isStructSchema()) {
|
|
1032
1070
|
if (value && typeof value === "object") {
|
|
1033
|
-
for (const [memberName, member] of ns
|
|
1071
|
+
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
|
1034
1072
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1035
1073
|
continue;
|
|
1036
1074
|
}
|
|
@@ -1327,7 +1365,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1327
1365
|
}
|
|
1328
1366
|
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
|
1329
1367
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
1330
|
-
for (const [memberName, memberSchema] of ns
|
|
1368
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
1331
1369
|
const val = value[memberName];
|
|
1332
1370
|
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
1333
1371
|
if (memberSchema.getMergedTraits().xmlAttribute) {
|
|
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
|
|
|
3
3
|
import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
|
|
4
4
|
import { fromBase64 } from "@smithy/util-base64";
|
|
5
5
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
6
|
+
import { deserializingStructIterator } from "../structIterator";
|
|
6
7
|
import { jsonReviver } from "./jsonReviver";
|
|
7
8
|
import { parseJsonBody } from "./parseJsonBody";
|
|
8
9
|
export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
@@ -44,7 +45,7 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
44
45
|
}
|
|
45
46
|
else if (ns.isStructSchema() && isObject) {
|
|
46
47
|
const out = {};
|
|
47
|
-
for (const [memberName, memberSchema] of ns.
|
|
48
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
|
|
48
49
|
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
49
50
|
const deserializedValue = this._read(memberSchema, value[fromKey]);
|
|
50
51
|
if (deserializedValue != null) {
|
|
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
|
|
|
3
3
|
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue } from "@smithy/core/serde";
|
|
4
4
|
import { toBase64 } from "@smithy/util-base64";
|
|
5
5
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
6
|
+
import { serializingStructIterator } from "../structIterator";
|
|
6
7
|
import { JsonReplacer } from "./jsonReplacer";
|
|
7
8
|
export class JsonShapeSerializer extends SerdeContextConfig {
|
|
8
9
|
settings;
|
|
@@ -58,10 +59,10 @@ export class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
58
59
|
}
|
|
59
60
|
else if (ns.isStructSchema() && isObject) {
|
|
60
61
|
const out = {};
|
|
61
|
-
for (const [memberName, memberSchema] of ns
|
|
62
|
-
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
62
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
63
63
|
const serializableValue = this._write(memberSchema, value[memberName], ns);
|
|
64
64
|
if (serializableValue !== undefined) {
|
|
65
|
+
const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
65
66
|
out[targetKey] = serializableValue;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
|
|
|
3
3
|
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue } from "@smithy/core/serde";
|
|
4
4
|
import { toBase64 } from "@smithy/util-base64";
|
|
5
5
|
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
6
|
+
import { serializingStructIterator } from "../../structIterator";
|
|
6
7
|
export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
|
|
7
8
|
settings;
|
|
8
9
|
buffer;
|
|
@@ -44,7 +45,7 @@ export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
|
|
|
44
45
|
}
|
|
45
46
|
else if (ns.isStructSchema()) {
|
|
46
47
|
b += "{";
|
|
47
|
-
for (const [name, member] of ns
|
|
48
|
+
for (const [name, member] of serializingStructIterator(ns, value)) {
|
|
48
49
|
const item = value[name];
|
|
49
50
|
const targetKey = this.settings.jsonName ? member.getMergedTraits().jsonName ?? name : name;
|
|
50
51
|
const serializableValue = this.writeValue(member, item);
|
|
@@ -4,6 +4,7 @@ import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
|
|
|
4
4
|
import { dateToUtcString } from "@smithy/smithy-client";
|
|
5
5
|
import { toBase64 } from "@smithy/util-base64";
|
|
6
6
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
7
|
+
import { serializingStructIterator } from "../structIterator";
|
|
7
8
|
export class QueryShapeSerializer extends SerdeContextConfig {
|
|
8
9
|
settings;
|
|
9
10
|
buffer;
|
|
@@ -113,7 +114,7 @@ export class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
113
114
|
}
|
|
114
115
|
else if (ns.isStructSchema()) {
|
|
115
116
|
if (value && typeof value === "object") {
|
|
116
|
-
for (const [memberName, member] of ns
|
|
117
|
+
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
|
117
118
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
118
119
|
continue;
|
|
119
120
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
+
export function* serializingStructIterator(ns, sourceObject) {
|
|
3
|
+
if (ns.isUnitSchema()) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
const struct = ns.getSchema();
|
|
7
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
8
|
+
const key = struct[4][i];
|
|
9
|
+
const memberNs = new NormalizedSchema([struct[5][i], 0], key);
|
|
10
|
+
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
yield [key, memberNs];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
|
17
|
+
if (ns.isUnitSchema()) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const struct = ns.getSchema();
|
|
21
|
+
let keysRemaining = Object.keys(sourceObject).length;
|
|
22
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
23
|
+
if (keysRemaining === 0) {
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
const key = struct[4][i];
|
|
27
|
+
const memberNs = new NormalizedSchema([struct[5][i], 0], key);
|
|
28
|
+
let serializationKey = key;
|
|
29
|
+
if (nameTrait) {
|
|
30
|
+
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
|
31
|
+
}
|
|
32
|
+
if (!(serializationKey in sourceObject)) {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
yield [key, memberNs];
|
|
36
|
+
keysRemaining -= 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -5,6 +5,7 @@ import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
|
|
|
5
5
|
import { dateToUtcString } from "@smithy/smithy-client";
|
|
6
6
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
7
7
|
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
8
|
+
import { serializingStructIterator } from "../structIterator";
|
|
8
9
|
export class XmlShapeSerializer extends SerdeContextConfig {
|
|
9
10
|
settings;
|
|
10
11
|
stringBuffer;
|
|
@@ -63,7 +64,7 @@ export class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
63
64
|
}
|
|
64
65
|
const structXmlNode = XmlNode.of(name);
|
|
65
66
|
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
|
66
|
-
for (const [memberName, memberSchema] of ns
|
|
67
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
|
67
68
|
const val = value[memberName];
|
|
68
69
|
if (val != null || memberSchema.isIdempotencyToken()) {
|
|
69
70
|
if (memberSchema.getMergedTraits().xmlAttribute) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
type SourceObject = Record<string, any>;
|
|
6
|
+
/**
|
|
7
|
+
* For serialization use only.
|
|
8
|
+
* @internal
|
|
9
|
+
*
|
|
10
|
+
* @param ns - normalized schema object.
|
|
11
|
+
* @param sourceObject - source object from serialization.
|
|
12
|
+
*/
|
|
13
|
+
export declare function serializingStructIterator(ns: NormalizedSchema, sourceObject: SourceObject): Generator<any[], void, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* For deserialization use only.
|
|
16
|
+
* Yields a subset of NormalizedSchema::structIterator matched to the source object keys.
|
|
17
|
+
* This is a performance optimization to avoid creation of NormalizedSchema member
|
|
18
|
+
* objects for members that are undefined in the source data object but may be numerous
|
|
19
|
+
* in the schema/model.
|
|
20
|
+
* @internal
|
|
21
|
+
*
|
|
22
|
+
* @param ns - normalized schema object.
|
|
23
|
+
* @param sourceObject - source object from deserialization.
|
|
24
|
+
* @param nameTrait - xmlName or jsonName trait to look for.
|
|
25
|
+
*/
|
|
26
|
+
export declare function deserializingStructIterator(ns: NormalizedSchema, sourceObject: SourceObject, nameTrait?: "xmlName" | "jsonName" | false): Generator<any[], void, unknown>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
+
type SourceObject = Record<string, any>;
|
|
3
|
+
export declare function serializingStructIterator(
|
|
4
|
+
ns: NormalizedSchema,
|
|
5
|
+
sourceObject: SourceObject
|
|
6
|
+
): Generator<any[], void, unknown>;
|
|
7
|
+
export declare function deserializingStructIterator(
|
|
8
|
+
ns: NormalizedSchema,
|
|
9
|
+
sourceObject: SourceObject,
|
|
10
|
+
nameTrait?: "xmlName" | "jsonName" | false
|
|
11
|
+
): Generator<any[], void, unknown>;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.940.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-flexible-checksums",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@aws-crypto/crc32": "5.2.0",
|
|
38
38
|
"@aws-crypto/crc32c": "5.2.0",
|
|
39
39
|
"@aws-crypto/util": "5.2.0",
|
|
40
|
-
"@aws-sdk/core": "3.
|
|
40
|
+
"@aws-sdk/core": "3.940.0",
|
|
41
41
|
"@aws-sdk/types": "3.936.0",
|
|
42
42
|
"@smithy/is-array-buffer": "^4.2.0",
|
|
43
43
|
"@smithy/node-config-provider": "^4.3.5",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambda-live-debugger",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Debug Lambda functions locally like it is running in the cloud",
|
|
6
6
|
"repository": {
|
|
@@ -70,6 +70,8 @@
|
|
|
70
70
|
"test-osls-esbuild-esm-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/osls-esbuild-esm.test.ts",
|
|
71
71
|
"test-sam-basic": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-basic.test.ts",
|
|
72
72
|
"test-sam-basic-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-basic.test.ts",
|
|
73
|
+
"test-sam-nested": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-nested.test.ts",
|
|
74
|
+
"test-sam-nested-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-nested.test.ts",
|
|
73
75
|
"test-sam-alt": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-alt.test.ts",
|
|
74
76
|
"test-sam-alt-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-alt.test.ts",
|
|
75
77
|
"test-terraform-basic": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/terraform-basic.test.ts",
|
|
@@ -82,37 +84,37 @@
|
|
|
82
84
|
},
|
|
83
85
|
"devDependencies": {
|
|
84
86
|
"@eslint/js": "^9.39.1",
|
|
85
|
-
"@tsconfig/
|
|
87
|
+
"@tsconfig/node24": "^24.0.3",
|
|
86
88
|
"@types/aws-iot-device-sdk": "^2.2.9",
|
|
87
89
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
88
90
|
"@types/inquirer": "^9.0.9",
|
|
89
91
|
"@types/node": "^24.10.1",
|
|
90
92
|
"@types/serverless": "^3.12.27",
|
|
91
93
|
"aws-cdk": "2.1033.0",
|
|
92
|
-
"aws-cdk-lib": "2.
|
|
94
|
+
"aws-cdk-lib": "2.230.0",
|
|
93
95
|
"constructs": "^10.4.3",
|
|
94
96
|
"eslint": "^9.39.1",
|
|
95
97
|
"eslint-config-prettier": "^10.1.8",
|
|
96
98
|
"globals": "^16.5.0",
|
|
97
99
|
"husky": "^9.1.7",
|
|
98
|
-
"osls": "^3.
|
|
99
|
-
"prettier": "^3.
|
|
100
|
+
"osls": "^3.60.0",
|
|
101
|
+
"prettier": "^3.7.2",
|
|
100
102
|
"semantic-release": "^25.0.2",
|
|
101
103
|
"serverless": "^3.38.0",
|
|
102
|
-
"serverless-esbuild": "^1.56.
|
|
104
|
+
"serverless-esbuild": "^1.56.1",
|
|
103
105
|
"tsx": "^4.20.6",
|
|
104
|
-
"typescript-eslint": "^8.
|
|
106
|
+
"typescript-eslint": "^8.48.0",
|
|
105
107
|
"vitepress": "^1.6.4",
|
|
106
|
-
"vitest": "^4.0.
|
|
108
|
+
"vitest": "^4.0.14"
|
|
107
109
|
},
|
|
108
110
|
"dependencies": {
|
|
109
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
110
|
-
"@aws-sdk/client-iam": "^3.
|
|
111
|
-
"@aws-sdk/client-iot": "^3.
|
|
112
|
-
"@aws-sdk/client-iot-data-plane": "^3.
|
|
113
|
-
"@aws-sdk/client-lambda": "^3.
|
|
114
|
-
"@aws-sdk/client-s3": "^3.
|
|
115
|
-
"@aws-sdk/credential-providers": "^3.
|
|
111
|
+
"@aws-sdk/client-cloudformation": "^3.940.0",
|
|
112
|
+
"@aws-sdk/client-iam": "^3.940.0",
|
|
113
|
+
"@aws-sdk/client-iot": "^3.940.0",
|
|
114
|
+
"@aws-sdk/client-iot-data-plane": "^3.940.0",
|
|
115
|
+
"@aws-sdk/client-lambda": "^3.940.0",
|
|
116
|
+
"@aws-sdk/client-s3": "^3.940.0",
|
|
117
|
+
"@aws-sdk/credential-providers": "^3.940.0",
|
|
116
118
|
"@smithy/shared-ini-file-loader": "^4.4.0",
|
|
117
119
|
"aws-iot-device-sdk": "^2.2.16",
|
|
118
120
|
"chalk": "^5.6.2",
|
|
@@ -161,6 +163,7 @@
|
|
|
161
163
|
"test/osls-esbuild",
|
|
162
164
|
"test/osls-esbuild-cjs",
|
|
163
165
|
"test/sam-basic",
|
|
166
|
+
"test/sam-nested",
|
|
164
167
|
"test/sam-alt",
|
|
165
168
|
"test/terraform-basic",
|
|
166
169
|
"test/opentofu-basic"
|
package/tsconfig.build.json
CHANGED
package/tsconfig.typecheck.json
CHANGED