Permalink
Browse files

Updated package.js to support node>=0.6

  • Loading branch information...
1 parent 769a7c2 commit c3d8c5592d00f059b7a1f2b4ced164ba6b62c618 @josip committed Jul 24, 2012
Showing with 5 additions and 4 deletions.
  1. +3 −2 package.json
  2. +2 −2 src/colour-extractor.coffee
View
@@ -13,9 +13,10 @@
"lib": "lib"
},
"engines": {
- "node": "0.4.x"
+ "node": ">=0.4"
},
"dependencies": {
- "gm": ">=0.4.0"
+ "gm": ">=0.4.0",
+ "temp": ">=0.4.x"
}
}
@@ -4,7 +4,7 @@ temp = require('temp')
MAX_W = 14
MIFF_START = 'comment={'
-MIF_END = '\x0A}\x0A\x0C\x0A'
+MIFF_END = '\x0A}\x0A\x0C\x0A'
exports.topColours = (sourceFilename, sorted, cb) ->
img = gm(sourceFilename)
@@ -68,7 +68,7 @@ include = (x, xs) ->
xs.push(x) if xs.indexOf(x) is -1
xs
-sortByFrequency = ([a, _], [b, _]) ->
+sortByFrequency = ([a, _a2], [b, _b2]) ->
return -1 if a > b
return 1 if a < b
return 0

0 comments on commit c3d8c55

Please sign in to comment.