@modernpoacher/deps 2.0.11 → 2.0.13

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/bin/deps.sh CHANGED
@@ -14,6 +14,7 @@ fi
14
14
  EXP="[-0-9a-zA-Z]*$"
15
15
 
16
16
  function update {
17
+ eval $(ssh-agent)
17
18
  git checkout $default_branch
18
19
  git pull
19
20
 
@@ -25,6 +26,7 @@ function update {
25
26
  git commit -m "Updated \`package.json\` &/ \`package-lock.json\`"
26
27
  git push
27
28
  git push --tags
29
+ eval $(ssh-agent -k)
28
30
  }
29
31
 
30
32
  function can_update {
package/bin/push.sh CHANGED
@@ -44,9 +44,11 @@ function checkout_default_branch {
44
44
  }
45
45
 
46
46
  function update {
47
+ eval $(ssh-agent)
47
48
  git pull
48
49
  git push
49
50
  git push --tags
51
+ eval $(ssh-agent -k)
50
52
  }
51
53
 
52
54
  function execute {
package/bin/wipe.sh CHANGED
@@ -44,10 +44,12 @@ function checkout_default_branch {
44
44
  }
45
45
 
46
46
  function update {
47
+ eval $(ssh-agent)
47
48
  git pull
48
49
  git branch --merged | egrep -v "(^\*|$default_branch)" | xargs git branch -d
49
50
  git remote prune origin
50
51
  git gc --aggressive --prune=now
52
+ eval $(ssh-agent -k)
51
53
  }
52
54
 
53
55
  function execute {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -63,9 +63,9 @@
63
63
  "@babel/preset-env": "^7.20.2",
64
64
  "@babel/register": "^7.18.9",
65
65
  "chai": "^4.3.7",
66
- "core-js": "^3.27.2",
66
+ "core-js": "^3.28.0",
67
67
  "cross-env": "^7.0.3",
68
- "eslint": "^8.33.0",
68
+ "eslint": "^8.34.0",
69
69
  "eslint-config-standard": "^17.0.0",
70
70
  "eslint-plugin-import": "^2.27.5",
71
71
  "eslint-plugin-node": "^11.1.0",
@@ -252,7 +252,11 @@ export function gitPull (directory = DIRECTORY) {
252
252
 
253
253
  return (
254
254
  new Promise((resolve, reject) => {
255
- const commands = 'git pull'
255
+ const commands = `
256
+ eval $(ssh-agent)
257
+ git pull
258
+ eval $(ssh-agent -k)
259
+ `.trim()
256
260
 
257
261
  const {
258
262
  stdout,
@@ -287,7 +291,11 @@ export function gitPush (directory = DIRECTORY) {
287
291
 
288
292
  return (
289
293
  new Promise((resolve, reject) => {
290
- const commands = 'git push'
294
+ const commands = `
295
+ eval $(ssh-agent)
296
+ git push
297
+ eval $(ssh-agent -k)
298
+ `.trim()
291
299
 
292
300
  const {
293
301
  stdout,
@@ -322,7 +330,11 @@ export function gitPushTags (directory = DIRECTORY) {
322
330
 
323
331
  return (
324
332
  new Promise((resolve, reject) => {
325
- const commands = 'git push --tags'
333
+ const commands = `
334
+ eval $(ssh-agent)
335
+ git push --tags
336
+ eval $(ssh-agent -k)
337
+ `.trim()
326
338
 
327
339
  const {
328
340
  stdout,
@@ -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