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

awsass

Package Overview
Dependencies
Maintainers
0
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.27 to 0.0.28

2

awsass.js

@@ -67,3 +67,3 @@ const { program } = require("commander");

const resultFunc = function (err, data) {
console.log(err ? err : data);
console.dir(err ? err : data, {'maxArrayLength': null});
process.exit(err ? 1 : 0);

@@ -70,0 +70,0 @@ };

{
"name": "awsass",
"description": "AWSASS is an assistant to AWS, mostly for running better scripts.",
"version": "0.0.27",
"version": "0.0.28",
"author": "Jsonize",

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

@@ -54,3 +54,21 @@ const AWS = require("aws-sdk");

const ecs = new AWS.ECS({apiVersion: '2014-11-13'});
ecs.listTaskDefinitions(function (err, listTaskDefinitions) {
let iterDefs = function (nextToken, cb) {
ecs.listTaskDefinitions({nextToken: nextToken}, function (err, listTaskDefinitions) {
if (err) {
cb(err);
return;
}
if (listTaskDefinitions.nextToken)
iterDefs(listTaskDefinitions.nextToken, function (err, nextListTaskDefinitions) {
if (err) {
cb(err);
return;
}
cb(undefined, {taskDefinitionArns: listTaskDefinitions.taskDefinitionArns.concat(nextListTaskDefinitions.taskDefinitionArns)});
});
else
cb(undefined, listTaskDefinitions);
});
};
iterDefs(undefined, function (err, listTaskDefinitions) {
if (err) {

@@ -57,0 +75,0 @@ callback(err);

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