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

canvas-operations

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-operations - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

test.js

6

index.js
'use strict';
var d3 = require('d3');
var Canvas = require('canvas')
, Image = Canvas.Image
,d3 = require('d3');

@@ -61,2 +61,6 @@ var resize = function(input) {

var ctx = canvas.getContext('2d');
global.CanvasRenderingContext2D = {};
global.CanvasRenderingContext2D.prototype = ctx;
require('canvas-5-polyfill');
if(!data || data.length <= 0)

@@ -63,0 +67,0 @@ return [];

6

package.json
{
"name": "canvas-operations",
"version": "2.0.1",
"version": "2.0.2",
"description": "Used to resize handwritten pixel alpha values for nueral network pattern recognition",

@@ -21,5 +21,5 @@ "main": "index.js",

"canvas": "^1.4.0",
"d3": "^4.2.2",
"d3-scale": "^1.0.3"
"canvas-5-polyfill": "^0.1.1",
"d3": "^3.2.2"
}
}
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