You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cafe-utility

Package Overview
Dependencies
Maintainers
1
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cafe-utility - npm Package Compare versions

Comparing version

to
26.0.0

14

index.d.ts

@@ -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