File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 29
29
"bugs" : " https://github.com/multiformats/js-mafmt/issues" ,
30
30
"homepage" : " https://github.com/multiformats/js-mafmt#readme" ,
31
31
"devDependencies" : {
32
- "aegir" : " ^33 .0.0 " ,
33
- "uint8arrays" : " ^2 .0.5 " ,
32
+ "aegir" : " ^35 .0.1 " ,
33
+ "uint8arrays" : " ^3 .0.0 " ,
34
34
"util" : " ^0.12.3"
35
35
},
36
36
"dependencies" : {
Original file line number Diff line number Diff line change 1
1
import { Multiaddr } from 'multiaddr'
2
2
3
+ // eslint-disable-next-line etc/prefer-interface
3
4
export type MatchesFunction = ( a : string | Uint8Array | Multiaddr ) => boolean
5
+ // eslint-disable-next-line etc/prefer-interface
4
6
export type PartialMatchesFunction = ( protos : string [ ] ) => boolean | string [ ] | null
5
7
6
8
export interface Mafmt {
7
9
toString : ( ) => string
8
- input ?: ( Mafmt | ( ( ) => Mafmt ) ) [ ]
10
+ input ?: Array < ( Mafmt | ( ( ) => Mafmt ) ) >
9
11
matches : MatchesFunction
10
12
partialMatch : PartialMatchesFunction
11
13
}
Original file line number Diff line number Diff line change 4
4
5
5
const { expect } = require ( 'aegir/utils/chai' )
6
6
const { Multiaddr } = require ( 'multiaddr' )
7
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
7
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
8
8
9
9
const mafmt = require ( './../src' )
10
10
You can’t perform that action at this time.
0 commit comments