forked from orbit-oss/chalk
Update dependencies
This commit is contained in:
parent
61aca7cb76
commit
1953816afd
3 changed files with 13 additions and 7 deletions
14
package.json
14
package.json
|
|
@ -40,11 +40,11 @@
|
|||
"text"
|
||||
],
|
||||
"dependencies": {
|
||||
"ansi-styles": "^4.0.0",
|
||||
"supports-color": "^7.0.0"
|
||||
"ansi-styles": "^4.1.0",
|
||||
"supports-color": "^7.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^2.2.0",
|
||||
"ava": "^2.4.0",
|
||||
"coveralls": "^3.0.5",
|
||||
"execa": "^2.0.3",
|
||||
"import-fresh": "^3.1.0",
|
||||
|
|
@ -52,6 +52,12 @@
|
|||
"nyc": "^14.1.1",
|
||||
"resolve-from": "^5.0.0",
|
||||
"tsd": "^0.7.4",
|
||||
"xo": "^0.24.0"
|
||||
"xo": "^0.25.3"
|
||||
},
|
||||
"xo": {
|
||||
"rules": {
|
||||
"unicorn/prefer-string-slice": "off",
|
||||
"unicorn/prefer-includes": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
- Doesn't extend `String.prototype`
|
||||
- Clean and focused
|
||||
- Actively maintained
|
||||
- [Used by ~40,000 packages](https://www.npmjs.com/browse/depended/chalk) as of March 1, 2019
|
||||
- [Used by ~46,000 packages](https://www.npmjs.com/browse/depended/chalk) as of October 1, 2019
|
||||
|
||||
|
||||
## Install
|
||||
|
|
@ -267,7 +267,7 @@ The following color models can be used:
|
|||
|
||||
## Windows
|
||||
|
||||
If you're on Windows, do yourself a favor and use [`cmder`](http://cmder.net/) instead of `cmd.exe`.
|
||||
If you're on Windows, do yourself a favor and use [Windows Terminal](https://github.com/microsoft/terminal) instead of `cmd.exe`.
|
||||
|
||||
|
||||
## Origin story
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ test('don\'t output escape codes if the input is empty', t => {
|
|||
});
|
||||
|
||||
test('keep Function.prototype methods', t => {
|
||||
t.is(chalk.grey.apply(null, ['foo']), '\u001B[90mfoo\u001B[39m');
|
||||
t.is(Reflect.apply(chalk.grey, null, ['foo']), '\u001B[90mfoo\u001B[39m');
|
||||
t.is(chalk.reset(chalk.red.bgGreen.underline.bind(null)('foo') + 'foo'), '\u001B[0m\u001B[31m\u001B[42m\u001B[4mfoo\u001B[24m\u001B[49m\u001B[39mfoo\u001B[0m');
|
||||
t.is(chalk.red.blue.black.call(null), '');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue