From 145fd3fef268ec30fa7608c613198b91c3a2c83e Mon Sep 17 00:00:00 2001 From: garciafdezpatricia Date: Thu, 30 May 2024 16:31:14 +0200 Subject: [PATCH] workaround for the import error --- package-lock.json | 2 +- package.json | 2 +- src/common/verify/isValidAccessGrant.ts | 3 ++- src/gConsent/discover/redirectToAccessManagementUi.ts | 3 ++- src/gConsent/manage/approveAccessRequest.ts | 3 ++- src/gConsent/manage/denyAccessRequest.ts | 3 ++- src/gConsent/manage/revokeAccessGrant.ts | 3 ++- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 44cf101f6..e3d2d7bb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@inrupt/solid-client": "^2.0.0", - "@inrupt/solid-client-vc": "^1.0.0", + "@inrupt/solid-client-vc": "^1.0.3", "@types/rdfjs__dataset": "^2.0.7", "auth-header": "^1.0.0", "base64url": "^3.0.1", diff --git a/package.json b/package.json index 7982bba27..643963eff 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ }, "dependencies": { "@inrupt/solid-client": "^2.0.0", - "@inrupt/solid-client-vc": "^1.0.0", + "@inrupt/solid-client-vc": "^1.0.3", "@types/rdfjs__dataset": "^2.0.7", "auth-header": "^1.0.0", "base64url": "^3.0.1", diff --git a/src/common/verify/isValidAccessGrant.ts b/src/common/verify/isValidAccessGrant.ts index 56fe33160..bd6283727 100644 --- a/src/common/verify/isValidAccessGrant.ts +++ b/src/common/verify/isValidAccessGrant.ts @@ -28,7 +28,8 @@ import { getIssuer, getVerifiableCredentialApiConfiguration, } from "@inrupt/solid-client-vc"; -import { isUrl } from "@inrupt/solid-client-vc/dist/common/common"; +// eslint-disable-next-line import/no-unresolved +import { isUrl } from "@inrupt/solid-client-vc/common"; import { getBaseAccess } from "../../gConsent/util/getBaseAccessVerifiableCredential"; import { getSessionFetch } from "../util/getSessionFetch"; import { isDatasetCore } from "../../gConsent/guard/isDatasetCore"; diff --git a/src/gConsent/discover/redirectToAccessManagementUi.ts b/src/gConsent/discover/redirectToAccessManagementUi.ts index d3c9b63b3..de93c2376 100644 --- a/src/gConsent/discover/redirectToAccessManagementUi.ts +++ b/src/gConsent/discover/redirectToAccessManagementUi.ts @@ -24,7 +24,8 @@ import type { DatasetWithId, VerifiableCredential, } from "@inrupt/solid-client-vc"; -import { isUrl } from "@inrupt/solid-client-vc/dist/common/common"; +// eslint-disable-next-line import/no-unresolved +import { isUrl } from "@inrupt/solid-client-vc/common"; import { getBaseAccess } from "../util/getBaseAccessVerifiableCredential"; import { getSessionFetch } from "../../common/util/getSessionFetch"; import { diff --git a/src/gConsent/manage/approveAccessRequest.ts b/src/gConsent/manage/approveAccessRequest.ts index b06f8a5a8..f003c0811 100644 --- a/src/gConsent/manage/approveAccessRequest.ts +++ b/src/gConsent/manage/approveAccessRequest.ts @@ -22,12 +22,13 @@ import type { UrlString } from "@inrupt/solid-client"; // eslint-disable-next-line camelcase import { acp_ess_2 } from "@inrupt/solid-client"; +// eslint-disable-next-line import/no-unresolved +import { isUrl } from "@inrupt/solid-client-vc/common"; import type { DatasetWithId, VerifiableCredential, VerifiableCredentialBase, } from "@inrupt/solid-client-vc"; -import { isUrl } from "@inrupt/solid-client-vc/dist/common/common"; import { gc, solidVc } from "../../common/constants"; import { getSessionFetch } from "../../common/util/getSessionFetch"; import type { AccessModes } from "../../type/AccessModes"; diff --git a/src/gConsent/manage/denyAccessRequest.ts b/src/gConsent/manage/denyAccessRequest.ts index 7160a7f29..45ad41fd1 100644 --- a/src/gConsent/manage/denyAccessRequest.ts +++ b/src/gConsent/manage/denyAccessRequest.ts @@ -24,7 +24,8 @@ import { type DatasetWithId, type VerifiableCredential, } from "@inrupt/solid-client-vc"; -import { isUrl } from "@inrupt/solid-client-vc/dist/common/common"; +// eslint-disable-next-line import/no-unresolved +import { isUrl } from "@inrupt/solid-client-vc/common"; import { gc, solidVc } from "../../common/constants"; import { CREDENTIAL_TYPE_ACCESS_DENIAL } from "../constants"; import type { AccessBaseOptions } from "../type/AccessBaseOptions"; diff --git a/src/gConsent/manage/revokeAccessGrant.ts b/src/gConsent/manage/revokeAccessGrant.ts index b8872f3c3..270805264 100644 --- a/src/gConsent/manage/revokeAccessGrant.ts +++ b/src/gConsent/manage/revokeAccessGrant.ts @@ -31,7 +31,8 @@ import { } from "@inrupt/solid-client-vc"; import { DataFactory } from "n3"; import type { NamedNode } from "n3"; -import { isUrl } from "@inrupt/solid-client-vc/dist/common/common"; +// eslint-disable-next-line import/no-unresolved +import { isUrl } from "@inrupt/solid-client-vc/common"; import { TYPE, solidVc } from "../../common/constants"; import { getSessionFetch } from "../../common/util/getSessionFetch"; import type { AccessBaseOptions } from "../type/AccessBaseOptions";