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

gemini-optipng

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-optipng - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

lib/optimizer.js

@@ -7,4 +7,5 @@ 'use strict';

const optipng = require('optipng-bin');
const fs = require('q-io/fs');
const q = require('q');
const fs = require('fs-extra');
const Promise = require('bluebird');
const execFile = Promise.promisify(childProcess.execFile);

@@ -31,7 +32,7 @@ module.exports = class Optimizer {

_getImageSize() {
return fs.stat(this._imagePath).get('size');
return fs.stat(this._imagePath).then((stat) => stat.size);
}
_compressImage() {
return q.nfcall(childProcess.execFile, optipng, ['-o', this._level, this._imagePath]);
return execFile(optipng, ['-o', this._level, this._imagePath]);
}

@@ -38,0 +39,0 @@

{
"name": "gemini-optipng",
"version": "1.1.0",
"version": "1.2.0",
"description": "Plugin for gemini which optimize reference images",

@@ -28,8 +28,8 @@ "repository": {

"dependencies": {
"bluebird": "^3.5.1",
"chalk": "^1.1.3",
"debug": "^2.2.0",
"fs-extra": "^5.0.0",
"lodash": "^4.15.0",
"optipng-bin": "^3.1.2",
"q": "^1.4.1",
"q-io": "^2.0.6"
"optipng-bin": "^3.1.2"
},

@@ -43,4 +43,4 @@ "devDependencies": {

"proxyquire": "^1.7.10",
"sinon": "^1.17.5"
"sinon": "^4.2.2"
}
}
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