cssnano-preset-advanced 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cssnano-preset-advanced",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "main": "src/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "description": "Advanced optimisations for cssnano; may or may not break your CSS!",
package/src/index.js CHANGED
@@ -22,7 +22,7 @@ const defaultOpts = {
22
22
  },
23
23
  };
24
24
 
25
- module.exports = function advancedPreset(opts = {}) {
25
+ function advancedPreset(opts = {}) {
26
26
  const options = Object.assign({}, defaultOpts, opts);
27
27
 
28
28
  /** @type {[import('postcss').PluginCreator<any>, boolean | Record<string, any> | undefined][]} */
@@ -36,4 +36,6 @@ module.exports = function advancedPreset(opts = {}) {
36
36
  ];
37
37
 
38
38
  return { plugins };
39
- };
39
+ }
40
+
41
+ module.exports = advancedPreset;
package/types/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
- declare function _exports(opts?: {}): {
1
+ export = advancedPreset;
2
+ declare function advancedPreset(opts?: {}): {
2
3
  plugins: [import("postcss").PluginCreator<any>, boolean | Record<string, any> | undefined][];
3
4
  };
4
- export = _exports;
5
- export type AdvancedOptions = {
5
+ declare namespace advancedPreset {
6
+ export { AdvancedOptions, Options };
7
+ }
8
+ type AdvancedOptions = {
6
9
  autoprefixer?: autoprefixer.Options;
7
10
  discardUnused?: false | import('postcss-discard-unused').Options & {
8
11
  exclude?: true;
@@ -17,5 +20,5 @@ export type AdvancedOptions = {
17
20
  exclude?: true;
18
21
  };
19
22
  };
20
- export type Options = import('cssnano-preset-default').Options & AdvancedOptions;
23
+ type Options = import('cssnano-preset-default').Options & AdvancedOptions;
21
24
  import autoprefixer = require("autoprefixer");