@helia/utils 0.3.3-acd876b → 0.3.3-bc64f47
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 +3 -2
- package/dist/index.min.js +1 -1
- package/dist/src/abstract-session.d.ts.map +1 -1
- package/dist/src/abstract-session.js +3 -3
- package/dist/src/abstract-session.js.map +1 -1
- package/dist/src/index.d.ts +23 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/pins.d.ts +6 -3
- package/dist/src/pins.d.ts.map +1 -1
- package/dist/src/pins.js +21 -10
- package/dist/src/pins.js.map +1 -1
- package/dist/src/routing.d.ts.map +1 -1
- package/dist/src/routing.js +7 -6
- package/dist/src/routing.js.map +1 -1
- package/dist/src/utils/get-codec.d.ts +4 -0
- package/dist/src/utils/get-codec.d.ts.map +1 -0
- package/dist/src/utils/get-codec.js +38 -0
- package/dist/src/utils/get-codec.js.map +1 -0
- package/dist/src/utils/get-hasher.d.ts +4 -0
- package/dist/src/utils/get-hasher.d.ts.map +1 -0
- package/dist/src/utils/get-hasher.js +32 -0
- package/dist/src/utils/get-hasher.js.map +1 -0
- package/dist/src/utils/is-promise.d.ts +2 -0
- package/dist/src/utils/is-promise.d.ts.map +1 -0
- package/dist/src/utils/is-promise.js +4 -0
- package/dist/src/utils/is-promise.js.map +1 -0
- package/dist/src/utils/networked-storage.d.ts +3 -2
- package/dist/src/utils/networked-storage.d.ts.map +1 -1
- package/dist/src/utils/networked-storage.js +19 -9
- package/dist/src/utils/networked-storage.js.map +1 -1
- package/package.json +12 -11
- package/src/abstract-session.ts +3 -3
- package/src/index.ts +35 -16
- package/src/pins.ts +27 -13
- package/src/routing.ts +7 -6
- package/src/utils/get-codec.ts +47 -0
- package/src/utils/get-hasher.ts +40 -0
- package/src/utils/is-promise.ts +3 -0
- package/src/utils/networked-storage.ts +24 -11
- package/dist/src/utils/dag-walkers.d.ts +0 -28
- package/dist/src/utils/dag-walkers.d.ts.map +0 -1
- package/dist/src/utils/dag-walkers.js +0 -171
- package/dist/src/utils/dag-walkers.js.map +0 -1
- package/dist/src/utils/default-hashers.d.ts +0 -3
- package/dist/src/utils/default-hashers.d.ts.map +0 -1
- package/dist/src/utils/default-hashers.js +0 -15
- package/dist/src/utils/default-hashers.js.map +0 -1
- package/src/utils/dag-walkers.ts +0 -198
- package/src/utils/default-hashers.ts +0 -18
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ repo and examine the changes made.
|
|
|
30
30
|
|
|
31
31
|
-->
|
|
32
32
|
|
|
33
|
-
Exports a `Helia` class that implements the
|
|
33
|
+
Exports a `Helia` class that implements the Helia API.
|
|
34
34
|
|
|
35
35
|
In general you should use the `helia` or `@helia/http` modules instead which
|
|
36
36
|
pre-configure Helia for certain use-cases (p2p or pure-HTTP).
|
|
@@ -39,10 +39,11 @@ pre-configure Helia for certain use-cases (p2p or pure-HTTP).
|
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
41
|
import { Helia } from '@helia/utils'
|
|
42
|
+
import type { HeliaInit } from '@helia/utils'
|
|
42
43
|
|
|
43
44
|
const node = new Helia({
|
|
44
45
|
// ...options
|
|
45
|
-
})
|
|
46
|
+
} as HeliaInit)
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
# Install
|