cosmiconfig
Advanced tools
Comparing version 5.0.2 to 5.0.3
# Changelog | ||
## 5.0.3 | ||
- Docs: Minor corrections to documentation. *Released to update package documentation on npm*. | ||
## 5.0.2 | ||
@@ -4,0 +8,0 @@ |
@@ -265,3 +265,3 @@ // | ||
if (!filepath) { | ||
throw new Error('load and loadSync must be pass a non-empty string'); | ||
throw new Error('load and loadSync must pass a non-empty string'); | ||
} | ||
@@ -268,0 +268,0 @@ } |
{ | ||
"name": "cosmiconfig", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -168,3 +168,3 @@ # cosmiconfig | ||
```js | ||
const result = explorer.search([searchFrom]); | ||
const result = explorer.searchSync([searchFrom]); | ||
``` | ||
@@ -179,3 +179,3 @@ | ||
```js | ||
explorer.load([loadPath]).then(result => {..}) | ||
explorer.load(loadPath).then(result => {..}) | ||
``` | ||
@@ -196,3 +196,3 @@ | ||
```js | ||
const result = explorer.load([loadPath]); | ||
const result = explorer.loadSync(loadPath); | ||
``` | ||
@@ -199,0 +199,0 @@ |
40036