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

jpegtran-bin

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jpegtran-bin - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

7

lib/install.js

@@ -25,8 +25,5 @@ 'use strict';

if (process.platform === 'darwin' && process.arch === 'x64') {
cfg = 'CFLAGS="-m32" LDFLAGS="-m32" ' + cfg;
}
var builder = new BinBuild()
.src('http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.1/libjpeg-turbo-1.4.1.tar.gz')
.cmd('touch configure.ac aclocal.m4 configure Makefile.am Makefile.in')
.src('https://downloads.sourceforge.net/project/libjpeg-turbo/1.4.2/libjpeg-turbo-1.4.2.tar.gz')
.cmd(cfg)

@@ -33,0 +30,0 @@ .cmd('make install');

{
"name": "jpegtran-bin",
"version": "3.0.4",
"version": "3.0.5",
"description": "jpegtran (part of libjpeg-turbo) bin-wrapper that makes it seamlessly available as a local dependency",

@@ -50,4 +50,3 @@ "license": "MIT",

"devDependencies": {
"ava": "^0.0.4",
"bin-check": "^1.0.0",
"bin-check": "^3.0.0",
"compare-size": "^1.0.1",

@@ -54,0 +53,0 @@ "mkdirp": "^0.5.0",

@@ -29,12 +29,13 @@ /*global afterEach,beforeEach,it*/

if (process.platform === 'darwin' && process.arch === 'x64') {
cfg = 'CFLAGS="-m32" LDFLAGS="-m32" ' + cfg;
}
new BinBuild()
.src('http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.1/libjpeg-turbo-1.4.1.tar.gz')
.src('https://downloads.sourceforge.net/project/libjpeg-turbo/1.4.2/libjpeg-turbo-1.4.2.tar.gz')
.cmd('touch configure.ac aclocal.m4 configure Makefile.am Makefile.in')
.cmd(cfg)
.cmd('make install')
.run(function (err) {
assert(!err);
if (err) {
cb(err);
return;
}
assert(fs.statSync(path.join(tmp, 'jpegtran')).isFile());

@@ -45,3 +46,3 @@ cb();

it('return path to binary and verify that it is working', function (cb) {
it('return path to binary and verify that it is working', function () {
var args = [

@@ -52,7 +53,3 @@ '-outfile', path.join(tmp, 'test.jpg'),

binCheck(require('../'), args, function (err, works) {
assert(!err);
assert(works);
cb();
});
return binCheck(require('../'), args).then(assert);
});

@@ -69,6 +66,13 @@

execFile(require('../'), args, function (err) {
assert(!err);
if (err) {
cb(err);
return;
}
compareSize(src, dest, function (err, res) {
assert(!err);
if (err) {
cb(err);
return;
}
assert(res[dest] < res[src]);

@@ -75,0 +79,0 @@ cb();

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