Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mozjpeg

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mozjpeg - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

50

lib/install.js

@@ -9,31 +9,29 @@ 'use strict';

bin.run(['-version'], err => {
if (err) {
log.warn(err.message);
log.warn('mozjpeg pre-build test failed');
log.info('compiling from source');
bin.run(['-version']).then(() => {
log.success('mozjpeg pre-build test passed successfully');
}).catch(error => {
log.warn(error.message);
log.warn('mozjpeg pre-build test failed');
log.info('compiling from source');
let cfgExtras = '';
if (process.platform === 'darwin') {
cfgExtras = 'libpng_LIBS=\'/usr/local/lib/libpng16.a -lz\' --enable-static';
}
let cfgExtras = '';
if (process.platform === 'darwin') {
cfgExtras = 'libpng_LIBS=\'/usr/local/lib/libpng16.a -lz\' --enable-static';
}
const cfg = [
`./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8 ${cfgExtras}`,
`--prefix="${bin.dest()}" --bindir="${bin.dest()}" --libdir="${bin.dest()}"`
].join(' ');
const cfg = [
`./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8 ${cfgExtras}`,
`--prefix="${bin.dest()}" --bindir="${bin.dest()}" --libdir="${bin.dest()}"`
].join(' ');
binBuild.url('https://github.com/mozilla/mozjpeg/releases/download/v3.2/mozjpeg-3.2-release-source.tar.gz', [
'autoreconf -fiv',
cfg,
`make -j${cpuNum}`,
`make install -j${cpuNum}`
]).then(() => {
log.success('mozjpeg built successfully');
}).catch(err => {
log.error(err.stack);
});
}
log.success('mozjpeg pre-build test passed successfully');
binBuild.url('https://github.com/mozilla/mozjpeg/releases/download/v3.2/mozjpeg-3.2-release-source.tar.gz', [
'autoreconf -fiv',
cfg,
`make -j${cpuNum}`,
`make install -j${cpuNum}`
]).then(() => {
log.success('mozjpeg built successfully');
}).catch(error => {
log.error(error.stack);
});
});
{
"name": "mozjpeg",
"version": "6.0.0",
"version": "6.0.1",
"description": "mozjpeg wrapper that makes it seamlessly available as a local dependency",

@@ -34,10 +34,10 @@ "license": "MIT",

"bin-build": "^3.0.0",
"bin-wrapper": "^3.0.0",
"logalot": "^2.0.0"
"bin-wrapper": "^4.0.0",
"logalot": "^2.1.0"
},
"devDependencies": {
"ava": "*",
"bin-check": "^4.0.1",
"bin-check": "^4.1.0",
"compare-size": "^3.0.0",
"execa": "^0.10.0",
"execa": "^1.0.0",
"tempy": "^0.2.1",

@@ -44,0 +44,0 @@ "xo": "*"

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