Socket
Socket
Sign inDemoInstall

cosmiconfig

Package Overview
Dependencies
9
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.4 to 5.0.5

4

CHANGELOG.md
# Changelog
## 5.0.5
- Fixed: `load` and `loadSync` work with paths relative to `process.cwd()`.
## 5.0.4

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

7

dist/createExplorer.js

@@ -276,3 +276,3 @@ //

.then(content => {
return this.createCosmiconfigResult(filepath, content);
return this.createCosmiconfigResult(absoluteFilePath, content);
})

@@ -289,3 +289,6 @@ .then(this.config.transform);

const content = readFile.sync(absoluteFilePath, { throwNotFound: true });
const result = this.createCosmiconfigResultSync(filepath, content);
const result = this.createCosmiconfigResultSync(
absoluteFilePath,
content
);
return this.config.transform(result);

@@ -292,0 +295,0 @@ });

{
"name": "cosmiconfig",
"version": "5.0.4",
"version": "5.0.5",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module",

@@ -66,3 +66,4 @@ "main": "dist/index.js",

"text",
"html"
"html",
"lcov"
],

@@ -69,0 +70,0 @@ "coverageThreshold": {

# cosmiconfig
[![Build Status](https://img.shields.io/travis/davidtheclark/cosmiconfig/master.svg?label=unix%20build)](https://travis-ci.org/davidtheclark/cosmiconfig) [![Build status](https://img.shields.io/appveyor/ci/davidtheclark/cosmiconfig/master.svg?label=windows%20build)](https://ci.appveyor.com/project/davidtheclark/cosmiconfig/branch/master)
[![codecov](https://codecov.io/gh/davidtheclark/cosmiconfig/branch/master/graph/badge.svg)](https://codecov.io/gh/davidtheclark/cosmiconfig)

@@ -5,0 +6,0 @@ Cosmiconfig searches for and loads configuration for your program.

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