Socket
Socket
Sign inDemoInstall

@triptease/terra-ratchet

Package Overview
Dependencies
9
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.45.34 to 0.46.35

24

FileRunnableScripts.js

@@ -6,5 +6,3 @@ "use strict";

const files_1 = require("@bodar/totallylazy/files");
const transducers_1 = require("@bodar/totallylazy/transducers");
const hash_1 = require("./hash");
const array_1 = require("@bodar/totallylazy/array");
class FileRunnableScripts {

@@ -15,6 +13,22 @@ constructor(directory) {

scripts() {
var e_1, _a;
return tslib_1.__awaiter(this, void 0, void 0, function* () {
return Promise.all(yield (0, array_1.array)(this.directory.children(), (0, transducers_1.map)((file) => tslib_1.__awaiter(this, void 0, void 0, function* () {
return { name: file.name, hash: (0, hash_1.hashSHA256)(yield file.content()) };
}))));
const result = [];
try {
for (var _b = tslib_1.__asyncValues(this.directory.children()), _c; _c = yield _b.next(), !_c.done;) {
const child = _c.value;
if (!(yield child.isDirectory)) {
const content = yield child.content();
result.push({ name: child.name, hash: (0, hash_1.hashSHA256)(content) });
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return result;
});

@@ -21,0 +35,0 @@ }

{
"name": "@triptease/terra-ratchet",
"version": "0.45.34",
"version": "0.46.35",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc