Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-pixels

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-pixels - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

12

node-pixels.js

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

} else if(url.indexOf('http://') === 0 || url.indexOf('https://') === 0) {
request(url, function(err, response, body) {
request({url:url, encoding:null}, function(err, response, body) {
if(err) {

@@ -158,3 +158,11 @@ cb(err)

}
type = type || response.getHeader('content-type')
type = type;
if(!type){
if(response.getHeader !== undefined){
type = response.getHeader('content-type');
}else if(response.headers !== undefined){
type = response.headers['content-type'];
}
}
if(!type) {

@@ -161,0 +169,0 @@ cb(new Error('Invalid content-type'))

2

package.json
{
"name": "get-pixels",
"version": "3.2.0",
"version": "3.2.1",
"description": "Reads the pixels of an image as an ndarray",

@@ -5,0 +5,0 @@ "main": "node-pixels.js",

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