Socket
Socket
Sign inDemoInstall

gifsicle

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gifsicle - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

vendor/source/gifsicle.tar.gz

47

lib/install.js
'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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc