Skip to content

Commit

Permalink
Mise à jour Hélia
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jul 18, 2024
1 parent 86c91b8 commit 3073937
Show file tree
Hide file tree
Showing 4 changed files with 4,958 additions and 4,225 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare module "@orbitdb/core" {
import EventEmitter from "events";
import type { Helia } from "helia";
import type { HeliaLibp2p } from "helia";

export function Database(args: {
ipfs: Helia;
ipfs: HeliaLibp2p;
identity?: Identity;
address: string;
name?: string;
Expand Down Expand Up @@ -61,7 +61,7 @@ declare module "@orbitdb/core" {
peerId;
};
export function createOrbitDB(args: {
ipfs: Helia;
ipfs: HeliaLibp2p;
directory: string;
id?: string;
}): Promise<OrbitDB>;
Expand Down Expand Up @@ -107,7 +107,7 @@ declare module "@orbitdb/core" {
write: string[];
canAppend: (entry: LogEntry) => Promise<boolean>;
}>;
export function Identities(args: {keystore?: KeyStoreType, path?: string, storage?: Storage, ipfs?: Helia}): Promise<IdentitiesType>;
export function Identities(args: {keystore?: KeyStoreType, path?: string, storage?: Storage, ipfs?: HeliaLibp2p}): Promise<IdentitiesType>;
export class IdentitiesType {
createIdentity;
getIdentity;
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
"publishNPM": "yarn publish --access public"
},
"devDependencies": {
"@orbitdb/core": "^2.0.1",
"@orbitdb/core": "^2.2.0",
"@types/elliptic": "^6.4.18",
"@types/events": "^1.2.0"
},
"dependencies": {
"helia": "^3.0.1"
"@types/events": "^3.0.3",
"helia": "^4.2.4"
}
}
Loading

0 comments on commit 3073937

Please sign in to comment.