@modernpoacher/deps 2.0.11 → 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.11",
3
+ "version": "2.0.12",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -248,7 +248,11 @@ export const getAuthor = ({ author } = {}) => {
248
248
  email = ''
249
249
  } = author
250
250
 
251
- return `${name} ${email}`.trim() || null
251
+ return (
252
+ name && email
253
+ ? `${name} <${email}>`.trim()
254
+ : null
255
+ )
252
256
  }
253
257
 
254
258
  return author || null