🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@br-validators/cli

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@br-validators/cli - npm Package Compare versions

Comparing version
0.12.0-alpha.3
to
1.0.0
+20
-3
dist/run-captured.js

@@ -733,2 +733,8 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {

}
function boletoSuccessMeta(result) {
if (result.format === "arrecadacao") {
return { segment: result.segment, valueType: result.valueType };
}
return { situacao: result.situacao };
}
function printBoletoValidation(result, options, io = { stdout: [], stderr: [] }) {

@@ -743,3 +749,3 @@ if (options.json) {

format: result.format,
situacao: result.situacao,
...boletoSuccessMeta(result),
...options.source ? { source: options.source } : {}

@@ -765,3 +771,8 @@ } : {

io.stdout.push(`format: ${result.format}`);
io.stdout.push(`situacao: ${result.situacao}`);
if (result.format === "arrecadacao") {
io.stdout.push(`segment: ${result.segment}`);
io.stdout.push(`valueType: ${result.valueType}`);
} else {
io.stdout.push(`situacao: ${result.situacao}`);
}
if (options.source) {

@@ -1192,3 +1203,9 @@ io.stdout.push(`source: ${options.source}`);

"inscricao-estadual",
"titulo-eleitor"
"titulo-eleitor",
"pix",
"nfe-chave",
"brcode",
"boleto",
"boleto-arrecadacao",
"inscricao-estadual-produtor-rural"
];

@@ -1195,0 +1212,0 @@ function isGeneratableType(type) {

+2
-2
{
"name": "@br-validators/cli",
"version": "0.12.0-alpha.3",
"version": "1.0.0",
"description": "CLI for @br-validators/core — CPF, CNPJ, NF-e, IE, PIX, boleto + detect/sanitize/generate",

@@ -48,3 +48,3 @@ "license": "MIT",

"commander": "^13.1.0",
"@br-validators/core": "0.12.0-alpha.3"
"@br-validators/core": "1.0.0"
},

@@ -51,0 +51,0 @@ "devDependencies": {

@@ -77,2 +77,4 @@ # @br-validators/cli

> **Library-only platform APIs:** `mask`, `compare`, `batch`, and `diff` are available via `@br-validators/core` subpaths — no dedicated CLI commands yet.
```bash

@@ -79,0 +81,0 @@ br-validators detect '123.456.789-09' --json

Sorry, the diff of this file is too big to display