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.1 to 3.2.2

7

dom-pixels.js

@@ -12,2 +12,3 @@ 'use strict'

var img = new Image()
img.crossOrigin = "Anonymous"
img.onload = function() {

@@ -68,4 +69,7 @@ var canvas = document.createElement('canvas')

var xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.responseType = 'arraybuffer'
xhr.overrideMimeType('application/binary')
if(xhr.overrideMimeType){
xhr.overrideMimeType('application/binary')
}
xhr.onerror = function(err) {

@@ -82,3 +86,2 @@ cb(err)

}
xhr.open('GET', url, true)
xhr.send()

@@ -85,0 +88,0 @@ }

{
"name": "get-pixels",
"version": "3.2.1",
"version": "3.2.2",
"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