jpegtran-bin
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -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(); |
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
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
5
129
10054
3