Skip to content

Commit

Permalink
fix: buffer class for browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Nov 5, 2019
1 parent 56ef8d5 commit cc2a41f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/core/reed-solomon-encoder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var BufferUtil = require('../utils/buffer')
var Polynomial = require('./polynomial')
var Buffer = require('buffer')
var Buffer = require('buffer').Buffer

function ReedSolomonEncoder (degree) {
this.genPoly = undefined
Expand Down
21 changes: 9 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"qrcode": "./bin/qrcode"
},
"dependencies": {
"buffer": "^5.4.3",
"buffer-alloc": "^1.2.0",
"buffer-from": "^1.1.1",
"dijkstrajs": "^1.0.1",
Expand Down

0 comments on commit cc2a41f

Please sign in to comment.