Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ctrf

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ctrf - npm Package Compare versions

Comparing version
0.0.9
to
0.0.10
+10
-2
dist/merge.js

@@ -28,10 +28,18 @@ "use strict";

files.forEach((file) => {
console.log('Found CTRF report file:', file);
console.log('Found file:', file);
});
const ctrfReportFiles = files.filter((file) => {
try {
if (path_1.default.extname(file) !== '.json') {
console.log(`Skipping non-CTRF file: ${file}`);
return false;
}
const filePath = path_1.default.join(directoryPath, file);
const fileContent = fs_1.default.readFileSync(filePath, 'utf8');
const jsonData = JSON.parse(fileContent);
return jsonData.hasOwnProperty('results');
if (!jsonData.hasOwnProperty('results')) {
console.log(`Skipping non-CTRF file: ${file}`);
return false;
}
return true;
}

@@ -38,0 +46,0 @@ catch (error) {

+1
-1
{
"name": "ctrf",
"version": "0.0.9",
"version": "0.0.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,24 +5,8 @@ # CTRF CLI

⭐ **If you find this project useful, consider giving it a GitHub star** ⭐
## Help us grow CTRF
It means a lot to us and helps us grow this open source library.
⭐ **If you find this project useful, please consider following the [CTRF organisation](https://github.com/ctrf-io) and giving this repository a star** ⭐
## We need your help
**It means a lot to us and helps us grow this open source library.**
We believe CTRF can save **a lot** of time for engineers, a single data serialisation report, well structured, community driven and works with any framework. For over 30 years software engineers have used a de facto data serialisation report, you know the one! But we feel it’s time to modernise.
The only way we can grow CTRF is with your help and the support of the software engineering community.
## How can you help?
- Join and build with us! We are looking for [contributors](https://github.com/ctrf-io), get involved in this early stage project. All contributions are welcome.
- Give this repository a star ⭐⭐⭐⭐⭐⭐
- Follow the CTRF [GitHub organisation](https://github.com/ctrf-io)
- Clap for our [Medium articles](https://medium.com/@ma11hewthomas) (30 times each) 👏
- Share, share share! Discord, Reddit, Twitter, LinkedIn, Slack, Teams, whereever! - please share our [libraries](https://github.com/orgs/ctrf-io/repositories), our [homepage](https://www.ctrf.io/), our [Medium articles](https://medium.com/@ma11hewthomas)
- Maybe even write a blog about us!
- Try our [tools](https://github.com/orgs/ctrf-io/repositories)
**Thank you so much!!**
## Utilities

@@ -29,0 +13,0 @@