@renault-digital/bash-base 2.4.0 → 2.4.1

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/bash-base CHANGED
@@ -1654,7 +1654,7 @@ function confirm_to_continue() {
1654
1654
  # @EXAMPLES
1655
1655
  # wait_for 'test -f /tmp/output.txt' 'file existed' 3
1656
1656
  # @SEE_ALSO
1657
- # confirm_to_continue, stop_if_failed, is_http_ok
1657
+ # confirm_to_continue, stop_if_failed
1658
1658
  function wait_for() {
1659
1659
  local predicate="${1}"
1660
1660
  local subject="${2-${predicate}}"
@@ -1541,7 +1541,7 @@ wait_for 'test -f /tmp/output.txt' 'file existed' 3
1541
1541
  ```
1542
1542
 
1543
1543
  ##### SEE_ALSO
1544
- confirm_to_continue, stop_if_failed, is_http_ok
1544
+ confirm_to_continue, stop_if_failed
1545
1545
 
1546
1546
  ---
1547
1547
 
package/man/bash-base.1 CHANGED
@@ -1914,7 +1914,7 @@ wait_for \[aq]test -f /tmp/output.txt\[aq] \[aq]file existed\[aq] 3
1914
1914
  .fi
1915
1915
  .SS SEE_ALSO
1916
1916
  .PP
1917
- confirm_to_continue, stop_if_failed, is_http_ok
1917
+ confirm_to_continue, stop_if_failed
1918
1918
  .PP
1919
1919
  * * * * *
1920
1920
  .SS NAME
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renault-digital/bash-base",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A common lib for creating bash script easily.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -27,7 +27,6 @@
27
27
  "test": "spec"
28
28
  },
29
29
  "scripts": {
30
- "preinstall": "npx npm-force-resolutions || true",
31
30
  "shellcheck": "docker run --rm -v \"$(pwd)\":/bash-base -w /bash-base koalaman/shellcheck:latest src/*.sh scripts/*.sh example/*.sh",
32
31
  "shfmt": "docker run --rm -v \"$(pwd)\":/bash-base -w /bash-base mvdan/shfmt -l -w src/*.sh scripts/*.sh example/*.sh",
33
32
  "lint:commit": " commitlint --from=$(git rev-list --max-parents=0 HEAD)",
@@ -66,7 +65,6 @@
66
65
  "cz-conventional-changelog": "^3.3.0",
67
66
  "husky": "^9.1.7",
68
67
  "merge": ">=2.1.1",
69
- "semantic-release": "^25.0.1"
70
- },
71
- "resolutions": {}
68
+ "semantic-release": "^24.2.9"
69
+ }
72
70
  }
@@ -8,7 +8,10 @@ AfterRun preserve
8
8
 
9
9
  Describe 'prc_filter_by_port'
10
10
  It 'with port number'
11
- nc -l 9999 &
11
+ nc -lk 127.0.0.1 9999 &
12
+ sleep 1
13
+ echo "=== Debug: check listener ==="
14
+ lsof -iTCP:9999 -sTCP:LISTEN -n -P
12
15
  When call prc_filter_by_port 9999
13
16
  The status should be success
14
17
  The output should include ":9999"
package/src/tool.sh CHANGED
@@ -64,7 +64,7 @@ function confirm_to_continue() {
64
64
  # @EXAMPLES
65
65
  # wait_for 'test -f /tmp/output.txt' 'file existed' 3
66
66
  # @SEE_ALSO
67
- # confirm_to_continue, stop_if_failed, is_http_ok
67
+ # confirm_to_continue, stop_if_failed
68
68
  function wait_for() {
69
69
  local predicate="${1}"
70
70
  local subject="${2-${predicate}}"