@helia/utils 1.3.2-99025383 → 1.3.2-a0266903
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 +1 -15
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +4 -4
- package/dist/src/index.d.ts +33 -19
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -17
- package/dist/src/index.js.map +1 -1
- package/package.json +4 -2
- package/src/index.ts +41 -21
package/README.md
CHANGED
|
@@ -30,21 +30,7 @@ repo and examine the changes made.
|
|
|
30
30
|
|
|
31
31
|
-->
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
In general you should use the `helia` or `@helia/http` modules instead which
|
|
36
|
-
pre-configure Helia for certain use-cases (p2p or pure-HTTP).
|
|
37
|
-
|
|
38
|
-
## Example
|
|
39
|
-
|
|
40
|
-
```typescript
|
|
41
|
-
import { Helia } from '@helia/utils'
|
|
42
|
-
import type { HeliaInit } from '@helia/utils'
|
|
43
|
-
|
|
44
|
-
const node = new Helia({
|
|
45
|
-
// ...options
|
|
46
|
-
} as HeliaInit)
|
|
47
|
-
```
|
|
33
|
+
This module contains utility code that is shared between various Helia modules such as `helia`, `@helia/http`, etc.
|
|
48
34
|
|
|
49
35
|
# Install
|
|
50
36
|
|