Socket
Socket
Sign inDemoInstall

@lingui/conf

Package Overview
Dependencies
5
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.8.1 to 2.8.2

16

index.js

@@ -84,10 +84,4 @@ "use strict";

function configFilePathFromArgs() {
var configIndex = process.argv.indexOf("--config");
if (configIndex >= 0 && process.argv.length > configIndex && fs.existsSync(process.argv[configIndex + 1])) {
return process.argv[configIndex + 1];
}
return null;
function configExists(path) {
return path && fs.existsSync(path);
}

@@ -97,9 +91,9 @@

var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
cwd = _ref.cwd;
cwd = _ref.cwd,
configPath = _ref.configPath;
var configExplorer = cosmiconfig("lingui");
var defaultRootDir = cwd || process.cwd();
var configPath = configFilePathFromArgs();
var result = configPath == null ? configExplorer.searchSync(defaultRootDir) : configExplorer.loadSync(configPath);
var result = configExists(configPath) ? configExplorer.loadSync(configPath) : configExplorer.searchSync(defaultRootDir);

@@ -106,0 +100,0 @@ var raw = (0, _extends3.default)({}, defaultConfig, result ? result.config : {});

{
"name": "@lingui/conf",
"version": "2.8.1",
"version": "2.8.2",
"description": "Get lingui configuration from package.json",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc