From: Chris Duncan Date: Tue, 30 Jun 2026 20:53:53 +0000 (-0700) Subject: Alphabetize object props. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6fabca7a4302e5e1286a80454a716e7310594592;p=libnemo.git Alphabetize object props. --- diff --git a/src/lib/convert/base32.ts b/src/lib/convert/base32.ts index 4e554c1..f4bbc9e 100644 --- a/src/lib/convert/base32.ts +++ b/src/lib/convert/base32.ts @@ -4,6 +4,16 @@ import { ALPHABET } from '../constants' export const base32 = Object.freeze({ + /** + * Convert a base32 string to an ArrayBuffer. + * + * @param {string} base32 - String to convert + * @returns {Uint8Array} Byte array representation of the input string + */ + toBuffer (base32: string): ArrayBuffer { + return this.toBytes(base32).buffer + }, + /** * Convert a base32 string to a Uint8Array of bytes. * @@ -40,14 +50,4 @@ export const base32 = Object.freeze({ } return output }, - - /** - * Convert a base32 string to an ArrayBuffer. - * - * @param {string} base32 - String to convert - * @returns {Uint8Array} Byte array representation of the input string - */ - toBuffer (base32: string): ArrayBuffer { - return this.toBytes(base32).buffer - }, })