@helia/delegated-routing-v1-http-api-client 6.0.1 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/index.min.js +1 -15
- package/dist/index.min.js.map +4 -4
- package/dist/src/client.d.ts +6 -12
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +42 -45
- package/dist/src/client.js.map +1 -1
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +2 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/index.d.ts +11 -18
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/routings.d.ts +11 -4
- package/dist/src/routings.d.ts.map +1 -1
- package/dist/src/routings.js +30 -15
- package/dist/src/routings.js.map +1 -1
- package/dist/typedoc-urls.json +7 -3
- package/package.json +20 -19
- package/src/client.ts +47 -54
- package/src/constants.ts +1 -0
- package/src/index.ts +19 -20
- package/src/routings.ts +40 -20
package/README.md
CHANGED
|
@@ -130,6 +130,14 @@ for await (const prov of client.getProviders(CID.parse('bafy'), {
|
|
|
130
130
|
$ npm i @helia/delegated-routing-v1-http-api-client
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
## Browser `<script>` tag
|
|
134
|
+
|
|
135
|
+
Loading this module through a script tag will make its exports available as `HeliaDelegatedRoutingV1HttpApiClient` in the global namespace.
|
|
136
|
+
|
|
137
|
+
```html
|
|
138
|
+
<script src="https://unpkg.com/@helia/delegated-routing-v1-http-api-client/dist/index.min.js"></script>
|
|
139
|
+
```
|
|
140
|
+
|
|
133
141
|
# API Docs
|
|
134
142
|
|
|
135
143
|
- <https://ipfs.github.io/helia-delegated-routing-v1-http-api/modules/_helia_delegated-routing-v1-http-api-client.html>
|