ipfs-core-types
Advanced tools
Comparing version 0.13.1-a77e40cc.0 to 0.14.0-3bcabe38
@@ -82,3 +82,3 @@ import type { AbortOptions } from '../utils'; | ||
} | ||
export declare type MessageName = keyof typeof MessageType; | ||
export type MessageName = keyof typeof MessageType; | ||
export interface DHTRecord { | ||
@@ -133,3 +133,3 @@ key: Uint8Array; | ||
} | ||
export declare type QueryEvent = SendingQueryEvent | PeerResponseEvent | FinalPeerEvent | QueryErrorEvent | ProviderEvent | ValueEvent | AddingPeerEvent | DialingPeerEvent; | ||
export type QueryEvent = SendingQueryEvent | PeerResponseEvent | FinalPeerEvent | QueryErrorEvent | ProviderEvent | ValueEvent | AddingPeerEvent | DialingPeerEvent; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -115,3 +115,3 @@ import type { AbortOptions, AwaitIterable } from '../utils'; | ||
} | ||
export declare type AddInput = CID | AddInputWithOptions; | ||
export type AddInput = CID | AddInputWithOptions; | ||
export interface AddInputWithOptions { | ||
@@ -135,4 +135,4 @@ /** | ||
} | ||
export declare type PinType = 'recursive' | 'direct' | 'indirect' | 'all'; | ||
export declare type PinQueryType = 'recursive' | 'direct' | 'indirect' | 'all'; | ||
export type PinType = 'recursive' | 'direct' | 'indirect' | 'all'; | ||
export type PinQueryType = 'recursive' | 'direct' | 'indirect' | 'all'; | ||
export interface LsOptions extends AbortOptions { | ||
@@ -139,0 +139,0 @@ paths?: CID | CID[] | string | string[]; |
@@ -78,3 +78,3 @@ import type { CID } from 'multiformats/cid'; | ||
} | ||
export declare type Status = 'queued' | 'pinning' | 'pinned' | 'failed'; | ||
export type Status = 'queued' | 'pinning' | 'pinned' | 'failed'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -48,3 +48,3 @@ import type { AbortOptions } from '../../../utils'; | ||
} | ||
export declare type Stat = ValidStat | InvalidStat; | ||
export type Stat = ValidStat | InvalidStat; | ||
interface ValidStat { | ||
@@ -51,0 +51,0 @@ status: 'valid'; |
@@ -31,3 +31,3 @@ import type { AbortOptions } from '../utils'; | ||
} | ||
export declare type GCResult = GCSuccess | GCError; | ||
export type GCResult = GCSuccess | GCError; | ||
export interface StatResult { | ||
@@ -34,0 +34,0 @@ numObjects: bigint; |
import type { CID } from 'multiformats/cid'; | ||
import type { Mtime, MtimeLike } from 'ipfs-unixfs'; | ||
export declare type Entry<Content extends AsyncIterable<Uint8Array> | Blob> = FileEntry<Content> | DirectoryEntry; | ||
export type Entry<Content extends AsyncIterable<Uint8Array> | Blob> = FileEntry<Content> | DirectoryEntry; | ||
export interface BaseEntry { | ||
@@ -15,4 +15,4 @@ path: string; | ||
} | ||
export declare type ImportCandidateStream = AwaitIterable<ImportCandidate> | ReadableStream<ImportCandidate>; | ||
export declare type ImportCandidate = ToFile | ToDirectory | ToContent; | ||
export type ImportCandidateStream = AwaitIterable<ImportCandidate> | ReadableStream<ImportCandidate>; | ||
export type ImportCandidate = ToFile | ToDirectory | ToContent; | ||
export interface ToFile extends ToFileMetadata { | ||
@@ -35,4 +35,4 @@ path?: string; | ||
*/ | ||
export declare type ToContent = string | InstanceType<typeof String> | ArrayBufferView | ArrayBuffer | Blob | AwaitIterable<Uint8Array> | ReadableStream<Uint8Array>; | ||
export declare type ToMode = string | number; | ||
export type ToContent = string | InstanceType<typeof String> | ArrayBufferView | ArrayBuffer | Blob | AwaitIterable<Uint8Array> | ReadableStream<Uint8Array>; | ||
export type ToMode = string | number; | ||
export interface BaseFile { | ||
@@ -56,3 +56,3 @@ cid: CID; | ||
*/ | ||
export declare type Await<T> = T | Promise<T>; | ||
export type Await<T> = T | Promise<T>; | ||
/** | ||
@@ -62,3 +62,3 @@ * Represents an iterable that can be used in `for await` loops, that is either | ||
*/ | ||
export declare type AwaitIterable<T> = Iterable<T> | AsyncIterable<T>; | ||
export type AwaitIterable<T> = Iterable<T> | AsyncIterable<T>; | ||
/** | ||
@@ -85,3 +85,3 @@ * Common options across all cancellable requests. | ||
*/ | ||
export declare type IPFSPath = CID | string; | ||
export type IPFSPath = CID | string; | ||
export interface BufferStore { | ||
@@ -88,0 +88,0 @@ put: (key: Uint8Array, value: Uint8Array, options?: AbortOptions) => Promise<void>; |
{ | ||
"name": "ipfs-core-types", | ||
"version": "0.13.1-a77e40cc.0", | ||
"version": "0.14.0-3bcabe38", | ||
"description": "IPFS interface definitions used by implementations for API compatibility.", | ||
@@ -28,3 +28,3 @@ "license": "Apache-2.0 OR MIT", | ||
"src", | ||
"dist/src", | ||
"dist", | ||
"!dist/test", | ||
@@ -51,17 +51,16 @@ "!**/*.tsbuildinfo" | ||
"dependencies": { | ||
"@ipld/dag-pb": "^3.0.0", | ||
"@libp2p/interface-keychain": "^1.0.3", | ||
"@libp2p/interface-peer-id": "^1.0.4", | ||
"@ipld/dag-pb": "^4.0.0", | ||
"@libp2p/interface-keychain": "^2.0.0", | ||
"@libp2p/interface-peer-id": "^2.0.0", | ||
"@libp2p/interface-peer-info": "^1.0.2", | ||
"@libp2p/interface-pubsub": "^3.0.0", | ||
"@multiformats/multiaddr": "^11.0.0", | ||
"@multiformats/multiaddr": "^11.1.5", | ||
"@types/node": "^18.0.0", | ||
"interface-datastore": "^7.0.0", | ||
"ipfs-unixfs": "^8.0.0", | ||
"multiformats": "^10.0.0" | ||
"ipfs-unixfs": "^9.0.0", | ||
"multiformats": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^37.0.11" | ||
}, | ||
"gitHead": "a614528c55b8b22866bbdd2ffcde2e38eb5f578f" | ||
"aegir": "^37.11.0" | ||
} | ||
} |
# ipfs-core-types <!-- omit in toc --> | ||
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io) | ||
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) | ||
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs) | ||
[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) | ||
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) | ||
[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs) | ||
[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml) | ||
[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster) | ||
@@ -9,0 +8,0 @@ > IPFS interface definitions used by implementations for API compatibility. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
201296
134
4883
83
+ Added@ipld/dag-pb@4.1.3(transitive)
+ Added@libp2p/interface-keychain@2.0.5(transitive)
+ Addedipfs-unixfs@9.0.1(transitive)
- Removed@ipld/dag-pb@3.0.2(transitive)
- Removed@libp2p/interface-keychain@1.0.8(transitive)
- Removed@libp2p/interface-peer-id@1.1.2(transitive)
- Removedipfs-unixfs@8.0.0(transitive)
- Removedmultiformats@10.0.3(transitive)
Updated@ipld/dag-pb@^4.0.0
Updatedipfs-unixfs@^9.0.0
Updatedmultiformats@^11.0.0