Skip to content

Commit

Permalink
Replace nanocolors to picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 4, 2021
1 parent 2ecf6a0 commit 81cce02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/autoprefixer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let browserslist = require('browserslist')
let nanocolors = require('nanocolors')
let postcss = require('postcss')
let agents = require('caniuse-lite').agents
let pico = require('picocolors')

let Browsers = require('./browsers')
let Prefixes = require('./prefixes')
Expand Down Expand Up @@ -80,8 +80,8 @@ module.exports = postcss.plugin('autoprefixer', (...reqs) => {
} else if (options.browsers) {
if (typeof console !== 'undefined' && console.warn) {
console.warn(
nanocolors.red(
WARNING.replace(/`[^`]+`/g, i => nanocolors.yellow(i.slice(1, -1)))
pico.red(
WARNING.replace(/`[^`]+`/g, i => pico.yellow(i.slice(1, -1)))
)
)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@babel/register": "^7.10.5",
"browserslist": "^4.12.0",
"caniuse-lite": "^1.0.30001109",
"nanocolors": "^0.2.8",
"normalize-range": "^0.1.2",
"num2fraction": "^1.2.2",
"picocolors": "^0.2.1",
"postcss": "^7.0.32",
"postcss-value-parser": "^4.1.0"
},
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6889,11 +6889,6 @@ nan@^2.12.1:
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01"
integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==

nanocolors@^0.2.8:
version "0.2.8"
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.2.8.tgz#ea9190bb9a6834df3a53b2cf2dc52f5de76b84fd"
integrity sha512-lFtwopLYUwJ/w+VcBib+Ti1J+USzc/m2XN9LCCl/AhibkzYlXk6FHeqkJqBWRd70RpjArGWYZQjwa6UgwYycBA==

nanoid@^3.1.10:
version "3.1.10"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.10.tgz#69a8a52b77892de0d11cede96bc9762852145bc4"
Expand Down Expand Up @@ -7559,6 +7554,11 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=

picocolors@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f"
integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==

picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1:
version "2.2.2"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
Expand Down

0 comments on commit 81cce02

Please sign in to comment.