Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "awsass", | ||
"description": "AWSASS is an assistant to AWS, mostly for running better scripts.", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"author": "Jsonize", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsonize/awsass", |
@@ -514,2 +514,12 @@ const AWS = require("aws-sdk"); | ||
let smallestVersionId = resourcesResponse.items.find(item => item.path === smallestVersion.proxyKey); | ||
let parent = undefined; | ||
let childCount = 0; | ||
resourcesResponse.items.forEach(item => { | ||
if (item.id === smallestVersionId.parentId) | ||
parent = item; | ||
if (item.parentId === smallestVersionId.parentId) | ||
childCount++; | ||
}); | ||
if (parent && childCount === 1) | ||
smallestVersionId = parent; | ||
if (smallestVersionId) { | ||
@@ -516,0 +526,0 @@ console.log("Removing smallest version", smallestVersion, smallestVersionId); |
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
32298
643