Browse Source

fix for node8

master
matiu 8 years ago
committed by Emilio Almansi
parent
commit
c74e85116e
  1. 72278
      bitcore-lib.js
  2. 6
      lib/encoding/bufferreader.js
  3. 12008
      npm-shrinkwrap.json

72278
bitcore-lib.js

File diff suppressed because it is too large

6
lib/encoding/bufferreader.js

@ -17,8 +17,12 @@ var BufferReader = function BufferReader(buf) {
buf: buf
});
} else if (_.isString(buf)) {
var b = new Buffer(buf, 'hex');
if (b.length * 2 != buf.length)
throw new TypeError('Invalid hex string');
this.set({
buf: new Buffer(buf, 'hex'),
buf: b,
});
} else if (_.isObject(buf)) {
var obj = buf;

12008
npm-shrinkwrap.json

File diff suppressed because it is too large
Loading…
Cancel
Save