Socket
Socket
Sign inDemoInstall

imagemin-upng

Package Overview
Dependencies
3
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

6

dist/index.js

@@ -11,3 +11,3 @@ 'use strict'

function _async(f) {
return function() {
return function () {
for (var args = [], i = 0; i < arguments.length; i++) {

@@ -32,3 +32,3 @@ args[i] = arguments[i]

)
return _async(function(input) {
return _async(function (input) {
if (!Buffer.isBuffer(input)) {

@@ -49,3 +49,3 @@ throw new TypeError('Expected a `Buffer`, got `' + typeof input + '`.')

options.cnum,
img.frames.map(function(_ref) {
img.frames.map(function (_ref) {
var delay = _ref.delay

@@ -52,0 +52,0 @@ return delay

{
"name": "imagemin-upng",
"version": "2.0.2",
"version": "2.0.3",
"description": "upng imagemin plugin",

@@ -48,6 +48,6 @@ "keywords": [

"lint": "run-p lint:*",
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
"lint:eslint": "eslint \"**/*.{js,mjs,cjs,vue}\"",
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
"lint:package-json": "yarn run format:package-json --check",
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"lint:prettier": "prettier \"**/*.{css,html,js,cjs,mjs,json,less,md,scss,ts,vue,yaml,yml}\" --check",
"release": "run-s clean build lint test format dist",

@@ -77,32 +77,33 @@ "test": "ava",

"is-png": "2.0.0",
"lib-upng": "1.0.1"
"lib-upng": "2.0.1"
},
"devDependencies": {
"@babel/cli": "7.8.4",
"@babel/core": "7.8.4",
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
"@babel/preset-env": "7.8.4",
"@commitlint/cli": "8.3.5",
"@fisker/commitlint-config": "1.1.7",
"@fisker/eslint-config": "1.6.5",
"@fisker/eslint-config-ava": "1.2.9",
"@fisker/husky-config": "1.1.9",
"@fisker/lint-staged-config": "1.0.11",
"@fisker/prettier-config": "1.0.28",
"ava": "3.3.0",
"@ava/babel": "1.0.1",
"@babel/cli": "7.10.5",
"@babel/core": "7.10.5",
"@babel/plugin-proposal-object-rest-spread": "7.10.4",
"@babel/preset-env": "7.10.4",
"@commitlint/cli": "9.1.1",
"@fisker/commitlint-config": "1.3.0",
"@fisker/eslint-config": "3.1.0",
"@fisker/eslint-config-ava": "2.0.0",
"@fisker/husky-config": "3.1.0",
"@fisker/lint-staged-config": "2.2.0",
"@fisker/prettier-config": "3.1.0",
"ava": "3.11.0",
"babel-plugin-transform-async-to-promises": "0.8.15",
"cz-conventional-changelog": "3.1.0",
"del-cli": "3.0.0",
"eslint": "6.8.0",
"cz-conventional-changelog": "3.2.0",
"del-cli": "3.0.1",
"eslint": "7.5.0",
"esm": "3.2.25",
"husky": "4.2.3",
"lint-staged": "10.0.7",
"markdownlint-cli": "0.22.0",
"husky": "4.2.5",
"lint-staged": "10.2.11",
"markdownlint-cli": "0.23.2",
"npm-run-all": "4.1.5",
"nyc": "15.0.0",
"prettier": "1.19.1",
"rollup": "1.31.1",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-prettier": "0.6.0",
"sort-package-json": "1.40.0"
"nyc": "15.1.0",
"prettier": "2.0.5",
"rollup": "2.23.0",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-prettier": "2.1.0",
"sort-package-json": "1.44.0"
},

@@ -109,0 +110,0 @@ "publishConfig": {

@@ -15,5 +15,5 @@ # imagemin-upng

const imagemin = require('imagemin')
const imageminUPNG = require('imagemin-upng')
const imageminUpng = require('imagemin-upng')
imagemin(['images/*.png'], 'build/images', {use: [imageminUPNG()]}).then(() => {
imagemin(['images/*.png'], 'build/images', {use: [imageminUpng()]}).then(() => {
console.log('Images optimized')

@@ -25,3 +25,3 @@ })

### imageminUPNG([options])(buffer)
### imageminUpng([options])(buffer)

@@ -44,5 +44,1 @@ Returns a promise for a buffer.

Buffer to optimize.
## License
MIT © [fisker Cheung](https://github.com/fisker)

Sorry, the diff of this file is not supported yet

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