From fe9045cf82a30aef89ebc74559485ebbe8cd18cc Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 1 Apr 2023 13:40:08 -0400 Subject: [PATCH] *update dist --- dist/index.d.ts | 7 ++++--- dist/index.d.ts.map | 2 +- dist/index.js | 12 ++++++------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 2b12473..3cdb75f 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,13 +1,14 @@ import { Client } from "@lumeweb/libkernel-universal"; +import { CatOptions, LsOptions, StatOptions } from "@helia/unixfs"; interface AbortableGenerator { abort: () => void; iterable: AsyncGenerator; } export declare class IPFSClient extends Client { ready(): Promise; - stat(cid: string): Promise; - ls(cid: string): AbortableGenerator; - cat(cid: string): AbortableGenerator; + stat(cid: string, options?: Partial): Promise; + ls(cid: string, options?: Partial): AbortableGenerator; + cat(cid: string, options?: Partial): AbortableGenerator; ipns(cid: string): Promise; activePeers(): Promise; private connectModuleGenerator; diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 4aa0f40..d55895d 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAG/D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,qBAAa,UAAW,SAAQ,MAAM;IACvB,KAAK;IAIL,IAAI,CAAC,GAAG,EAAE,MAAM;IAItB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB;IAInC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB;IAI9B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C,OAAO,CAAC,sBAAsB;CAgC/B;AAED,eAAO,MAAM,YAAY,8BAGxB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAW,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEnE,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,qBAAa,UAAW,SAAQ,MAAM;IACvB,KAAK;IAIL,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;IAItD,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,kBAAkB;IAIjE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,kBAAkB;IAI7D,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAI3C,OAAO,CAAC,sBAAsB;CAgC/B;AAED,eAAO,MAAM,YAAY,8BAGxB,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 5c4763b..7fc146c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4,14 +4,14 @@ export class IPFSClient extends Client { async ready() { return this.callModuleReturn("ready"); } - async stat(cid) { - return this.callModuleReturn("stat"); + async stat(cid, options) { + return this.callModuleReturn("stat", { options }); } - ls(cid) { - return this.connectModuleGenerator("ls", { cid }); + ls(cid, options) { + return this.connectModuleGenerator("ls", { cid, options }); } - cat(cid) { - return this.connectModuleGenerator("cat", { cid }); + cat(cid, options) { + return this.connectModuleGenerator("cat", { cid, options }); } async ipns(cid) { return this.callModuleReturn("ipnsResolve");