@libp2p/interfaces
Advanced tools
Comparing version 1.3.14 to 1.3.15
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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1361558
3262