From db5f00241dfb0c7fa17461edff18d12c46329a53 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Aug 2022 19:10:28 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 512dbeb..a05ec9c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24,13 +24,13 @@ export async function refreshGatewayList() { return resp; } export async function fetchIpfs(hash, path = "", receiveUpdate) { - if (!ipfsPath(`/ipfs/{${hash}`)) { + if (!ipfsPath(`/ipfs/${hash}`)) { throw new Error("Invalid hash"); } return doFetch("fetchIpfs", { hash, path }, receiveUpdate); } export async function statIpfs(hash, path = "") { - if (!ipfsPath(`/ipfs/{${hash}`)) { + if (!ipfsPath(`/ipfs/${hash}`)) { throw new Error("Invalid hash"); } return doFetch("statIpfs", { hash, path });