@abtnode/router-provider 1.16.34-beta-20241212-094401-992d20c3 → 1.16.34-beta-20241213-135509-c2832f80
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/lib/index.js +6 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -96,7 +96,12 @@ const checkDockerInstalled = async () => {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const clearDockerContainer = async () => {
|
|
99
|
-
|
|
99
|
+
// 判断 docker 是否执行了任何容器
|
|
100
|
+
const list = await promiseSpawn('docker ps -a -q --filter "name=^blocklet-"');
|
|
101
|
+
if (!list) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
await promiseSpawn('docker rm -f $(docker ps -a -q --filter "name=^blocklet-")');
|
|
100
105
|
};
|
|
101
106
|
|
|
102
107
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.16.34-beta-
|
|
3
|
+
"version": "1.16.34-beta-20241213-135509-c2832f80",
|
|
4
4
|
"description": "Routing engine implementations for abt node",
|
|
5
5
|
"author": "polunzh <polunzh@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/constant": "1.16.34-beta-
|
|
36
|
-
"@abtnode/logger": "1.16.34-beta-
|
|
37
|
-
"@abtnode/router-templates": "1.16.34-beta-
|
|
38
|
-
"@abtnode/util": "1.16.34-beta-
|
|
35
|
+
"@abtnode/constant": "1.16.34-beta-20241213-135509-c2832f80",
|
|
36
|
+
"@abtnode/logger": "1.16.34-beta-20241213-135509-c2832f80",
|
|
37
|
+
"@abtnode/router-templates": "1.16.34-beta-20241213-135509-c2832f80",
|
|
38
|
+
"@abtnode/util": "1.16.34-beta-20241213-135509-c2832f80",
|
|
39
39
|
"@arcblock/http-proxy": "^1.19.1",
|
|
40
40
|
"@arcblock/is-valid-domain": "^1.0.5",
|
|
41
41
|
"axios": "^1.7.5",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"bluebird": "^3.7.2",
|
|
60
60
|
"fs-extra": "^11.2.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "9e8b37f36d17a288a66ccc05e92c8f87825eeb57"
|
|
63
63
|
}
|