@libp2p/daemon-protocol 7.0.1 → 7.0.3
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 +4 -2
- package/dist/src/upgrader.d.ts +1 -2
- package/dist/src/upgrader.d.ts.map +1 -1
- package/dist/typedoc-urls.json +3 -1
- package/package.json +91 -6
- package/src/upgrader.ts +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# @libp2p/daemon-protocol
|
|
2
|
+
|
|
1
3
|
[](http://libp2p.io/)
|
|
2
4
|
[](https://discuss.libp2p.io)
|
|
3
5
|
[](https://codecov.io/gh/libp2p/js-libp2p-daemon)
|
|
@@ -19,8 +21,8 @@ $ npm i @libp2p/daemon-protocol
|
|
|
19
21
|
|
|
20
22
|
Licensed under either of
|
|
21
23
|
|
|
22
|
-
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
23
|
-
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
24
|
+
- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p-daemon/blob/main/packages/libp2p-daemon-protocol/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
25
|
+
- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p-daemon/blob/main/packages/libp2p-daemon-protocol/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
24
26
|
|
|
25
27
|
# Contribution
|
|
26
28
|
|
package/dist/src/upgrader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Connection, MultiaddrConnection, Upgrader } from '@libp2p/interface';
|
|
2
|
-
interface OnConnection {
|
|
2
|
+
export interface OnConnection {
|
|
3
3
|
(conn: MultiaddrConnection): void;
|
|
4
4
|
}
|
|
5
5
|
export declare class PassThroughUpgrader implements Upgrader {
|
|
@@ -8,5 +8,4 @@ export declare class PassThroughUpgrader implements Upgrader {
|
|
|
8
8
|
upgradeInbound(maConn: MultiaddrConnection): Promise<Connection>;
|
|
9
9
|
upgradeOutbound(maConn: MultiaddrConnection): Promise<Connection>;
|
|
10
10
|
}
|
|
11
|
-
export {};
|
|
12
11
|
//# sourceMappingURL=upgrader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrader.d.ts","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElF,
|
|
1
|
+
{"version":3,"file":"upgrader.d.ts","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElF,MAAM,WAAW,YAAY;IAC3B,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAClC;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAc;gBAE/B,OAAO,CAAC,EAAE,YAAY;IAI7B,cAAc,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAMjE,eAAe,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAIzE"}
|
package/dist/typedoc-urls.json
CHANGED
|
@@ -48,5 +48,7 @@
|
|
|
48
48
|
"StreamHandlerOptions": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.stream_handler.StreamHandlerOptions.html",
|
|
49
49
|
"./stream-handler:StreamHandlerOptions": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.stream_handler.StreamHandlerOptions.html",
|
|
50
50
|
"PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html",
|
|
51
|
-
"./upgrader:PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html"
|
|
51
|
+
"./upgrader:PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html",
|
|
52
|
+
"OnConnection": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.upgrader.OnConnection.html",
|
|
53
|
+
"./upgrader:OnConnection": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.upgrader.OnConnection.html"
|
|
52
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/daemon-protocol",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "Communication protocol between libp2p daemons and clients",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "Apache-2.0 OR MIT",
|
|
@@ -61,6 +61,91 @@
|
|
|
61
61
|
"sourceType": "module"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
"release": {
|
|
65
|
+
"branches": [
|
|
66
|
+
"main"
|
|
67
|
+
],
|
|
68
|
+
"plugins": [
|
|
69
|
+
[
|
|
70
|
+
"@semantic-release/commit-analyzer",
|
|
71
|
+
{
|
|
72
|
+
"preset": "conventionalcommits",
|
|
73
|
+
"releaseRules": [
|
|
74
|
+
{
|
|
75
|
+
"breaking": true,
|
|
76
|
+
"release": "major"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"revert": true,
|
|
80
|
+
"release": "patch"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "feat",
|
|
84
|
+
"release": "minor"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "fix",
|
|
88
|
+
"release": "patch"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "docs",
|
|
92
|
+
"release": "patch"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "test",
|
|
96
|
+
"release": "patch"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "deps",
|
|
100
|
+
"release": "patch"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"scope": "no-release",
|
|
104
|
+
"release": false
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
"@semantic-release/release-notes-generator",
|
|
111
|
+
{
|
|
112
|
+
"preset": "conventionalcommits",
|
|
113
|
+
"presetConfig": {
|
|
114
|
+
"types": [
|
|
115
|
+
{
|
|
116
|
+
"type": "feat",
|
|
117
|
+
"section": "Features"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "fix",
|
|
121
|
+
"section": "Bug Fixes"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "chore",
|
|
125
|
+
"section": "Trivial Changes"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "docs",
|
|
129
|
+
"section": "Documentation"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "deps",
|
|
133
|
+
"section": "Dependencies"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "test",
|
|
137
|
+
"section": "Tests"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"@semantic-release/changelog",
|
|
144
|
+
"@semantic-release/npm",
|
|
145
|
+
"@semantic-release/github",
|
|
146
|
+
"@semantic-release/git"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
64
149
|
"scripts": {
|
|
65
150
|
"clean": "aegir clean",
|
|
66
151
|
"lint": "aegir lint",
|
|
@@ -70,14 +155,14 @@
|
|
|
70
155
|
"release": "aegir release"
|
|
71
156
|
},
|
|
72
157
|
"dependencies": {
|
|
73
|
-
"@libp2p/interface": "^2.
|
|
74
|
-
"@libp2p/logger": "^5.
|
|
75
|
-
"it-length-prefixed-stream": "^1.
|
|
76
|
-
"protons-runtime": "^5.
|
|
158
|
+
"@libp2p/interface": "^2.2.0",
|
|
159
|
+
"@libp2p/logger": "^5.1.3",
|
|
160
|
+
"it-length-prefixed-stream": "^1.2.0",
|
|
161
|
+
"protons-runtime": "^5.5.0",
|
|
77
162
|
"uint8arraylist": "^2.4.8"
|
|
78
163
|
},
|
|
79
164
|
"devDependencies": {
|
|
80
165
|
"aegir": "^45.0.1",
|
|
81
|
-
"protons": "^7.
|
|
166
|
+
"protons": "^7.6.0"
|
|
82
167
|
}
|
|
83
168
|
}
|