Comparing version 4.0.0 to 4.0.1
'use strict'; | ||
const path = require('path'); | ||
const binBuild = require('bin-build'); | ||
@@ -6,30 +7,26 @@ const log = require('logalot'); | ||
bin.run(['--version'], err => { | ||
if (err) { | ||
log.warn(err.message); | ||
log.warn('gifsicle pre-build test failed'); | ||
log.info('compiling from source'); | ||
bin.run(['--version']).then(() => { | ||
log.success('gifsicle pre-build test passed successfully'); | ||
}).catch(error => { | ||
log.warn(error.message); | ||
log.warn('gifsicle pre-build test failed'); | ||
log.info('compiling from source'); | ||
const cfg = [ | ||
'./configure --disable-gifview --disable-gifdiff', | ||
`--prefix="${bin.dest()}" --bindir="${bin.dest()}"` | ||
].join(' '); | ||
const cfg = [ | ||
'./configure --disable-gifview --disable-gifdiff', | ||
`--prefix="${bin.dest()}" --bindir="${bin.dest()}"` | ||
].join(' '); | ||
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); | ||
binBuild.file(path.resolve(__dirname, '../vendor/source/gifsicle.tar.gz'), [ | ||
'autoreconf -ivf', | ||
cfg, | ||
'make install' | ||
]).then(() => { | ||
log.success('gifsicle built successfully'); | ||
}).catch(error => { | ||
log.error(error.stack); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
}); | ||
} | ||
log.success('gifsicle pre-build test passed successfully'); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
}); | ||
}); |
{ | ||
"name": "gifsicle", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency", | ||
@@ -34,3 +34,4 @@ "license": "MIT", | ||
"cli.js", | ||
"lib" | ||
"lib", | ||
"vendor/source" | ||
], | ||
@@ -37,0 +38,0 @@ "keywords": [ |
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
481757
8
0
49