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

@best/config

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@best/config - npm Package Compare versions

Comparing version 8.1.3 to 9.0.0

14

build/index.js

@@ -56,4 +56,4 @@ "use strict";

benchmarkOnClient: options.benchmarkOnClient,
benchmarkOutput: normalize_1.normalizeRootDirPattern(options.benchmarkOutput, options.rootDir),
benchmarkCustomAssets: normalize_1.normalizeRootDirPattern(options.benchmarkCustomAssets, options.rootDir),
benchmarkOutput: (0, normalize_1.normalizeRootDirPattern)(options.benchmarkOutput, options.rootDir),
benchmarkCustomAssets: (0, normalize_1.normalizeRootDirPattern)(options.benchmarkCustomAssets, options.rootDir),
testMatch: options.testMatch,

@@ -66,5 +66,5 @@ testPathIgnorePatterns: options.testPathIgnorePatterns,

async function readConfig(cliOptions, packageRoot, parentConfigPath) {
const configPath = resolve_config_1.resolveConfigPath(packageRoot, process.cwd());
const userConfig = resolve_config_1.readConfigAndSetRootDir(configPath);
const options = normalize_1.normalizeConfig(userConfig, cliOptions);
const configPath = (0, resolve_config_1.resolveConfigPath)(packageRoot, process.cwd());
const userConfig = (0, resolve_config_1.readConfigAndSetRootDir)(configPath);
const options = (0, normalize_1.normalizeConfig)(userConfig, cliOptions);
let gitConfig;

@@ -74,3 +74,3 @@ // If we have a parent Config path, we are in a nested/project best config

try {
gitConfig = await git_1.getGitInfo(options.rootDir);
gitConfig = await (0, git_1.getGitInfo)(options.rootDir);
}

@@ -114,3 +114,3 @@ catch (e) {

const parsedConfigs = await Promise.all(projects.map((root) => readConfig(cliOptions, root, configPath)));
resolve_config_1.ensureNoDuplicateConfigs(parsedConfigs, projects);
(0, resolve_config_1.ensureNoDuplicateConfigs)(parsedConfigs, projects);
configs = parsedConfigs.map(({ projectConfig }) => projectConfig);

@@ -117,0 +117,0 @@ }

@@ -32,3 +32,3 @@ "use strict";

],
cacheDirectory: utils_1.cacheDirectory(),
cacheDirectory: (0, utils_1.cacheDirectory)(),
useHttp: false,

@@ -35,0 +35,0 @@ assets: [],

@@ -34,3 +34,3 @@ "use strict";

async function getGitInfo(baseDir) {
const git = simple_git_1.simpleGit(baseDir);
const git = (0, simple_git_1.simpleGit)(baseDir);
const isRepo = await git.checkIsRepo();

@@ -37,0 +37,0 @@ if (isRepo) {

@@ -20,3 +20,3 @@ "use strict";

function normalizeModulePathPatterns(options, key) {
return options[key].map((pattern) => regex_util_1.replacePathSepForRegex(normalizeRootDirPattern(pattern, options.rootDir)));
return options[key].map((pattern) => (0, regex_util_1.replacePathSepForRegex)(normalizeRootDirPattern(pattern, options.rootDir)));
}

@@ -23,0 +23,0 @@ function normalizeRunner(runner, runners) {

@@ -7,3 +7,3 @@ {

},
"version": "8.1.3",
"version": "9.0.0",
"description": "Best config",

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

"dependencies": {
"@best/regex-util": "8.1.3",
"@best/utils": "8.1.3",
"@best/regex-util": "9.0.0",
"@best/utils": "9.0.0",
"chalk": "~2.4.2",
"simple-git": "3.16.1"
"simple-git": "3.18.0"
},

@@ -23,0 +23,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