@libp2p/identify 3.0.29-f1de46607 → 3.0.30

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.
@@ -127,11 +127,19 @@ export interface IdentifyPushComponents extends IdentifyComponents {
127
127
  }
128
128
  export interface Identify {
129
129
  /**
130
- * due to the default limits on inbound/outbound streams for this protocol,
131
- * invoking this method when runOnConnectionOpen is true can lead to unpredictable results
132
- * as streams may be closed by the local or the remote node.
133
- * Please use with caution. If you find yourself needing to call this method to discover other peers that support your protocol,
134
- * you may be better off configuring a topology to be notified instead.
130
+ * Please use with caution.
131
+ *
132
+ * Due to the default limits on inbound/outbound streams for this protocol,
133
+ * invoking this method when runOnConnectionOpen is true can lead to
134
+ * unpredictable results as streams may be closed by the local or the remote
135
+ * node.
136
+ *
137
+ * If you find yourself needing to call this method to discover other peers
138
+ * that support your protocol, you may be better off configuring a topology to
139
+ * be notified instead.
140
+ *
141
+ * Alternatively the libp2p node itself will emit `peer:identify` events after
142
+ * identify has taken place which can be used to passively detect new peers.
135
143
  */
136
144
  identify(connection: Connection, options?: AbortOptions): Promise<IdentifyResult>;
137
145
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC3K,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAE9F,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,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AAE,OAAyB,EAAE;IACvD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAChE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,eAAe,CAAA;AA2HzD,MAAM,UAAU,QAAQ,CAAE,OAAqB,EAAE;IAC/C,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAC5D,CAAC;AAED,MAAM,UAAU,YAAY,CAAE,OAAyB,EAAE;IACvD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAChE,CAAC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "Identify": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.Identify.html",
3
+ ".:Identify": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.Identify.html",
4
+ "IdentifyComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyComponents.html",
5
+ ".:IdentifyComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyComponents.html",
6
+ "IdentifyInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyInit.html",
7
+ ".:IdentifyInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyInit.html",
8
+ "IdentifyPush": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPush.html",
9
+ ".:IdentifyPush": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPush.html",
10
+ "IdentifyPushComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPushComponents.html",
11
+ ".:IdentifyPushComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPushComponents.html",
12
+ "IdentifyPushInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPushInit.html",
13
+ ".:IdentifyPushInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_identify.IdentifyPushInit.html",
14
+ "identify": "https://libp2p.github.io/js-libp2p/functions/_libp2p_identify.identify-1.html",
15
+ ".:identify": "https://libp2p.github.io/js-libp2p/functions/_libp2p_identify.identify-1.html",
16
+ "identifyPush": "https://libp2p.github.io/js-libp2p/functions/_libp2p_identify.identifyPush-1.html",
17
+ ".:identifyPush": "https://libp2p.github.io/js-libp2p/functions/_libp2p_identify.identifyPush-1.html"
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/identify",
3
- "version": "3.0.29-f1de46607",
3
+ "version": "3.0.30",
4
4
  "description": "Implementation of the Identify Protocol",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-identify#readme",
@@ -52,12 +52,12 @@
52
52
  "doc-check": "aegir doc-check"
53
53
  },
54
54
  "dependencies": {
55
- "@libp2p/crypto": "5.1.1-f1de46607",
56
- "@libp2p/interface": "2.9.0-f1de46607",
57
- "@libp2p/interface-internal": "2.3.11-f1de46607",
58
- "@libp2p/peer-id": "5.1.2-f1de46607",
59
- "@libp2p/peer-record": "8.0.27-f1de46607",
60
- "@libp2p/utils": "6.6.2-f1de46607",
55
+ "@libp2p/crypto": "^5.1.2",
56
+ "@libp2p/interface": "^2.10.0",
57
+ "@libp2p/interface-internal": "^2.3.12",
58
+ "@libp2p/peer-id": "^5.1.3",
59
+ "@libp2p/peer-record": "^8.0.28",
60
+ "@libp2p/utils": "^6.6.3",
61
61
  "@multiformats/multiaddr": "^12.3.3",
62
62
  "@multiformats/multiaddr-matcher": "^1.6.0",
63
63
  "it-drain": "^3.0.7",
@@ -68,7 +68,7 @@
68
68
  "uint8arrays": "^5.1.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@libp2p/logger": "5.1.15-f1de46607",
71
+ "@libp2p/logger": "^5.1.16",
72
72
  "aegir": "^45.1.1",
73
73
  "delay": "^6.0.0",
74
74
  "it-length-prefixed": "^10.0.1",
package/src/index.ts CHANGED
@@ -144,11 +144,19 @@ export interface IdentifyPushComponents extends IdentifyComponents {
144
144
 
145
145
  export interface Identify {
146
146
  /**
147
- * due to the default limits on inbound/outbound streams for this protocol,
148
- * invoking this method when runOnConnectionOpen is true can lead to unpredictable results
149
- * as streams may be closed by the local or the remote node.
150
- * Please use with caution. If you find yourself needing to call this method to discover other peers that support your protocol,
151
- * you may be better off configuring a topology to be notified instead.
147
+ * Please use with caution.
148
+ *
149
+ * Due to the default limits on inbound/outbound streams for this protocol,
150
+ * invoking this method when runOnConnectionOpen is true can lead to
151
+ * unpredictable results as streams may be closed by the local or the remote
152
+ * node.
153
+ *
154
+ * If you find yourself needing to call this method to discover other peers
155
+ * that support your protocol, you may be better off configuring a topology to
156
+ * be notified instead.
157
+ *
158
+ * Alternatively the libp2p node itself will emit `peer:identify` events after
159
+ * identify has taken place which can be used to passively detect new peers.
152
160
  */
153
161
  identify(connection: Connection, options?: AbortOptions): Promise<IdentifyResult>
154
162
  }