@dxos/hypercore 0.1.21 → 0.1.23
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import hypercore from 'hypercore';
|
|
3
2
|
import type { Hypercore, HypercoreOptions } from 'hypercore';
|
|
4
3
|
import { Directory } from '@dxos/random-access-storage';
|
|
5
4
|
/**
|
|
@@ -8,7 +7,7 @@ import { Directory } from '@dxos/random-access-storage';
|
|
|
8
7
|
export declare class HypercoreFactory<T> {
|
|
9
8
|
private readonly _root;
|
|
10
9
|
private readonly _options?;
|
|
11
|
-
constructor(_root?: Directory, _options?:
|
|
10
|
+
constructor(_root?: Directory, _options?: HypercoreOptions | undefined);
|
|
12
11
|
/**
|
|
13
12
|
* Creates a feed using a storage factory prefixed with the feed's key.
|
|
14
13
|
* NOTE: We have to use our `random-access-storage` implementation since the native ones
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hypercore-factory.d.ts","sourceRoot":"","sources":["../../../src/hypercore-factory.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"hypercore-factory.d.ts","sourceRoot":"","sources":["../../../src/hypercore-factory.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7D,OAAO,EAAiB,SAAS,EAAe,MAAM,6BAA6B,CAAC;AAIpF;;GAEG;AACH,qBAAa,gBAAgB,CAAC,CAAC;IAG3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBADT,KAAK,GAAE,SAAsE,EAC7E,QAAQ,CAAC,8BAAkB;IAK9C;;;;OAIG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC;IAMvE;;OAEG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;CAKrF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/hypercore",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Hypercore wrapper and utils.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"hypercore-protocol": "^8.0.7",
|
|
21
21
|
"readable-stream": "^3.6.0",
|
|
22
22
|
"streamx": "^2.12.5",
|
|
23
|
-
"@dxos/async": "0.1.
|
|
24
|
-
"@dxos/codec-protobuf": "0.1.
|
|
25
|
-
"@dxos/crypto": "0.1.
|
|
26
|
-
"@dxos/debug": "0.1.
|
|
27
|
-
"@dxos/keys": "0.1.
|
|
28
|
-
"@dxos/node-std": "0.1.
|
|
29
|
-
"@dxos/random-access-storage": "0.1.
|
|
23
|
+
"@dxos/async": "0.1.23",
|
|
24
|
+
"@dxos/codec-protobuf": "0.1.23",
|
|
25
|
+
"@dxos/crypto": "0.1.23",
|
|
26
|
+
"@dxos/debug": "0.1.23",
|
|
27
|
+
"@dxos/keys": "0.1.23",
|
|
28
|
+
"@dxos/node-std": "0.1.23",
|
|
29
|
+
"@dxos/random-access-storage": "0.1.23"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/debug": "^4.1.7",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"debug": "^4.3.3",
|
|
37
37
|
"faker": "^5.5.3",
|
|
38
38
|
"random-access-memory": "^4.1.0",
|
|
39
|
-
"@dxos/log": "0.1.
|
|
40
|
-
"@dxos/util": "0.1.
|
|
39
|
+
"@dxos/log": "0.1.23",
|
|
40
|
+
"@dxos/util": "0.1.23"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|