Comparing version 4.0.0 to 5.0.0
#!/usr/bin/env node | ||
'use strict'; | ||
const spawn = require('child_process').spawn; | ||
const {spawn} = require('child_process'); | ||
const binPath = require('.'); | ||
@@ -5,0 +5,0 @@ |
'use strict'; | ||
const BinBuild = require('bin-build'); | ||
const binBuild = require('bin-build'); | ||
const log = require('logalot'); | ||
const bin = require('.'); | ||
bin.run(['-version'], err => { | ||
if (err) { | ||
log.warn(err.message); | ||
log.warn('cwebp pre-build test failed'); | ||
log.info('compiling from source'); | ||
bin.run(['-version']).then(() => { | ||
log.success('cwebp pre-build test passed successfully'); | ||
}).catch(error => { | ||
log.warn(error.message); | ||
log.warn('cwebp pre-build test failed'); | ||
log.info('compiling from source'); | ||
const builder = new BinBuild() | ||
.src('http://downloads.webmproject.org/releases/webp/libwebp-0.6.1.tar.gz') | ||
.cmd(`./configure --disable-shared --prefix="${bin.dest()}" --bindir="${bin.dest()}"`) | ||
.cmd('make && make install'); | ||
return builder.run(err => { | ||
if (err) { | ||
log.error(err.stack); | ||
return; | ||
} | ||
log.success('cwebp built successfully'); | ||
}); | ||
} | ||
log.success('cwebp pre-build test passed successfully'); | ||
binBuild.url('http://downloads.webmproject.org/releases/webp/libwebp-1.0.0.tar.gz', [ | ||
`./configure --disable-shared --prefix="${bin.dest()}" --bindir="${bin.dest()}"`, | ||
'make && make install' | ||
]).then(() => { | ||
log.success('cwebp built successfully'); | ||
}).catch(error => { | ||
log.error(error.stack); | ||
}); | ||
}); |
{ | ||
"name": "cwebp-bin", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "cwebp wrapper that makes it seamlessly available as a local dependency", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
}, | ||
@@ -57,11 +57,11 @@ "scripts": { | ||
"dependencies": { | ||
"bin-build": "^2.2.0", | ||
"bin-wrapper": "^3.0.1", | ||
"logalot": "^2.0.0" | ||
"bin-build": "^3.0.0", | ||
"bin-wrapper": "^4.0.1", | ||
"logalot": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"bin-check": "^4.0.1", | ||
"bin-check": "^4.1.0", | ||
"compare-size": "^3.0.0", | ||
"execa": "^0.8.0", | ||
"execa": "^1.0.0", | ||
"tempy": "^0.2.1", | ||
@@ -68,0 +68,0 @@ "xo": "*" |
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
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
1
4768
40
+ 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.1
Updatedlogalot@^2.1.0