colormap
Advanced tools
Comparing version 2.3.0 to 2.3.1
10
index.js
@@ -17,9 +17,5 @@ /* | ||
*/ | ||
var indicies, rgba, fromrgba, torgba, | ||
var indicies, fromrgba, torgba, | ||
nsteps, cmap, colormap, format, | ||
nshades, colors, alpha, index, i, | ||
r = [], | ||
g = [], | ||
b = [], | ||
a = []; | ||
nshades, colors, alpha, i; | ||
@@ -50,3 +46,3 @@ if ( !spec ) spec = {}; | ||
if (cmap.length > nshades) { | ||
if (cmap.length > nshades + 1) { | ||
throw new Error( | ||
@@ -53,0 +49,0 @@ colormap+' map requires nshades to be at least size '+cmap.length |
{ | ||
"name": "colormap", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Great looking color maps", | ||
@@ -5,0 +5,0 @@ "author": "bpostlethwaite", |
@@ -13,3 +13,3 @@ # colormap [![Build Status](https://travis-ci.org/bpostlethwaite/colormap.png)](https://travis-ci.org/bpostlethwaite/colormap) | ||
let colors = colormap({ | ||
colormap: 'jet' | ||
colormap: 'jet', | ||
nshades: 10, | ||
@@ -16,0 +16,0 @@ format: 'hex', |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
635680
5585