chore: switch to nat api (#1052)

@motrix/nat-api is a fork, nat-api has the fix from https://github.com/alxhotel/nat-api/pull/25
This commit is contained in:
Alex Potsides 2021-12-07 09:37:12 +00:00 committed by GitHub
parent 51dabb1724
commit cbaa5a2ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@
"node": ">=15.0.0"
},
"browser": {
"@motrix/nat-api": false
"nat-api": false
},
"eslintConfig": {
"extends": "ipfs",
@ -80,7 +80,6 @@
]
},
"dependencies": {
"@motrix/nat-api": "^0.3.1",
"@vascosantos/moving-average": "^1.1.0",
"abort-controller": "^3.0.0",
"abortable-iterator": "^3.0.0",
@ -114,6 +113,7 @@
"multiformats": "^9.0.0",
"multistream-select": "^2.0.0",
"mutable-proxy": "^1.0.0",
"nat-api": "^0.3.1",
"node-forge": "^0.10.0",
"p-any": "^3.0.0",
"p-fifo": "^1.0.0",

View File

@ -1,7 +1,7 @@
'use strict'
// @ts-ignore nat-api does not export types
const NatAPI = require('@motrix/nat-api')
const NatAPI = require('nat-api')
const debug = require('debug')
const { promisify } = require('es6-promisify')
const { Multiaddr } = require('multiaddr')