cdk-assets
Advanced tools
Comparing version 1.136.0 to 1.137.0
@@ -58,3 +58,3 @@ "use strict"; | ||
case BucketEncryption.ACCES_DENIED: | ||
this.host.emitMessage(progress_1.EventType.DEBUG, `ACCES_DENIED for getting encryption of bucket '${destination.bucketName}'. Either wrong account ${await account()} or s3:GetEncryptionConfiguration not set for cdk role. Try "cdk bootstrap" again.`); | ||
this.host.emitMessage(progress_1.EventType.DEBUG, `Could not read encryption settings of bucket '${destination.bucketName}': uploading with default settings ("cdk bootstrap" to version 9 if your organization's policies prevent a successful upload or to get rid of this message).`); | ||
break; | ||
@@ -216,2 +216,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmaWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQkFBc0Q7QUFDdEQsNkJBQTZCO0FBQzdCLDBFQUFnRjtBQUNoRiw2QkFBNkI7QUFFN0IsNkNBQTJDO0FBQzNDLHdDQUEwQztBQUUxQywwQ0FBeUM7QUFDekMsa0RBQXlEO0FBQ3pELG9DQUFpQztBQUVqQyxNQUFhLGdCQUFnQjtJQUczQixZQUNtQixPQUFlLEVBQ2YsS0FBd0IsRUFDeEIsSUFBa0I7UUFGbEIsWUFBTyxHQUFQLE9BQU8sQ0FBUTtRQUNmLFVBQUssR0FBTCxLQUFLLENBQW1CO1FBQ3hCLFNBQUksR0FBSixJQUFJLENBQWM7UUFDbkMsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNwRCxDQUFDO0lBRU0sS0FBSyxDQUFDLE9BQU87UUFDbEIsTUFBTSxXQUFXLEdBQUcsTUFBTSxxQ0FBc0IsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLFdBQVcsRUFBR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DogQSkgPT4gUHJvbWlzZTxCPik6IFByb21pc2U8Qj4ge1xuICBpZiAoY2FjaGUuaGFzKGtleSkpIHtcbiAgICByZXR1cm4gY2FjaGUuZ2V0KGtleSkhO1xuICB9XG5cbiAgY29uc3QgZnJlc2ggPSBhd2FpdCBmYWN0b3J5KGtleSk7XG4gIGNhY2hlLnNldChrZXksIGZyZXNoKTtcbiAgcmV0dXJuIGZyZXNoO1xufSJdfQ== |
{ | ||
"name": "cdk-assets", | ||
"version": "1.136.0", | ||
"version": "1.137.0", | ||
"lockfileVersion": 1, | ||
@@ -8,3 +8,3 @@ "requires": true, | ||
"@aws-cdk/cloud-assembly-schema": { | ||
"version": "1.136.0", | ||
"version": "1.137.0", | ||
"requires": { | ||
@@ -16,5 +16,5 @@ "jsonschema": "^1.4.0", | ||
"@aws-cdk/cx-api": { | ||
"version": "1.136.0", | ||
"version": "1.137.0", | ||
"requires": { | ||
"@aws-cdk/cloud-assembly-schema": "1.136.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.137.0", | ||
"semver": "^7.3.5" | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "cdk-assets", | ||
"description": "CDK Asset Publishing Tool", | ||
"version": "1.136.0", | ||
"version": "1.137.0", | ||
"main": "lib/index.js", | ||
@@ -40,11 +40,11 @@ "types": "lib/index.d.ts", | ||
"@types/yargs": "^15.0.14", | ||
"@aws-cdk/cdk-build-tools": "1.136.0", | ||
"@aws-cdk/cdk-build-tools": "1.137.0", | ||
"jest": "^27.4.3", | ||
"jszip": "^3.7.1", | ||
"mock-fs": "^4.14.0", | ||
"@aws-cdk/pkglint": "1.136.0" | ||
"@aws-cdk/pkglint": "1.137.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/cloud-assembly-schema": "1.136.0", | ||
"@aws-cdk/cx-api": "1.136.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.137.0", | ||
"@aws-cdk/cx-api": "1.137.0", | ||
"archiver": "^5.3.0", | ||
@@ -51,0 +51,0 @@ "aws-sdk": "^2.848.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
257653
+ Added@aws-cdk/cloud-assembly-schema@1.137.0(transitive)
+ Added@aws-cdk/cx-api@1.137.0(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.136.0(transitive)
- Removed@aws-cdk/cx-api@1.136.0(transitive)
Updated@aws-cdk/cx-api@1.137.0