Skip to content

Commit

Permalink
rollback breaking changes to identity package
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Oct 26, 2023
1 parent 763a3f8 commit 791c285
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/identity/src/did/atproto-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ import {
getDid,
getHandle,
getPdsEndpoint,
getFeedGenEndpoint,
getNotifEndpoint,
getSigningKey,
} from '@atproto/common-web'

export const parseKey = (doc: DidDocument): string | undefined => {
export {
getDid,
getHandle,
getPdsEndpoint as getPds,
getFeedGenEndpoint as getFeedGen,
getNotifEndpoint as getNotif,
}

export const getKey = (doc: DidDocument): string | undefined => {
const key = getSigningKey(doc)
if (!key) return undefined

Expand All @@ -30,7 +40,7 @@ export const parseToAtprotoDocument = (
const did = getDid(doc)
return {
did,
signingKey: parseKey(doc),
signingKey: getKey(doc),
handle: getHandle(doc),
pds: getPdsEndpoint(doc),
}
Expand Down

0 comments on commit 791c285

Please sign in to comment.