New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

i18n-validate

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-validate - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3-next.056d542.0

dist/chunk-G4YG6XYC.js

12

dist/cli.js
#!/usr/bin/env node
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-STXOAPH2.js';
import { parseOptionsFile, log, parseFile, ValidationError, validateKey } from './chunk-G4YG6XYC.js';
import process from 'node:process';
import { Command } from 'commander';
import { Glob } from 'glob';
import { stream } from 'fast-glob';
var start = performance.now();
var command = new Command().version("1.4.2").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.3-next.056d542.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", () => {

@@ -23,2 +23,4 @@ console.log("");

options.inputs = [options.inputs];
if (!Array.isArray(options.exclude))
options.exclude = [options.exclude];
options.inputs = options.inputs.map((_input) => {

@@ -37,3 +39,3 @@ let input = _input.trim().replaceAll("\\", "/");

}
var glob = new Glob(options.inputs, {
var glob = stream(options.inputs, {
ignore: options.exclude

@@ -47,3 +49,3 @@ });

log(`Parsing ${file}`, "debug", options);
const translationNodes = parseFile(file, options);
const translationNodes = parseFile(file.toString(), options);
for (const node of translationNodes) {

@@ -50,0 +52,0 @@ if (!node.isStaticKey) {

@@ -1,3 +0,3 @@

export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-STXOAPH2.js';
export { ValidationError, parseFile, parseOptionsFile, validateKey } from './chunk-G4YG6XYC.js';
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.js.map
{
"name": "i18n-validate",
"version": "1.4.2",
"version": "1.4.3-next.056d542.0",
"description": "A cli tool to find invalid i18n keys, missing variables and many more",

@@ -33,18 +33,18 @@ "main": "./dist/index.js",

"commander": "^11.0.0",
"glob": "^10.3.3",
"typescript": "^5.1.6"
"fast-glob": "^3.3.1",
"typescript": "^5.2.2"
},
"devDependencies": {
"@favware/cliff-jumper": "^2.1.1",
"@favware/cliff-jumper": "^2.1.2",
"@favware/npm-deprecate": "^1.0.7",
"@types/node": "^20.4.2",
"@vitest/coverage-v8": "^0.33.0",
"@types/node": "^20.5.9",
"@vitest/coverage-v8": "^0.34.3",
"esbuild-plugin-version-injector": "^1.2.0",
"eslint": "^8.45.0",
"eslint-config-mahir": "^0.0.29",
"eslint": "^8.48.0",
"eslint-config-mahir": "^0.0.31",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
"tsup": "^7.1.0",
"vitest": "^0.33.0"
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"tsup": "^7.2.0",
"vitest": "^0.34.3"
},

@@ -51,0 +51,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc