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

@triptease/terra-ratchet

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@triptease/terra-ratchet - npm Package Compare versions

Comparing version 0.47.36 to 0.48.37

2

package.json
{
"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
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