Comparing version 8.4.13 to 8.4.14
@@ -30,21 +30,23 @@ 'use strict' | ||
postcss.plugin = function plugin(name, initializer) { | ||
// eslint-disable-next-line no-console | ||
if (console && console.warn) { | ||
let warningPrinted = false | ||
function creator(...args) { | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
name + | ||
': postcss.plugin was deprecated. Migration guide:\n' + | ||
'https://evilmartians.com/chronicles/postcss-8-plugin-migration' | ||
) | ||
if (process.env.LANG && process.env.LANG.startsWith('cn')) { | ||
/* c8 ignore next 7 */ | ||
if (console && console.warn && !warningPrinted) { | ||
warningPrinted = true | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
name + | ||
': 里面 postcss.plugin 被弃用. 迁移指南:\n' + | ||
'https://www.w3ctech.com/topic/2226' | ||
': postcss.plugin was deprecated. Migration guide:\n' + | ||
'https://evilmartians.com/chronicles/postcss-8-plugin-migration' | ||
) | ||
if (process.env.LANG && process.env.LANG.startsWith('cn')) { | ||
/* c8 ignore next 7 */ | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
name + | ||
': 里面 postcss.plugin 被弃用. 迁移指南:\n' + | ||
'https://www.w3ctech.com/topic/2226' | ||
) | ||
} | ||
} | ||
} | ||
function creator(...args) { | ||
let transformer = initializer(...args) | ||
@@ -51,0 +53,0 @@ transformer.postcssPlugin = name |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.13' | ||
this.version = '8.4.14' | ||
this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "postcss", | ||
"version": "8.4.13", | ||
"version": "8.4.14", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -74,3 +74,3 @@ "engines": { | ||
"dependencies": { | ||
"nanoid": "^3.3.3", | ||
"nanoid": "^3.3.4", | ||
"picocolors": "^1.0.0", | ||
@@ -77,0 +77,0 @@ "source-map-js": "^1.0.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186549
6508
Updatednanoid@^3.3.4