cosmiconfig
Advanced tools
Comparing version 5.0.4 to 5.0.5
# Changelog | ||
## 5.0.5 | ||
- Fixed: `load` and `loadSync` work with paths relative to `process.cwd()`. | ||
## 5.0.4 | ||
@@ -4,0 +8,0 @@ |
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40512
427
495