Skip to content

Commit

Permalink
fix: update deps (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Feb 7, 2022
1 parent e4c61c6 commit d9ace95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@
"dependencies": {
"dns-over-http-resolver": "^2.0.1",
"err-code": "^3.0.1",
"is-ip": "^3.1.0",
"is-ip": "^4.0.0",
"multiformats": "^9.4.5",
"uint8arrays": "^3.0.0",
"varint": "^6.0.0"
},
"devDependencies": {
"@types/varint": "^6.0.0",
"aegir": "^36.1.3",
"sinon": "^12.0.1",
"sinon": "^13.0.1",
"util": "^0.12.3"
},
"browser": {
Expand Down
8 changes: 4 additions & 4 deletions src/ip.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import isIp from 'is-ip'
import { isIPv4, isIPv6 } from 'is-ip'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'

export const isIP = isIp
export const isV4 = isIp.v4
export const isV6 = isIp.v6
export { isIP } from 'is-ip'
export const isV4 = isIPv4
export const isV6 = isIPv6

// Copied from https://github.com/indutny/node-ip/blob/master/lib/ip.js#L7
// but with buf/offset args removed because we don't use them
Expand Down

0 comments on commit d9ace95

Please sign in to comment.