Socket
Socket
Sign inDemoInstall

@lingui/conf

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/conf - npm Package Compare versions

Comparing version 2.0.8 to 2.1.0

16

index.js

@@ -8,7 +8,4 @@ "use strict";

exports.getConfig = getConfig;
var path = require("path");
var chalk = require("chalk");
var pkgConf = require("pkg-conf");

@@ -27,5 +24,3 @@

return s.replace("<rootDir>", rootDir);
};
["srcPathDirs", "srcPathIgnorePatterns", "localeDir"].forEach(function (key) {
};["srcPathDirs", "srcPathIgnorePatterns", "localeDir"].forEach(function (key) {
var value = conf[key];

@@ -39,2 +34,3 @@

});
conf.rootDir = rootDir;

@@ -53,7 +49,9 @@ return conf;

};
var deprecatedConfig = {
fallbackLanguage: function fallbackLanguage(config) {
return " Option ".concat(chalk.bold("fallbackLanguage"), " was replaced by ").concat(chalk.bold("fallbackLocale"), "\n \n lingui-cli now treats your current configuration as:\n {\n ").concat(chalk.bold('"fallbackLocale"'), ": ").concat(chalk.bold("\"".concat(config.fallbackLanguage, "\"")), "\n }\n \n Please update your configuration.\n ");
return " Option " + chalk.bold("fallbackLanguage") + " was replaced by " + chalk.bold("fallbackLocale") + "\n \n lingui-cli now treats your current configuration as:\n {\n " + chalk.bold('"fallbackLocale"') + ": " + chalk.bold("\"" + config.fallbackLanguage + "\"") + "\n }\n \n Please update your configuration.\n ";
}
};
var configValidation = {

@@ -74,7 +72,9 @@ exampleConfig: defaults,

});
validate(raw, configValidation); // Use deprecated fallbackLanguage, if defined
validate(raw, configValidation);
// Use deprecated fallbackLanguage, if defined
raw.fallbackLocale = raw.fallbackLocale || raw.fallbackLanguage || "";
var rootDir = path.dirname(pkgConf.filepath(raw));
return replaceRootDir(raw, rootDir);
}
{
"name": "@lingui/conf",
"version": "2.0.8",
"version": "2.1.0",
"description": "Get lingui configuration from package.json",

@@ -22,4 +22,4 @@ "keywords": [

"chalk": "^2.3.0",
"jest-regex-util": "^22.1.0",
"jest-validate": "^22.1.2",
"jest-regex-util": "^23.0.0",
"jest-validate": "^23.0.1",
"pkg-conf": "^2.1.0"

@@ -26,0 +26,0 @@ },

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