From eb2d499ba7848765cc8d3b31397faf6251e7a36e Mon Sep 17 00:00:00 2001 From: Ryan Day Date: Wed, 13 Nov 2019 13:37:55 -0800 Subject: [PATCH] fix: making require for buffer module explicit fixes #217 --- lib/core/reed-solomon-encoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/reed-solomon-encoder.js b/lib/core/reed-solomon-encoder.js index b7210b18..b31c0f47 100644 --- a/lib/core/reed-solomon-encoder.js +++ b/lib/core/reed-solomon-encoder.js @@ -1,6 +1,6 @@ var BufferUtil = require('../utils/buffer') var Polynomial = require('./polynomial') -var Buffer = require('buffer').Buffer +var Buffer = require('buffer/').Buffer function ReedSolomonEncoder (degree) { this.genPoly = undefined