From d4e1cb5e88a52abd43228841615b53b6481e2cf1 Mon Sep 17 00:00:00 2001 From: Graeme Foster Date: Sun, 21 Oct 2012 17:30:38 +0100 Subject: [PATCH] Use browserify buffers (to repro an issue I'm having). --- index.js | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 87201ad..93816b0 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ var Parser = require('jsonparse') , Stream = require('stream').Stream + , Buffer = require('buffer-browserify').Buffer /* diff --git a/package.json b/package.json index 68210a8..4075339 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "url": "git://github.com/dominictarr/JSONStream.git" }, "dependencies": { - "jsonparse": "0.0.2" + "jsonparse": "0.0.2", + "buffer-browserify": "0.0.3" }, "devDependencies": { "it-is": "~1",