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

Commit 71f3e5b

Browse files
authored
fix: add buffer (#106)
related to ipfs/js-ipfs#2924
1 parent 3ab7f7a commit 71f3e5b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"abort-controller": "^3.0.0",
5353
"abortable-iterator": "^3.0.0",
5454
"bl": "^4.0.0",
55+
"buffer": "^5.5.0",
5556
"debug": "^4.1.1",
5657
"it-pipe": "^1.0.1",
5758
"it-pushable": "^1.3.1",

src/coder/encode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
const { Buffer } = require('buffer')
34
const varint = require('varint')
45
const BufferList = require('bl/BufferList')
56

test/coder.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* eslint max-nested-callbacks: ["error", 5] */
33
'use strict'
44

5+
const { Buffer } = require('buffer')
56
const chai = require('chai')
67
const dirtyChai = require('dirty-chai')
78
const { BufferList } = require('bl')

test/stream.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4+
const { Buffer } = require('buffer')
45
const chai = require('chai')
56
const dirtyChai = require('dirty-chai')
67
const { expect } = chai

0 commit comments

Comments
 (0)