From bc19a98d069eaa264ddd864dfdffef714c27141c Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Sat, 18 Jan 2014 14:42:21 -0600 Subject: [PATCH] Update buffertools dependency Buffertools 2.0.1 is required to build on VC2013. With the change to v2.x, the buffertools.extend() method must be called to mimic the prototype extention behavior of the 1.x versions. Fix mcavage/node-ldapjs#163 --- lib/messages/parser.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/messages/parser.js b/lib/messages/parser.js index 0ae0f9b..9da0915 100644 --- a/lib/messages/parser.js +++ b/lib/messages/parser.js @@ -34,7 +34,7 @@ var Message = require('./message'); var Protocol = require('../protocol'); // Just make sure this adds to the prototype -require('buffertools'); +require('buffertools').extend(); diff --git a/package.json b/package.json index be0398c..27fb3a1 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "dependencies": { "asn1": "0.1.11", "assert-plus": "0.1.2", - "buffertools": "1.1.0", + "buffertools": "2.0.1", "bunyan": "0.21.1", "dtrace-provider": "0.2.8", "nopt": "2.1.1",