Comparing version 1.1.2 to 1.1.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6221
5
+ Addedicojs@^0.4.1
+ Addedicojs@0.4.1(transitive)