From 141ef49937356eaf7261fd3961d2f114b0b4d13c Mon Sep 17 00:00:00 2001 From: Diane Huxley Date: Mon, 6 Nov 2023 14:28:46 -0800 Subject: [PATCH] Remove circular dependency causing problems in lib consumer (#598) * Remove circular dependency causing problems in lib consumer * Bump version --- package-lock.json | 4 ++-- package.json | 4 ++-- src/jose/algorithms/signing/ed25519.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c1507d0ac..15a348cd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tbd54566975/dwn-sdk-js", - "version": "0.2.5", + "version": "0.2.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tbd54566975/dwn-sdk-js", - "version": "0.2.5", + "version": "0.2.6", "license": "Apache-2.0", "dependencies": { "@ipld/dag-cbor": "9.0.3", diff --git a/package.json b/package.json index d22a54cd1..e97e5e88d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tbd54566975/dwn-sdk-js", - "version": "0.2.5", + "version": "0.2.6", "description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/", "repository": { "type": "git", @@ -159,4 +159,4 @@ "license-check": "license-report --only=prod > license-report.json && node ./build/license-check.cjs", "publish:unstable": "./build/publish-unstable.sh" } -} \ No newline at end of file +} diff --git a/src/jose/algorithms/signing/ed25519.ts b/src/jose/algorithms/signing/ed25519.ts index cef069f3b..ea08e48dc 100644 --- a/src/jose/algorithms/signing/ed25519.ts +++ b/src/jose/algorithms/signing/ed25519.ts @@ -2,7 +2,7 @@ import * as Ed25519 from '@noble/ed25519'; import type { PrivateJwk, PublicJwk, SignatureAlgorithm } from '../../../types/jose-types.js'; import { Encoder } from '../../../utils/encoder.js'; -import { DwnError, DwnErrorCode } from '../../../index.js'; +import { DwnError, DwnErrorCode } from '../../../core/dwn-error.js'; function validateKey(jwk: PrivateJwk | PublicJwk): void { if (jwk.kty !== 'OKP' || jwk.crv !== 'Ed25519') {