+9
-6
| { | ||
| "name": "cssnano", | ||
| "version": "8.0.4", | ||
| "version": "8.0.5", | ||
| "description": "A modular minifier, built on top of the PostCSS ecosystem.", | ||
@@ -31,3 +31,3 @@ "exports": { | ||
| "lilconfig": "^3.1.3", | ||
| "cssnano-preset-default": "^8.0.4" | ||
| "cssnano-preset-default": "^8.0.5" | ||
| }, | ||
@@ -57,10 +57,13 @@ "homepage": "https://github.com/cssnano/cssnano", | ||
| "autoprefixer": "^10.5.4", | ||
| "postcss": "^8.5.25", | ||
| "postcss": "^8.5.26", | ||
| "postcss-font-magician": "^4.0.0", | ||
| "cssnano-preset-advanced": "^8.0.4", | ||
| "cssnano-preset-lite": "^5.0.2" | ||
| "cssnano-preset-advanced": "^8.0.5", | ||
| "cssnano-preset-lite": "^5.0.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "postcss": "^8.5.25" | ||
| "postcss": "^8.5.26" | ||
| }, | ||
| "scripts": { | ||
| "test": "node --test" | ||
| } | ||
| } |
+22
-21
@@ -133,27 +133,28 @@ 'use strict'; | ||
| // prettier-ignore | ||
| /** @type {any[]} */ (/** @type {Options} */ (options).plugins) | ||
| .forEach((plugin) => { | ||
| if (Array.isArray(plugin)) { | ||
| const [pluginDef, opts = {}] = plugin; | ||
| if (typeof pluginDef === 'string' && isResolvable(pluginDef)) { | ||
| /** @type {Options} */ (options).preset.plugins.push([ | ||
| require(pluginDef), | ||
| opts, | ||
| ]); | ||
| } else { | ||
| /** @type {Options} */ (options).preset.plugins.push([ | ||
| pluginDef, | ||
| opts, | ||
| ]); | ||
| } | ||
| } else if (typeof plugin === 'string' && isResolvable(plugin)) { | ||
| const inputPlugins = /** @type {any[]} */ ( | ||
| /** @type {Options} */ (options).plugins | ||
| ); | ||
| for (const plugin of inputPlugins) { | ||
| if (Array.isArray(plugin)) { | ||
| const [pluginDef, opts = {}] = plugin; | ||
| if (typeof pluginDef === 'string' && isResolvable(pluginDef)) { | ||
| /** @type {Options} */ (options).preset.plugins.push([ | ||
| require(plugin), | ||
| {}, | ||
| require(pluginDef), | ||
| opts, | ||
| ]); | ||
| } else { | ||
| /** @type {Options} */ (options).preset.plugins.push([plugin, {}]); | ||
| /** @type {Options} */ (options).preset.plugins.push([ | ||
| pluginDef, | ||
| opts, | ||
| ]); | ||
| } | ||
| }); | ||
| } else if (typeof plugin === 'string' && isResolvable(plugin)) { | ||
| /** @type {Options} */ (options).preset.plugins.push([ | ||
| require(plugin), | ||
| {}, | ||
| ]); | ||
| } else { | ||
| /** @type {Options} */ (options).preset.plugins.push([plugin, {}]); | ||
| } | ||
| } | ||
| } | ||
@@ -160,0 +161,0 @@ const plugins = []; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"SAkLiB,aAAa;AAzK1B,YAAgE,OAAO,GAA7D;IAAC,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC,CAAS;AA6G3E;;;;GAIG;AACH,iBAAS,aAAa,CAAC,OAAO,KAAK,OAoDlC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"SAmLiB,aAAa;AA1K1B,YAAgE,OAAO,GAA7D;IAAC,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC,CAAS;AA6G3E;;;;GAIG;AACH,iBAAS,aAAa,CAAC,OAAO,KAAK,OAqDlC"} |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
8010
0.29%171
0.59%0
-100%