*Update dist
This commit is contained in:
parent
1a31398647
commit
db5f00241d
|
@ -24,13 +24,13 @@ export async function refreshGatewayList() {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
export async function fetchIpfs(hash, path = "", receiveUpdate) {
|
export async function fetchIpfs(hash, path = "", receiveUpdate) {
|
||||||
if (!ipfsPath(`/ipfs/{${hash}`)) {
|
if (!ipfsPath(`/ipfs/${hash}`)) {
|
||||||
throw new Error("Invalid hash");
|
throw new Error("Invalid hash");
|
||||||
}
|
}
|
||||||
return doFetch("fetchIpfs", { hash, path }, receiveUpdate);
|
return doFetch("fetchIpfs", { hash, path }, receiveUpdate);
|
||||||
}
|
}
|
||||||
export async function statIpfs(hash, path = "") {
|
export async function statIpfs(hash, path = "") {
|
||||||
if (!ipfsPath(`/ipfs/{${hash}`)) {
|
if (!ipfsPath(`/ipfs/${hash}`)) {
|
||||||
throw new Error("Invalid hash");
|
throw new Error("Invalid hash");
|
||||||
}
|
}
|
||||||
return doFetch("statIpfs", { hash, path });
|
return doFetch("statIpfs", { hash, path });
|
||||||
|
|
Loading…
Reference in New Issue