Socket
Socket
Sign inDemoInstall

csval

Package Overview
Dependencies
9
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "csval",
"version": "1.0.5",
"version": "1.0.6",
"description": "Check CSV files against a set of validation rules.",

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

@@ -14,3 +14,5 @@ # csval

- Regex pattern matching
- Much more. Check the [JSON Schema reference](https://json-schema.org/understanding-json-schema/reference/index.html) for more information
- Much more. Check the [JSON Schema
reference](https://json-schema.org/understanding-json-schema/reference/index.html)
for more information

@@ -17,0 +19,0 @@ ## CLI Installation

@@ -10,4 +10,8 @@ const Enjoi = require("enjoi");

parsed.data.forEach((row, i) => {
Joi.validate(row, schema, err => {
if (err) errors.push(`Row ${i + 2}: ${err.message}`);
Joi.validate(row, schema, { abortEarly: false }, err => {
if (err) {
err.details.forEach(errorDetail => {
errors.push(`Row ${i + 2}: ${errorDetail.message}`);
});
}
});

@@ -14,0 +18,0 @@ });

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