@cdklabs/cdk-ssm-documents 0.0.74 → 0.0.75
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/.jsii +12 -12
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/aws-service.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/incident-response/incident-response.js +3 -3
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.js +1 -1
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +5 -5
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/update-variable.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.js +1 -1
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/update-variable-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +1 -1
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/node_modules/@aws-sdk/checksums/package.json +6 -6
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +38 -38
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +37 -37
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +54 -56
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +57 -57
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +18 -9
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +16 -8
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +19 -10
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +14 -7
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutLogAlarmCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutMetricAlarmCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +70 -4
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +37 -37
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +12 -12
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +12 -8
- package/node_modules/@aws-sdk/client-ec2/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +11 -7
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AssociateApplicationStatusCheckCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateApplicationStatusCheckCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusChecksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +13 -8
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ec2/package.json +12 -12
- package/node_modules/@aws-sdk/client-iam/README.md +28 -0
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +285 -27
- package/node_modules/@aws-sdk/client-iam/dist-es/IAM.js +8 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AcquireRoleCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountPropertiesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetRoleTemplateVersionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutAccountPropertiesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-es/models/enums.js +14 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +52 -16
- package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +176 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +29 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +6 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AcquireRoleCommand.d.ts +154 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateInstanceProfileCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountPropertiesCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetInstanceProfileCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleTemplateVersionCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRolesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutAccountPropertiesCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/models/enums.d.ts +38 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +58 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +508 -511
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +358 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +66 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAMClient.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AcquireRoleCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetAccountPropertiesCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetRoleTemplateVersionCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutAccountPropertiesCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/enums.d.ts +18 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +23 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +100 -89
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +64 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/package.json +11 -11
- package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +67 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +43 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +76 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +41 -41
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +39 -39
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +57 -59
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +61 -63
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +11 -11
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +58 -58
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +61 -61
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +57 -57
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -99
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +103 -103
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -103
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/package.json +15 -15
- package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sns/package.json +10 -10
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +39 -39
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +55 -57
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +59 -61
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sqs/package.json +12 -12
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +127 -41
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +33 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +11 -4
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +23 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +3 -11
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
- package/node_modules/@smithy/middleware-compression/package.json +5 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +16 -4
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -13
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +28 -16
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +13 -10
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +4 -12
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
- package/node_modules/@smithy/types/package.json +29 -39
- package/node_modules/fflate/CHANGELOG.md +22 -0
- package/node_modules/fflate/LICENSE +1 -1
- package/node_modules/fflate/README.md +14 -17
- package/node_modules/fflate/esm/browser.d.ts +160 -28
- package/node_modules/fflate/esm/browser.js +182 -95
- package/node_modules/fflate/esm/index.d.mts +160 -28
- package/node_modules/fflate/esm/index.mjs +187 -96
- package/node_modules/fflate/lib/browser.cjs +206 -118
- package/node_modules/fflate/lib/browser.d.cts +160 -28
- package/node_modules/fflate/lib/index.cjs +206 -118
- package/node_modules/fflate/lib/index.d.ts +160 -28
- package/node_modules/fflate/lib/node-worker.cjs +5 -2
- package/node_modules/fflate/lib/node.cjs +211 -119
- package/node_modules/fflate/lib/node.d.cts +160 -28
- package/node_modules/fflate/lib/worker.cjs +0 -1
- package/node_modules/fflate/package.json +12 -12
- package/node_modules/fflate/umd/index.js +1 -1
- package/package.json +10 -10
|
@@ -3,17 +3,42 @@
|
|
|
3
3
|
// https://tools.ietf.org/html/rfc1951
|
|
4
4
|
// You may also wish to take a look at the guide I made about this program:
|
|
5
5
|
// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad
|
|
6
|
-
|
|
6
|
+
exports.deflate = deflate;
|
|
7
|
+
exports.deflateSync = deflateSync;
|
|
8
|
+
exports.inflate = inflate;
|
|
9
|
+
exports.inflateSync = inflateSync;
|
|
10
|
+
exports.gzip = gzip;
|
|
11
|
+
exports.compress = gzip;
|
|
12
|
+
exports.gzipSync = gzipSync;
|
|
13
|
+
exports.compressSync = gzipSync;
|
|
14
|
+
exports.gunzip = gunzip;
|
|
15
|
+
exports.gunzipSync = gunzipSync;
|
|
16
|
+
exports.zlib = zlib;
|
|
17
|
+
exports.zlibSync = zlibSync;
|
|
18
|
+
exports.unzlib = unzlib;
|
|
19
|
+
exports.unzlibSync = unzlibSync;
|
|
20
|
+
exports.gzip = gzip;
|
|
21
|
+
exports.compress = gzip;
|
|
22
|
+
exports.decompress = decompress;
|
|
23
|
+
exports.decompressSync = decompressSync;
|
|
24
|
+
exports.strToU8 = strToU8;
|
|
25
|
+
exports.strFromU8 = strFromU8;
|
|
26
|
+
exports.zip = zip;
|
|
27
|
+
exports.zipSync = zipSync;
|
|
28
|
+
exports.unzip = unzip;
|
|
29
|
+
exports.unzipSync = unzipSync;
|
|
7
30
|
// Some of the following code is similar to that of UZIP.js:
|
|
8
31
|
// https://github.com/photopea/UZIP.js
|
|
9
32
|
// However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size.
|
|
10
33
|
// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint
|
|
11
34
|
// is better for memory in most engines (I *think*).
|
|
35
|
+
var _a;
|
|
12
36
|
// Mediocre shim
|
|
13
37
|
var Worker;
|
|
38
|
+
var isMarkedAsUntransferable;
|
|
14
39
|
var workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";
|
|
15
40
|
try {
|
|
16
|
-
|
|
41
|
+
(_a = require('worker_threads'), Worker = _a.Worker, isMarkedAsUntransferable = _a.isMarkedAsUntransferable);
|
|
17
42
|
}
|
|
18
43
|
catch (e) {
|
|
19
44
|
}
|
|
@@ -27,6 +52,8 @@ node_worker_1["default"] = Worker ? function (c, _, msg, transfer, cb) {
|
|
|
27
52
|
if (c && !done)
|
|
28
53
|
cb(new Error('exited with code ' + c), null);
|
|
29
54
|
});
|
|
55
|
+
if (isMarkedAsUntransferable)
|
|
56
|
+
transfer = transfer.filter(function (t) { return !isMarkedAsUntransferable(t); });
|
|
30
57
|
w.postMessage(msg, transfer);
|
|
31
58
|
w.terminate = function () {
|
|
32
59
|
done = true;
|
|
@@ -207,7 +234,7 @@ var ec = [
|
|
|
207
234
|
'invalid distance',
|
|
208
235
|
'stream finished',
|
|
209
236
|
'no stream handler',
|
|
210
|
-
,
|
|
237
|
+
, // determined by compression function
|
|
211
238
|
'no callback',
|
|
212
239
|
'invalid UTF-8 data',
|
|
213
240
|
'extra field too long',
|
|
@@ -824,7 +851,7 @@ var dopt = function (dat, opt, pre, post, st) {
|
|
|
824
851
|
st.w = dict.length;
|
|
825
852
|
}
|
|
826
853
|
}
|
|
827
|
-
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, st);
|
|
854
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? (st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20) : (12 + opt.mem), pre, post, st);
|
|
828
855
|
};
|
|
829
856
|
// Walmart object spread
|
|
830
857
|
var mrg = function (a, b) {
|
|
@@ -923,16 +950,28 @@ var cbify = function (dat, opts, fns, init, id, cb) {
|
|
|
923
950
|
// auto stream
|
|
924
951
|
var astrm = function (strm) {
|
|
925
952
|
strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); };
|
|
926
|
-
return function (ev) {
|
|
953
|
+
return function (ev) {
|
|
954
|
+
if (ev.data[0]) {
|
|
955
|
+
strm.push(ev.data[0], ev.data[1]);
|
|
956
|
+
postMessage([ev.data[0].length]);
|
|
957
|
+
}
|
|
958
|
+
else
|
|
959
|
+
strm.flush(ev.data[1]);
|
|
960
|
+
};
|
|
927
961
|
};
|
|
928
962
|
// async stream attach
|
|
929
|
-
var astrmify = function (fns, strm, opts, init, id, ext) {
|
|
963
|
+
var astrmify = function (fns, strm, opts, init, id, flush, ext) {
|
|
930
964
|
var t;
|
|
931
965
|
var w = wrkr(fns, init, id, function (err, dat) {
|
|
932
966
|
if (err)
|
|
933
967
|
w.terminate(), strm.ondata.call(strm, err);
|
|
934
968
|
else if (!Array.isArray(dat))
|
|
935
969
|
ext(dat);
|
|
970
|
+
else if (dat.length == 1) {
|
|
971
|
+
strm.queuedSize -= dat[0];
|
|
972
|
+
if (strm.ondrain)
|
|
973
|
+
strm.ondrain(dat[0]);
|
|
974
|
+
}
|
|
936
975
|
else {
|
|
937
976
|
if (dat[1])
|
|
938
977
|
w.terminate();
|
|
@@ -940,19 +979,26 @@ var astrmify = function (fns, strm, opts, init, id, ext) {
|
|
|
940
979
|
}
|
|
941
980
|
});
|
|
942
981
|
w.postMessage(opts);
|
|
982
|
+
strm.queuedSize = 0;
|
|
943
983
|
strm.push = function (d, f) {
|
|
944
984
|
if (!strm.ondata)
|
|
945
985
|
err(5);
|
|
946
986
|
if (t)
|
|
947
987
|
strm.ondata(err(4, 0, 1), null, !!f);
|
|
948
|
-
|
|
988
|
+
strm.queuedSize += d.length;
|
|
989
|
+
// can fail for cross-realm Uint8Array, but ok - only a small performance penalty
|
|
990
|
+
w.postMessage([d, t = f], d.buffer instanceof ArrayBuffer ? [d.buffer] : []);
|
|
949
991
|
};
|
|
950
992
|
strm.terminate = function () { w.terminate(); };
|
|
993
|
+
if (flush) {
|
|
994
|
+
strm.flush = function (sync) { w.postMessage([0, sync]); };
|
|
995
|
+
}
|
|
951
996
|
};
|
|
952
997
|
// read 2 bytes
|
|
953
998
|
var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); };
|
|
954
999
|
// read 4 bytes
|
|
955
1000
|
var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; };
|
|
1001
|
+
// read 8 bytes
|
|
956
1002
|
var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); };
|
|
957
1003
|
// write bytes
|
|
958
1004
|
var wbytes = function (d, b, v) {
|
|
@@ -1056,11 +1102,9 @@ var Deflate = /*#__PURE__*/ (function () {
|
|
|
1056
1102
|
this.b = newBuf;
|
|
1057
1103
|
}
|
|
1058
1104
|
var split = this.b.length - this.s.z;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
this.p(this.b, false);
|
|
1063
|
-
}
|
|
1105
|
+
this.b.set(chunk.subarray(0, split), this.s.z);
|
|
1106
|
+
this.s.z = this.b.length;
|
|
1107
|
+
this.p(this.b, false);
|
|
1064
1108
|
this.b.set(this.b.subarray(-32768));
|
|
1065
1109
|
this.b.set(chunk.subarray(split), 32768);
|
|
1066
1110
|
this.s.z = chunk.length - split + 32768;
|
|
@@ -1075,6 +1119,37 @@ var Deflate = /*#__PURE__*/ (function () {
|
|
|
1075
1119
|
this.p(this.b, final || false);
|
|
1076
1120
|
this.s.w = this.s.i, this.s.i -= 2;
|
|
1077
1121
|
}
|
|
1122
|
+
if (final) {
|
|
1123
|
+
// cleanup unneeded buffers/state to reduce memory usage
|
|
1124
|
+
this.s = this.o = {};
|
|
1125
|
+
this.b = et;
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1130
|
+
* deflated output for small inputs.
|
|
1131
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
1132
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
1133
|
+
* decompressible. A separate DEFLATE stream may be concatenated
|
|
1134
|
+
* with the current output after a sync flush.
|
|
1135
|
+
*/
|
|
1136
|
+
Deflate.prototype.flush = function (sync) {
|
|
1137
|
+
if (!this.ondata)
|
|
1138
|
+
err(5);
|
|
1139
|
+
if (this.s.l)
|
|
1140
|
+
err(4);
|
|
1141
|
+
this.p(this.b, false);
|
|
1142
|
+
this.s.w = this.s.i, this.s.i -= 2;
|
|
1143
|
+
// could technically skip writing the type-0 block for (this.s.r & 7) == 0,
|
|
1144
|
+
// but the deterministic trailer (00 00 FF FF) is useful in some situations
|
|
1145
|
+
if (sync) {
|
|
1146
|
+
var c = new u8(6);
|
|
1147
|
+
c[0] = this.s.r >> 3;
|
|
1148
|
+
// write empty, non-final type-0 block
|
|
1149
|
+
var ep = wfblk(c, this.s.r, et);
|
|
1150
|
+
this.s.r = 0;
|
|
1151
|
+
this.ondata(c.subarray(0, ep >> 3), false);
|
|
1152
|
+
}
|
|
1078
1153
|
};
|
|
1079
1154
|
return Deflate;
|
|
1080
1155
|
}());
|
|
@@ -1090,7 +1165,7 @@ var AsyncDeflate = /*#__PURE__*/ (function () {
|
|
|
1090
1165
|
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1091
1166
|
var strm = new Deflate(ev.data);
|
|
1092
1167
|
onmessage = astrm(strm);
|
|
1093
|
-
}, 6);
|
|
1168
|
+
}, 6, 1);
|
|
1094
1169
|
}
|
|
1095
1170
|
return AsyncDeflate;
|
|
1096
1171
|
}());
|
|
@@ -1104,7 +1179,6 @@ function deflate(data, opts, cb) {
|
|
|
1104
1179
|
bDflt,
|
|
1105
1180
|
], function (ev) { return pbf(deflateSync(ev.data[0], ev.data[1])); }, 0, cb);
|
|
1106
1181
|
}
|
|
1107
|
-
exports.deflate = deflate;
|
|
1108
1182
|
/**
|
|
1109
1183
|
* Compresses data with DEFLATE without any wrapper
|
|
1110
1184
|
* @param data The data to compress
|
|
@@ -1114,7 +1188,6 @@ exports.deflate = deflate;
|
|
|
1114
1188
|
function deflateSync(data, opts) {
|
|
1115
1189
|
return dopt(data, opts || {}, 0, 0);
|
|
1116
1190
|
}
|
|
1117
|
-
exports.deflateSync = deflateSync;
|
|
1118
1191
|
/**
|
|
1119
1192
|
* Streaming DEFLATE decompression
|
|
1120
1193
|
*/
|
|
@@ -1173,7 +1246,7 @@ var AsyncInflate = /*#__PURE__*/ (function () {
|
|
|
1173
1246
|
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1174
1247
|
var strm = new Inflate(ev.data);
|
|
1175
1248
|
onmessage = astrm(strm);
|
|
1176
|
-
}, 7);
|
|
1249
|
+
}, 7, 0);
|
|
1177
1250
|
}
|
|
1178
1251
|
return AsyncInflate;
|
|
1179
1252
|
}());
|
|
@@ -1187,17 +1260,9 @@ function inflate(data, opts, cb) {
|
|
|
1187
1260
|
bInflt
|
|
1188
1261
|
], function (ev) { return pbf(inflateSync(ev.data[0], gopt(ev.data[1]))); }, 1, cb);
|
|
1189
1262
|
}
|
|
1190
|
-
exports.inflate = inflate;
|
|
1191
|
-
/**
|
|
1192
|
-
* Expands DEFLATE data with no wrapper
|
|
1193
|
-
* @param data The data to decompress
|
|
1194
|
-
* @param opts The decompression options
|
|
1195
|
-
* @returns The decompressed version of the data
|
|
1196
|
-
*/
|
|
1197
1263
|
function inflateSync(data, opts) {
|
|
1198
1264
|
return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
1199
1265
|
}
|
|
1200
|
-
exports.inflateSync = inflateSync;
|
|
1201
1266
|
// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize.
|
|
1202
1267
|
/**
|
|
1203
1268
|
* Streaming GZIP compression
|
|
@@ -1227,6 +1292,16 @@ var Gzip = /*#__PURE__*/ (function () {
|
|
|
1227
1292
|
wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l);
|
|
1228
1293
|
this.ondata(raw, f);
|
|
1229
1294
|
};
|
|
1295
|
+
/**
|
|
1296
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1297
|
+
* GZIPped output for small inputs.
|
|
1298
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
1299
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
1300
|
+
* decompressible.
|
|
1301
|
+
*/
|
|
1302
|
+
Gzip.prototype.flush = function (sync) {
|
|
1303
|
+
Deflate.prototype.flush.call(this, sync);
|
|
1304
|
+
};
|
|
1230
1305
|
return Gzip;
|
|
1231
1306
|
}());
|
|
1232
1307
|
exports.Gzip = Gzip;
|
|
@@ -1243,7 +1318,7 @@ var AsyncGzip = /*#__PURE__*/ (function () {
|
|
|
1243
1318
|
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1244
1319
|
var strm = new Gzip(ev.data);
|
|
1245
1320
|
onmessage = astrm(strm);
|
|
1246
|
-
}, 8);
|
|
1321
|
+
}, 8, 1);
|
|
1247
1322
|
}
|
|
1248
1323
|
return AsyncGzip;
|
|
1249
1324
|
}());
|
|
@@ -1260,8 +1335,6 @@ function gzip(data, opts, cb) {
|
|
|
1260
1335
|
function () { return [gzipSync]; }
|
|
1261
1336
|
], function (ev) { return pbf(gzipSync(ev.data[0], ev.data[1])); }, 2, cb);
|
|
1262
1337
|
}
|
|
1263
|
-
exports.gzip = gzip;
|
|
1264
|
-
exports.compress = gzip;
|
|
1265
1338
|
/**
|
|
1266
1339
|
* Compresses data with GZIP
|
|
1267
1340
|
* @param data The data to compress
|
|
@@ -1276,8 +1349,6 @@ function gzipSync(data, opts) {
|
|
|
1276
1349
|
var d = dopt(data, opts, gzhl(opts), 8), s = d.length;
|
|
1277
1350
|
return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;
|
|
1278
1351
|
}
|
|
1279
|
-
exports.gzipSync = gzipSync;
|
|
1280
|
-
exports.compressSync = gzipSync;
|
|
1281
1352
|
/**
|
|
1282
1353
|
* Streaming single or multi-member GZIP decompression
|
|
1283
1354
|
*/
|
|
@@ -1309,14 +1380,16 @@ var Gunzip = /*#__PURE__*/ (function () {
|
|
|
1309
1380
|
}
|
|
1310
1381
|
// necessary to prevent TS from using the closure value
|
|
1311
1382
|
// This allows for workerization to function correctly
|
|
1312
|
-
Inflate.prototype.c.call(this,
|
|
1383
|
+
Inflate.prototype.c.call(this, 0);
|
|
1313
1384
|
// process concatenated GZIP
|
|
1314
1385
|
if (this.s.f && !this.s.l) {
|
|
1315
1386
|
this.v = shft(this.s.p) + 9;
|
|
1316
1387
|
this.s = { i: 0 };
|
|
1317
1388
|
this.o = new u8(0);
|
|
1318
|
-
|
|
1319
|
-
|
|
1389
|
+
this.push(new u8(0), final);
|
|
1390
|
+
}
|
|
1391
|
+
else if (final) {
|
|
1392
|
+
Inflate.prototype.c.call(this, final);
|
|
1320
1393
|
}
|
|
1321
1394
|
};
|
|
1322
1395
|
return Gunzip;
|
|
@@ -1327,7 +1400,7 @@ exports.Gunzip = Gunzip;
|
|
|
1327
1400
|
*/
|
|
1328
1401
|
var AsyncGunzip = /*#__PURE__*/ (function () {
|
|
1329
1402
|
function AsyncGunzip(opts, cb) {
|
|
1330
|
-
var
|
|
1403
|
+
var _this = this;
|
|
1331
1404
|
astrmify([
|
|
1332
1405
|
bInflt,
|
|
1333
1406
|
guze,
|
|
@@ -1336,7 +1409,7 @@ var AsyncGunzip = /*#__PURE__*/ (function () {
|
|
|
1336
1409
|
var strm = new Gunzip(ev.data);
|
|
1337
1410
|
strm.onmember = function (offset) { return postMessage(offset); };
|
|
1338
1411
|
onmessage = astrm(strm);
|
|
1339
|
-
}, 9, function (offset) { return
|
|
1412
|
+
}, 9, 0, function (offset) { return _this.onmember && _this.onmember(offset); });
|
|
1340
1413
|
}
|
|
1341
1414
|
return AsyncGunzip;
|
|
1342
1415
|
}());
|
|
@@ -1352,20 +1425,12 @@ function gunzip(data, opts, cb) {
|
|
|
1352
1425
|
function () { return [gunzipSync]; }
|
|
1353
1426
|
], function (ev) { return pbf(gunzipSync(ev.data[0], ev.data[1])); }, 3, cb);
|
|
1354
1427
|
}
|
|
1355
|
-
exports.gunzip = gunzip;
|
|
1356
|
-
/**
|
|
1357
|
-
* Expands GZIP data
|
|
1358
|
-
* @param data The data to decompress
|
|
1359
|
-
* @param opts The decompression options
|
|
1360
|
-
* @returns The decompressed version of the data
|
|
1361
|
-
*/
|
|
1362
1428
|
function gunzipSync(data, opts) {
|
|
1363
1429
|
var st = gzs(data);
|
|
1364
1430
|
if (st + 8 > data.length)
|
|
1365
1431
|
err(6, 'invalid gzip data');
|
|
1366
1432
|
return inflt(data.subarray(st, -8), { i: 2 }, opts && opts.out || new u8(gzl(data)), opts && opts.dictionary);
|
|
1367
1433
|
}
|
|
1368
|
-
exports.gunzipSync = gunzipSync;
|
|
1369
1434
|
/**
|
|
1370
1435
|
* Streaming Zlib compression
|
|
1371
1436
|
*/
|
|
@@ -1392,6 +1457,16 @@ var Zlib = /*#__PURE__*/ (function () {
|
|
|
1392
1457
|
wbytes(raw, raw.length - 4, this.c.d());
|
|
1393
1458
|
this.ondata(raw, f);
|
|
1394
1459
|
};
|
|
1460
|
+
/**
|
|
1461
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1462
|
+
* zlibbed output for small inputs.
|
|
1463
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
1464
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
1465
|
+
* decompressible.
|
|
1466
|
+
*/
|
|
1467
|
+
Zlib.prototype.flush = function (sync) {
|
|
1468
|
+
Deflate.prototype.flush.call(this, sync);
|
|
1469
|
+
};
|
|
1395
1470
|
return Zlib;
|
|
1396
1471
|
}());
|
|
1397
1472
|
exports.Zlib = Zlib;
|
|
@@ -1407,7 +1482,7 @@ var AsyncZlib = /*#__PURE__*/ (function () {
|
|
|
1407
1482
|
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1408
1483
|
var strm = new Zlib(ev.data);
|
|
1409
1484
|
onmessage = astrm(strm);
|
|
1410
|
-
}, 10);
|
|
1485
|
+
}, 10, 1);
|
|
1411
1486
|
}
|
|
1412
1487
|
return AsyncZlib;
|
|
1413
1488
|
}());
|
|
@@ -1423,7 +1498,6 @@ function zlib(data, opts, cb) {
|
|
|
1423
1498
|
function () { return [zlibSync]; }
|
|
1424
1499
|
], function (ev) { return pbf(zlibSync(ev.data[0], ev.data[1])); }, 4, cb);
|
|
1425
1500
|
}
|
|
1426
|
-
exports.zlib = zlib;
|
|
1427
1501
|
/**
|
|
1428
1502
|
* Compress data with Zlib
|
|
1429
1503
|
* @param data The data to compress
|
|
@@ -1438,7 +1512,6 @@ function zlibSync(data, opts) {
|
|
|
1438
1512
|
var d = dopt(data, opts, opts.dictionary ? 6 : 2, 4);
|
|
1439
1513
|
return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d;
|
|
1440
1514
|
}
|
|
1441
|
-
exports.zlibSync = zlibSync;
|
|
1442
1515
|
/**
|
|
1443
1516
|
* Streaming Zlib decompression
|
|
1444
1517
|
*/
|
|
@@ -1483,7 +1556,7 @@ var AsyncUnzlib = /*#__PURE__*/ (function () {
|
|
|
1483
1556
|
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1484
1557
|
var strm = new Unzlib(ev.data);
|
|
1485
1558
|
onmessage = astrm(strm);
|
|
1486
|
-
}, 11);
|
|
1559
|
+
}, 11, 0);
|
|
1487
1560
|
}
|
|
1488
1561
|
return AsyncUnzlib;
|
|
1489
1562
|
}());
|
|
@@ -1499,27 +1572,27 @@ function unzlib(data, opts, cb) {
|
|
|
1499
1572
|
function () { return [unzlibSync]; }
|
|
1500
1573
|
], function (ev) { return pbf(unzlibSync(ev.data[0], gopt(ev.data[1]))); }, 5, cb);
|
|
1501
1574
|
}
|
|
1502
|
-
exports.unzlib = unzlib;
|
|
1503
|
-
/**
|
|
1504
|
-
* Expands Zlib data
|
|
1505
|
-
* @param data The data to decompress
|
|
1506
|
-
* @param opts The decompression options
|
|
1507
|
-
* @returns The decompressed version of the data
|
|
1508
|
-
*/
|
|
1509
1575
|
function unzlibSync(data, opts) {
|
|
1510
1576
|
return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
1511
1577
|
}
|
|
1512
|
-
exports.unzlibSync = unzlibSync;
|
|
1513
1578
|
/**
|
|
1514
1579
|
* Streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
1515
1580
|
*/
|
|
1516
1581
|
var Decompress = /*#__PURE__*/ (function () {
|
|
1517
1582
|
function Decompress(opts, cb) {
|
|
1583
|
+
this.o = StrmOpt.call(this, opts, cb) || {};
|
|
1518
1584
|
this.G = Gunzip;
|
|
1519
1585
|
this.I = Inflate;
|
|
1520
1586
|
this.Z = Unzlib;
|
|
1521
|
-
this.o = StrmOpt.call(this, opts, cb) || {};
|
|
1522
1587
|
}
|
|
1588
|
+
// init substream
|
|
1589
|
+
// overriden by AsyncDecompress
|
|
1590
|
+
Decompress.prototype.i = function () {
|
|
1591
|
+
var _this = this;
|
|
1592
|
+
this.s.ondata = function (dat, final) {
|
|
1593
|
+
_this.ondata(dat, final);
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1523
1596
|
/**
|
|
1524
1597
|
* Pushes a chunk to be decompressed
|
|
1525
1598
|
* @param chunk The chunk to push
|
|
@@ -1536,14 +1609,12 @@ var Decompress = /*#__PURE__*/ (function () {
|
|
|
1536
1609
|
else
|
|
1537
1610
|
this.p = chunk;
|
|
1538
1611
|
if (this.p.length > 2) {
|
|
1539
|
-
var _this_2 = this;
|
|
1540
|
-
// enables reuse of this method by AsyncDecompress
|
|
1541
|
-
var cb = function () { _this_2.ondata.apply(_this_2, arguments); };
|
|
1542
1612
|
this.s = (this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8)
|
|
1543
|
-
? new this.G(this.o
|
|
1613
|
+
? new this.G(this.o)
|
|
1544
1614
|
: ((this.p[0] & 15) != 8 || (this.p[0] >> 4) > 7 || ((this.p[0] << 8 | this.p[1]) % 31))
|
|
1545
|
-
? new this.I(this.o
|
|
1546
|
-
: new this.Z(this.o
|
|
1615
|
+
? new this.I(this.o)
|
|
1616
|
+
: new this.Z(this.o);
|
|
1617
|
+
this.i();
|
|
1547
1618
|
this.s.push(this.p, final);
|
|
1548
1619
|
this.p = null;
|
|
1549
1620
|
}
|
|
@@ -1559,17 +1630,30 @@ exports.Decompress = Decompress;
|
|
|
1559
1630
|
*/
|
|
1560
1631
|
var AsyncDecompress = /*#__PURE__*/ (function () {
|
|
1561
1632
|
function AsyncDecompress(opts, cb) {
|
|
1633
|
+
Decompress.call(this, opts, cb);
|
|
1634
|
+
this.queuedSize = 0;
|
|
1562
1635
|
this.G = AsyncGunzip;
|
|
1563
1636
|
this.I = AsyncInflate;
|
|
1564
1637
|
this.Z = AsyncUnzlib;
|
|
1565
|
-
Decompress.call(this, opts, cb);
|
|
1566
1638
|
}
|
|
1639
|
+
AsyncDecompress.prototype.i = function () {
|
|
1640
|
+
var _this = this;
|
|
1641
|
+
this.s.ondata = function (err, dat, final) {
|
|
1642
|
+
_this.ondata(err, dat, final);
|
|
1643
|
+
};
|
|
1644
|
+
this.s.ondrain = function (size) {
|
|
1645
|
+
_this.queuedSize -= size;
|
|
1646
|
+
if (_this.ondrain)
|
|
1647
|
+
_this.ondrain(size);
|
|
1648
|
+
};
|
|
1649
|
+
};
|
|
1567
1650
|
/**
|
|
1568
1651
|
* Pushes a chunk to be decompressed
|
|
1569
1652
|
* @param chunk The chunk to push
|
|
1570
1653
|
* @param final Whether this is the last chunk
|
|
1571
1654
|
*/
|
|
1572
1655
|
AsyncDecompress.prototype.push = function (chunk, final) {
|
|
1656
|
+
this.queuedSize += chunk.length;
|
|
1573
1657
|
Decompress.prototype.push.call(this, chunk, final);
|
|
1574
1658
|
};
|
|
1575
1659
|
return AsyncDecompress;
|
|
@@ -1586,7 +1670,6 @@ function decompress(data, opts, cb) {
|
|
|
1586
1670
|
? inflate(data, opts, cb)
|
|
1587
1671
|
: unzlib(data, opts, cb);
|
|
1588
1672
|
}
|
|
1589
|
-
exports.decompress = decompress;
|
|
1590
1673
|
/**
|
|
1591
1674
|
* Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
|
|
1592
1675
|
* @param data The data to decompress
|
|
@@ -1600,14 +1683,13 @@ function decompressSync(data, opts) {
|
|
|
1600
1683
|
? inflateSync(data, opts)
|
|
1601
1684
|
: unzlibSync(data, opts);
|
|
1602
1685
|
}
|
|
1603
|
-
exports.decompressSync = decompressSync;
|
|
1604
1686
|
// flatten a directory structure
|
|
1605
1687
|
var fltn = function (d, p, t, o) {
|
|
1606
1688
|
for (var k in d) {
|
|
1607
1689
|
var val = d[k], n = p + k, op = o;
|
|
1608
1690
|
if (Array.isArray(val))
|
|
1609
1691
|
op = mrg(o, val[1]), val = val[0];
|
|
1610
|
-
if (val
|
|
1692
|
+
if (ArrayBuffer.isView(val))
|
|
1611
1693
|
t[n] = [val, op];
|
|
1612
1694
|
else {
|
|
1613
1695
|
t[n += '/'] = [new u8(0), op];
|
|
@@ -1761,7 +1843,6 @@ function strToU8(str, latin1) {
|
|
|
1761
1843
|
}
|
|
1762
1844
|
return slc(ar, 0, ai);
|
|
1763
1845
|
}
|
|
1764
|
-
exports.strToU8 = strToU8;
|
|
1765
1846
|
/**
|
|
1766
1847
|
* Converts a Uint8Array to a string
|
|
1767
1848
|
* @param dat The data to decode to string
|
|
@@ -1786,7 +1867,6 @@ function strFromU8(dat, latin1) {
|
|
|
1786
1867
|
return s;
|
|
1787
1868
|
}
|
|
1788
1869
|
}
|
|
1789
|
-
exports.strFromU8 = strFromU8;
|
|
1790
1870
|
;
|
|
1791
1871
|
// deflate bit flag
|
|
1792
1872
|
var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
|
|
@@ -1794,15 +1874,30 @@ var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
|
|
|
1794
1874
|
var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); };
|
|
1795
1875
|
// read zip header
|
|
1796
1876
|
var zh = function (d, b, z) {
|
|
1797
|
-
var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl
|
|
1798
|
-
var _a =
|
|
1799
|
-
return [b2(d, b + 10), sc, su, fn, es +
|
|
1877
|
+
var fnl = b2(d, b + 28), efl = b2(d, b + 30), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl;
|
|
1878
|
+
var _a = z64hs(d, es, efl, z, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a[0], su = _a[1], off = _a[2];
|
|
1879
|
+
return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
|
|
1800
1880
|
};
|
|
1801
|
-
// read zip64
|
|
1802
|
-
var
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1881
|
+
// read zip64 header sizes
|
|
1882
|
+
var z64hs = function (d, b, l, z, sc, su, off) {
|
|
1883
|
+
var nsc = sc == 4294967295, nsu = su == 4294967295, noff = off == 4294967295, e = b + l;
|
|
1884
|
+
var nf = nsc + nsu + noff;
|
|
1885
|
+
if (z && nf) {
|
|
1886
|
+
for (; b + 4 < e; b += 4 + b2(d, b + 2)) {
|
|
1887
|
+
if (b2(d, b) == 1) {
|
|
1888
|
+
return [
|
|
1889
|
+
nsc ? b8(d, b + 4 + 8 * nsu) : sc,
|
|
1890
|
+
nsu ? b8(d, b + 4) : su,
|
|
1891
|
+
noff ? b8(d, b + 4 + 8 * (nsu + nsc)) : off,
|
|
1892
|
+
1
|
|
1893
|
+
];
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
// z == 2 for unknown whether or not zip64
|
|
1897
|
+
if (z < 2)
|
|
1898
|
+
err(13);
|
|
1899
|
+
}
|
|
1900
|
+
return [sc, su, off, 0];
|
|
1806
1901
|
};
|
|
1807
1902
|
// extra field length
|
|
1808
1903
|
var exfl = function (ex) {
|
|
@@ -1904,6 +1999,8 @@ var ZipPassThrough = /*#__PURE__*/ (function () {
|
|
|
1904
1999
|
this.size += chunk.length;
|
|
1905
2000
|
if (final)
|
|
1906
2001
|
this.crc = this.c.d();
|
|
2002
|
+
// we shouldn't really do this cast, but properly handling ArrayBufferLike
|
|
2003
|
+
// makes the API unergonomic with Buffer
|
|
1907
2004
|
this.process(chunk, final || false);
|
|
1908
2005
|
};
|
|
1909
2006
|
return ZipPassThrough;
|
|
@@ -1921,12 +2018,12 @@ var ZipDeflate = /*#__PURE__*/ (function () {
|
|
|
1921
2018
|
* @param opts The compression options
|
|
1922
2019
|
*/
|
|
1923
2020
|
function ZipDeflate(filename, opts) {
|
|
1924
|
-
var
|
|
2021
|
+
var _this = this;
|
|
1925
2022
|
if (!opts)
|
|
1926
2023
|
opts = {};
|
|
1927
2024
|
ZipPassThrough.call(this, filename);
|
|
1928
2025
|
this.d = new Deflate(opts, function (dat, final) {
|
|
1929
|
-
|
|
2026
|
+
_this.ondata(null, dat, final);
|
|
1930
2027
|
});
|
|
1931
2028
|
this.compression = 8;
|
|
1932
2029
|
this.flag = dbf(opts.level);
|
|
@@ -1960,12 +2057,12 @@ var AsyncZipDeflate = /*#__PURE__*/ (function () {
|
|
|
1960
2057
|
* @param opts The compression options
|
|
1961
2058
|
*/
|
|
1962
2059
|
function AsyncZipDeflate(filename, opts) {
|
|
1963
|
-
var
|
|
2060
|
+
var _this = this;
|
|
1964
2061
|
if (!opts)
|
|
1965
2062
|
opts = {};
|
|
1966
2063
|
ZipPassThrough.call(this, filename);
|
|
1967
2064
|
this.d = new AsyncDeflate(opts, function (err, dat, final) {
|
|
1968
|
-
|
|
2065
|
+
_this.ondata(err, dat, final);
|
|
1969
2066
|
});
|
|
1970
2067
|
this.compression = 8;
|
|
1971
2068
|
this.flag = dbf(opts.level);
|
|
@@ -2005,7 +2102,7 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2005
2102
|
* @param file The file stream to add
|
|
2006
2103
|
*/
|
|
2007
2104
|
Zip.prototype.add = function (file) {
|
|
2008
|
-
var
|
|
2105
|
+
var _this = this;
|
|
2009
2106
|
if (!this.ondata)
|
|
2010
2107
|
err(5);
|
|
2011
2108
|
// finishing or finished
|
|
@@ -2024,7 +2121,7 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2024
2121
|
var pAll_1 = function () {
|
|
2025
2122
|
for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) {
|
|
2026
2123
|
var chk = chks_2[_i];
|
|
2027
|
-
|
|
2124
|
+
_this.ondata(null, chk, false);
|
|
2028
2125
|
}
|
|
2029
2126
|
chks_1 = [];
|
|
2030
2127
|
};
|
|
@@ -2042,11 +2139,11 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2042
2139
|
r: function () {
|
|
2043
2140
|
pAll_1();
|
|
2044
2141
|
if (tr_1) {
|
|
2045
|
-
var nxt =
|
|
2142
|
+
var nxt = _this.u[ind_1 + 1];
|
|
2046
2143
|
if (nxt)
|
|
2047
2144
|
nxt.r();
|
|
2048
2145
|
else
|
|
2049
|
-
|
|
2146
|
+
_this.d = 1;
|
|
2050
2147
|
}
|
|
2051
2148
|
tr_1 = 1;
|
|
2052
2149
|
}
|
|
@@ -2054,8 +2151,8 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2054
2151
|
var cl_1 = 0;
|
|
2055
2152
|
file.ondata = function (err, dat, final) {
|
|
2056
2153
|
if (err) {
|
|
2057
|
-
|
|
2058
|
-
|
|
2154
|
+
_this.ondata(err, dat, final);
|
|
2155
|
+
_this.terminate();
|
|
2059
2156
|
}
|
|
2060
2157
|
else {
|
|
2061
2158
|
cl_1 += dat.length;
|
|
@@ -2085,7 +2182,7 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2085
2182
|
* ZIP file to work properly.
|
|
2086
2183
|
*/
|
|
2087
2184
|
Zip.prototype.end = function () {
|
|
2088
|
-
var
|
|
2185
|
+
var _this = this;
|
|
2089
2186
|
if (this.d & 2) {
|
|
2090
2187
|
this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true);
|
|
2091
2188
|
return;
|
|
@@ -2095,10 +2192,10 @@ var Zip = /*#__PURE__*/ (function () {
|
|
|
2095
2192
|
else
|
|
2096
2193
|
this.u.push({
|
|
2097
2194
|
r: function () {
|
|
2098
|
-
if (!(
|
|
2195
|
+
if (!(_this.d & 1))
|
|
2099
2196
|
return;
|
|
2100
|
-
|
|
2101
|
-
|
|
2197
|
+
_this.u.splice(-1, 1);
|
|
2198
|
+
_this.e();
|
|
2102
2199
|
},
|
|
2103
2200
|
t: function () { }
|
|
2104
2201
|
});
|
|
@@ -2227,7 +2324,6 @@ function zip(data, opts, cb) {
|
|
|
2227
2324
|
}
|
|
2228
2325
|
return tAll;
|
|
2229
2326
|
}
|
|
2230
|
-
exports.zip = zip;
|
|
2231
2327
|
/**
|
|
2232
2328
|
* Synchronously creates a ZIP file. Prefer using `zip` for better performance
|
|
2233
2329
|
* with more than one file.
|
|
@@ -2278,15 +2374,15 @@ function zipSync(data, opts) {
|
|
|
2278
2374
|
wzf(out, o, files.length, cdl, oe);
|
|
2279
2375
|
return out;
|
|
2280
2376
|
}
|
|
2281
|
-
exports.zipSync = zipSync;
|
|
2282
2377
|
/**
|
|
2283
2378
|
* Streaming pass-through decompression for ZIP archives
|
|
2284
2379
|
*/
|
|
2285
2380
|
var UnzipPassThrough = /*#__PURE__*/ (function () {
|
|
2286
2381
|
function UnzipPassThrough() {
|
|
2287
2382
|
}
|
|
2288
|
-
UnzipPassThrough.prototype.push = function (
|
|
2289
|
-
|
|
2383
|
+
UnzipPassThrough.prototype.push = function (chunk, final) {
|
|
2384
|
+
// same as ZipPassThrough: cast to retain Buffer ergonomics
|
|
2385
|
+
this.ondata(null, chunk, final);
|
|
2290
2386
|
};
|
|
2291
2387
|
UnzipPassThrough.compression = 0;
|
|
2292
2388
|
return UnzipPassThrough;
|
|
@@ -2301,14 +2397,14 @@ var UnzipInflate = /*#__PURE__*/ (function () {
|
|
|
2301
2397
|
* Creates a DEFLATE decompression that can be used in ZIP archives
|
|
2302
2398
|
*/
|
|
2303
2399
|
function UnzipInflate() {
|
|
2304
|
-
var
|
|
2400
|
+
var _this = this;
|
|
2305
2401
|
this.i = new Inflate(function (dat, final) {
|
|
2306
|
-
|
|
2402
|
+
_this.ondata(null, dat, final);
|
|
2307
2403
|
});
|
|
2308
2404
|
}
|
|
2309
|
-
UnzipInflate.prototype.push = function (
|
|
2405
|
+
UnzipInflate.prototype.push = function (chunk, final) {
|
|
2310
2406
|
try {
|
|
2311
|
-
this.i.push(
|
|
2407
|
+
this.i.push(chunk, final);
|
|
2312
2408
|
}
|
|
2313
2409
|
catch (e) {
|
|
2314
2410
|
this.ondata(e, null, final);
|
|
@@ -2326,23 +2422,23 @@ var AsyncUnzipInflate = /*#__PURE__*/ (function () {
|
|
|
2326
2422
|
* Creates a DEFLATE decompression that can be used in ZIP archives
|
|
2327
2423
|
*/
|
|
2328
2424
|
function AsyncUnzipInflate(_, sz) {
|
|
2329
|
-
var
|
|
2425
|
+
var _this = this;
|
|
2330
2426
|
if (sz < 320000) {
|
|
2331
2427
|
this.i = new Inflate(function (dat, final) {
|
|
2332
|
-
|
|
2428
|
+
_this.ondata(null, dat, final);
|
|
2333
2429
|
});
|
|
2334
2430
|
}
|
|
2335
2431
|
else {
|
|
2336
2432
|
this.i = new AsyncInflate(function (err, dat, final) {
|
|
2337
|
-
|
|
2433
|
+
_this.ondata(err, dat, final);
|
|
2338
2434
|
});
|
|
2339
2435
|
this.terminate = this.i.terminate;
|
|
2340
2436
|
}
|
|
2341
2437
|
}
|
|
2342
|
-
AsyncUnzipInflate.prototype.push = function (
|
|
2438
|
+
AsyncUnzipInflate.prototype.push = function (chunk, final) {
|
|
2343
2439
|
if (this.i.terminate)
|
|
2344
|
-
|
|
2345
|
-
this.i.push(
|
|
2440
|
+
chunk = slc(chunk, 0);
|
|
2441
|
+
this.i.push(chunk, final);
|
|
2346
2442
|
};
|
|
2347
2443
|
AsyncUnzipInflate.compression = 8;
|
|
2348
2444
|
return AsyncUnzipInflate;
|
|
@@ -2370,7 +2466,7 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
2370
2466
|
* @param final Whether this is the last chunk
|
|
2371
2467
|
*/
|
|
2372
2468
|
Unzip.prototype.push = function (chunk, final) {
|
|
2373
|
-
var
|
|
2469
|
+
var _this = this;
|
|
2374
2470
|
if (!this.onfile)
|
|
2375
2471
|
err(5);
|
|
2376
2472
|
if (!this.p)
|
|
@@ -2399,7 +2495,6 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
2399
2495
|
}
|
|
2400
2496
|
var l = buf.length, oc = this.c, add = oc && this.d;
|
|
2401
2497
|
var _loop_2 = function () {
|
|
2402
|
-
var _a;
|
|
2403
2498
|
var sig = b4(buf, i);
|
|
2404
2499
|
if (sig == 0x4034B50) {
|
|
2405
2500
|
f = 1, is = i;
|
|
@@ -2410,13 +2505,11 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
2410
2505
|
var chks_3 = [];
|
|
2411
2506
|
this_1.k.unshift(chks_3);
|
|
2412
2507
|
f = 2;
|
|
2413
|
-
var
|
|
2508
|
+
var lsc = b4(buf, i + 18), lsu = b4(buf, i + 22);
|
|
2414
2509
|
var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u);
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
else if (dd)
|
|
2419
|
-
sc_1 = -1;
|
|
2510
|
+
var _a = z64hs(buf, i, es, 2, lsc, lsu, 0), sc_1 = _a[0], su_1 = _a[1], z64 = _a[3];
|
|
2511
|
+
if (dd)
|
|
2512
|
+
sc_1 = -1 - z64;
|
|
2420
2513
|
i += es;
|
|
2421
2514
|
this_1.c = sc_1;
|
|
2422
2515
|
var d_1;
|
|
@@ -2429,7 +2522,7 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
2429
2522
|
if (!sc_1)
|
|
2430
2523
|
file_1.ondata(null, et, true);
|
|
2431
2524
|
else {
|
|
2432
|
-
var ctr =
|
|
2525
|
+
var ctr = _this.o[cmp_1];
|
|
2433
2526
|
if (!ctr)
|
|
2434
2527
|
file_1.ondata(err(14, 'unknown compression type ' + cmp_1, 1), null, false);
|
|
2435
2528
|
d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1);
|
|
@@ -2438,8 +2531,8 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
2438
2531
|
var dat = chks_4[_i];
|
|
2439
2532
|
d_1.push(dat, false);
|
|
2440
2533
|
}
|
|
2441
|
-
if (
|
|
2442
|
-
|
|
2534
|
+
if (_this.k[0] == chks_3 && _this.c)
|
|
2535
|
+
_this.d = d_1;
|
|
2443
2536
|
else
|
|
2444
2537
|
d_1.push(et, true);
|
|
2445
2538
|
}
|
|
@@ -2529,7 +2622,7 @@ function unzip(data, opts, cb) {
|
|
|
2529
2622
|
if (lft) {
|
|
2530
2623
|
var c = lft;
|
|
2531
2624
|
var o = b4(data, e + 16);
|
|
2532
|
-
var z =
|
|
2625
|
+
var z = b4(data, e - 20) == 0x7064B50;
|
|
2533
2626
|
if (z) {
|
|
2534
2627
|
var ze = b4(data, e - 12);
|
|
2535
2628
|
z = b4(data, ze) == 0x6064B50;
|
|
@@ -2564,7 +2657,8 @@ function unzip(data, opts, cb) {
|
|
|
2564
2657
|
cbl(null, slc(data, b, b + sc));
|
|
2565
2658
|
else if (c_1 == 8) {
|
|
2566
2659
|
var infl = data.subarray(b, b + sc);
|
|
2567
|
-
|
|
2660
|
+
// Synchronously decompress under 512KB, or barely-compressed data
|
|
2661
|
+
if (su < 524288 || sc > 0.8 * su) {
|
|
2568
2662
|
try {
|
|
2569
2663
|
cbl(null, inflateSync(infl, { out: new u8(su) }));
|
|
2570
2664
|
}
|
|
@@ -2589,7 +2683,6 @@ function unzip(data, opts, cb) {
|
|
|
2589
2683
|
cbd(null, {});
|
|
2590
2684
|
return tAll;
|
|
2591
2685
|
}
|
|
2592
|
-
exports.unzip = unzip;
|
|
2593
2686
|
/**
|
|
2594
2687
|
* Synchronously decompresses a ZIP archive. Prefer using `unzip` for better
|
|
2595
2688
|
* performance with more than one file.
|
|
@@ -2609,7 +2702,7 @@ function unzipSync(data, opts) {
|
|
|
2609
2702
|
if (!c)
|
|
2610
2703
|
return {};
|
|
2611
2704
|
var o = b4(data, e + 16);
|
|
2612
|
-
var z =
|
|
2705
|
+
var z = b4(data, e - 20) == 0x7064B50;
|
|
2613
2706
|
if (z) {
|
|
2614
2707
|
var ze = b4(data, e - 12);
|
|
2615
2708
|
z = b4(data, ze) == 0x6064B50;
|
|
@@ -2638,4 +2731,3 @@ function unzipSync(data, opts) {
|
|
|
2638
2731
|
}
|
|
2639
2732
|
return files;
|
|
2640
2733
|
}
|
|
2641
|
-
exports.unzipSync = unzipSync;
|