File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed 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.7 " ,
5
+ "version" : " 1.0.8 " ,
6
6
"main" : " ./dist/index.js" ,
7
7
"browser" : " ./dist/iife/index.js" ,
8
8
"module" : " ./dist/esm/index.js" ,
26
26
"ts-jest" : " ^29.1.2" ,
27
27
"tslib" : " ^2.6.2" ,
28
28
"tsup" : " ^8.0.1" ,
29
- "typescript" : " ^5.3.3"
29
+ "typescript" : " ^5.3.3" ,
30
+ "util" : " ^0.12.5"
30
31
},
31
32
"dependencies" : {
32
33
"axios" : " ^1.6.6"
Original file line number Diff line number Diff line change 1
1
import { getLiveGateway } from '../lib' ;
2
2
3
- test ( 'get live gateway urls from ipfs url protocol' , ( ) => {
3
+ test ( 'get live gateway urls from ipfs url protocol' , async ( ) => {
4
4
const url =
5
5
'ipfs://bafybeiged4aroumss7u646yl5rzq5xawlvni7velqmwgau6jhxqcpgtf44/metamask-wallet.svg' ;
6
- const result = getLiveGateway ( url ) ;
7
- expect ( result ) . not . toBe ( url ) ;
6
+ const result = await getLiveGateway ( url ) ;
7
+ console . log ( result ) ;
8
+ await expect ( await result ) . not . toBe ( url ) ;
8
9
} ) ;
Original file line number Diff line number Diff line change 7
7
"moduleResolution" : " Node" ,
8
8
"emitDecoratorMetadata" : true ,
9
9
"experimentalDecorators" : true ,
10
+ "esModuleInterop" : true ,
10
11
"importHelpers" : true ,
11
12
"target" : " ES2015" ,
12
13
"module" : " ESNext" ,
You can’t perform that action at this time.
0 commit comments