@getmonoceros/workbench 1.38.15 → 1.38.16
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/dist/bin.js +11 -9
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1977,17 +1977,19 @@ async function ensureProxy(opts = {}) {
|
|
|
1977
1977
|
async function maybeStopProxy(opts = {}) {
|
|
1978
1978
|
const docker = opts.docker ?? realDocker;
|
|
1979
1979
|
const logger = opts.logger;
|
|
1980
|
-
const inspect = await docker([
|
|
1981
|
-
"network",
|
|
1982
|
-
"inspect",
|
|
1983
|
-
PROXY_NETWORK_NAME,
|
|
1984
|
-
"--format",
|
|
1985
|
-
"{{range $k, $v := .Containers}}{{$v.Name}}\n{{end}}"
|
|
1986
|
-
]);
|
|
1980
|
+
const inspect = await docker(["network", "inspect", PROXY_NETWORK_NAME]);
|
|
1987
1981
|
if (inspect.exitCode !== 0) {
|
|
1988
1982
|
return;
|
|
1989
1983
|
}
|
|
1990
|
-
const
|
|
1984
|
+
const attached = await docker([
|
|
1985
|
+
"ps",
|
|
1986
|
+
"-a",
|
|
1987
|
+
"--filter",
|
|
1988
|
+
`network=${PROXY_NETWORK_NAME}`,
|
|
1989
|
+
"--format",
|
|
1990
|
+
"{{.Names}}"
|
|
1991
|
+
]);
|
|
1992
|
+
const others = attached.stdout.split("\n").map((n) => n.trim()).filter((n) => n.length > 0 && n !== PROXY_CONTAINER_NAME);
|
|
1991
1993
|
if (others.length > 0) return;
|
|
1992
1994
|
await docker(["rm", "-f", PROXY_CONTAINER_NAME]);
|
|
1993
1995
|
const netRm = await docker(["network", "rm", PROXY_NETWORK_NAME]);
|
|
@@ -9053,7 +9055,7 @@ var CLI_VERSION;
|
|
|
9053
9055
|
var init_version = __esm({
|
|
9054
9056
|
"src/version.ts"() {
|
|
9055
9057
|
"use strict";
|
|
9056
|
-
CLI_VERSION = true ? "1.38.
|
|
9058
|
+
CLI_VERSION = true ? "1.38.16" : "dev";
|
|
9057
9059
|
}
|
|
9058
9060
|
});
|
|
9059
9061
|
|