@triptease/terra-ratchet
Advanced tools
Comparing version 0.47.36 to 0.48.37
{ | ||
"name": "@triptease/terra-ratchet", | ||
"version": "0.47.36", | ||
"version": "0.48.37", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -19,5 +19,5 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const runnables = sort((yield this.runnables.scripts()) | ||
.filter(s => !this.ignoreExtensions.some(extension => s.name.endsWith(extension)))); | ||
const executed = sort(yield this.executed.list()); | ||
const runnables = sort(deduplicate(yield this.runnables.scripts())) | ||
.filter(s => !this.ignoreExtensions.some(extension => s.name.endsWith(extension))); | ||
const executed = sort(deduplicate(yield this.executed.list())); | ||
this.logger.log(`Previously executed scripts ${executed.length}`); | ||
@@ -74,2 +74,11 @@ const zipped = (0, array_1.array)(runnables, (0, transducers_1.zip)(executed)); | ||
} | ||
function deduplicate(scripts) { | ||
return scripts.sort((0, collections_1.comparators)((0, collections_1.by)('name'), (0, collections_1.by)('hash'))).reduce((a, s) => { | ||
var _a; | ||
if (((_a = a[a.length - 1]) === null || _a === void 0 ? void 0 : _a.name) === s.name) | ||
return a; | ||
a.push(s); | ||
return a; | ||
}, []); | ||
} | ||
//# sourceMappingURL=TerraRatchet.js.map |
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
19455
357