Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 70f6fbb

Browse files
committed
refactor(pkginfo): output to be only what is available, eslint changes
1 parent 3aaf8d1 commit 70f6fbb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ module.exports = function pkginfo(
7171
}
7272

7373
const output = {}
74-
for (let option of opts) {
75-
let value = allProps[option]
76-
value && (output[option] = value)
74+
for (const option of opts) {
75+
const value = allProps[option]
76+
if (value) {
77+
output[option] = value
78+
}
7779
}
7880
return output
7981
})

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4410,6 +4410,11 @@ prepend-http@^2.0.0:
44104410
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
44114411
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
44124412

4413+
prettier@^1.16.4:
4414+
version "1.16.4"
4415+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
4416+
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
4417+
44134418
pretty-format@^24.0.0:
44144419
version "24.0.0"
44154420
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.0.0.tgz#cb6599fd73ac088e37ed682f61291e4678f48591"

0 commit comments

Comments
 (0)