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

Commit 0eb097e

Browse files
authoredApr 28, 2020
fix: add buffer (#217)
1 parent 9149058 commit 0eb097e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@hapi/hapi": "^18.4.0",
6363
"@hapi/inert": "^5.2.2",
6464
"abortable-iterator": "^3.0.0",
65+
"buffer": "^5.6.0",
6566
"class-is": "^1.1.0",
6667
"debug": "^4.1.1",
6768
"err-code": "^2.0.0",

‎src/socket-to-conn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const abortable = require('abortable-iterator')
44
const toIterable = require('stream-to-it')
5-
5+
const { Buffer } = require('buffer')
66
const { CLOSE_TIMEOUT } = require('./constants')
77
const toMultiaddr = require('libp2p-utils/src/ip-port-to-multiaddr')
88

0 commit comments

Comments
 (0)
This repository has been archived.