cafe-utility
Advanced tools
Comparing version
@@ -251,3 +251,2 @@ type Indexable = number | string; | ||
declare function generateVariants(string: string, groups: VariantGroup[], count: number, generator?: () => number): string[]; | ||
declare function hashCode(string: string): number; | ||
declare function replaceWord(string: string, search: string, replace: string, whitespaceOnly?: boolean): string; | ||
@@ -490,3 +489,2 @@ declare function replacePascalCaseWords(string: string, replacer: (word: string) => string): string; | ||
declare function log2Reduce<T>(array: T[], reducer: (a: T, b: T) => T): T; | ||
declare function partition(bytes: Uint8Array, size: number): Uint8Array[]; | ||
declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; | ||
@@ -503,7 +501,9 @@ declare function isPng(bytes: Uint8Array): boolean; | ||
declare function uint32ToNumber(bytes: Uint8Array, endian: 'LE' | 'BE'): number; | ||
declare function numberToUint64(number: number, endian: 'LE' | 'BE'): Uint8Array; | ||
declare function uint64ToNumber(bytes: Uint8Array, endian: 'LE' | 'BE'): number; | ||
declare function numberToUint64(number: bigint, endian: 'LE' | 'BE'): Uint8Array; | ||
declare function uint64ToNumber(bytes: Uint8Array, endian: 'LE' | 'BE'): bigint; | ||
declare function numberToUint256(number: bigint, endian: 'LE' | 'BE'): Uint8Array; | ||
declare function uint256ToNumber(bytes: Uint8Array, endian: 'LE' | 'BE'): bigint; | ||
declare function sliceBytes(bytes: Uint8Array, lengths: number[]): Uint8Array[]; | ||
declare function partition(bytes: Uint8Array, size: number): Uint8Array[]; | ||
declare function keccak256(bytes: Uint8Array): Uint8Array; | ||
interface Uint8ArrayIO { | ||
@@ -527,6 +527,6 @@ max: () => number; | ||
declare class Chunk { | ||
span: number; | ||
span: bigint; | ||
writer: Uint8ArrayWriter; | ||
hashFn: (a: Uint8Array, b: Uint8Array) => Uint8Array; | ||
constructor(capacity: number, hashFn: (a: Uint8Array, b: Uint8Array) => Uint8Array, span?: number); | ||
constructor(capacity: number, hashFn: (a: Uint8Array, b: Uint8Array) => Uint8Array, span?: bigint); | ||
build(): Uint8Array; | ||
@@ -617,2 +617,3 @@ hash(): Uint8Array; | ||
sliceBytes: typeof sliceBytes; | ||
keccak256: typeof keccak256; | ||
}; | ||
@@ -926,3 +927,2 @@ export declare const Random: { | ||
generateVariants: typeof generateVariants; | ||
hashCode: typeof hashCode; | ||
replaceWord: typeof replaceWord; | ||
@@ -929,0 +929,0 @@ replacePascalCaseWords: typeof replacePascalCaseWords; |
{ | ||
"name": "cafe-utility", | ||
"version": "25.2.0", | ||
"version": "26.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
137406
5.23%4021
5.68%