Skip to content

Commit 25917ba

Browse files
committed
upgrade 1.1.2
1 parent 6a2e7b1 commit 25917ba

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ const gateways: string[] = [
1111
'https://ipfs.quicknode.com/ipfs/{hash}',
1212
];
1313

14-
const agent = new https.Agent({
15-
rejectUnauthorized: true,
16-
});
17-
1814
export const getAllGateway = (ipfsUrl: string): string[] => {
1915
const finalUrl: string[] = [];
2016
const getHash = ipfsUrl.replace('ipfs://', '');
@@ -51,7 +47,7 @@ export const getAllLiveGateway = async (
5147

5248
finalUrl.push(url);
5349
listLoop.push(
54-
axios.head(url, { httpsAgent: agent, timeout: timeout || 3000 })
50+
axios.head(url, { timeout: timeout || 3000 })
5551
);
5652
});
5753

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "public-ipfs-gateway",
33
"description": "Get Public IPFS gateway url easily",
44
"author": "codev911",
5-
"version": "1.1.1",
5+
"version": "1.1.2",
66
"main": "./dist/index.js",
77
"module": "./dist/index.mjs",
88
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)