Skip to content

Commit

Permalink
feat(codecs): re-export directly from the package
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez committed Dec 13, 2024
1 parent b5f3187 commit f138f45
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions packages/codecs/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
import { decode as base64Decode, encode as base64Encode } from "@stablelib/base64";
import { writeUint16BE as binaryWriteUint16BE } from "@stablelib/binary";
import { concat as bytesConcat } from "@stablelib/bytes";
import { decode as hexDecode, encode as hexEncode } from "@stablelib/hex";
import { hash as sha256Hash } from "@stablelib/sha256";
import { decode as utf8Decode, encode as utf8Encode } from "@stablelib/utf8";
import { serialize as borshSerialize } from "borsh";

export {
base64Decode,
base64Encode,
binaryWriteUint16BE,
borshSerialize,
bytesConcat,
hexDecode,
hexEncode,
sha256Hash,
utf8Decode,
utf8Encode,
};
export { decode as base64Decode } from "@stablelib/base64";
export { encode as base64Encode } from "@stablelib/base64";
export { writeUint16BE as binaryWriteUint16BE } from "@stablelib/binary";
export { concat as bytesConcat } from "@stablelib/bytes";
export { decode as hexDecode } from "@stablelib/hex";
export { encode as hexEncode } from "@stablelib/hex";
export { hash as sha256Hash } from "@stablelib/sha256";
export { decode as utf8Decode } from "@stablelib/utf8";
export { encode as utf8Encode } from "@stablelib/utf8";
export { serialize as borshSerialize } from "borsh";

0 comments on commit f138f45

Please sign in to comment.