@libp2p/utils 3.0.11 → 3.0.12-ab0e3980
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 +3 -3
- package/dist/src/address-sort.d.ts.map +1 -1
- package/dist/src/address-sort.js.map +1 -1
- package/dist/src/ip-port-to-multiaddr.d.ts +1 -1
- package/dist/src/ip-port-to-multiaddr.d.ts.map +1 -1
- package/dist/src/ip-port-to-multiaddr.js +2 -2
- package/dist/src/ip-port-to-multiaddr.js.map +1 -1
- package/dist/src/multiaddr/is-private.d.ts.map +1 -1
- package/dist/src/multiaddr/is-private.js.map +1 -1
- package/dist/src/stream-to-ma-conn.d.ts +1 -1
- package/dist/src/stream-to-ma-conn.d.ts.map +1 -1
- package/dist/src/stream-to-ma-conn.js +1 -1
- package/dist/src/stream-to-ma-conn.js.map +1 -1
- package/package.json +18 -106
- package/src/address-sort.ts +1 -1
- package/src/ip-port-to-multiaddr.ts +3 -3
- package/src/multiaddr/is-private.ts +1 -1
- package/src/stream-to-ma-conn.ts +2 -2
- package/dist/typedoc-urls.json +0 -13
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://libp2p.io/)
|
|
4
4
|
[](https://discuss.libp2p.io)
|
|
5
|
-
[](https://codecov.io/gh/libp2p/js-libp2p)
|
|
6
|
+
[](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster)
|
|
7
7
|
|
|
8
8
|
> Package to aggregate shared logic and dependencies for the libp2p ecosystem
|
|
9
9
|
|
|
@@ -51,7 +51,7 @@ You can check the [API docs](https://libp2p.github.io/js-libp2p-utils).
|
|
|
51
51
|
|
|
52
52
|
## API Docs
|
|
53
53
|
|
|
54
|
-
- <https://libp2p.github.io/js-libp2p
|
|
54
|
+
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_utils.html>
|
|
55
55
|
|
|
56
56
|
## License
|
|
57
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-sort.d.ts","sourceRoot":"","sources":["../../src/address-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"address-sort.d.ts","sourceRoot":"","sources":["../../src/address-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAiBxE;AAED;;GAEG;AACH,wBAAsB,SAAS,IAAK,OAAO,CAAC,UAAU,CAAC,CAEtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-sort.js","sourceRoot":"","sources":["../../src/address-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"address-sort.js","sourceRoot":"","sources":["../../src/address-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAGrD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAE,CAAU,EAAE,CAAU;IAC1D,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzC,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEzC,IAAI,UAAU,IAAI,CAAC,UAAU,EAAE;QAC7B,OAAO,CAAC,CAAA;KACT;SAAM,IAAI,CAAC,UAAU,IAAI,UAAU,EAAE;QACpC,OAAO,CAAC,CAAC,CAAA;KACV;IACD,mBAAmB;IACnB,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE;QACnC,OAAO,CAAC,CAAC,CAAA;KACV;SAAM,IAAI,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,EAAE;QAC1C,OAAO,CAAC,CAAA;KACT;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS;IAC7B,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AACnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-port-to-multiaddr.d.ts","sourceRoot":"","sources":["../../src/ip-port-to-multiaddr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ip-port-to-multiaddr.d.ts","sourceRoot":"","sources":["../../src/ip-port-to-multiaddr.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,yBAAyB,CAAA;AAInE,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8B/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Address4, Address6 } from '@achingbrain/ip-address';
|
|
2
|
+
import { CodeError } from '@libp2p/interfaces/errors';
|
|
1
3
|
import { logger } from '@libp2p/logger';
|
|
2
4
|
import { multiaddr } from '@multiformats/multiaddr';
|
|
3
|
-
import { CodeError } from '@libp2p/interfaces/errors';
|
|
4
|
-
import { Address4, Address6 } from '@achingbrain/ip-address';
|
|
5
5
|
const log = logger('libp2p:ip-port-to-multiaddr');
|
|
6
6
|
export const Errors = {
|
|
7
7
|
ERR_INVALID_IP_PARAMETER: 'ERR_INVALID_IP_PARAMETER',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-port-to-multiaddr.js","sourceRoot":"","sources":["../../src/ip-port-to-multiaddr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ip-port-to-multiaddr.js","sourceRoot":"","sources":["../../src/ip-port-to-multiaddr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAkB,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnE,MAAM,GAAG,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,cAAc,EAAE,gBAAgB;CACjC,CAAA;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAE,EAAU,EAAE,IAAqB;IAClE,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,MAAM,IAAI,SAAS,CAAC,wBAAwB,EAAE,EAAE,EAAE,MAAM,CAAC,wBAAwB,CAAC,CAAA,CAAC,uEAAuE;KAC3J;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;KACtB;IAED,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE;QACf,MAAM,IAAI,SAAS,CAAC,0BAA0B,IAAI,EAAE,EAAE,MAAM,CAAC,0BAA0B,CAAC,CAAA;KACzF;IAED,IAAI;QACF,kBAAkB;QAClB,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAA,CAAC,6BAA6B;QAC9C,OAAO,SAAS,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAA;KAC3C;IAAC,MAAM,GAAE;IAEV,IAAI;QACF,kBAAkB;QAClB,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC5B,OAAO,GAAG,CAAC,GAAG,EAAE;YACd,CAAC,CAAC,SAAS,CAAC,QAAQ,GAAG,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,QAAQ,IAAI,EAAE,CAAC;YAC1D,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAA;KACxC;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,MAAM,GAAG,6CAA6C,EAAE,IAAI,IAAI,EAAE,CAAA;QACxE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACjB,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;KACnD;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-private.d.ts","sourceRoot":"","sources":["../../../src/multiaddr/is-private.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-private.d.ts","sourceRoot":"","sources":["../../../src/multiaddr/is-private.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD;;GAEG;AACH,wBAAgB,SAAS,CAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CAQjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-private.js","sourceRoot":"","sources":["../../../src/multiaddr/is-private.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-private.js","sourceRoot":"","sources":["../../../src/multiaddr/is-private.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,YAAY,CAAA;AAGpC;;GAEG;AACH,MAAM,UAAU,SAAS,CAAE,EAAa;IACtC,IAAI;QACF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,CAAA;QAEpC,OAAO,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;KACrC;IAAC,MAAM;QACN,OAAO,IAAI,CAAA;KACZ;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
2
1
|
import type { MultiaddrConnection } from '@libp2p/interface-connection';
|
|
2
|
+
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
3
3
|
import type { Duplex, Source } from 'it-stream-types';
|
|
4
4
|
import type { Uint8ArrayList } from 'uint8arraylist';
|
|
5
5
|
export interface Timeline {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-to-ma-conn.d.ts","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"stream-to-ma-conn.d.ts","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAIpD,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,WAAW,CAAA;CAErB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,cAAc,GAAG,UAAU,CAAC,CAAC,CAAA;IAClF,UAAU,EAAE,SAAS,CAAA;IACrB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,GAAE,aAAkB,GAAG,mBAAmB,CAoD/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-to-ma-conn.js","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"stream-to-ma-conn.js","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAMpD,MAAM,GAAG,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAA;AA8B7C;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAE,KAAuB,EAAE,UAAyB,EAAE;IACxF,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAA;IACpC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAE/B,MAAM,SAAS,GAAG,CAAC,KAAK,SAAU,CAAC;QACjC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,MAAM,EAAE;YAC/B,IAAI,IAAI,YAAY,UAAU,EAAE;gBAC9B,MAAM,IAAI,CAAA;aACX;iBAAM;gBACL,KAAM,CAAC,CAAC,IAAI,CAAA;aACb;SACF;IACH,CAAC,EAAE,CAAC,CAAA;IAEJ,MAAM,MAAM,GAAwB;QAClC,KAAK,CAAC,IAAI,CAAE,MAAM;YAChB,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,EAAE;gBAC1B,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;aACjD;YAED,IAAI;gBACF,MAAM,IAAI,CAAC,MAAM,CAAC,CAAA;gBAClB,MAAM,KAAK,EAAE,CAAA;aACd;YAAC,OAAO,GAAQ,EAAE;gBACjB,kCAAkC;gBAClC,IAAI,GAAG,CAAC,IAAI,KAAK,SAAS,EAAE;oBAC1B,uEAAuE;oBACvE,gEAAgE;oBAChE,uEAAuE;oBACvE,GAAG,CAAC,GAAG,CAAC,CAAA;iBACT;aACF;QACH,CAAC;QACD,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;QACzF,UAAU;QACV,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;QAChD,KAAK,CAAC,KAAK;YACT,MAAM,IAAI,CAAC,KAAK,SAAU,CAAC;gBACzB,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;YACzB,CAAC,EAAE,CAAC,CAAA;YACJ,MAAM,KAAK,EAAE,CAAA;QACf,CAAC;KACF,CAAA;IAED,KAAK,UAAU,KAAK;QAClB,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE;YACjC,MAAM,CAAC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;SACnC;QACD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAA;IACzB,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12-ab0e3980",
|
|
4
4
|
"description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
|
-
"homepage": "https://github.com/libp2p/js-libp2p
|
|
6
|
+
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/utils#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/libp2p/js-libp2p
|
|
9
|
+
"url": "git+https://github.com/libp2p/js-libp2p.git"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/libp2p/js-libp2p
|
|
13
|
-
},
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">=16.0.0",
|
|
16
|
-
"npm": ">=7.0.0"
|
|
12
|
+
"url": "https://github.com/libp2p/js-libp2p/issues"
|
|
17
13
|
},
|
|
18
14
|
"type": "module",
|
|
19
15
|
"types": "./dist/src/index.d.ts",
|
|
@@ -75,124 +71,40 @@
|
|
|
75
71
|
"sourceType": "module"
|
|
76
72
|
}
|
|
77
73
|
},
|
|
78
|
-
"release": {
|
|
79
|
-
"branches": [
|
|
80
|
-
"master"
|
|
81
|
-
],
|
|
82
|
-
"plugins": [
|
|
83
|
-
[
|
|
84
|
-
"@semantic-release/commit-analyzer",
|
|
85
|
-
{
|
|
86
|
-
"preset": "conventionalcommits",
|
|
87
|
-
"releaseRules": [
|
|
88
|
-
{
|
|
89
|
-
"breaking": true,
|
|
90
|
-
"release": "major"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"revert": true,
|
|
94
|
-
"release": "patch"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"type": "feat",
|
|
98
|
-
"release": "minor"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"type": "fix",
|
|
102
|
-
"release": "patch"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "docs",
|
|
106
|
-
"release": "patch"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"type": "test",
|
|
110
|
-
"release": "patch"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"type": "deps",
|
|
114
|
-
"release": "patch"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"scope": "no-release",
|
|
118
|
-
"release": false
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
"@semantic-release/release-notes-generator",
|
|
125
|
-
{
|
|
126
|
-
"preset": "conventionalcommits",
|
|
127
|
-
"presetConfig": {
|
|
128
|
-
"types": [
|
|
129
|
-
{
|
|
130
|
-
"type": "feat",
|
|
131
|
-
"section": "Features"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "fix",
|
|
135
|
-
"section": "Bug Fixes"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "chore",
|
|
139
|
-
"section": "Trivial Changes"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"type": "docs",
|
|
143
|
-
"section": "Documentation"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "deps",
|
|
147
|
-
"section": "Dependencies"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "test",
|
|
151
|
-
"section": "Tests"
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"@semantic-release/changelog",
|
|
158
|
-
"@semantic-release/npm",
|
|
159
|
-
"@semantic-release/github",
|
|
160
|
-
"@semantic-release/git"
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
74
|
"scripts": {
|
|
164
75
|
"clean": "aegir clean",
|
|
165
76
|
"lint": "aegir lint",
|
|
166
77
|
"dep-check": "aegir dep-check",
|
|
167
78
|
"build": "aegir build",
|
|
168
|
-
"docs": "aegir docs",
|
|
169
79
|
"test": "aegir test",
|
|
170
80
|
"test:chrome": "aegir test -t browser --cov",
|
|
171
81
|
"test:chrome-webworker": "aegir test -t webworker",
|
|
172
82
|
"test:firefox": "aegir test -t browser -- --browser firefox",
|
|
173
83
|
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
|
|
174
84
|
"test:node": "aegir test -t node --cov",
|
|
175
|
-
"test:electron-main": "aegir test -t electron-main"
|
|
176
|
-
"release": "aegir release"
|
|
85
|
+
"test:electron-main": "aegir test -t electron-main"
|
|
177
86
|
},
|
|
178
87
|
"dependencies": {
|
|
179
88
|
"@achingbrain/ip-address": "^8.1.0",
|
|
180
|
-
"@libp2p/interface-connection": "
|
|
181
|
-
"@libp2p/interface-peer-store": "
|
|
182
|
-
"@libp2p/interfaces": "
|
|
183
|
-
"@libp2p/logger": "
|
|
184
|
-
"@multiformats/multiaddr": "^12.
|
|
185
|
-
"abortable-iterator": "^5.0.
|
|
89
|
+
"@libp2p/interface-connection": "5.1.1-ab0e3980",
|
|
90
|
+
"@libp2p/interface-peer-store": "2.0.4-ab0e3980",
|
|
91
|
+
"@libp2p/interfaces": "3.3.2-ab0e3980",
|
|
92
|
+
"@libp2p/logger": "2.1.1-ab0e3980",
|
|
93
|
+
"@multiformats/multiaddr": "^12.1.3",
|
|
94
|
+
"abortable-iterator": "^5.0.1",
|
|
186
95
|
"is-loopback-addr": "^2.0.1",
|
|
187
96
|
"it-stream-types": "^2.0.1",
|
|
188
97
|
"private-ip": "^3.0.0",
|
|
189
|
-
"uint8arraylist": "^2.3
|
|
98
|
+
"uint8arraylist": "^2.4.3"
|
|
190
99
|
},
|
|
191
100
|
"devDependencies": {
|
|
192
|
-
"aegir": "^
|
|
101
|
+
"aegir": "^39.0.10",
|
|
193
102
|
"it-all": "^3.0.1",
|
|
194
103
|
"it-pair": "^2.0.6",
|
|
195
|
-
"it-pipe": "^3.0.
|
|
196
|
-
"uint8arrays": "^4.0.
|
|
104
|
+
"it-pipe": "^3.0.1",
|
|
105
|
+
"uint8arrays": "^4.0.3"
|
|
106
|
+
},
|
|
107
|
+
"typedoc": {
|
|
108
|
+
"entryPoint": "./src/index.ts"
|
|
197
109
|
}
|
|
198
110
|
}
|
package/src/address-sort.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { logger } from '@libp2p/logger'
|
|
2
|
-
import { Multiaddr, multiaddr } from '@multiformats/multiaddr'
|
|
3
|
-
import { CodeError } from '@libp2p/interfaces/errors'
|
|
4
1
|
import { Address4, Address6 } from '@achingbrain/ip-address'
|
|
2
|
+
import { CodeError } from '@libp2p/interfaces/errors'
|
|
3
|
+
import { logger } from '@libp2p/logger'
|
|
4
|
+
import { type Multiaddr, multiaddr } from '@multiformats/multiaddr'
|
|
5
5
|
|
|
6
6
|
const log = logger('libp2p:ip-port-to-multiaddr')
|
|
7
7
|
|
package/src/stream-to-ma-conn.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { abortableSource } from 'abortable-iterator'
|
|
2
1
|
import { logger } from '@libp2p/logger'
|
|
3
|
-
import
|
|
2
|
+
import { abortableSource } from 'abortable-iterator'
|
|
4
3
|
import type { MultiaddrConnection } from '@libp2p/interface-connection'
|
|
4
|
+
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
5
5
|
import type { Duplex, Source } from 'it-stream-types'
|
|
6
6
|
import type { Uint8ArrayList } from 'uint8arraylist'
|
|
7
7
|
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"publicAddressesFirst": "https://libp2p.github.io/js-libp2p-utils/functions/address_sort.publicAddressesFirst.html",
|
|
3
|
-
"something": "https://libp2p.github.io/js-libp2p-utils/functions/address_sort.something.html",
|
|
4
|
-
"arrayEquals": "https://libp2p.github.io/js-libp2p-utils/functions/array_equals.arrayEquals.html",
|
|
5
|
-
"Errors": "https://libp2p.github.io/js-libp2p-utils/variables/ip_port_to_multiaddr.Errors.html",
|
|
6
|
-
"ipPortToMultiaddr": "https://libp2p.github.io/js-libp2p-utils/functions/ip_port_to_multiaddr.ipPortToMultiaddr.html",
|
|
7
|
-
"isLoopback": "https://libp2p.github.io/js-libp2p-utils/functions/multiaddr_is_loopback.isLoopback.html",
|
|
8
|
-
"isPrivate": "https://libp2p.github.io/js-libp2p-utils/functions/multiaddr_is_private.isPrivate.html",
|
|
9
|
-
"StreamOptions": "https://libp2p.github.io/js-libp2p-utils/interfaces/stream_to_ma_conn.StreamOptions.html",
|
|
10
|
-
"StreamProperties": "https://libp2p.github.io/js-libp2p-utils/interfaces/stream_to_ma_conn.StreamProperties.html",
|
|
11
|
-
"Timeline": "https://libp2p.github.io/js-libp2p-utils/interfaces/stream_to_ma_conn.Timeline.html",
|
|
12
|
-
"streamToMaConnection": "https://libp2p.github.io/js-libp2p-utils/functions/stream_to_ma_conn.streamToMaConnection.html"
|
|
13
|
-
}
|