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
* feat: support aborting exports
Adds a `signal` option to the exporter that will be passed to `ipld.get`,
allowing it to be notified that the user is no longer interested in
exporting the file/directory/etc.
Current behaviour is that if the node is offline and a block is not in
the repo is will throw, if it's online the CID will be added to the
bitswap want list via the block service.
Follow up PRs to ipld, block service and bitswap will impelement the
removal logic.
* docs: add signal option to readme
Uses the given [js-ipld instance][] to fetch an IPFS node by it's CID.
90
+
Uses the given [ipld](https://github.com/ipld/js-ipld) instance to fetch an IPFS node by it's CID.
91
91
92
92
Returns a Promise which resolves to an `entry`.
93
93
94
+
`options` is an optional object argument that might include the following keys:
95
+
96
+
-`signal` ([AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)): Used to cancel any network requests that are initiated as a result of this export
97
+
94
98
#### UnixFS V1 entries
95
99
96
100
Entries with a `dag-pb` codec `CID` return UnixFS V1 entries:
0 commit comments