Compare commits

...

2 Commits
1.3.1 ... 1.3.2

Author SHA1 Message Date
Louis Lam
8296c7b18f Update to 1.3.2 2023-12-05 03:01:46 +08:00
Louis Lam
607c908f2d Fix #236 2023-12-05 03:01:06 +08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -297,7 +297,12 @@ export class Stack {
let res = await childProcessAsync.spawn("docker", [ "compose", "ls", "--all", "--format", "json" ], { let res = await childProcessAsync.spawn("docker", [ "compose", "ls", "--all", "--format", "json" ], {
encoding: "utf-8", encoding: "utf-8",
}); });
let composeList = JSON.parse(res.toString());
if (!res.stdout) {
return statusList;
}
let composeList = JSON.parse(res.stdout.toString());
for (let composeStack of composeList) { for (let composeStack of composeList) {
statusList.set(composeStack.Name, this.statusConvert(composeStack.Status)); statusList.set(composeStack.Name, this.statusConvert(composeStack.Status));

View File

@@ -1,6 +1,6 @@
{ {
"name": "dockge", "name": "dockge",
"version": "1.3.1", "version": "1.3.2",
"type": "module", "type": "module",
"engines": { "engines": {
"node": ">= 18.0.0 && <= 18.17.1" "node": ">= 18.0.0 && <= 18.17.1"