i18n-validate
Advanced tools
Comparing version 1.4.1 to 1.4.2-next.09ac1d2.0
#!/usr/bin/env node | ||
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-ALSH3FRN.js'; | ||
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-STXOAPH2.js'; | ||
import process from 'node:process'; | ||
@@ -8,3 +8,3 @@ import { Command } from 'commander'; | ||
var start = performance.now(); | ||
var command = new Command().version("1.4.1").usage("[options] <file ...>").option("-c, --config <config>", "Path to the config file", "./i18n-validate.json").option("--log-level <logLevel>", "Log level").option("--exclude <exclude...>", "Exclude files from parsing").option("--exit-on-error", "Exit immediately if an error is found"); | ||
var command = new Command().version("1.4.2-next.09ac1d2.0").usage("[options] <file ...>").option("-c, --config <config>", "Path to the config file", "./i18n-validate.json").option("--log-level <logLevel>", "Log level").option("--exclude <exclude...>", "Exclude files from parsing").option("--exit-on-error", "Exit immediately if an error is found"); | ||
command.on("--help", () => { | ||
@@ -60,2 +60,3 @@ console.log(""); | ||
} else if (node.key && node.namespace) { | ||
log(`Validating ${node.key} in ${node.namespace}`, "debug", options); | ||
const valid = await validateKey(node, options); | ||
@@ -62,0 +63,0 @@ if (!valid) |
@@ -1,3 +0,3 @@ | ||
export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-ALSH3FRN.js'; | ||
export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-STXOAPH2.js'; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "i18n-validate", | ||
"version": "1.4.1", | ||
"version": "1.4.2-next.09ac1d2.0", | ||
"description": "A cli tool to find invalid i18n keys, missing variables and many more", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59876
533
1
2