From 6fabca7a4302e5e1286a80454a716e7310594592 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 30 Jun 2026 13:53:53 -0700 Subject: [PATCH] Alphabetize object props. --- src/lib/convert/base32.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 - }, }) -- 2.52.0