File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ const gateways: string[] = [
11
11
'https://ipfs.quicknode.com/ipfs/{hash}' ,
12
12
] ;
13
13
14
- const agent = new https . Agent ( {
15
- rejectUnauthorized : true ,
16
- } ) ;
17
-
18
14
export const getAllGateway = ( ipfsUrl : string ) : string [ ] => {
19
15
const finalUrl : string [ ] = [ ] ;
20
16
const getHash = ipfsUrl . replace ( 'ipfs://' , '' ) ;
@@ -51,7 +47,7 @@ export const getAllLiveGateway = async (
51
47
52
48
finalUrl . push ( url ) ;
53
49
listLoop . push (
54
- axios . head ( url , { httpsAgent : agent , timeout : timeout || 3000 } )
50
+ axios . head ( url , { timeout : timeout || 3000 } )
55
51
) ;
56
52
} ) ;
57
53
Original file line number Diff line number Diff line change 2
2
"name" : " public-ipfs-gateway" ,
3
3
"description" : " Get Public IPFS gateway url easily" ,
4
4
"author" : " codev911" ,
5
- "version" : " 1.1.1 " ,
5
+ "version" : " 1.1.2 " ,
6
6
"main" : " ./dist/index.js" ,
7
7
"module" : " ./dist/index.mjs" ,
8
8
"types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments