Compare commits

..

2 Commits

2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -5,7 +5,7 @@ export class IPFSClient extends Client {
return this.callModuleReturn("ready"); return this.callModuleReturn("ready");
} }
async stat(cid, options) { async stat(cid, options) {
return this.callModuleReturn("stat", { options }); return this.callModuleReturn("stat", { cid, options });
} }
ls(cid, options) { ls(cid, options) {
return this.connectModuleGenerator("ls", { cid, options }); return this.connectModuleGenerator("ls", { cid, options });

View File

@ -13,7 +13,7 @@ export class IPFSClient extends Client {
} }
public async stat(cid: string, options?: Partial<StatOptions>) { public async stat(cid: string, options?: Partial<StatOptions>) {
return this.callModuleReturn("stat", { options }); return this.callModuleReturn("stat", { cid, options });
} }
public ls(cid: string, options?: Partial<LsOptions>): AbortableGenerator { public ls(cid: string, options?: Partial<LsOptions>): AbortableGenerator {