@peerbit/stream 4.0.6-3a75d6e → 4.0.6
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/dist/src/index.d.ts +1 -1
- package/package.json +93 -93
package/dist/src/index.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ export declare abstract class DirectStream<Events extends {
|
|
|
218
218
|
onGoodBye(publicKey: PublicSignKey, peerStream: PeerStreams, messageBytes: Uint8ArrayList | Uint8Array, message: Goodbye): Promise<boolean>;
|
|
219
219
|
private maybeDeleteRemoteRoutes;
|
|
220
220
|
private checkIsAlive;
|
|
221
|
-
createMessage(data: Uint8Array | Uint8ArrayList | undefined, options: (WithTo | WithMode) & PriorityOptions & IdentificationOptions): Promise<DataMessage<SilentDelivery |
|
|
221
|
+
createMessage(data: Uint8Array | Uint8ArrayList | undefined, options: (WithTo | WithMode) & PriorityOptions & IdentificationOptions): Promise<DataMessage<SilentDelivery | SeekDelivery | AcknowledgeDelivery | AnyWhere>>;
|
|
222
222
|
/**
|
|
223
223
|
* Publishes messages to all peers
|
|
224
224
|
*/
|
package/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
2
|
+
"name": "@peerbit/stream",
|
|
3
|
+
"version": "4.0.6",
|
|
4
|
+
"description": "A building block for direct streaming protocols",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"*": [
|
|
11
|
+
"*",
|
|
12
|
+
"dist/*",
|
|
13
|
+
"dist/src/*",
|
|
14
|
+
"dist/src/*/index"
|
|
15
|
+
],
|
|
16
|
+
"src/*": [
|
|
17
|
+
"*",
|
|
18
|
+
"dist/*",
|
|
19
|
+
"dist/src/*",
|
|
20
|
+
"dist/src/*/index"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"src",
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/e2e",
|
|
28
|
+
"!dist/test",
|
|
29
|
+
"!**/*.tsbuildinfo"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/src/index.d.ts",
|
|
34
|
+
"import": "./dist/src/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"eslintConfig": {
|
|
38
|
+
"extends": "peerbit",
|
|
39
|
+
"parserOptions": {
|
|
40
|
+
"project": true,
|
|
41
|
+
"sourceType": "module"
|
|
42
|
+
},
|
|
43
|
+
"ignorePatterns": [
|
|
44
|
+
"!.aegir.js",
|
|
45
|
+
"test/ts-use",
|
|
46
|
+
"*.d.ts"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"bench": "node --loader ts-node/esm ./benchmark/index.ts",
|
|
54
|
+
"clean": "aegir clean",
|
|
55
|
+
"build": "aegir build --no-bundle",
|
|
56
|
+
"test": "aegir test --target node",
|
|
57
|
+
"lint": "aegir lint"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=16.15.1"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/dao-xyz/peerbit.git"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"peerbit"
|
|
68
|
+
],
|
|
69
|
+
"author": "dao.xyz",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/dao-xyz/peerbit/issues"
|
|
73
|
+
},
|
|
74
|
+
"homepage": "https://github.com/dao-xyz/peerbit#readme",
|
|
75
|
+
"localMaintainers": [
|
|
76
|
+
"dao.xyz"
|
|
77
|
+
],
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@peerbit/libp2p-test-utils": "2.1.4",
|
|
80
|
+
"@types/yallist": "^4.0.4",
|
|
81
|
+
"@types/fast-fifo": "^1.0.2"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"p-queue": "^8.0.1",
|
|
85
|
+
"fast-fifo": "^1.3.2",
|
|
86
|
+
"@dao-xyz/borsh": "^5.2.3",
|
|
87
|
+
"@peerbit/cache": "2.1.0",
|
|
88
|
+
"@peerbit/crypto": "2.3.0",
|
|
89
|
+
"@peerbit/stream-interface": "^5.0.3",
|
|
90
|
+
"@peerbit/logger": "^1.0.3",
|
|
91
|
+
"libp2p": "^1.8.1",
|
|
92
|
+
"yallist": "^4.0.0",
|
|
93
|
+
"abortable-iterator": "^5.0.1"
|
|
94
|
+
}
|
|
95
95
|
}
|