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

Commit f59cf88

Browse files
fsdiogodaviddias
authored andcommitted
feat: add class-is module (#72)
1 parent 709989a commit f59cf88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
"homepage": "https://github.com/libp2p/js-libp2p-websockets#readme",
3838
"dependencies": {
39+
"class-is": "^1.0.0",
3940
"interface-connection": "~0.3.2",
4041
"lodash.includes": "^4.3.0",
4142
"mafmt": "^4.0.0",

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const connect = require('pull-ws/client')
44
const mafmt = require('mafmt')
5+
const withIs = require('class-is')
56
const includes = require('lodash.includes')
67
const Connection = require('interface-connection').Connection
78

@@ -65,4 +66,4 @@ class WebSockets {
6566
}
6667
}
6768

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

0 commit comments

Comments
 (0)