@cloudchipr/cloudchipr-engine
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -42,4 +42,7 @@ "use strict"; | ||
function AwsEc2Client(credentialProvider) { | ||
var _a; | ||
var region = (_a = process.env.AWS_DEFAULT_REGION) !== null && _a !== void 0 ? _a : 'us-east-1'; | ||
this.client = new client_ec2_1.EC2Client({ | ||
credentials: credentialProvider | ||
credentials: credentialProvider, | ||
region: region | ||
}); | ||
@@ -46,0 +49,0 @@ } |
@@ -22,2 +22,3 @@ import { FilterBuilderInterface } from '../filter-builder-interface'; | ||
private static buildDatabaseConnections; | ||
private static mapResourceName; | ||
} |
@@ -150,3 +150,3 @@ "use strict"; | ||
type: 'value', | ||
key: expression.resource, | ||
key: this.mapResourceName(expression.resource), | ||
value: 'absent' | ||
@@ -170,4 +170,14 @@ }; | ||
}; | ||
C7nFilterBuilder.mapResourceName = function (name) { | ||
switch (name) { | ||
case 'instance-ids': | ||
return 'InstanceId'; | ||
case 'association-ids': | ||
return 'AssociationId'; | ||
default: | ||
return string_hepler_1.StringHelper.capitalizeFirstLetter(name); | ||
} | ||
}; | ||
return C7nFilterBuilder; | ||
}()); | ||
exports.C7nFilterBuilder = C7nFilterBuilder; |
{ | ||
"name": "@cloudchipr/cloudchipr-engine", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "Cloudchipr engine", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
114649
2642
2