Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit648b21b

Browse files
committed
fix: validate only known options
1 parent0c25109 commit648b21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/verify-config.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const VALIDATORS = {
99
pkgRoot:isNonEmptyString,
1010
};
1111

12-
module.exports=options=>{
13-
consterrors=Object.entries(options).reduce(
12+
module.exports=({npmPublish, tarballDir, pkgRoot})=>{
13+
consterrors=Object.entries({npmPublish, tarballDir, pkgRoot}).reduce(
1414
(errors,[option,value])=>
1515
!isUndefined(value)&&value!==false&&!VALIDATORS[option](value)
1616
?[...errors,getError(`EINVALID${option.toUpperCase()}`,{[option]:value})]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp