Socket
Socket
Sign inDemoInstall

pixelsmith

Package Overview
Dependencies
86
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 2.3.0

2

CHANGELOG.md
# pixelsmith changelog
2.3.0 - Removed `ndarray-fill` to fix `npm audit` vulnerability via @dawidgarus in #17
2.2.2 - Moved to Node.js>=8 to fix Travis CI

@@ -3,0 +5,0 @@

8

lib/canvas.js
// Load in dependencies
var assert = require('assert');
var ndarray = require('ndarray');
var ndarrayFill = require('ndarray-fill');
var savePixels = require('save-pixels');

@@ -38,6 +37,7 @@

var ndarray = this.ndarray;
var data = this.data;
if (options.background) {
ndarrayFill(ndarray, function fillBackground (i, j, k) {
return options.background[k];
});
for (var i = 0; i < data.length; ++i) {
data[i] = options.background[i % 4];
}
}

@@ -44,0 +44,0 @@

{
"name": "pixelsmith",
"description": "Node based engine for spritesmith",
"version": "2.2.2",
"version": "2.3.0",
"homepage": "https://github.com/twolfson/pixelsmith",

@@ -35,3 +35,2 @@ "author": {

"ndarray": "~1.0.15",
"ndarray-fill": "~1.0.1",
"obj-extend": "~0.1.0",

@@ -38,0 +37,0 @@ "save-pixels": "~2.3.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc