color-space
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "color-space", | ||
"description": "Convert color from/to any color space or get space data. Spaces can be required selectively.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Deema Yvanow <dfcreative@gmail.com>", | ||
"keywords": [ | ||
"color", | ||
"colour", | ||
"rgb", | ||
"hsl", | ||
"hsv", | ||
"lab", | ||
"lch", | ||
"luv", | ||
"lch", | ||
"cie", | ||
"husl", | ||
"color-convert", | ||
"gamut", | ||
"color-conversions", | ||
"color-space", | ||
"color-translation", | ||
"color-data" | ||
], | ||
"repository": { | ||
@@ -33,2 +52,5 @@ "type": "git", | ||
"main": "./index.js", | ||
"dependencies": { | ||
"husl": ">=5.0" | ||
}, | ||
"devDependencies": { | ||
@@ -43,21 +65,2 @@ "mumath": "~0.x", | ||
}, | ||
"keywords": [ | ||
"color", | ||
"colour", | ||
"rgb", | ||
"hsl", | ||
"hsv", | ||
"lab", | ||
"lch", | ||
"luv", | ||
"lch", | ||
"cie", | ||
"husl", | ||
"color-convert", | ||
"gamut", | ||
"color-conversions", | ||
"color-space", | ||
"color-translation", | ||
"color-data" | ||
], | ||
"scripts": { | ||
@@ -68,6 +71,3 @@ "test": "mocha", | ||
"build-test": "browserify -r ./util/add-space:../util/add-space -r ./index:../index -r ./xyy:../xyy -r ./labh:../labh -r ./cmy:../cmy -r husl -r assert -r mumath -r query-relative > test/test.bundle.js" | ||
}, | ||
"dependencies": { | ||
"husl": ">=5.0" | ||
} | ||
} |
@@ -43,5 +43,3 @@ /** | ||
else throw Error('Can’t add convertor from ' + fromSpace.name + ' to ' + toSpaceName); | ||
return fromSpace[toSpaceName]; | ||
throw Error('Can’t add convertor from ' + fromSpace.name + ' to ' + toSpaceName); | ||
} |
@@ -17,3 +17,3 @@ /** | ||
module.exports = function(spaces){ | ||
var res = '(function(){\nvar spaces = {};\n'; | ||
var res = '(function(){\nvar space = {};\n'; | ||
@@ -43,5 +43,5 @@ var fnSrc, space; | ||
res += '\nreturn spaces;})()'; | ||
res += '\nreturn space;})()'; | ||
return res; | ||
}; |
73731
2131