@modernpoacher/deps 2.2.9 → 2.2.10

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.
Files changed (2) hide show
  1. package/bin/bash/wipe.sh +5 -1
  2. package/package.json +2 -2
package/bin/bash/wipe.sh CHANGED
@@ -16,6 +16,10 @@ source_home "$BIN"
16
16
 
17
17
  EXP="[-0-9a-zA-Z]*$"
18
18
 
19
+ function has_git {
20
+ [ ! -z $(git status 2> /dev/null) ]
21
+ }
22
+
19
23
  function report {
20
24
  local directory_name
21
25
 
@@ -37,7 +41,7 @@ function checkout_default_branch {
37
41
 
38
42
  if [ -z "$default_branch" ]
39
43
  then
40
- default_branch=$(git remote show origin | awk '/HEAD branch/ {print $NF}')
44
+ default_branch=$(git remote show origin 2> /dev/null | awk '/HEAD branch/ {print $NF}')
41
45
 
42
46
  if [ -z "$default_branch" ]
43
47
  then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -65,7 +65,7 @@
65
65
  "@babel/preset-env": "^7.26.0",
66
66
  "@babel/register": "^7.25.9",
67
67
  "chai": "^5.1.2",
68
- "core-js": "^3.39.0",
68
+ "core-js": "^3.40.0",
69
69
  "cross-env": "^7.0.3",
70
70
  "eslint": "8.57.1",
71
71
  "eslint-config-standard": "^17.1.0",