Comparing version 2.3.0 to 2.3.1
#!/usr/bin/env node | ||
var AssetGraph = require('assetgraph'), | ||
var fs = require('fs'), | ||
AssetGraph = require('assetgraph'), | ||
commandLineOptions = require('optimist') | ||
@@ -13,5 +14,17 @@ .demand(1) | ||
.queue(function (assetGraph) { | ||
console.log(assetGraph.findAssets()[0].text); | ||
var text = assetGraph.findAssets()[0].text + "\n"; | ||
if (commandLineOptions.o) { | ||
fs.writeFile(commandLineOptions.o, text, 'utf-8', function (err) { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
} else { | ||
console.log(text); | ||
} | ||
}) | ||
.run(); | ||
.run(function (err) { | ||
if (err) { | ||
throw err; | ||
} | ||
}); |
/*global one*/ | ||
// This file is purely for the build system | ||
one.include('lib:color.js'); | ||
one.include('lib:color-namedColors.js'); | ||
one.include('lib:color/HSV.js'); | ||
one.include('lib:color/HSL.js'); | ||
one.include('lib:color/CMYK.js'); | ||
INCLUDE('lib:color.js'); | ||
INCLUDE('lib:color-namedColors.js'); | ||
INCLUDE('lib:color/HSV.js'); | ||
INCLUDE('lib:color/HSL.js'); | ||
INCLUDE('lib:color/CMYK.js'); | ||
// Convenience functions | ||
one.include('lib:color/plugins/clearer.js'); | ||
one.include('lib:color/plugins/darken.js'); | ||
one.include('lib:color/plugins/desaturate.js'); | ||
one.include('lib:color/plugins/greyscale.js'); | ||
one.include('lib:color/plugins/lighten.js'); | ||
one.include('lib:color/plugins/mix.js'); | ||
one.include('lib:color/plugins/negate.js'); | ||
one.include('lib:color/plugins/opaquer.js'); | ||
one.include('lib:color/plugins/rotate.js'); | ||
one.include('lib:color/plugins/saturate.js'); | ||
one.include('lib:color/plugins/toAlpha.js'); | ||
INCLUDE('lib:color/plugins/clearer.js'); | ||
INCLUDE('lib:color/plugins/darken.js'); | ||
INCLUDE('lib:color/plugins/desaturate.js'); | ||
INCLUDE('lib:color/plugins/greyscale.js'); | ||
INCLUDE('lib:color/plugins/lighten.js'); | ||
INCLUDE('lib:color/plugins/mix.js'); | ||
INCLUDE('lib:color/plugins/negate.js'); | ||
INCLUDE('lib:color/plugins/opaquer.js'); | ||
INCLUDE('lib:color/plugins/rotate.js'); | ||
INCLUDE('lib:color/plugins/saturate.js'); | ||
INCLUDE('lib:color/plugins/toAlpha.js'); |
/*global one*/ | ||
// This file is purely for the build system | ||
one.include('lib:color.js'); | ||
one.include('lib:color/HSV.js'); | ||
one.include('lib:color/HSL.js'); | ||
INCLUDE('lib:color.js'); | ||
INCLUDE('lib:color/HSV.js'); | ||
INCLUDE('lib:color/HSL.js'); |
/*global one*/ | ||
one.include('lib:color.js'); | ||
INCLUDE('lib:color.js'); | ||
@@ -4,0 +4,0 @@ installColorSpace('CMYK', ['cyan', 'magenta', 'yellow', 'black', 'alpha'], { |
/*global one*/ | ||
one.include('lib:color.js'); | ||
INCLUDE('lib:color.js'); | ||
one.include('lib:color/HSV.js'); | ||
INCLUDE('lib:color/HSV.js'); | ||
@@ -6,0 +6,0 @@ installColorSpace('HSL', ['hue', 'saturation', 'lightness', 'alpha'], { |
/*global one*/ | ||
one.include('lib:color.js'); | ||
INCLUDE('lib:color.js'); | ||
@@ -4,0 +4,0 @@ installColorSpace('HSV', ['hue', 'saturation', 'value', 'alpha'], { |
@@ -1,2 +0,2 @@ | ||
one.include('../HSL.js'); | ||
INCLUDE('../HSL.js'); | ||
@@ -3,0 +3,0 @@ ONECOLOR.installMethod('darken', function (amount) { |
@@ -1,2 +0,2 @@ | ||
one.include('../HSL.js'); | ||
INCLUDE('../HSL.js'); | ||
@@ -3,0 +3,0 @@ ONECOLOR.installMethod('desaturate', function (amount) { |
@@ -1,2 +0,2 @@ | ||
one.include('../HSL.js'); | ||
INCLUDE('../HSL.js'); | ||
@@ -3,0 +3,0 @@ ONECOLOR.installMethod('lighten', function (amount) { |
@@ -1,2 +0,2 @@ | ||
one.include('../HSL.js'); | ||
INCLUDE('../HSL.js'); | ||
@@ -3,0 +3,0 @@ ONECOLOR.installMethod('saturate', function (amount) { |
@@ -1,1 +0,1 @@ | ||
(function(){var e="a"[0]!=="a",t=function(t){if(t===null)throw new TypeError("can't convert "+t+" to object");return e&&typeof t=="string"&&t?t.split(""):new Object(t)};Array.prototype.forEach||(Array.prototype.forEach=function(n){var r=t(this),i=arguments[1],s=-1,o=r.length>>>0;if(typeof n!="function")throw new TypeError;while(++s<o)s in r&&n.call(i,r[s],s,r)}),Array.prototype.map||(Array.prototype.map=function(n){var r=t(this),i=r.length>>>0,s=new Array(i),o=arguments[1],u;if(typeof n!="function")throw new TypeError(n+" is not a function");for(u=0;u<i;u+=1)u in r&&(s[u]=n.call(o,r[u],u,r));return s}),Array.prototype.filter||(Array.prototype.filter=function(n){var r=t(this),i=r.length>>>0,s=[],o,u=arguments[1],a;if(typeof n!="function")throw new TypeError(n+" is not a function");for(a=0;a<i;a+=1)a in r&&(o=r[a],n.call(u,o,a,r)&&s.push(o));return s})})(); | ||
(function(){var a="a"[0]!=="a",b=function(b){if(b===null)throw new TypeError("can't convert "+b+" to object");return a&&typeof b=="string"&&b?b.split(""):new Object(b)};Array.prototype.forEach||(Array.prototype.forEach=function(c){var d=b(this),e=arguments[1],f=-1,g=d.length>>>0;if(typeof c!="function")throw new TypeError;while(++f<g)f in d&&c.call(e,d[f],f,d)}),Array.prototype.map||(Array.prototype.map=function(c){var d=b(this),e=d.length>>>0,f=new Array(e),g=arguments[1],h;if(typeof c!="function")throw new TypeError(c+" is not a function");for(h=0;h<e;h+=1)h in d&&(f[h]=c.call(g,d[h],h,d));return f}),Array.prototype.filter||(Array.prototype.filter=function(c){var d=b(this),e=d.length>>>0,f=[],g,h=arguments[1],i;if(typeof c!="function")throw new TypeError(c+" is not a function");for(i=0;i<e;i+=1)i in d&&(g=d[i],c.call(h,g,i,d)&&f.push(g));return f})})(); |
@@ -5,3 +5,3 @@ { | ||
"repository": "git@github.com:One-com/one-color.git", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"keywords": ["ender", "color", "colour", "requirejs", "amd"], | ||
@@ -19,6 +19,7 @@ "maintainers": [ | ||
"devDependencies": { | ||
"assetgraph": "=0.4.59", | ||
"assetgraph-builder": "=0.4.3", | ||
"assetgraph": "=1.0.1", | ||
"assetgraph-builder": "=1.0.3", | ||
"optimist": "=0.3.1", | ||
"vows": "=0.6.1" | ||
"vows": "=0.6.1", | ||
"jamjs": "*" | ||
}, | ||
@@ -37,6 +38,16 @@ "engines": { | ||
"scripts": { | ||
"pretest": "npm install && make clean && make", | ||
"test": "vows", | ||
"prepublish": "npm test" | ||
"prepublish": "npm test", | ||
"postpublish": "jam publish" | ||
}, | ||
"jam": { | ||
"main": "one-color-all.js", | ||
"include": [ | ||
"one-color.js", | ||
"one-color-all.js", | ||
"one-color-ieshim.js", | ||
"README.md", | ||
"LICENSE" | ||
] | ||
} | ||
} |
@@ -6,2 +6,3 @@ one.color | ||
Features: | ||
* RGB, HSV, HSL, and CMYK colorspace support (experimental implementations of LAB and XYZ) | ||
@@ -17,2 +18,12 @@ * Legal values for all channels are 0..1 | ||
Module support: | ||
* CommonJS / Node | ||
* AMD / RequireJS | ||
* jQuery (installs itself on $.color) | ||
* Vanilla JS (installs itself on one.color) | ||
Package managers: | ||
* npm: `npm install onecolor` | ||
* bower: `bower install color` | ||
WARNING IE USERS: | ||
@@ -19,0 +30,0 @@ This library uses some modern ecmascript methods that aren't available in IE versions below IE9. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
2359341
74
5371
314
0
5
1
3