Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
feat: add class-is module (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdiogo authored and daviddias committed Apr 5, 2018
1 parent 709989a commit f59cf88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-websockets#readme",
"dependencies": {
"class-is": "^1.0.0",
"interface-connection": "~0.3.2",
"lodash.includes": "^4.3.0",
"mafmt": "^4.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const connect = require('pull-ws/client')
const mafmt = require('mafmt')
const withIs = require('class-is')
const includes = require('lodash.includes')
const Connection = require('interface-connection').Connection

Expand Down Expand Up @@ -65,4 +66,4 @@ class WebSockets {
}
}

module.exports = WebSockets
module.exports = withIs(WebSockets, { className: 'WebSockets', symbolName: '@libp2p/js-libp2p-websockets/websockets' })

0 comments on commit f59cf88

Please sign in to comment.