@modernpoacher/deps 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/common/index.mjs +12 -1
package/package.json
CHANGED
package/src/common/index.mjs
CHANGED
|
@@ -241,7 +241,18 @@ export const getIgnore = ({ ignore = false } = {}) => ignore === true
|
|
|
241
241
|
*
|
|
242
242
|
* @return {String}
|
|
243
243
|
*/
|
|
244
|
-
export const getAuthor = ({ author } = {}) =>
|
|
244
|
+
export const getAuthor = ({ author } = {}) => {
|
|
245
|
+
if ((author || false) instanceof Object) {
|
|
246
|
+
const {
|
|
247
|
+
name = '',
|
|
248
|
+
email = ''
|
|
249
|
+
} = author
|
|
250
|
+
|
|
251
|
+
return `${name} ${email}`.trim() || null
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return author || null
|
|
255
|
+
}
|
|
245
256
|
|
|
246
257
|
/**
|
|
247
258
|
* @function isPreRelease
|