Skip to content

Commit 35b205a

Browse files
committed
Replace nanocolors to picocolors
1 parent c3263a0 commit 35b205a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

lib/autoprefixer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
let { yellow, red } = require('nanocolors')
21
let browserslist = require('browserslist')
32
let { agents } = require('caniuse-lite')
3+
let pico = require('picocolors')
44

55
let Browsers = require('./browsers')
66
let Prefixes = require('./prefixes')
@@ -90,7 +90,7 @@ function plugin(...reqs) {
9090
} else if (options.browsers) {
9191
if (typeof console !== 'undefined' && console.warn) {
9292
console.warn(
93-
red(WARNING.replace(/`[^`]+`/g, i => yellow(i.slice(1, -1))))
93+
pico.red(WARNING.replace(/`[^`]+`/g, i => pico.yellow(i.slice(1, -1))))
9494
)
9595
}
9696
reqs = options.browsers

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"browserslist": "^4.17.1",
3636
"caniuse-lite": "^1.0.30001260",
3737
"fraction.js": "^4.1.1",
38-
"nanocolors": "^0.2.8",
3938
"normalize-range": "^0.1.2",
39+
"picocolors": "^0.2.1",
4040
"postcss-value-parser": "^4.1.0"
4141
},
4242
"devDependencies": {

yarn.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4592,7 +4592,7 @@ nanocolors@^0.1.0, nanocolors@^0.1.1, nanocolors@^0.1.12, nanocolors@^0.1.5:
45924592
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.1.12.tgz#8577482c58cbd7b5bb1681db4cf48f11a87fd5f6"
45934593
integrity sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==
45944594

4595-
nanocolors@^0.2.2, nanocolors@^0.2.6, nanocolors@^0.2.8:
4595+
nanocolors@^0.2.2, nanocolors@^0.2.6:
45964596
version "0.2.8"
45974597
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.2.8.tgz#ea9190bb9a6834df3a53b2cf2dc52f5de76b84fd"
45984598
integrity sha512-lFtwopLYUwJ/w+VcBib+Ti1J+USzc/m2XN9LCCl/AhibkzYlXk6FHeqkJqBWRd70RpjArGWYZQjwa6UgwYycBA==
@@ -5015,6 +5015,11 @@ pbkdf2@^3.0.3:
50155015
safe-buffer "^5.0.1"
50165016
sha.js "^2.4.8"
50175017

5018+
picocolors@^0.2.1:
5019+
version "0.2.1"
5020+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f"
5021+
integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==
5022+
50185023
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
50195024
version "2.3.0"
50205025
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"

0 commit comments

Comments
 (0)