Comparing version 3.0.4 to 4.0.0
#!/usr/bin/env node | ||
'use strict'; | ||
var spawn = require('child_process').spawn; | ||
var gifsicle = require('./'); | ||
const execa = require('execa'); | ||
const m = require('.'); | ||
var input = process.argv.slice(2); | ||
spawn(gifsicle, input, {stdio: 'inherit'}) | ||
.on('exit', process.exit); | ||
execa(m, process.argv.slice(2), {stdio: 'inherit'}); |
'use strict'; | ||
var path = require('path'); | ||
var BinWrapper = require('bin-wrapper'); | ||
var pkg = require('../package.json'); | ||
const path = require('path'); | ||
const BinWrapper = require('bin-wrapper'); | ||
const pkg = require('../package.json'); | ||
var url = 'https://raw.githubusercontent.com/imagemin/gifsicle-bin/v' + pkg.version + '/vendor/'; | ||
const url = `https://raw.githubusercontent.com/imagemin/gifsicle-bin/v${pkg.version}/vendor/`; | ||
module.exports = new BinWrapper() | ||
.src(url + 'macos/gifsicle', 'darwin') | ||
.src(url + 'linux/x86/gifsicle', 'linux', 'x86') | ||
.src(url + 'linux/x64/gifsicle', 'linux', 'x64') | ||
.src(url + 'freebsd/x86/gifsicle', 'freebsd', 'x86') | ||
.src(url + 'freebsd/x64/gifsicle', 'freebsd', 'x64') | ||
.src(url + 'win/x86/gifsicle.exe', 'win32', 'x86') | ||
.src(url + 'win/x64/gifsicle.exe', 'win32', 'x64') | ||
.src(`${url}macos/gifsicle`, 'darwin') | ||
.src(`${url}linux/x86/gifsicle`, 'linux', 'x86') | ||
.src(`${url}linux/x64/gifsicle`, 'linux', 'x64') | ||
.src(`${url}freebsd/x86/gifsicle`, 'freebsd', 'x86') | ||
.src(`${url}freebsd/x64/gifsicle`, 'freebsd', 'x64') | ||
.src(`${url}win/x86/gifsicle.exe`, 'win32', 'x86') | ||
.src(`${url}win/x64/gifsicle.exe`, 'win32', 'x64') | ||
.dest(path.join(__dirname, '../vendor')) | ||
.use(process.platform === 'win32' ? 'gifsicle.exe' : 'gifsicle'); |
'use strict'; | ||
var BinBuild = require('bin-build'); | ||
var log = require('logalot'); | ||
var bin = require('./'); | ||
const binBuild = require('bin-build'); | ||
const log = require('logalot'); | ||
const bin = require('.'); | ||
bin.run(['--version'], function (err) { | ||
bin.run(['--version'], err => { | ||
if (err) { | ||
@@ -12,21 +12,21 @@ log.warn(err.message); | ||
var cfg = [ | ||
const cfg = [ | ||
'./configure --disable-gifview --disable-gifdiff', | ||
'--prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '"' | ||
`--prefix="${bin.dest()}" --bindir="${bin.dest()}"` | ||
].join(' '); | ||
var builder = new BinBuild() | ||
.src('https://github.com/kohler/gifsicle/archive/v1.88.tar.gz') | ||
.cmd('autoreconf -ivf') | ||
.cmd(cfg) | ||
.cmd('make install'); | ||
binBuild.url('https://github.com/kohler/gifsicle/archive/v1.90.tar.gz', [ | ||
'autoreconf -ivf', | ||
cfg, | ||
'make install' | ||
]) | ||
.then(() => { | ||
log.success('gifsicle built successfully'); | ||
}) | ||
.catch(error => { | ||
log.error(error.stack); | ||
return builder.run(function (err) { | ||
if (err) { | ||
log.error(err.stack); | ||
return; | ||
} | ||
log.success('gifsicle built successfully'); | ||
}); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
}); | ||
} | ||
@@ -33,0 +33,0 @@ |
112
package.json
{ | ||
"name": "gifsicle", | ||
"version": "3.0.4", | ||
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency", | ||
"license": "MIT", | ||
"repository": "imagemin/gifsicle-bin", | ||
"author": { | ||
"name": "Kevin Martensson", | ||
"email": "kevinmartensson@gmail.com", | ||
"url": "github.com/kevva" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
{ | ||
"name": "Shinnosuke Watanabe", | ||
"url": "github.com/shinnn" | ||
} | ||
], | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"bin": "cli.js", | ||
"scripts": { | ||
"postinstall": "node lib/install.js", | ||
"test": "xo && mocha --timeout 50000" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"cli.js", | ||
"lib" | ||
], | ||
"keywords": [ | ||
"gif", | ||
"img", | ||
"image", | ||
"compress", | ||
"minify", | ||
"optimize" | ||
], | ||
"dependencies": { | ||
"bin-build": "^2.0.0", | ||
"bin-wrapper": "^3.0.0", | ||
"logalot": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"bin-check": "^2.0.0", | ||
"compare-size": "^1.0.0", | ||
"mkdirp": "^0.5.0", | ||
"mocha": "^2.2.4", | ||
"rimraf": "^2.3.2", | ||
"xo": "*" | ||
} | ||
"name": "gifsicle", | ||
"version": "4.0.0", | ||
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency", | ||
"license": "MIT", | ||
"repository": "imagemin/gifsicle-bin", | ||
"author": { | ||
"name": "Kevin Martensson", | ||
"email": "kevinmartensson@gmail.com", | ||
"url": "github.com/kevva" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
{ | ||
"name": "Shinnosuke Watanabe", | ||
"url": "github.com/shinnn" | ||
} | ||
], | ||
"bin": "cli.js", | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": { | ||
"postinstall": "node lib/install.js", | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"cli.js", | ||
"lib" | ||
], | ||
"keywords": [ | ||
"imagemin", | ||
"gif", | ||
"img", | ||
"image", | ||
"compress", | ||
"minify", | ||
"optimize", | ||
"gifsicle" | ||
], | ||
"dependencies": { | ||
"bin-build": "^3.0.0", | ||
"bin-wrapper": "^4.0.0", | ||
"execa": "^1.0.0", | ||
"logalot": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"bin-check": "^4.0.1", | ||
"compare-size": "^3.0.0", | ||
"tempy": "^0.2.1", | ||
"xo": "*" | ||
} | ||
} |
@@ -5,7 +5,9 @@ # gifsicle-bin [![Build Status](https://travis-ci.org/imagemin/gifsicle-bin.svg?branch=master)](https://travis-ci.org/imagemin/gifsicle-bin) | ||
You probably want [`imagemin-gifsicle`](https://github.com/imagemin/imagemin-gifsicle) instead. | ||
## Install | ||
``` | ||
$ npm install --save gifsicle | ||
$ npm install gifsicle | ||
``` | ||
@@ -39,2 +41,2 @@ | ||
MIT © [imagemin](https://github.com/imagemin) | ||
MIT © [Imagemin](https://github.com/imagemin) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
5
41
4786
4
51
+ Addedexeca@^1.0.0
+ Added@sindresorhus/is@0.7.0(transitive)
+ Addedarch@2.2.0(transitive)
+ Addedarchive-type@4.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbin-build@3.0.0(transitive)
+ Addedbin-check@4.1.0(transitive)
+ Addedbin-version@3.1.0(transitive)
+ Addedbin-version-check@4.0.0(transitive)
+ Addedbin-wrapper@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcacheable-request@2.1.4(transitive)
+ Addedcaw@2.0.1(transitive)
+ Addedclone-response@1.0.2(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedcontent-disposition@0.5.4(transitive)
+ Addedcross-spawn@5.1.06.0.5(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddecompress@4.2.1(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddecompress-tar@4.1.1(transitive)
+ Addeddecompress-tarbz2@4.1.1(transitive)
+ Addeddecompress-targz@4.1.1(transitive)
+ Addeddecompress-unzip@4.0.1(transitive)
+ Addeddownload@6.2.57.1.0(transitive)
+ Addedduplexer3@0.1.5(transitive)
+ Addedexeca@0.7.01.0.0(transitive)
+ Addedexecutable@4.1.1(transitive)
+ Addedext-list@2.2.2(transitive)
+ Addedext-name@5.0.0(transitive)
+ Addedfile-type@4.4.05.2.06.2.08.1.0(transitive)
+ Addedfilename-reserved-regex@2.0.0(transitive)
+ Addedfilenamify@2.1.0(transitive)
+ Addedfind-versions@3.2.0(transitive)
+ Addedfrom2@2.3.0(transitive)
+ Addedget-proxy@2.1.0(transitive)
+ Addedget-stream@2.3.13.0.04.1.0(transitive)
+ Addedgot@7.1.08.3.2(transitive)
+ Addedhas-symbol-support-x@1.4.2(transitive)
+ Addedhas-to-string-tag-x@1.4.1(transitive)
+ Addedhttp-cache-semantics@3.8.1(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedimport-lazy@3.1.0(transitive)
+ Addedinto-stream@3.1.0(transitive)
+ Addedis-natural-number@4.0.1(transitive)
+ Addedis-object@1.0.2(transitive)
+ Addedis-plain-obj@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisurl@1.0.0(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.0.0(transitive)
+ Addedlowercase-keys@1.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmake-dir@1.3.0(transitive)
+ Addedmime-db@1.53.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednormalize-url@2.0.1(transitive)
+ Addednpm-conf@1.1.3(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedos-filter-obj@2.0.0(transitive)
+ Addedp-cancelable@0.3.00.4.1(transitive)
+ Addedp-event@1.3.02.3.1(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-is-promise@1.1.0(transitive)
+ Addedp-map-series@1.0.0(transitive)
+ Addedp-reduce@1.0.0(transitive)
+ Addedp-timeout@1.2.12.0.1(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedsemver-regex@2.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsort-keys@1.1.22.0.0(transitive)
+ Addedsort-keys-length@1.0.1(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)
+ Addedstrip-dirs@2.1.0(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedtemp-dir@1.0.0(transitive)
+ Addedtempfile@2.0.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtimed-out@4.0.1(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedunbzip2-stream@1.4.3(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedurl-to-options@1.0.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedansi-gray@0.1.1(transitive)
- Removedansi-wrap@0.1.0(transitive)
- Removedarchive-type@3.2.0(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-differ@1.0.0(transitive)
- Removedarray-uniq@1.0.3(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedasync-each-series@1.1.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbeeper@1.1.1(transitive)
- Removedbin-build@2.2.0(transitive)
- Removedbin-check@2.0.0(transitive)
- Removedbin-version@1.0.4(transitive)
- Removedbin-version-check@2.1.0(transitive)
- Removedbin-wrapper@3.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@1.8.5(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedbuffer-to-vinyl@1.1.0(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedcaw@1.2.0(transitive)
- Removedclone@0.2.01.0.4(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedco@3.1.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removeddateformat@2.2.0(transitive)
- Removeddecompress@3.0.0(transitive)
- Removeddecompress-tar@3.1.0(transitive)
- Removeddecompress-tarbz2@3.1.0(transitive)
- Removeddecompress-targz@3.1.0(transitive)
- Removeddecompress-unzip@3.4.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddownload@4.4.3(transitive)
- Removedduplexer2@0.0.20.1.4(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedeach-async@1.1.1(transitive)
- Removedexec-series@1.0.3(transitive)
- Removedexecutable@1.1.0(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextend-shallow@2.0.1(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfancy-log@1.3.3(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfilename-reserved-regex@1.0.0(transitive)
- Removedfilenamify@1.2.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfind-versions@1.2.1(transitive)
- Removedfirst-chunk-stream@1.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedget-proxy@1.1.0(transitive)
- Removedglob@5.0.157.2.3(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.03.1.0(transitive)
- Removedglob-stream@5.3.5(transitive)
- Removedglogg@1.0.2(transitive)
- Removedgot@5.7.1(transitive)
- Removedgulp-decompress@1.2.0(transitive)
- Removedgulp-rename@1.4.0(transitive)
- Removedgulp-sourcemaps@1.6.0(transitive)
- Removedgulp-util@3.0.8(transitive)
- Removedgulplog@1.0.0(transitive)
- Removedhas-gulplog@0.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedip-regex@1.0.3(transitive)
- Removedis-absolute@0.1.7(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-bzip2@1.0.0(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.02.1.1(transitive)
- Removedis-glob@2.0.13.1.0(transitive)
- Removedis-gzip@1.0.0(transitive)
- Removedis-natural-number@2.1.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-obj@1.0.1(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedis-relative@0.1.3(transitive)
- Removedis-tar@1.0.0(transitive)
- Removedis-url@1.2.4(transitive)
- Removedis-valid-glob@0.3.0(transitive)
- Removedis-zip@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisobject@2.1.0(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedlazy-req@1.1.0(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basetostring@3.0.1(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._reescape@3.0.0(transitive)
- Removedlodash._reevaluate@3.0.0(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash._root@3.0.1(transitive)
- Removedlodash.escape@3.2.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.template@3.6.2(transitive)
- Removedlodash.templatesettings@3.1.1(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmerge-stream@1.0.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmultipipe@0.1.2(transitive)
- Removednode-status-codes@1.0.0(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removedobject-assign@2.1.13.0.0(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonetime@1.1.0(transitive)
- Removedordered-read-streams@0.3.0(transitive)
- Removedos-filter-obj@1.0.3(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedread-all-stream@3.1.0(transitive)
- Removedreadable-stream@1.0.341.1.143.6.2(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedreplace-ext@0.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsemver@4.3.6(transitive)
- Removedsemver-regex@1.0.0(transitive)
- Removedset-immediate-shim@1.0.1(transitive)
- Removedsparkles@1.0.1(transitive)
- Removedstat-mode@0.2.2(transitive)
- Removedstream-combiner2@1.1.1(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring_decoder@0.10.311.3.0(transitive)
- Removedstrip-bom-stream@1.0.0(transitive)
- Removedstrip-dirs@1.1.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsum-up@1.0.3(transitive)
- Removedtempfile@1.1.1(transitive)
- Removedthrough2@0.6.52.0.54.0.2(transitive)
- Removedthrough2-filter@2.0.03.1.0(transitive)
- Removedtime-stamp@1.1.0(transitive)
- Removedtimed-out@3.1.3(transitive)
- Removedto-absolute-glob@0.1.1(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedunique-stream@2.3.1(transitive)
- Removedunzip-response@1.0.2(transitive)
- Removedurl-regex@3.2.0(transitive)
- Removeduuid@2.0.3(transitive)
- Removedvali-date@1.0.0(transitive)
- Removedvinyl@0.4.60.5.31.2.0(transitive)
- Removedvinyl-assign@1.2.1(transitive)
- Removedvinyl-fs@2.4.4(transitive)
- Removedware@1.3.0(transitive)
- Removedwrap-fn@0.1.5(transitive)
Updatedbin-build@^3.0.0
Updatedbin-wrapper@^4.0.0