Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lingui/conf

Package Overview
Dependencies
Maintainers
1
Versions
153
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.7.4 to 2.8.0

18

index.js

@@ -18,2 +18,3 @@ "use strict";

var path = require("path");
var fs = require("fs");
var chalk = require("chalk");

@@ -84,2 +85,12 @@ var cosmiconfig = require("cosmiconfig");

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 getConfig() {

@@ -89,5 +100,8 @@ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},

var configExplorer = cosmiconfig("lingui");
var defaultRootDir = cwd || process.cwd();
var configExplorer = cosmiconfig("lingui");
var result = configExplorer.searchSync(defaultRootDir);
var configPath = configFilePathFromArgs();
var result = configPath == null ? configExplorer.searchSync(defaultRootDir) : configExplorer.loadSync(configPath);
var raw = (0, _extends3.default)({}, defaultConfig, result ? result.config : {});

@@ -94,0 +108,0 @@

10

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

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

"chalk": "^2.3.0",
"cosmiconfig": "^5.0.6",
"jest-regex-util": "^23.3.0",
"jest-validate": "^23.5.0",
"pkg-conf": "^2.1.0"
"cosmiconfig": "^5.2.1",
"jest-regex-util": "^24.3.0",
"jest-validate": "^24.8.0",
"pkg-conf": "^3.1.0"
},

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

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