Remove buffertools dependency
This commit is contained in:
parent
bc19a98d06
commit
c5cfc48da4
|
@ -33,9 +33,6 @@ var Message = require('./message');
|
|||
|
||||
var Protocol = require('../protocol');
|
||||
|
||||
// Just make sure this adds to the prototype
|
||||
require('buffertools').extend();
|
||||
|
||||
|
||||
|
||||
///--- Globals
|
||||
|
@ -76,7 +73,7 @@ Parser.prototype.write = function (data) {
|
|||
return true;
|
||||
}
|
||||
|
||||
self.buffer = (self.buffer ? self.buffer.concat(data) : data);
|
||||
self.buffer = (self.buffer ? Buffer.concat([self.buffer, data]) : data);
|
||||
|
||||
var ber = new BerReader(self.buffer);
|
||||
if (!ber.readSequence())
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
"dependencies": {
|
||||
"asn1": "0.1.11",
|
||||
"assert-plus": "0.1.2",
|
||||
"buffertools": "2.0.1",
|
||||
"bunyan": "0.21.1",
|
||||
"dtrace-provider": "0.2.8",
|
||||
"nopt": "2.1.1",
|
||||
|
|
Loading…
Reference in New Issue