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

node-skia-canvas

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-skia-canvas - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

8

lib/Canvas.js

@@ -6,2 +6,10 @@ const { Canvas: NativeCanvas } = require('bindings')('node-skia')

constructor (width, height) {
if (typeof width !== 'number' || width <= 0) {
throw new Error('construct canvas error: width should be a number and greater than 0')
}
if (typeof height !== 'number' || height <= 0) {
throw new Error('construct canvas error: height should be a number and greater than 0')
}
this.nativeCanvas = new NativeCanvas(width, height)

@@ -8,0 +16,0 @@ this._ctx2d = null;

2

package.json
{
"name": "node-skia-canvas",
"version": "0.1.4",
"version": "0.1.5",
"description": "Skia based graphics canvas run on node.js, written in Node-API",

@@ -5,0 +5,0 @@ "main": "lib/index.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