From 08059e95dacafe0bf6e5782f8e2c8ec9cd8c5a17 Mon Sep 17 00:00:00 2001 From: XZB-1248 Date: Wed, 1 Feb 2023 17:24:45 +0800 Subject: [PATCH] fix: npm vulnerable package --- web/package-lock.json | 12 ++++++------ web/src/components/desktop/desktop.jsx | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 7a45110..7a69f11 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -3972,9 +3972,9 @@ } }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "bin": { "json5": "lib/cli.js" @@ -10767,9 +10767,9 @@ } }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, "kind-of": { diff --git a/web/src/components/desktop/desktop.jsx b/web/src/components/desktop/desktop.jsx index d70f7cb..4cff46e 100644 --- a/web/src/components/desktop/desktop.jsx +++ b/web/src/components/desktop/desktop.jsx @@ -29,6 +29,7 @@ function ScreenModal(props) { }, [props]); useEffect(() => { if (!props.open) { + canvas = null; if (ws && conn) { clearInterval(ticker); ws.close();