Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chainsafe/pubkey-index-map

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/pubkey-index-map - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

3

index.d.ts

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc