postcss-normalize-string 8.0.4 → 9.0.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/README.md CHANGED
@@ -50,7 +50,7 @@ console.log(postcss(normalize({preferredQuote: 'single'})).process(css).css);
50
50
 
51
51
  ## Contributors
52
52
 
53
- See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
53
+ See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/main/CONTRIBUTORS.md).
54
54
 
55
55
  ## License
56
56
 
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "postcss-normalize-string",
3
- "version": "8.0.4",
3
+ "version": "9.0.1",
4
4
  "description": "Normalize wrapping quotes for CSS string literals.",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./types/index.d.ts",
8
8
  "default": "./src/index.js"
9
9
  },
10
- "./src": "./src/index.js",
11
- "./src/index": "./src/index.js",
12
- "./src/index.js": "./src/index.js",
13
10
  "./package.json": "./package.json"
14
11
  },
12
+ "main": "./src/index.js",
13
+ "types": "./types/index.d.ts",
15
14
  "files": [
16
15
  "src",
17
16
  "LICENSE-MIT",
@@ -40,7 +39,7 @@
40
39
  "url": "https://github.com/cssnano/cssnano/issues"
41
40
  },
42
41
  "engines": {
43
- "node": "^22.11.0 || ^24.11.0 || >=26.0"
42
+ "node": "^22.22.3 || ^24.15.0 || >=26.0"
44
43
  },
45
44
  "devDependencies": {
46
45
  "postcss": "^8.5.26"
@@ -48,6 +47,7 @@
48
47
  "peerDependencies": {
49
48
  "postcss": "^8.5.26"
50
49
  },
50
+ "type": "module",
51
51
  "scripts": {
52
52
  "test": "node --test"
53
53
  }
package/src/index.js CHANGED
@@ -1,5 +1,4 @@
1
- 'use strict';
2
- const valueParser = require('postcss-value-parser');
1
+ import valueParser from 'postcss-value-parser';
3
2
 
4
3
  /*
5
4
  * Constants (parser usage)
@@ -317,8 +316,8 @@ function pluginCreator(opts) {
317
316
  },
318
317
  };
319
318
  }
320
-
319
+ /** @type {true} */
321
320
  pluginCreator.postcss = true;
322
- module.exports = /** @type {import('postcss').PluginCreator<Options>}*/ (
323
- pluginCreator
324
- );
321
+ const moduleExports = pluginCreator;
322
+
323
+ export { moduleExports as default, moduleExports as 'module.exports' };
package/types/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- declare const _exports: import("postcss").PluginCreator<Options>;
2
- export = _exports;
3
1
  declare const T_ESCAPED_SINGLE_QUOTE: {
4
2
  type: string;
5
3
  value: string;
@@ -30,4 +28,15 @@ export type StringAst = {
30
28
  export type Options = {
31
29
  preferredQuote?: 'double' | 'single';
32
30
  };
31
+ /** @typedef {{preferredQuote?: 'double' | 'single'}} Options */
32
+ /**
33
+ * @param {Options} opts
34
+ * @return {import('postcss').Plugin}
35
+ */
36
+ declare function pluginCreator(opts: Options): import('postcss').Plugin;
37
+ declare namespace pluginCreator {
38
+ var postcss: true;
39
+ }
40
+ declare const moduleExports: typeof pluginCreator;
41
+ export { moduleExports as default, moduleExports as 'module.exports' };
33
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;AA0CA,QAAA,MAAM,sBAAsB;;;CAAiD,CAAC;AAC9E,QAAA,MAAM,sBAAsB;;;CAAiD,CAAC;AAC9E,QAAA,MAAM,cAAc;;;CAAkD,CAAC;AAEvE,QAAA,MAAM,SAAS;;;CAAwC,CAAC;AAEpD,YAAoH,aAAa,GAAvH,OAAO,sBAAsB,GAAG,OAAO,sBAAsB,GAAG,OAAO,cAAc,GAAG,OAAO,SAAS,CAAe;AAElI,YAE6B,SAAS,GAF5B;IAAC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,EAAE;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,C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