From 3995d586a0d20ef009f8a98587482c5f7f47ff58 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 9 Jan 2018 18:07:30 -1000 Subject: Don't load unzip --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index 7c42d0c..77cfdb4 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 unzip = require('unzip') module.exports = Serve @@ -2233,6 +2232,7 @@ Serve.prototype.zip = function (url) { if (/^invalid/.test(err.message)) return self.respond(400, err.message) else return self.respond(500, err.message || err) } + var unzip = require('unzip') var parseUnzip = unzip.Parse() var gotEntry = false parseUnzip.on('entry', function (entry) { -- cgit v1.2.3