i18n-validate
Advanced tools
Comparing version 1.4.1-next.a1e1db4.0 to 1.4.1
@@ -5,2 +5,15 @@ # Changelog | ||
## [i18n-validate@1.4.1](https://github.com/imranbarbhuiya/i18n-validate/compare/v1.2.1...i18n-validate@1.4.1) - (2023-07-19) | ||
### 🐛 Bug Fixes | ||
- Jsconfig url ([708b1b0](https://github.com/imranbarbhuiya/i18n-validate/commit/708b1b082b99889d1293ac07d2db8d66aa2800aa)) | ||
- Add file count ([2b2002c](https://github.com/imranbarbhuiya/i18n-validate/commit/2b2002cdca4ea31edc76bb2d018c378a161b7ee5)) | ||
- Add time taken log ([91a1533](https://github.com/imranbarbhuiya/i18n-validate/commit/91a153309bbfef7450b46cced9091a68ccb6e9f8)) | ||
### 🚀 Features | ||
- Support dynamic key using ts type ([3673637](https://github.com/imranbarbhuiya/i18n-validate/commit/36736374577a15030a80929870de98fb43d520a7)) | ||
- Support ternary and string concatenation in key ([943682f](https://github.com/imranbarbhuiya/i18n-validate/commit/943682f7aefac0da152ae2ae240c1c314c6d1f16)) | ||
## [i18n-validate@1.4.0](https://github.com/imranbarbhuiya/i18n-validate/compare/v1.2.1...i18n-validate@1.4.0) - (2023-07-18) | ||
@@ -7,0 +20,0 @@ |
#!/usr/bin/env node | ||
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-3VN7B33Q.js'; | ||
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-ALSH3FRN.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-next.a1e1db4.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"); | ||
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"); | ||
command.on("--help", () => { | ||
@@ -78,3 +78,3 @@ console.log(""); | ||
log( | ||
`Found ${errorCount + warningCount} issues${errorCount || warningCount ? ` (${errorCount} errors and ${warningCount} warnings)` : ""}.Validated ${fileCount} file${fileCount > 1 ? "s" : ""} in ${timeTaken}`, | ||
`Found ${errorCount + warningCount} issues${errorCount || warningCount ? ` (${errorCount} errors and ${warningCount} warnings)` : ""}. Checked ${fileCount} file${fileCount > 1 ? "s" : ""} in ${timeTaken}`, | ||
"info", | ||
@@ -81,0 +81,0 @@ options |
@@ -1,3 +0,3 @@ | ||
export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-3VN7B33Q.js'; | ||
export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-ALSH3FRN.js'; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "i18n-validate", | ||
"version": "1.4.1-next.a1e1db4.0", | ||
"version": "1.4.1", | ||
"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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
59362
529
0
1
1