@libp2p/dcutr 2.0.2 → 2.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.
@@ -58,21 +58,29 @@ import type { ComponentLogger, PeerStore } from '@libp2p/interface';
58
58
  import type { AddressManager, ConnectionManager, Registrar, TransportManager } from '@libp2p/interface-internal';
59
59
  export interface DCUtRServiceInit {
60
60
  /**
61
- * How long we should wait for the connection upgrade to complete (default: 5s)
61
+ * How long we should wait for the connection upgrade to complete
62
+ *
63
+ * @default 5000
62
64
  */
63
65
  timeout?: number;
64
66
  /**
65
- * How many times to retry the connection upgrade (default: 3)
67
+ * How many times to retry the connection upgrade
68
+ *
69
+ * @default 3
66
70
  */
67
71
  retries?: number;
68
72
  /**
69
73
  * How many simultaneous inbound DCUtR protocol streams to allow on each
70
- * connection (default: 1)
74
+ * connection
75
+ *
76
+ * @default 1
71
77
  */
72
78
  maxInboundStreams?: number;
73
79
  /**
74
80
  * How many simultaneous outbound DCUtR protocol streams to allow on each
75
- * connection (default: 1)
81
+ * connection
82
+ *
83
+ * @default 1
76
84
  */
77
85
  maxOutboundStreams?: number;
78
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAEhH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1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O,MAAM,UAAU,kBAAkB,CAAA;AAEzC,wBAAgB,KAAK,CAAE,IAAI,GAAE,gBAAqB,GAAG,CAAC,UAAU,EAAE,sBAAsB,KAAK,OAAO,CAEnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAqChD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAA;AAEzC,MAAM,UAAU,KAAK,CAAE,OAAyB,EAAE;IAChD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAClE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AA6ChD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAA;AAEzC,MAAM,UAAU,KAAK,CAAE,OAAyB,EAAE;IAChD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAClE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/dcutr",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Implementation of the DCUtR Protocol",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-dcutr#readme",
@@ -52,9 +52,9 @@
52
52
  "doc-check": "aegir doc-check"
53
53
  },
54
54
  "dependencies": {
55
- "@libp2p/interface": "^2.1.0",
56
- "@libp2p/interface-internal": "^2.0.2",
57
- "@libp2p/utils": "^6.0.2",
55
+ "@libp2p/interface": "^2.1.1",
56
+ "@libp2p/interface-internal": "^2.0.3",
57
+ "@libp2p/utils": "^6.0.3",
58
58
  "@multiformats/multiaddr": "^12.2.3",
59
59
  "@multiformats/multiaddr-matcher": "^1.2.1",
60
60
  "delay": "^6.0.0",
package/src/index.ts CHANGED
@@ -61,24 +61,32 @@ import type { AddressManager, ConnectionManager, Registrar, TransportManager } f
61
61
 
62
62
  export interface DCUtRServiceInit {
63
63
  /**
64
- * How long we should wait for the connection upgrade to complete (default: 5s)
64
+ * How long we should wait for the connection upgrade to complete
65
+ *
66
+ * @default 5000
65
67
  */
66
68
  timeout?: number
67
69
 
68
70
  /**
69
- * How many times to retry the connection upgrade (default: 3)
71
+ * How many times to retry the connection upgrade
72
+ *
73
+ * @default 3
70
74
  */
71
75
  retries?: number
72
76
 
73
77
  /**
74
78
  * How many simultaneous inbound DCUtR protocol streams to allow on each
75
- * connection (default: 1)
79
+ * connection
80
+ *
81
+ * @default 1
76
82
  */
77
83
  maxInboundStreams?: number
78
84
 
79
85
  /**
80
86
  * How many simultaneous outbound DCUtR protocol streams to allow on each
81
- * connection (default: 1)
87
+ * connection
88
+ *
89
+ * @default 1
82
90
  */
83
91
  maxOutboundStreams?: number
84
92
  }