feat: add class-is module

This commit is contained in:
Diogo Silva 2018-04-02 18:57:59 +01:00 committed by David Dias
parent 5ef24695fc
commit ded1f6831c
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@
"pull-stream": "^3.6.2" "pull-stream": "^3.6.2"
}, },
"dependencies": { "dependencies": {
"class-is": "^1.0.0",
"debug": "^3.1.0", "debug": "^3.1.0",
"interface-connection": "~0.3.2", "interface-connection": "~0.3.2",
"ip-address": "^5.8.9", "ip-address": "^5.8.9",

View File

@ -3,6 +3,7 @@
const net = require('net') const net = require('net')
const toPull = require('stream-to-pull-stream') const toPull = require('stream-to-pull-stream')
const mafmt = require('mafmt') const mafmt = require('mafmt')
const withIs = require('class-is')
const includes = require('lodash.includes') const includes = require('lodash.includes')
const isFunction = require('lodash.isfunction') const isFunction = require('lodash.isfunction')
const Connection = require('interface-connection').Connection const Connection = require('interface-connection').Connection
@ -81,4 +82,4 @@ class TCP {
} }
} }
module.exports = TCP module.exports = withIs(TCP, { className: 'TCP', symbolName: '@libp2p/js-libp2p-tcp/tcp' })