From 35b205a4a265f4c302edf5e077c5cc17c3c571ed Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Mon, 4 Oct 2021 22:18:36 +0200 Subject: [PATCH] Replace nanocolors to picocolors --- lib/autoprefixer.js | 4 ++-- package.json | 2 +- yarn.lock | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/autoprefixer.js b/lib/autoprefixer.js index 87ec17bcf..714f418e5 100644 --- a/lib/autoprefixer.js +++ b/lib/autoprefixer.js @@ -1,6 +1,6 @@ -let { yellow, red } = require('nanocolors') let browserslist = require('browserslist') let { agents } = require('caniuse-lite') +let pico = require('picocolors') let Browsers = require('./browsers') let Prefixes = require('./prefixes') @@ -90,7 +90,7 @@ function plugin(...reqs) { } else if (options.browsers) { if (typeof console !== 'undefined' && console.warn) { console.warn( - red(WARNING.replace(/`[^`]+`/g, i => yellow(i.slice(1, -1)))) + pico.red(WARNING.replace(/`[^`]+`/g, i => pico.yellow(i.slice(1, -1)))) ) } reqs = options.browsers diff --git a/package.json b/package.json index 551a35119..9d053ad4f 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "browserslist": "^4.17.1", "caniuse-lite": "^1.0.30001260", "fraction.js": "^4.1.1", - "nanocolors": "^0.2.8", "normalize-range": "^0.1.2", + "picocolors": "^0.2.1", "postcss-value-parser": "^4.1.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 6d8fc39ef..c9eaa5210 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4592,7 +4592,7 @@ nanocolors@^0.1.0, nanocolors@^0.1.1, nanocolors@^0.1.12, nanocolors@^0.1.5: resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.1.12.tgz#8577482c58cbd7b5bb1681db4cf48f11a87fd5f6" integrity sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ== -nanocolors@^0.2.2, nanocolors@^0.2.6, nanocolors@^0.2.8: +nanocolors@^0.2.2, nanocolors@^0.2.6: 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== @@ -5015,6 +5015,11 @@ pbkdf2@^3.0.3: safe-buffer "^5.0.1" sha.js "^2.4.8" +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.2.1, picomatch@^2.2.3: version "2.3.0" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"