From 3550aa653b6ae6ffa7bbaff99b07c7ac7a8e41d6 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 15 Dec 2016 02:40:17 +0300 Subject: [PATCH] deps bump + remove unused vars --- .travis.yml | 2 +- lib/zlib/inftrees.js | 2 -- package.json | 12 ++++++------ test/helpers.js | 3 +-- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index dfc3af7..845e228 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "0.10" + - "6" script: make $COMMAND env: matrix: diff --git a/lib/zlib/inftrees.js b/lib/zlib/inftrees.js index 16e4d52..ab57cdb 100644 --- a/lib/zlib/inftrees.js +++ b/lib/zlib/inftrees.js @@ -227,10 +227,8 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta return 1; } - var i = 0; /* process all codes and make table entries */ for (;;) { - i++; /* create table entry */ here_bits = len - drop; if (work[sym] < end) { diff --git a/package.json b/package.json index e0ed5aa..5ea095f 100644 --- a/package.json +++ b/package.json @@ -21,20 +21,20 @@ "license": "MIT", "repository": "nodeca/pako", "devDependencies": { - "mocha": "1.21.5", + "mocha": "^3.2.0", "benchmark": "*", "ansi": "*", "browserify": "*", - "eslint": "^2.1.0", + "eslint": "^3.12.2", "eslint-plugin-nodeca": "~1.0.3", "uglify-js": "*", "istanbul": "*", "ndoc": "*", "lodash": "*", "async": "*", - "grunt": "~0.4.4", - "grunt-cli": "~0.1.13", - "grunt-saucelabs": "~8.6.0", - "grunt-contrib-connect": "~0.9.0" + "grunt": "^1.0.1", + "grunt-cli": "^1.2.0", + "grunt-saucelabs": "^9.0.0", + "grunt-contrib-connect": "^1.0.2" } } diff --git a/test/helpers.js b/test/helpers.js index e4e72c1..232047f 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -60,7 +60,7 @@ function testSingle(zlib_factory, pako_deflate, data, options, callback) { if (zlib_options.windowBits < 0) { zlib_options.windowBits = -zlib_options.windowBits; } var zlibStream = zlib_factory(zlib_options); - var buffers = [], nread = 0; + var buffers = []; zlibStream.on('error', function (err) { @@ -71,7 +71,6 @@ function testSingle(zlib_factory, pako_deflate, data, options, callback) { zlibStream.on('data', function (chunk) { buffers.push(chunk); - nread += chunk.length; }); zlibStream.on('end', function () {