@kwirthmagnify/kwirth-plugin-trivy 0.2.8 → 0.2.10
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/back.js +9 -0
- package/package.json +1 -1
package/back.js
CHANGED
|
@@ -180,6 +180,15 @@ var TrivyChannel = class {
|
|
|
180
180
|
const pos = socket.instances.findIndex((t) => t.instanceId === instanceId);
|
|
181
181
|
if (pos >= 0) socket.instances.splice(pos, 1);
|
|
182
182
|
}
|
|
183
|
+
if (!this.webSockets.some((s) => s.instances.length > 0)) {
|
|
184
|
+
for (const informer of this.informers.values()) {
|
|
185
|
+
try {
|
|
186
|
+
informer.stop();
|
|
187
|
+
} catch {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
this.informers.clear();
|
|
191
|
+
}
|
|
183
192
|
};
|
|
184
193
|
this.containsConnection = (webSocket) => Boolean(this.webSockets.find((s) => s.ws === webSocket));
|
|
185
194
|
this.removeConnection = (webSocket) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "trivy",
|
|
3
3
|
"name": "@kwirthmagnify/kwirth-plugin-trivy",
|
|
4
4
|
"displayName": "Trivy",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.10",
|
|
6
6
|
"description": "Trivy security scanning channel plugin for Kwirth",
|
|
7
7
|
"icon": "VerifiedUser",
|
|
8
8
|
"website": "https://kwirthmagnify.dev"
|