Skip to content

Commit

Permalink
upgrade 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
codev911 committed Oct 29, 2024
1 parent 6a2e7b1 commit 25917ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const gateways: string[] = [
'https://ipfs.quicknode.com/ipfs/{hash}',
];

const agent = new https.Agent({
rejectUnauthorized: true,
});

export const getAllGateway = (ipfsUrl: string): string[] => {
const finalUrl: string[] = [];
const getHash = ipfsUrl.replace('ipfs://', '');
Expand Down Expand Up @@ -51,7 +47,7 @@ export const getAllLiveGateway = async (

finalUrl.push(url);
listLoop.push(
axios.head(url, { httpsAgent: agent, timeout: timeout || 3000 })
axios.head(url, { timeout: timeout || 3000 })
);
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "public-ipfs-gateway",
"description": "Get Public IPFS gateway url easily",
"author": "codev911",
"version": "1.1.1",
"version": "1.1.2",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 25917ba

Please sign in to comment.