fix(core): update

This commit is contained in:
2024-02-25 01:17:47 +01:00
parent 9ef10edf3d
commit 693a2de3e5
6 changed files with 3418 additions and 12645 deletions

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartbuffer',
version: '1.0.3',
name: '@push.rocks/smartbuffer',
version: '1.0.4',
description: 'handle ArrayBufferLike structures'
}

View File

@ -60,4 +60,8 @@ export function base64ToArrayBuffer(base64: string): Uint8Array {
arrayBuffer[i] = binaryString.charCodeAt(i);
}
return arrayBuffer;
}
}
export function isArrayBufferLike(obj: any): obj is ArrayBufferLike {
return obj && typeof obj.byteLength === 'number';
}