@chainsafe/pubkey-index-map
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -8,4 +8,3 @@ /* tslint:disable */ | ||
constructor() | ||
static withInitialCapacity(capacity: number): PubkeyIndexMap | ||
set(key: Uint8Array, value: number): void | ||
set(key: Uint8Array, value: number): number | null | ||
get(key: Uint8Array): number | null | ||
@@ -12,0 +11,0 @@ has(key: Uint8Array): boolean |
{ | ||
"name": "@chainsafe/pubkey-index-map", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"main": "index.js", | ||
@@ -40,8 +40,8 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"@chainsafe/pubkey-index-map-win32-x64-msvc": "1.0.0", | ||
"@chainsafe/pubkey-index-map-darwin-x64": "1.0.0", | ||
"@chainsafe/pubkey-index-map-linux-x64-gnu": "1.0.0", | ||
"@chainsafe/pubkey-index-map-darwin-arm64": "1.0.0", | ||
"@chainsafe/pubkey-index-map-linux-arm64-gnu": "1.0.0" | ||
"@chainsafe/pubkey-index-map-win32-x64-msvc": "2.0.0", | ||
"@chainsafe/pubkey-index-map-darwin-x64": "2.0.0", | ||
"@chainsafe/pubkey-index-map-linux-x64-gnu": "2.0.0", | ||
"@chainsafe/pubkey-index-map-darwin-arm64": "2.0.0", | ||
"@chainsafe/pubkey-index-map-linux-arm64-gnu": "2.0.0" | ||
} | ||
} |
# @chainsafe/pubkey-index-map | ||
Small napi-rs shim with an interface similar to `Map<Uint8Array, number>` | ||
Small napi-rs shim with an interface similar to `Map<Uint8Array, number>` but only for Uint8Arrays of length 48 | ||
@@ -10,4 +10,2 @@ ```ts | ||
let map = new PubkeyIndexMap() | ||
// or instantiate a new map with more preallocated space | ||
map = PubkeyIndexMap.withInitialCapacity(1_000_000) | ||
@@ -14,0 +12,0 @@ const pubkey: Uint8Array = ...; |
Sorry, the diff of this file is not supported yet
14553
304
32