Skip to content

Commit

Permalink
fix(npm-conf): Port kevva/npm-conf/pull/12 (@zkochan)
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 19, 2018
1 parent 6a8aa83 commit d58b741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/npm-conf/lib/parse-field.js
Expand Up @@ -64,7 +64,8 @@ function parseField(input, key) {
field = path.resolve(field);
}

if (isNumber && !field.isNan()) {
// eslint-disable-next-line no-restricted-globals
if (isNumber && !isNaN(field)) {
field = Number(field);
}

Expand Down

0 comments on commit d58b741

Please sign in to comment.