From 2eac9a72040554f616f0dbc225e2802a746d896a Mon Sep 17 00:00:00 2001 From: Sylvain Dumont Date: Tue, 24 Jul 2018 12:16:30 +0200 Subject: [PATCH] switch to maintained fork of node-zopfli --- README.md | 5 ----- index.js | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c6403306..606d1e80 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,6 @@ The original [shrink-ray](https://www.npmjs.com/package/shrink-ray) appears to be abandoned. This mirror has all the dependencies up-to-date. -Note for Node 10.0 and up: `node-zopfli` now fails to install from the network. You must pass the `--build-from-source` flag to `npm install` and have all the native addon build requirements met: - - - Python 2.7 - - A C++ build environment (e.g. GCC) - [![Version](https://img.shields.io/npm/v/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) [![License](https://img.shields.io/npm/l/shrink-ray-current.svg?style=flat-square)](https://www.npmjs.com/package/shrink-ray-current) [![Build status](https://img.shields.io/travis/Alorel/shrink-ray.svg?style=flat-square)](https://travis-ci.org/Alorel/shrink-ray) diff --git a/index.js b/index.js index 95b203d3..2e79e412 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ const util = require('util'); const vary = require('vary'); const Writable = require('stream').Writable; const zlib = require('zlib'); -const zopfli = require('node-zopfli'); +const zopfli = require('node-zopfli-es'); /** * Module exports. diff --git a/package.json b/package.json index a29d6520..0e1b32a0 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "iltorb": "^2.0.0", "lru-cache": "^4.0.0", "multipipe": "^2.0.0", - "node-zopfli": "^2.0.0", + "node-zopfli-es": "^0.0.2", "on-headers": "^1.0.0", "stream-buffers": "^3.0.0", "vary": "^1.1.0"