Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdk-assets

Package Overview
Dependencies
Maintainers
1
Versions
713
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-assets - npm Package Compare versions

Comparing version 1.135.0 to 1.136.0

2

lib/aws.d.ts

@@ -8,2 +8,3 @@ /**

discoverCurrentAccount(): Promise<Account>;
discoverTargetAccount(options: ClientOptions): Promise<Account>;
s3Client(options: ClientOptions): Promise<AWS.S3>;

@@ -47,2 +48,3 @@ ecrClient(options: ClientOptions): Promise<AWS.ECR>;

discoverCurrentAccount(): Promise<Account>;
discoverTargetAccount(options: ClientOptions): Promise<Account>;
private awsOptions;

@@ -49,0 +51,0 @@ /**

@@ -50,2 +50,13 @@ "use strict";

}
async discoverTargetAccount(options) {
const sts = new this.AWS.STS(await this.awsOptions(options));
const response = await sts.getCallerIdentity().promise();
if (!response.Account || !response.Arn) {
throw new Error(`Unrecognized reponse from STS: '${JSON.stringify(response)}'`);
}
return {
accountId: response.Account,
partition: response.Arn.split(':')[1],
};
}
async awsOptions(options) {

@@ -93,2 +104,2 @@ let credentials;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHlCQUF5QjtBQXVDekI7O0dBRUc7QUFDSCxNQUFhLGdCQUFnQjtJQUkzQixZQUFZLE9BQWdCO1FBQzFCLDBGQUEwRjtRQUMxRixPQUFPLENBQUMsR0FBRyxDQUFDLG1CQUFtQixHQUFHLEdBQUcsQ0FBQztRQUN0QyxPQUFPLENBQUMsR0FBRyxDQUFDLDBCQUEwQixHQUFHLFVBQVUsQ0FBQztRQUNwRCxPQUFPLENBQUMsR0FBRyxDQUFDLG1DQUFtQyxHQUFHLEdBQUcsQ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SByZW1vdmVkXG4gKlxuICogQHNlZSBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vU1RTL2xhdGVzdC9BUElSZWZlcmVuY2UvQVBJX0Fzc3VtZVJvbGUuaHRtbCNBUElfQXNzdW1lUm9sZV9SZXF1ZXN0UGFyYW1ldGVyc1xuICovXG5mdW5jdGlvbiBzYWZlVXNlcm5hbWUoKSB7XG4gIHJldHVybiBvcy51c2VySW5mbygpLnVzZXJuYW1lLnJlcGxhY2UoL1teXFx3Kz0sLkAtXS9nLCAnQCcpO1xufVxuXG4iXX0=

4

lib/private/handlers/files.js

@@ -28,3 +28,3 @@ "use strict";

// message, not in the success case.
const account = async () => { var _a; return (_a = (await this.host.aws.discoverCurrentAccount())) === null || _a === void 0 ? void 0 : _a.accountId; };
const account = async () => { var _a; return (_a = (await this.host.aws.discoverTargetAccount(destination))) === null || _a === void 0 ? void 0 : _a.accountId; };
switch (await bucketInfo.bucketOwnership(s3, destination.bucketName)) {

@@ -216,2 +216,2 @@ case BucketOwnership.MINE:

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmaWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQkFBc0Q7QUFDdEQsNkJBQTZCO0FBQzdCLDBFQUFnRjtBQUNoRiw2QkFBNkI7QUFFN0IsNkNBQTJDO0FBQzNDLHdDQUEwQztBQUUxQywwQ0FBeUM7QUFDekMsa0RBQXlEO0FBQ3pELG9DQUFpQztBQUVqQyxNQUFhLGdCQUFnQjtJQUczQixZQUNtQixPQUFlLEVBQ2YsS0FBd0IsRUFDeEIsSUFBa0I7UUFGbEIsWUFBTyxHQUFQLE9BQU8sQ0FBUTtRQUNmLFVBQUssR0FBTCxLQUFLLENBQW1CO1FBQ3hCLFNBQUksR0FBSixJQUFJLENBQWM7UUFDbkMsSUFBSSxDQ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FU19ERU5JRUQ7XG4gICAgICB9XG4gICAgICByZXR1cm4gQnVja2V0RW5jcnlwdGlvbi5OT19FTkNSWVBUSU9OO1xuICAgIH1cbiAgfVxufVxuXG5hc3luYyBmdW5jdGlvbiBjYWNoZWQ8QSwgQj4oY2FjaGU6IE1hcDxBLCBCPiwga2V5OiBBLCBmYWN0b3J5OiAoeDogQSkgPT4gUHJvbWlzZTxCPik6IFByb21pc2U8Qj4ge1xuICBpZiAoY2FjaGUuaGFzKGtleSkpIHtcbiAgICByZXR1cm4gY2FjaGUuZ2V0KGtleSkhO1xuICB9XG5cbiAgY29uc3QgZnJlc2ggPSBhd2FpdCBmYWN0b3J5KGtleSk7XG4gIGNhY2hlLnNldChrZXksIGZyZXNoKTtcbiAgcmV0dXJuIGZyZXNoO1xufSJdfQ==
{
"name": "cdk-assets",
"version": "1.135.0",
"version": "1.136.0",
"lockfileVersion": 1,

@@ -8,3 +8,3 @@ "requires": true,

"@aws-cdk/cloud-assembly-schema": {
"version": "1.135.0",
"version": "1.136.0",
"requires": {

@@ -16,5 +16,5 @@ "jsonschema": "^1.4.0",

"@aws-cdk/cx-api": {
"version": "1.135.0",
"version": "1.136.0",
"requires": {
"@aws-cdk/cloud-assembly-schema": "1.135.0",
"@aws-cdk/cloud-assembly-schema": "1.136.0",
"semver": "^7.3.5"

@@ -21,0 +21,0 @@ }

{
"name": "cdk-assets",
"description": "CDK Asset Publishing Tool",
"version": "1.135.0",
"version": "1.136.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.135.0",
"@aws-cdk/cdk-build-tools": "1.136.0",
"jest": "^27.4.3",
"jszip": "^3.7.1",
"mock-fs": "^4.14.0",
"@aws-cdk/pkglint": "1.135.0"
"@aws-cdk/pkglint": "1.136.0"
},
"dependencies": {
"@aws-cdk/cloud-assembly-schema": "1.135.0",
"@aws-cdk/cx-api": "1.135.0",
"@aws-cdk/cloud-assembly-schema": "1.136.0",
"@aws-cdk/cx-api": "1.136.0",
"archiver": "^5.3.0",

@@ -51,0 +51,0 @@ "aws-sdk": "^2.848.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc