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
test: add tests for different types of connection config (#3388)
We claim to support URLs, MultiAddrs, strings and individual URL components
so add tests for them.
Also, add code to actually support the above permutations..
Co-authored-by: Vasco Santos <[email protected]>
* @property {number|string} [timeout] - Amount of time until request should timeout in ms or humand readable. https://www.npmjs.com/package/parse-duration for valid string values.
113
114
* @property {string} [apiPath] - Path to the API.
114
-
* @property {URL|string} [url] - Full API URL.
115
+
* @property {URL|string|Multiaddr} [url] - Full API URL.
115
116
* @property {object} [ipld]
116
117
* @property {any[]} [ipld.formats] - An array of additional [IPLD formats](https://github.com/ipld/interface-ipld-format) to support
117
118
* @property {(format: string) => Promise<any>} [ipld.loadFormat] - an async function that takes the name of an [IPLD format](https://github.com/ipld/interface-ipld-format) as a string and should return the implementation of that codec
0 commit comments