Skip to content

Commit 7de4e23

Browse files
deps(dev): bump aegir from 40.0.13 to 41.0.11 (#351)
Bumps [aegir](https://github.com/ipfs/aegir) from 40.0.13 to 41.0.11. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](ipfs/aegir@v40.0.13...v41.0.11) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <[email protected]>
1 parent b229e64 commit 7de4e23

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
"multiaddr",
1717
"string"
1818
],
19-
"engines": {
20-
"node": ">=18.0.0",
21-
"npm": ">=8.6.0"
22-
},
2319
"type": "module",
2420
"types": "./dist/src/index.d.ts",
2521
"typesVersions": {
@@ -61,6 +57,7 @@
6157
"eslintConfig": {
6258
"extends": "ipfs",
6359
"parserOptions": {
60+
"project": true,
6461
"sourceType": "module"
6562
}
6663
},
@@ -175,7 +172,7 @@
175172
},
176173
"devDependencies": {
177174
"@types/sinon": "^10.0.14",
178-
"aegir": "^40.0.2",
175+
"aegir": "^41.0.11",
179176
"sinon": "^17.0.0"
180177
},
181178
"browser": {

src/index.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export interface Multiaddr {
109109
* // '/ip4/127.0.0.1/tcp/4001'
110110
* ```
111111
*/
112-
toString: () => string
112+
toString(): string
113113

114114
/**
115115
* Returns Multiaddr as a JSON encoded object
@@ -122,7 +122,7 @@ export interface Multiaddr {
122122
* // '/ip4/127.0.0.1/tcp/4001'
123123
* ```
124124
*/
125-
toJSON: () => string
125+
toJSON(): string
126126

127127
/**
128128
* Returns Multiaddr as a convinient options object to be used with net.createConnection
@@ -135,7 +135,7 @@ export interface Multiaddr {
135135
* // { family: 4, host: '127.0.0.1', transport: 'tcp', port: 4001 }
136136
* ```
137137
*/
138-
toOptions: () => MultiaddrObject
138+
toOptions(): MultiaddrObject
139139

140140
/**
141141
* Returns the protocols the Multiaddr is defined with, as an array of objects, in
@@ -152,7 +152,7 @@ export interface Multiaddr {
152152
* // { code: 6, size: 16, name: 'tcp' } ]
153153
* ```
154154
*/
155-
protos: () => Protocol[]
155+
protos(): Protocol[]
156156

157157
/**
158158
* Returns the codes of the protocols in left-to-right order.
@@ -166,7 +166,7 @@ export interface Multiaddr {
166166
* // [ 4, 6 ]
167167
* ```
168168
*/
169-
protoCodes: () => number[]
169+
protoCodes(): number[]
170170

171171
/**
172172
* Returns the names of the protocols in left-to-right order.
@@ -180,7 +180,7 @@ export interface Multiaddr {
180180
* // [ 'ip4', 'tcp' ]
181181
* ```
182182
*/
183-
protoNames: () => string[]
183+
protoNames(): string[]
184184

185185
/**
186186
* Returns a tuple of parts
@@ -193,7 +193,7 @@ export interface Multiaddr {
193193
* // [ [ 4, <Buffer 7f 00 00 01> ], [ 6, <Buffer 0f a1> ] ]
194194
* ```
195195
*/
196-
tuples: () => Tuple[]
196+
tuples(): Tuple[]
197197

198198
/**
199199
* Returns a tuple of string/number parts
@@ -208,7 +208,7 @@ export interface Multiaddr {
208208
* // [ [ 4, '127.0.0.1' ], [ 6, '4001' ] ]
209209
* ```
210210
*/
211-
stringTuples: () => StringTuple[]
211+
stringTuples(): StringTuple[]
212212

213213
/**
214214
* Encapsulates a Multiaddr in another Multiaddr
@@ -232,7 +232,7 @@ export interface Multiaddr {
232232
*
233233
* @param {MultiaddrInput} addr - Multiaddr to add into this Multiaddr
234234
*/
235-
encapsulate: (addr: MultiaddrInput) => Multiaddr
235+
encapsulate(addr: MultiaddrInput): Multiaddr
236236

237237
/**
238238
* Decapsulates a Multiaddr from another Multiaddr
@@ -256,7 +256,7 @@ export interface Multiaddr {
256256
*
257257
* @param {Multiaddr | string} addr - Multiaddr to remove from this Multiaddr
258258
*/
259-
decapsulate: (addr: Multiaddr | string) => Multiaddr
259+
decapsulate(addr: Multiaddr | string): Multiaddr
260260

261261
/**
262262
* A more reliable version of `decapsulate` if you are targeting a
@@ -278,7 +278,7 @@ export interface Multiaddr {
278278
* // '/ip4/127.0.0.1/tcp/8080'
279279
* ```
280280
*/
281-
decapsulateCode: (code: number) => Multiaddr
281+
decapsulateCode(code: number): Multiaddr
282282

283283
/**
284284
* Extract the peerId if the multiaddr contains one
@@ -294,7 +294,7 @@ export interface Multiaddr {
294294
* const peerId = mh1.getPeerId()
295295
* ```
296296
*/
297-
getPeerId: () => string | null
297+
getPeerId(): string | null
298298

299299
/**
300300
* Extract the path if the multiaddr contains one
@@ -310,7 +310,7 @@ export interface Multiaddr {
310310
* const path = mh1.getPath()
311311
* ```
312312
*/
313-
getPath: () => string | null
313+
getPath(): string | null
314314

315315
/**
316316
* Checks if two Multiaddrs are the same
@@ -332,7 +332,7 @@ export interface Multiaddr {
332332
* // false
333333
* ```
334334
*/
335-
equals: (addr: { bytes: Uint8Array }) => boolean
335+
equals(addr: { bytes: Uint8Array }): boolean
336336

337337
/**
338338
* Resolve multiaddr if containing resolvable hostname.
@@ -351,7 +351,7 @@ export interface Multiaddr {
351351
* // ]
352352
* ```
353353
*/
354-
resolve: (options?: AbortOptions) => Promise<Multiaddr[]>
354+
resolve(options?: AbortOptions): Promise<Multiaddr[]>
355355

356356
/**
357357
* Gets a Multiaddrs node-friendly address object. Note that protocol information
@@ -368,7 +368,7 @@ export interface Multiaddr {
368368
* // {family: 4, address: '127.0.0.1', port: 4001}
369369
* ```
370370
*/
371-
nodeAddress: () => NodeAddress
371+
nodeAddress(): NodeAddress
372372

373373
/**
374374
* Returns if a Multiaddr is a Thin Waist address or not.
@@ -399,7 +399,7 @@ export interface Multiaddr {
399399
* // false
400400
* ```
401401
*/
402-
isThinWaistAddress: (addr?: Multiaddr) => boolean
402+
isThinWaistAddress(addr?: Multiaddr): boolean
403403
}
404404

405405
/**

typedoc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"entryPoints": [
3+
"./src/index.ts",
4+
"./src/convert.ts",
5+
"./src/resolvers/index.ts"
6+
]
7+
}

0 commit comments

Comments
 (0)