Comparing version 4.0.1 to 5.0.0
@@ -7,26 +7,31 @@ 'use strict'; | ||
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'); | ||
(async () => { | ||
try { | ||
await bin.run(['--version']); | ||
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 config = [ | ||
'./configure --disable-gifview --disable-gifdiff', | ||
`--prefix="${bin.dest()}" --bindir="${bin.dest()}"` | ||
].join(' '); | ||
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); | ||
try { | ||
await binBuild.file(path.resolve(__dirname, '../vendor/source/gifsicle.tar.gz'), [ | ||
'autoreconf -ivf', | ||
config, | ||
'make install' | ||
]); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
}); | ||
}); | ||
log.success('gifsicle built successfully'); | ||
} catch (error2) { | ||
log.error(error2.stack); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
} | ||
} | ||
})(); |
{ | ||
"name": "gifsicle", | ||
"version": "4.0.1", | ||
"version": "5.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" | ||
} | ||
], | ||
"funding": "https://github.com/imagemin/gisicle-bin?sponsor=1", | ||
"bin": "cli.js", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=10" | ||
}, | ||
@@ -54,8 +39,8 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "*", | ||
"ava": "^1.4.1", | ||
"bin-check": "^4.0.1", | ||
"compare-size": "^3.0.0", | ||
"tempy": "^0.2.1", | ||
"xo": "*" | ||
"xo": "^0.25.3" | ||
} | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
53
480872
2