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.2 to 1.1.3

8

index.js

@@ -15,3 +15,3 @@ 'use strict';

const createHeader = n => {
const buf = new Buffer(constants.headerSize);
const buf = Buffer.alloc(constants.headerSize);

@@ -26,3 +26,3 @@ buf.writeUInt16LE(0, 0);

const createDirectory = (data, offset) => {
const buf = new Buffer(constants.directorySize);
const buf = Buffer.alloc(constants.directorySize);
const size = data.data.length + constants.bitmapSize;

@@ -46,3 +46,3 @@ const width = data.width === 256 ? 0 : data.width;

const createBitmap = (data, compression) => {
const buf = new Buffer(constants.bitmapSize);
const buf = Buffer.alloc(constants.bitmapSize);

@@ -68,3 +68,3 @@ buf.writeUInt32LE(constants.bitmapSize, 0);

const end = rows - cols;
const buf = new Buffer(data.length);
const buf = Buffer.alloc(data.length);

@@ -71,0 +71,0 @@ for (let row = 0; row < rows; row += cols) {

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

@@ -30,2 +30,3 @@ "license": "MIT",

"arrify": "^1.0.1",
"icojs": "^0.4.1",
"image-size": "^0.5.0",

@@ -32,0 +33,0 @@ "parse-png": "^1.0.0",

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