@br-validators/cli
Advanced tools
+20
-3
@@ -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": { |
+2
-0
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
125542
0.88%3725
0.92%0
-100%113
1.8%+ Added
- Removed
Updated