@libp2p/utils 1.0.0 → 1.0.4
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/LICENSE +3 -1
- package/package.json +140 -41
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,47 +1,160 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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-utils#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/libp2p/js-libp2p-utils.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/libp2p/js-libp2p-utils/issues"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=16.0.0",
|
|
16
|
+
"npm": ">=7.0.0"
|
|
17
|
+
},
|
|
6
18
|
"type": "module",
|
|
19
|
+
"types": "./dist/src/index.d.ts",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"*": [
|
|
23
|
+
"*",
|
|
24
|
+
"dist/*",
|
|
25
|
+
"dist/src/*",
|
|
26
|
+
"dist/src/*/index"
|
|
27
|
+
],
|
|
28
|
+
"src/*": [
|
|
29
|
+
"*",
|
|
30
|
+
"dist/*",
|
|
31
|
+
"dist/src/*",
|
|
32
|
+
"dist/src/*/index"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"src",
|
|
38
|
+
"dist/src",
|
|
39
|
+
"!dist/test",
|
|
40
|
+
"!**/*.tsbuildinfo"
|
|
41
|
+
],
|
|
7
42
|
"exports": {
|
|
8
|
-
"
|
|
43
|
+
".": {
|
|
44
|
+
"import": "./dist/src/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./multiaddr/is-loopback": {
|
|
9
47
|
"import": "./dist/src/multiaddr/is-loopback.js",
|
|
10
48
|
"types": "./dist/src/multiaddr/is-loopback.d.ts"
|
|
11
49
|
},
|
|
12
|
-
"multiaddr/is-private": {
|
|
50
|
+
"./multiaddr/is-private": {
|
|
13
51
|
"import": "./dist/src/multiaddr/is-private.js",
|
|
14
52
|
"types": "./dist/src/multiaddr/is-private.d.ts"
|
|
15
53
|
},
|
|
16
|
-
"address-sort": {
|
|
54
|
+
"./address-sort": {
|
|
17
55
|
"import": "./dist/src/address-sort.js",
|
|
18
56
|
"types": "./dist/src/address-sort.d.ts"
|
|
19
57
|
},
|
|
20
|
-
"array-equals": {
|
|
58
|
+
"./array-equals": {
|
|
21
59
|
"import": "./dist/src/array-equals.js",
|
|
22
60
|
"types": "./dist/src/array-equals.d.ts"
|
|
23
61
|
},
|
|
24
|
-
"ip-port-to-multiaddr": {
|
|
62
|
+
"./ip-port-to-multiaddr": {
|
|
25
63
|
"import": "./dist/src/ip-port-to-multiaddr.js",
|
|
26
64
|
"types": "./dist/src/ip-port-to-multiaddr.d.ts"
|
|
27
65
|
},
|
|
28
|
-
"stream-to-ma-conn": {
|
|
66
|
+
"./stream-to-ma-conn": {
|
|
29
67
|
"import": "./dist/src/stream-to-ma-connr.js",
|
|
30
68
|
"types": "./dist/src/stream-to-ma-connr.d.ts"
|
|
31
69
|
}
|
|
32
70
|
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"dist/src/*/index"
|
|
38
|
-
]
|
|
71
|
+
"eslintConfig": {
|
|
72
|
+
"extends": "ipfs",
|
|
73
|
+
"parserOptions": {
|
|
74
|
+
"sourceType": "module"
|
|
39
75
|
}
|
|
40
76
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
77
|
+
"release": {
|
|
78
|
+
"branches": [
|
|
79
|
+
"master"
|
|
80
|
+
],
|
|
81
|
+
"plugins": [
|
|
82
|
+
[
|
|
83
|
+
"@semantic-release/commit-analyzer",
|
|
84
|
+
{
|
|
85
|
+
"preset": "conventionalcommits",
|
|
86
|
+
"releaseRules": [
|
|
87
|
+
{
|
|
88
|
+
"breaking": true,
|
|
89
|
+
"release": "major"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"revert": true,
|
|
93
|
+
"release": "patch"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "feat",
|
|
97
|
+
"release": "minor"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "fix",
|
|
101
|
+
"release": "patch"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "chore",
|
|
105
|
+
"release": "patch"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "docs",
|
|
109
|
+
"release": "patch"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "test",
|
|
113
|
+
"release": "patch"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"scope": "no-release",
|
|
117
|
+
"release": false
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"@semantic-release/release-notes-generator",
|
|
124
|
+
{
|
|
125
|
+
"preset": "conventionalcommits",
|
|
126
|
+
"presetConfig": {
|
|
127
|
+
"types": [
|
|
128
|
+
{
|
|
129
|
+
"type": "feat",
|
|
130
|
+
"section": "Features"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "fix",
|
|
134
|
+
"section": "Bug Fixes"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "chore",
|
|
138
|
+
"section": "Trivial Changes"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "docs",
|
|
142
|
+
"section": "Trivial Changes"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"type": "test",
|
|
146
|
+
"section": "Tests"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"@semantic-release/changelog",
|
|
153
|
+
"@semantic-release/npm",
|
|
154
|
+
"@semantic-release/github",
|
|
155
|
+
"@semantic-release/git"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
45
158
|
"scripts": {
|
|
46
159
|
"lint": "aegir lint",
|
|
47
160
|
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
|
|
@@ -56,24 +169,6 @@
|
|
|
56
169
|
"test:electron-main": "npm run test -- -t electron-main",
|
|
57
170
|
"release": "semantic-release"
|
|
58
171
|
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "git+https://github.com/libp2p/js-libp2p-utils.git"
|
|
62
|
-
},
|
|
63
|
-
"license": "(Apache-2.0 OR MIT)",
|
|
64
|
-
"bugs": {
|
|
65
|
-
"url": "https://github.com/libp2p/js-libp2p-utils/issues"
|
|
66
|
-
},
|
|
67
|
-
"homepage": "https://github.com/libp2p/js-libp2p-utils#readme",
|
|
68
|
-
"devDependencies": {
|
|
69
|
-
"@libp2p/interfaces": "^0.2.0",
|
|
70
|
-
"@types/debug": "^4.1.5",
|
|
71
|
-
"aegir": "^36.1.2",
|
|
72
|
-
"it-pair": "^1.0.0",
|
|
73
|
-
"it-pipe": "^1.1.0",
|
|
74
|
-
"streaming-iterables": "^6.0.0",
|
|
75
|
-
"util": "^0.12.3"
|
|
76
|
-
},
|
|
77
172
|
"dependencies": {
|
|
78
173
|
"@achingbrain/ip-address": "^8.1.0",
|
|
79
174
|
"@multiformats/multiaddr": "^10.1.1",
|
|
@@ -83,9 +178,13 @@
|
|
|
83
178
|
"is-loopback-addr": "^1.0.0",
|
|
84
179
|
"private-ip": "^2.1.1"
|
|
85
180
|
},
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
181
|
+
"devDependencies": {
|
|
182
|
+
"@libp2p/interfaces": "^0.2.0",
|
|
183
|
+
"@types/debug": "^4.1.5",
|
|
184
|
+
"aegir": "^36.1.2",
|
|
185
|
+
"it-pair": "^1.0.0",
|
|
186
|
+
"it-pipe": "^1.1.0",
|
|
187
|
+
"streaming-iterables": "^6.0.0",
|
|
188
|
+
"util": "^0.12.3"
|
|
189
|
+
}
|
|
91
190
|
}
|