feat: add stat method
This commit is contained in:
parent
48bb04a42e
commit
7aa6225b4e
|
@ -50,6 +50,9 @@ export class S5Client extends NetworkClient {
|
||||||
public async cat(cid: string) {
|
public async cat(cid: string) {
|
||||||
return this.callModuleReturn("cat", { cid });
|
return this.callModuleReturn("cat", { cid });
|
||||||
}
|
}
|
||||||
|
public async stat(cid: string) {
|
||||||
|
return this.callModuleReturn("stat", { cid });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createClient = factory<S5Client>(S5Client, MODULE);
|
export const createClient = factory<S5Client>(S5Client, MODULE);
|
||||||
|
|
Loading…
Reference in New Issue