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

Commit 8065e07

Browse files
authored
fix: add buffer (#112)
1 parent a33db55 commit 8065e07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"homepage": "https://github.com/libp2p/js-libp2p-websockets#readme",
4040
"dependencies": {
4141
"abortable-iterator": "^3.0.0",
42+
"buffer": "^5.5.0",
4243
"class-is": "^1.1.0",
4344
"debug": "^4.1.1",
4445
"err-code": "^2.0.0",
@@ -55,9 +56,9 @@
5556
"bl": "^4.0.0",
5657
"chai": "^4.2.0",
5758
"dirty-chai": "^2.0.1",
58-
"libp2p-interfaces": "^0.2.0",
5959
"it-goodbye": "^2.0.1",
6060
"it-pipe": "^1.0.1",
61+
"libp2p-interfaces": "^0.2.0",
6162
"streaming-iterables": "^4.1.0"
6263
},
6364
"contributors": [

src/socket-to-conn.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
const { Buffer } = require('buffer')
34
const abortable = require('abortable-iterator')
45
const { CLOSE_TIMEOUT } = require('./constants')
56
const toMultiaddr = require('libp2p-utils/src/ip-port-to-multiaddr')

0 commit comments

Comments
 (0)