require-one-of
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,14 @@ # Change Log | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/Kikobeats/require-one-of/compare/v1.0.1...v1.0.3) (2019-01-14) | ||
### Bug Fixes | ||
* don't cache cwd directory ([86ee294](https://github.com/Kikobeats/require-one-of/commit/86ee294)) | ||
* ensure to resolve starting from cwd ([9b0a877](https://github.com/Kikobeats/require-one-of/commit/9b0a877)) | ||
* use minus name ([610ac28](https://github.com/Kikobeats/require-one-of/commit/610ac28)) | ||
<a name="1.0.2"></a> | ||
@@ -7,0 +19,0 @@ ## [1.0.2](https://github.com/Kikobeats/require-one-of/compare/v1.0.1...v1.0.2) (2019-01-14) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://documentup.com/Kikobeats/require-one-of", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -6,4 +6,2 @@ 'use strict' | ||
const resolveCwd = resolveFrom.silent.bind(resolveFrom, process.cwd()) | ||
const cache = {} | ||
@@ -22,3 +20,3 @@ | ||
for (const module of modules) { | ||
const modulePath = resolveCwd(module) | ||
const modulePath = resolveFrom.silent(process.cwd(), module) | ||
if (modulePath) return require(modulePath) | ||
@@ -25,0 +23,0 @@ } |
7975
23