Socket
Socket
Sign inDemoInstall

decode-ico

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decode-ico - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

fixtures/256-0.png

7

index.js

@@ -118,4 +118,6 @@ function makeDivisibleByFour (input) {

function decodeBmp ({ data, width, height }) {
function decodeBmp ({ data, width: iconWidth, height: iconHeight }) {
const headerSize = data.readUInt32LE(0)
const bitmapWidth = (data.readUInt32LE(4) / 1) | 0
const bitmapHeight = (data.readUInt32LE(8) / 2) | 0
const colorDepth = data.readUInt16LE(14)

@@ -128,2 +130,5 @@ let colorCount = data.readUInt32LE(32)

const width = (bitmapWidth === 0 ? iconWidth : bitmapWidth)
const height = (bitmapHeight === 0 ? iconHeight : bitmapHeight)
const result = colorCount

@@ -130,0 +135,0 @@ ? decodePaletteBmp(data, headerSize, { width, height, colorDepth, colorCount })

2

package.json
{
"name": "decode-ico",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "LinusU/decode-ico",

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