Socket
Socket
Sign inDemoInstall

cosmiconfig

Package Overview
Dependencies
11
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md
# Changelog
## 2.0.1
- Fixed: no more infinite loop in Windows.
## 2.0.0

@@ -4,0 +8,0 @@

18

lib/createExplorer.js

@@ -50,5 +50,2 @@ 'use strict';

: path.dirname(absoluteSearchPath);
if (directoryCache && directoryCache.has(directory)) {
return directoryCache.get(directory);
}
return searchDirectory(directory);

@@ -79,3 +76,7 @@ });

const nextDirectory = joinPath(splitPath(directory).slice(0, -1));
const splitPath = directory.split(path.sep);
const nextDirectory = (splitPath.length > 1)
? splitPath.slice(0, -1).join(path.sep)
: null;
if (!nextDirectory || directory === options.stopDir) return null;

@@ -108,13 +109,4 @@

function splitPath(x) {
return path.resolve(x || '').split(path.sep);
}
function joinPath(parts) {
if (!parts) return parts;
return parts.join(path.sep);
}
function identityPromise(x) {
return Promise.resolve(x);
}
{
"name": "cosmiconfig",
"version": "2.0.0",
"version": "2.0.1",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc