From 49e68f837eb3a9f36b9fdbc675bb4d5167c090c1 Mon Sep 17 00:00:00 2001 From: PuneetPunamiya Date: Fri, 30 Jul 2021 12:15:52 +0530 Subject: [PATCH] Updates React Github Enterprise Login package Since the dependancy package path is moved to other location the build was failing, hence updated the package in order to fix the ui build Signed-off-by: Puneet Punamiya --- ui/package-lock.json | 43 ++++++++++++++++--- ui/package.json | 2 +- .../Authentication/Authentication.test.tsx | 2 +- ui/src/containers/Authentication/index.tsx | 2 +- ui/src/react-app-env.d.ts | 2 +- 5 files changed, 40 insertions(+), 11 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 08ca7db42c..abd356b8db 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -2230,6 +2230,11 @@ } } }, + "@seiboston/react-ghe-login": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@seiboston/react-ghe-login/-/react-ghe-login-1.0.1.tgz", + "integrity": "sha512-deKCqaQU/MLKbk3BfV5zPlzI+vReLmx4MjDgyYPGa0/9sUiktFdIDhXwAEq8WGZuOG9qUSl3GLDHNSNPR+Bymg==" + }, "@sheerun/mutationobserver-shim": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz", @@ -4680,6 +4685,15 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "optional": true }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -7861,6 +7875,12 @@ } } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "optional": true + }, "filesize": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/filesize/-/filesize-6.1.0.tgz", @@ -13206,6 +13226,12 @@ "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=" }, + "nan": { + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", + "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==", + "optional": true + }, "nanoid": { "version": "3.1.20", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", @@ -15693,11 +15719,6 @@ "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==" }, - "react-ghe-login": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/react-ghe-login/-/react-ghe-login-1.2.0.tgz", - "integrity": "sha512-Att76hw4cFLYdGE9lUArGxMVxOiCaN5L/7N8Pl/3WMtYtswosXY7UDxV5OPVOEIxtkJfrGrNxjbSx6jWo4iXgw==" - }, "react-hotkeys-hook": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-3.3.1.tgz", @@ -18936,7 +18957,11 @@ "version": "1.2.13", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "optional": true + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", @@ -19525,7 +19550,11 @@ "version": "1.2.13", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "optional": true + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", diff --git a/ui/package.json b/ui/package.json index dfae153c06..ff72dbfd4f 100644 --- a/ui/package.json +++ b/ui/package.json @@ -5,6 +5,7 @@ "dependencies": { "@patternfly/patternfly": "^4.80.3", "@patternfly/react-core": "^4.47.0", + "@seiboston/react-ghe-login": "^1.0.1", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.5.0", "@testing-library/user-event": "^7.2.1", @@ -25,7 +26,6 @@ "mst-persist": "^0.1.3", "react": "^16.13.1", "react-dom": "^16.13.1", - "react-ghe-login": "^1.2.0", "react-hotkeys-hook": "^3.3.1", "react-markdown": "^5.0.3", "react-router-dom": "^5.2.0", diff --git a/ui/src/containers/Authentication/Authentication.test.tsx b/ui/src/containers/Authentication/Authentication.test.tsx index 87f7b3bf81..1b5b568c5c 100644 --- a/ui/src/containers/Authentication/Authentication.test.tsx +++ b/ui/src/containers/Authentication/Authentication.test.tsx @@ -2,7 +2,7 @@ import { Card } from '@patternfly/react-core'; import { mount, shallow } from 'enzyme'; import React from 'react'; import renderer from 'react-test-renderer'; -import GitHubLogin from 'react-ghe-login'; +import GitHubLogin from '@seiboston/react-ghe-login'; import Authentication from '.'; import { FakeHub } from '../../api/testutil'; import { createProviderAndStore } from '../../store/root'; diff --git a/ui/src/containers/Authentication/index.tsx b/ui/src/containers/Authentication/index.tsx index f698d32f71..aa979e538d 100644 --- a/ui/src/containers/Authentication/index.tsx +++ b/ui/src/containers/Authentication/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import GitHubLogin from 'react-ghe-login'; +import GitHubLogin from '@seiboston/react-ghe-login'; import { useHistory } from 'react-router-dom'; import { observer } from 'mobx-react'; import { Card, CardBody, CardHeader, AlertVariant } from '@patternfly/react-core'; diff --git a/ui/src/react-app-env.d.ts b/ui/src/react-app-env.d.ts index ac4ec2f820..3f7b6a8598 100644 --- a/ui/src/react-app-env.d.ts +++ b/ui/src/react-app-env.d.ts @@ -1,2 +1,2 @@ /// -declare module 'react-ghe-login'; +declare module '@seiboston/react-ghe-login';