diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-10 21:16:03 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-06-10 21:25:00 -1000 |
commit | a70b61642fbe5dd64fc66ce85028844b746f1868 (patch) | |
tree | ebf205b98f3bf57b326c6a9ab2af578c227cfbaf | |
parent | 3c505eee78211f128c02c4d38deed617b660087c (diff) | |
download | patchfoo-a70b61642fbe5dd64fc66ce85028844b746f1868.tar.gz patchfoo-a70b61642fbe5dd64fc66ce85028844b746f1868.zip |
Concat manually
-rw-r--r-- | lib/serve.js | 4 | ||||
-rw-r--r-- | 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", |