We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e9d55 commit c247a44Copy full SHA for c247a44
bin/index.js
@@ -25,10 +25,11 @@ const REGEX_EMAIL_VARIATIONS = /[.+]/g
25
const normalizeEmail = email =>
26
email.toLowerCase().replace(REGEX_EMAIL_VARIATIONS, '')
27
28
-const isSameEmail = (email1, email2) =>
+const isSameEmail = (email1 = '', email2 = '') =>
29
normalizeEmail(email1) === normalizeEmail(email2)
30
31
const processError = err => {
32
+ console.log('err', err)
33
console.log(chalk.red(err.message || err))
34
process.exit(1)
35
}
@@ -94,7 +95,7 @@ const getContributors = async () => {
94
95
96
if (stderr) return processError(stderr)
97
- const { author: pkgAuthor } = require(pkgPath)
98
+ const { author: pkgAuthor = {} } = require(pkgPath)
99
100
const contributors = stdout
101
.split(EOL)
0 commit comments