@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 +1 -1
- package/package.json +2 -2
- package/src/check.js +5 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uscreen.de/dev-service",
|
|
3
|
-
"version": "0.12.
|
|
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": "
|
|
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
|
|
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) => {
|