From 11bf0d9dbb6732c2bd5d8e006a8eb6ef520c542c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 25 Apr 2024 18:08:49 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 4bae04f..3f97e88 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartbuffer', - version: '3.0.3', + version: '3.0.4', description: 'A library for managing ArrayBufferLike structures including conversion between Base64 and Uint8Array, and buffer validation.' } diff --git a/ts/index.ts b/ts/index.ts index 1cb4edd..f711821 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -28,7 +28,7 @@ export function isBufferLike(obj: any): obj is ArrayBufferLike | Buffer { return false; } -export function convertBufferToPureUint8Array(bufferArg: Buffer) { +export function ensurePureUint8Array(bufferArg: Uint8Array | Buffer): Uint8Array { // Create a new Uint8Array with the same length as the buffer const uint8Array: Uint8Array = new Uint8Array(bufferArg.length);