colors 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/colors.js +1 -12
  2. package/package.json +1 -1
package/colors.js CHANGED
@@ -48,20 +48,9 @@ var addProperty = function (color, func) {
48
48
  exports[color] = function (str) {
49
49
  return func.apply(str);
50
50
  };
51
-
52
- if (Object.defineProperty) {
53
- Object.defineProperty(String.prototype, color, {
54
- get : func,
55
- configurable: true,
56
- enumerable: false
57
- });
58
- } else {
59
- String.prototype.__defineGetter__(color, func);
60
- }
51
+ String.prototype.__defineGetter__(color, func);
61
52
  };
62
53
 
63
-
64
-
65
54
  function stylize(str, style) {
66
55
 
67
56
  var styles;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "colors",
3
3
  "description": "get colors in your node.js console like what",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "author": "Marak Squires",
6
6
  "homepage": "https://github.com/Marak/colors.js",
7
7
  "bugs": "https://github.com/Marak/colors.js/issues",