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[] = [
1111 'https://ipfs.quicknode.com/ipfs/{hash}' ,
1212] ;
1313
14- const agent = new https . Agent ( {
15- rejectUnauthorized : true ,
16- } ) ;
17-
1814export 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments