Merge branch 'master' into 256-truecolor

This commit is contained in:
Sindre Sorhus 2017-06-20 15:05:35 +02:00 committed by GitHub
commit 8c873a3732
7 changed files with 50 additions and 16 deletions

View file

@ -79,8 +79,19 @@ function build(_styles, key) {
return applyStyle.apply(builder, arguments);
};
var self = this;
builder._styles = _styles;
builder.level = this.level;
Object.defineProperty(builder, 'level', {
enumerable: true,
get: function () {
return self.level;
},
set: function (level) {
self.level = level;
}
});
// see below for fix regarding invisible grey/dim combination on windows.
builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey';