diff --git a/package.json b/package.json index accb4e5..7cf0bcc 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "pre-commit": "^1.2.2" }, "dependencies": { + "class-is": "^1.0.0", "debug": "^3.1.0", "interface-connection": "~0.3.2", "ip-address": "^5.8.9", diff --git a/src/index.js b/src/index.js index 4ee1fe8..633589d 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,7 @@ const utp = require('utp-native') const toPull = require('stream-to-pull-stream') const mafmt = require('mafmt') +const withIs = require('class-is') const includes = require('lodash.includes') const isFunction = require('lodash.isfunction') const Connection = require('interface-connection').Connection @@ -80,4 +81,4 @@ class UTP { } } -module.exports = UTP +module.exports = withIs(UTP, { className: 'UTP', symbolName: '@libp2p/js-libp2p-utp/utp' })