colors 1.2.5 → 1.3.0
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.
@@ -91,14 +91,14 @@ module['exports'] = function() {
|
|
91
91
|
|
92
92
|
colors.setTheme = function(theme) {
|
93
93
|
if (typeof theme === 'string') {
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
94
|
+
console.log('colors.setTheme now only accepts an object, not a string. ' +
|
95
|
+
'If you are trying to set a theme from a file, it is now your (the ' +
|
96
|
+
'caller\'s) responsibility to require the file. The old syntax ' +
|
97
|
+
'looked like colors.setTheme(__dirname + ' +
|
98
|
+
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
|
99
|
+
'colors.setTheme(require(__dirname + ' +
|
100
|
+
'\'/../themes/generic-logging.js\'));');
|
101
|
+
return;
|
102
102
|
} else {
|
103
103
|
applyTheme(theme);
|
104
104
|
}
|
package/package.json
CHANGED