Socket
Socket
Sign inDemoInstall

optipng-bin

Package Overview
Dependencies
132
Maintainers
7
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.0.1

2

index.js
'use strict';
module.exports = require('./lib').path();
module.exports = require('./lib/index.js').path();
'use strict';
const path = require('path');
const binBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');
const bin = require('./index.js');

@@ -10,7 +9,7 @@ (async () => {

await bin.run(['--version']);
log.success('optipng pre-build test passed successfully');
console.log('optipng pre-build test passed successfully');
} catch (error) {
log.warn(error.message);
log.warn('optipng pre-build test failed');
log.info('compiling from source');
console.warn(error.message);
console.warn('optipng pre-build test failed');
console.info('compiling from source');

@@ -24,5 +23,5 @@ try {

log.success('optipng built successfully');
console.log('optipng built successfully');
} catch (error) {
log.error(error.stack);
console.error(error.stack);

@@ -29,0 +28,0 @@ // eslint-disable-next-line unicorn/no-process-exit

{
"name": "optipng-bin",
"version": "7.0.0",
"version": "7.0.1",
"description": "OptiPNG wrapper that makes it seamlessly available as a local dependency",

@@ -15,3 +15,3 @@ "license": "MIT",

"postinstall": "node lib/install.js",
"test": "xo && ava"
"test": "xo && ava --timeout=120s"
},

@@ -35,13 +35,12 @@ "files": [

"bin-build": "^3.0.0",
"bin-wrapper": "^4.0.0",
"logalot": "^2.0.0"
"bin-wrapper": "^4.0.0"
},
"devDependencies": {
"ava": "^3.8.0",
"ava": "^3.15.0",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"execa": "^4.0.0",
"tempy": "^0.5.0",
"xo": "^0.30.0"
"execa": "^5.0.0",
"tempy": "^1.0.0",
"xo": "^0.38.1"
}
}

@@ -1,2 +0,2 @@

# optipng-bin [![Build Status](https://travis-ci.org/imagemin/optipng-bin.svg?branch=master)](https://travis-ci.org/imagemin/optipng-bin)
# optipng-bin ![GitHub Actions Status](https://github.com/imagemin/optipng-bin/workflows/test/badge.svg)

@@ -3,0 +3,0 @@ > [OptiPNG](http://optipng.sourceforge.net) is a PNG optimizer that recompresses image files to a smaller size, without losing any information

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc