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

@libp2p/interfaces

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interfaces - npm Package Compare versions

Comparing version 1.3.14 to 1.3.15

7

dist/src/content-routing/index.d.ts
import type { CID } from 'multiformats/cid';
import type { AbortOptions } from '../index.js';
import type { PeerData } from '../peer-data/index.js';
import type { PeerId } from '../peer-id/index.js';
export interface GetResult {
from: PeerId;
val: Uint8Array;
}
export interface ContentRouting {

@@ -13,4 +8,4 @@ provide: (cid: CID, options?: AbortOptions) => Promise<void>;

put: (key: Uint8Array, value: Uint8Array, options?: AbortOptions) => Promise<void>;
get: (key: Uint8Array, options?: AbortOptions) => Promise<GetResult>;
get: (key: Uint8Array, options?: AbortOptions) => Promise<Uint8Array>;
}
//# sourceMappingURL=index.d.ts.map

2

package.json
{
"name": "@libp2p/interfaces",
"version": "1.3.14",
"version": "1.3.15",
"description": "Interfaces for JS Libp2p",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

import type { CID } from 'multiformats/cid'
import type { AbortOptions } from '../index.js'
import type { PeerData } from '../peer-data/index.js'
import type { PeerId } from '../peer-id/index.js'
export interface GetResult {
from: PeerId
val: Uint8Array
}
export interface ContentRouting {

@@ -15,3 +9,3 @@ provide: (cid: CID, options?: AbortOptions) => Promise<void>

put: (key: Uint8Array, value: Uint8Array, options?: AbortOptions) => Promise<void>
get: (key: Uint8Array, options?: AbortOptions) => Promise<GetResult>
get: (key: Uint8Array, options?: AbortOptions) => Promise<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