Socket
Socket
Sign inDemoInstall

to-ico

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-ico - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

index.js

@@ -27,4 +27,4 @@ 'use strict';

const size = data.data.length + constants.bitmapSize;
const width = data.width <= 256 ? 0 : data.width;
const height = data.height <= 256 ? 0 : data.height;
const width = data.width === 256 ? 0 : data.width;
const height = data.height === 256 ? 0 : data.height;
const bpp = data.bpp * 8;

@@ -128,3 +128,3 @@

return Promise.all(opts.sizes.filter(x => x <= data.width).sort((a, b) => b - a).map(x => resizeImg(data.data, {
return Promise.all(opts.sizes.filter(x => x <= data.width).map(x => resizeImg(data.data, {
width: x,

@@ -131,0 +131,0 @@ height: x

{
"name": "to-ico",
"version": "1.1.1",
"version": "1.1.2",
"description": "Convert PNG to ICO in memory",

@@ -5,0 +5,0 @@ "license": "MIT",

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