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

canvas-color

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-color - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

2

package.json
{
"name": "canvas-color",
"version": "2.0.6",
"version": "2.0.7",
"description": "color",

@@ -5,0 +5,0 @@ "keywords": [

@@ -12,3 +12,2 @@ ;(function(root, factory) {

'use strict';
var guid = function() {

@@ -46,3 +45,2 @@ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {

var context = canvas.getContext('2d');
if (typeof this.image === 'string') {

@@ -74,3 +72,4 @@ var img = new Image();

data.forEach(function(pixel, index) {
Object.keys(data).forEach(function(index) {
var pixel = data[index];
var colorIndex = index % 4;

@@ -77,0 +76,0 @@ switch(colorIndex) {

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