From a4990e99ef016a4f0cec24a616b4f8fadb4e49d8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Aug 2022 09:51:18 -0400 Subject: [PATCH] *update dist --- dist/index.d.ts | 8 ++++---- dist/index.d.ts.map | 2 +- dist/index.js | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 71f478c..00971c6 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,7 +1,7 @@ import type { DataFn } from "libskynet"; export declare function refreshGatewayList(): Promise; -export declare function fetchIpfs(hash: string, path: string | undefined, headers: {} | undefined, receiveUpdate: DataFn): Promise; -export declare function statIpfs(hash: string, path?: string, headers?: {}): Promise; -export declare function fetchIpns(hash: string, path: string | undefined, headers: {} | undefined, receiveUpdate: DataFn): Promise; -export declare function statIpns(hash: string, path?: string, headers?: {}): Promise; +export declare function fetchIpfs(hash: string, path: string | undefined, receiveUpdate: DataFn): Promise; +export declare function statIpfs(hash: string, path?: string): Promise; +export declare function fetchIpns(hash: string, path: string | undefined, receiveUpdate: DataFn): Promise; +export declare function statIpns(hash: string, path?: string): Promise; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index dd09653..04787a3 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,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAsBxC,wBAAsB,kBAAkB,iBAQvC;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,oBAAK,EACT,OAAO,gBAAK,EACZ,aAAa,EAAE,MAAM,gBAMtB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAK,EAAE,OAAO,KAAK,gBAKnE;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,oBAAK,EACT,OAAO,gBAAK,EACZ,aAAa,EAAE,MAAM,gBAMtB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAK,EAAE,OAAO,KAAK,gBAKnE"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAsBxC,wBAAsB,kBAAkB,iBAQvC;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,oBAAK,EACT,aAAa,EAAE,MAAM,gBAMtB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAK,gBAKrD;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,oBAAK,EACT,aAAa,EAAE,MAAM,gBAMtB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAK,gBAKrD"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index b380fcc..512dbeb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -23,29 +23,29 @@ export async function refreshGatewayList() { } return resp; } -export async function fetchIpfs(hash, path = "", headers = {}, receiveUpdate) { +export async function fetchIpfs(hash, path = "", receiveUpdate) { if (!ipfsPath(`/ipfs/{${hash}`)) { throw new Error("Invalid hash"); } - return doFetch("fetchIpfs", { hash, path, headers }, receiveUpdate); + return doFetch("fetchIpfs", { hash, path }, receiveUpdate); } -export async function statIpfs(hash, path = "", headers = {}) { +export async function statIpfs(hash, path = "") { if (!ipfsPath(`/ipfs/{${hash}`)) { throw new Error("Invalid hash"); } - return doFetch("statIpfs", { hash, path, headers }); + return doFetch("statIpfs", { hash, path }); } -export async function fetchIpns(hash, path = "", headers = {}, receiveUpdate) { +export async function fetchIpns(hash, path = "", receiveUpdate) { if (!ipnsPath(`/ipns/{${hash}`)) { throw new Error("Invalid hash"); } - return doFetch("fetchIpns", { hash, path, headers }, receiveUpdate); + return doFetch("fetchIpns", { hash, path }, receiveUpdate); } -export async function statIpns(hash, path = "", headers = {}) { +export async function statIpns(hash, path = "") { if (!ipnsPath(`/ipns/{${hash}`)) { throw new Error("Invalid hash"); } - return doFetch("statIpns", { hash, path, headers }); + return doFetch("statIpns", { hash, path }); } async function doFetch(method, data, receiveUpdate) { let [resp, err] = await doCall(method, data, receiveUpdate);