You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2021. It is now read-only.
@@ -39,10 +39,10 @@ This module also exports the used ipfs `resolver`, which should be used when the
39
39
```js
40
40
const { resolver } =require('ipfs-http-response')
41
41
42
-
resolver.cid(ipfsNode, ipfsPath)
43
-
.then((result) => {
44
-
...
45
-
})
42
+
(async () => {
43
+
constresult=awaitresolver.cid(ipfsNode, ipfsPath)
44
+
console.log(result)
45
+
})()
46
46
```
47
47
48
48
If `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:
@@ -51,10 +51,10 @@ If `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag n
0 commit comments