From 541f41e187b7d28edc77f8080327e35e21e71638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Fri, 6 Apr 2018 10:21:55 +0200 Subject: [PATCH 1/3] Fix a linting error --- test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.js b/test.js index 67c0b92..1a6c2c9 100644 --- a/test.js +++ b/test.js @@ -5,7 +5,7 @@ import isGif from 'is-gif'; import pathExists from 'path-exists'; import pify from 'pify'; import test from 'ava'; -import m from './'; +import m from '.'; test('set temporary directories', t => { const {input, output} = m; From 0c278a5c8a1f3ae6ba785df577033d59195c0f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Fri, 6 Apr 2018 10:23:30 +0200 Subject: [PATCH 2/3] Bump execa to 0.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c3b6d9..f2ee9d6 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "exec" ], "dependencies": { - "execa": "^0.7.0", + "execa": "^0.10.0", "p-finally": "^1.0.0", "pify": "^3.0.0", "rimraf": "^2.5.4", From b9721b17f1587fa2e01e16c6d5dcc57a7be9e480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Fri, 6 Apr 2018 10:27:24 +0200 Subject: [PATCH 3/3] Switch from is-gif to file-type --- package.json | 2 +- test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f2ee9d6..50c7ebd 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ }, "devDependencies": { "ava": "*", + "file-type": "^7.6.0", "gifsicle": "^3.0.4", - "is-gif": "^1.0.0", "path-exists": "^3.0.0", "xo": "*" } diff --git a/test.js b/test.js index 1a6c2c9..cdbe0af 100644 --- a/test.js +++ b/test.js @@ -1,7 +1,7 @@ import fs from 'fs'; import path from 'path'; import gifsicle from 'gifsicle'; -import isGif from 'is-gif'; +import fileType from 'file-type'; import pathExists from 'path-exists'; import pify from 'pify'; import test from 'ava'; @@ -22,7 +22,7 @@ test('return a optimized buffer', async t => { }); t.true(data.length < buf.length); - t.true(isGif(data)); + t.is(fileType(data).ext, 'gif'); }); test('remove temporary files', async t => {