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

awsass

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awsass - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

2

package.json
{
"name": "awsass",
"description": "AWSASS is an assistant to AWS, mostly for running better scripts.",
"version": "0.0.21",
"version": "0.0.22",
"author": "Jsonize",

@@ -6,0 +6,0 @@ "repository": "https://github.com/jsonize/awsass",

@@ -361,12 +361,7 @@ const AWS = require("aws-sdk");

const cloudwatchlogs = new AWS.CloudWatchLogs({apiVersion: '2014-03-28'});
cloudwatchlogs.deleteLogGroup({
logGroupName: "/ecs/" + ephemeralId
}, function (err, logGroupResult) {
if (err) {
callback(err);
return;
}
ecs.deregisterTaskDefinition({
taskDefinition: ephemeralId + ":1"
}, function (err, deregisterTaskDef) {
const f = function () {
ecr.deleteRepository({
repositoryName: ephemeralId,
force: true
}, function (err, deleteRepoResult) {
if (err) {

@@ -376,10 +371,5 @@ callback(err);

}
ecr.deleteRepository({
repositoryName: ephemeralId,
force: true
}, function (err, deleteRepoResult) {
if (err) {
callback(err);
return;
}
cloudwatchlogs.deleteLogGroup({
logGroupName: "/ecs/" + ephemeralId
}, function (err, logGroupResult) {
callback(undefined, {

@@ -392,2 +382,26 @@ ephemeralId: ephemeralId,

});
};
ecs.listTaskDefinitions({
familyPrefix: ephemeralId
}, function (err, deregisterTaskDefs) {
if (err) {
callback(err);
return;
}
let allCount = 0;
let counter = 0;
deregisterTaskDefs.taskDefinitionArns.forEach(arn => {
if (arn.indexOf(ephemeralId) >= 0) {
allCount++;
ecs.deregisterTaskDefinition({
taskDefinition: arn
}, function () {
counter++;
if (counter === allCount)
f();
});
}
});
if (allCount === 0)
f();
});

@@ -394,0 +408,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