From d088801eb20988752d379fd95697c916e72b8295 Mon Sep 17 00:00:00 2001 From: Alex Rybchenko Date: Mon, 28 Feb 2022 13:20:29 +0100 Subject: [PATCH] fixed react-use Signed-off-by: Alex Rybchenko --- plugins/gcalendar/package.json | 2 +- .../gcalendar/src/hooks/useStoredCalendars.ts | 2 +- yarn.lock | 33 +++++++------------ 3 files changed, 13 insertions(+), 24 deletions(-) diff --git a/plugins/gcalendar/package.json b/plugins/gcalendar/package.json index 674535a017..c6b22dbc3c 100644 --- a/plugins/gcalendar/package.json +++ b/plugins/gcalendar/package.json @@ -52,7 +52,7 @@ "@types/gapi.auth2": "^0.0.56", "@types/gapi.client.calendar": "^3.0.10", "@types/jest": "*", - "@types/node": "^14.14.32", + "@types/node": "*", "@types/sanitize-html": "^2.6.2", "cross-fetch": "^3.1.5", "msw": "^0.35.0" diff --git a/plugins/gcalendar/src/hooks/useStoredCalendars.ts b/plugins/gcalendar/src/hooks/useStoredCalendars.ts index 6a8cf59d6b..5ccdde5572 100644 --- a/plugins/gcalendar/src/hooks/useStoredCalendars.ts +++ b/plugins/gcalendar/src/hooks/useStoredCalendars.ts @@ -14,7 +14,7 @@ * limitations under the License. */ import { useApi, storageApiRef } from '@backstage/core-plugin-api'; -import { useObservable } from 'react-use'; +import useObservable from 'react-use/lib/useObservable'; import { gcalendarPlugin } from '../plugin'; diff --git a/yarn.lock b/yarn.lock index 9b62ff481a..d88219dda0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1359,9 +1359,7 @@ to-fast-properties "^2.0.0" "@backstage/catalog-model@^0.10.0": - version "0.10.1" - resolved "https://registry.npmjs.org/@backstage/catalog-model/-/catalog-model-0.10.1.tgz#dcc3415eb4d4ee3d437355c477e85c7479626b3b" - integrity sha512-c004aQeO9cxtSZZc2iBcE6eoqurQLdj7YUm8mHWs8hEaPTA2UPVHawt+wlt89VywkI89X0wF7BuXV2LKVUfXvw== + version "0.11.0" dependencies: "@backstage/config" "^0.1.15" "@backstage/errors" "^0.2.2" @@ -1373,20 +1371,16 @@ uuid "^8.0.0" "@backstage/catalog-model@^0.9.7": - version "0.9.10" - resolved "https://registry.npmjs.org/@backstage/catalog-model/-/catalog-model-0.9.10.tgz#bd5662e1ad7bd7c9604f3f45d055c99b5b2bb87f" - integrity sha512-KhCjbZKhS5zZhHiGHmBMq6hDGDshMSZOPGXehtdhr6/oW7Ee5fDcOnhMqreCi1Ebm4RIWJhZcRrxO6X1TTi4TQ== + version "0.11.0" dependencies: - "@backstage/config" "^0.1.13" - "@backstage/errors" "^0.2.0" - "@backstage/types" "^0.1.1" + "@backstage/config" "^0.1.15" + "@backstage/errors" "^0.2.2" + "@backstage/types" "^0.1.3" "@types/json-schema" "^7.0.5" - "@types/yup" "^0.29.13" ajv "^7.0.3" json-schema "^0.4.0" lodash "^4.17.21" uuid "^8.0.0" - yup "^0.32.9" "@backstage/core-plugin-api@^0.6.0", "@backstage/core-plugin-api@^0.6.1": version "0.6.1" @@ -25644,21 +25638,16 @@ ws@7.4.5: resolved "https://registry.npmjs.org/ws/-/ws-7.4.5.tgz#a484dd851e9beb6fdb420027e3885e8ce48986c1" integrity sha512-xzyu3hFvomRfXKH8vOFMU3OguG6oOvhXMo3xsGy3xWExqaM2dxBbVxuD99O7m3ZUFMvvscsZDqxfgMaRr/Nr1g== -ws@8.3.0: - version "8.3.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.3.0.tgz#7185e252c8973a60d57170175ff55fdbd116070d" - integrity sha512-Gs5EZtpqZzLvmIM59w4igITU57lrtYVFneaa434VROv4thzJyV6UjIL3D42lslWlI+D4KzLYnxSwtfuiO79sNw== - -ws@8.5.0, ws@^8.1.0, ws@^8.3.0: - version "8.5.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f" - integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== - -"ws@^5.2.0 || ^6.0.0 || ^7.0.0", ws@^7.2.3, ws@^7.3.1, ws@^7.4.6: +ws@8.3.0, "ws@^5.2.0 || ^6.0.0 || ^7.0.0", ws@^7.2.3, ws@^7.3.1, ws@^7.4.6, ws@^8.3.0: version "7.5.6" resolved "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz#e59fc509fb15ddfb65487ee9765c5a51dec5fe7b" integrity sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA== +ws@8.5.0, ws@^8.1.0: + version "8.5.0" + resolved "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f" + integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== + ws@~7.4.2: version "7.4.6" resolved "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"