@modernpoacher/deps 2.0.10 → 2.0.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -241,7 +241,22 @@ export const getIgnore = ({ ignore = false } = {}) => ignore === true
241
241
  *
242
242
  * @return {String}
243
243
  */
244
- export const getAuthor = ({ author } = {}) => author
244
+ export const getAuthor = ({ author } = {}) => {
245
+ if ((author || false) instanceof Object) {
246
+ const {
247
+ name = '',
248
+ email = ''
249
+ } = author
250
+
251
+ return (
252
+ name && email
253
+ ? `${name} <${email}>`.trim()
254
+ : null
255
+ )
256
+ }
257
+
258
+ return author || null
259
+ }
245
260
 
246
261
  /**
247
262
  * @function isPreRelease