From a70b61642fbe5dd64fc66ce85028844b746f1868 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 10 Jun 2017 21:16:03 -1000 Subject: Concat manually --- lib/serve.js | 4 ++-- package.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index 9db7007..3ade4f6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -21,7 +21,6 @@ var htime = require('human-time') var ph = require('pull-hyperscript') var emojis = require('emoji-named-characters') var jpeg = require('jpeg-autorotate') -var concat = require('pull-concat') module.exports = Serve @@ -1071,11 +1070,12 @@ Serve.prototype.image = function (path) { blobs.get(id), pull.map(Buffer), ident(heresTheType), - concat.buffer(onFullBuffer) + pull.collect(onFullBuffer) ) function onFullBuffer (err, buffer) { if (err) return heresTheData(err) + buffer = Buffer.concat(buffer) jpeg.rotate(buffer, {}, function (err, rotatedBuffer, orientation) { if (!err) buffer = rotatedBuffer diff --git a/package.json b/package.json index e39ff34..076df85 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "mime-types": "^2.1.12", "multicb": "^1.2.1", "pull-cat": "^1.1.11", - "pull-concat": "^1.1.1", "pull-git-packidx-parser": "^1.0.0", "pull-hash": "^1.0.0", "pull-hyperscript": "^0.2.2", -- cgit v1.2.3