@uscreen.de/dev-service 0.12.4 → 0.12.5

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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  - a local or remote docker host
13
13
  - a docker client connected to that host
14
14
  - `docker` and `docker-compose` located in your `$PATH`
15
- - `node` v14.13 or higher, or v15 or higher
15
+ - `node` v16 or higher
16
16
 
17
17
  ## Install
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/dev-service",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "cli to manage services in dev repos",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "author": "Martin Herting <herting@uscreen.de>",
24
24
  "license": "MIT",
25
25
  "engines": {
26
- "node": "^14.13 || >=15"
26
+ "node": ">=16"
27
27
  },
28
28
  "scripts": {
29
29
  "test": "c8 tap",
package/src/check.js CHANGED
@@ -110,10 +110,14 @@ const getOwnPorts = () =>
110
110
  ps.push('ps', '-q')
111
111
 
112
112
  exec(`docker-compose ${ps.join(' ')}`, function (err, stdout, stderr) {
113
- if (err || stderr.toString().trim()) {
113
+ if (err) {
114
114
  return reject(err)
115
115
  }
116
116
 
117
+ if (stderr.toString().trim()) {
118
+ return reject(stderr.toString().trim())
119
+ }
120
+
117
121
  const ids = stdout.split('\n').filter((id) => id)
118
122
 
119
123
  Promise.all(ids.map(getContainerPorts)).then((ps) => {