Skip to content

Commit

Permalink
export display/internal contenthash codec
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Sep 5, 2023
1 parent 217f7c1 commit 1616cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ensjs/src/utils/contentHash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function matchProtocol(text: string) {
)
}

const getDisplayCodec = (encoded: string): ProtocolType => {
export const getDisplayCodec = (encoded: string): ProtocolType => {
const codec = getCodec(encoded)
switch (codec) {
case 'ipfs':
Expand All @@ -49,7 +49,7 @@ const getDisplayCodec = (encoded: string): ProtocolType => {
}
}

const getInternalCodec = (
export const getInternalCodec = (
displayCodec: NonNullable<ProtocolType>,
): InternalCodec => {
switch (displayCodec) {
Expand Down
2 changes: 2 additions & 0 deletions packages/ensjs/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export {
export {
decodeContentHash,
encodeContentHash,
getDisplayCodec,
getInternalCodec,
getProtocolType,
isValidContentHash,
type DecodedContentHash,
Expand Down

0 comments on commit 1616cee

Please sign in to comment.