File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,7 @@ export const getLiveGateway = async (
48
48
}
49
49
50
50
finalUrl . push ( url ) ;
51
- listLoop . push (
52
- axios ( {
53
- method : 'head' ,
54
- url : url ,
55
- timeout : timeout !== undefined && timeout !== null ? timeout : 1500 ,
56
- } )
57
- ) ;
51
+ listLoop . push ( axios . head ( url , { timeout : timeout || 5000 } ) ) ;
58
52
} ) ;
59
53
60
54
const result = await Promise . allSettled ( listLoop ) ;
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.0.8 " ,
5
+ "version" : " 1.0.9 " ,
6
6
"main" : " ./dist/index.js" ,
7
- "browser" : " ./dist/iife/ index.js" ,
8
- "module" : " ./dist/esm/ index.js " ,
7
+ "browser" : " ./dist/index.global .js" ,
8
+ "module" : " ./dist/index.mjs " ,
9
9
"types" : " ./dist/index.d.ts" ,
10
10
"files" : [
11
11
" dist"
17
17
"test" : " jest"
18
18
},
19
19
"devDependencies" : {
20
+ "@swc/core" : " ^1.3.105" ,
20
21
"@types/jest" : " ^29.5.11" ,
21
22
"@types/mocha" : " ^10.0.6" ,
22
23
"@types/node" : " ^14" ,
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ export default defineConfig({
6
6
dts : true ,
7
7
splitting : false ,
8
8
sourcemap : true ,
9
- minify : true ,
10
9
minifyIdentifiers : true ,
11
10
clean : true ,
12
- legacyOutput : true ,
13
11
} ) ;
You can’t perform that action at this time.
0 commit comments