postcss-normalize-repeat-style 8.0.3 → 9.0.0

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,18 +1,12 @@
1
1
  {
2
2
  "name": "postcss-normalize-repeat-style",
3
- "version": "8.0.3",
3
+ "version": "9.0.0",
4
4
  "description": "Convert two value syntax for repeat-style into one value.",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./types/index.d.ts",
8
8
  "default": "./src/index.js"
9
- },
10
- "./src": "./src/index.js",
11
- "./src/index": "./src/index.js",
12
- "./src/index.js": "./src/index.js",
13
- "./src/lib/map": "./src/lib/map.js",
14
- "./src/lib/map.js": "./src/lib/map.js",
15
- "./package.json": "./package.json"
9
+ }
16
10
  },
17
11
  "files": [
18
12
  "LICENSE-MIT",
@@ -30,14 +24,14 @@
30
24
  },
31
25
  "repository": {
32
26
  "type": "git",
33
- "url": "cssnano/cssnano"
27
+ "url": "git+https://github.com/cssnano/cssnano.git"
34
28
  },
35
29
  "bugs": {
36
30
  "url": "https://github.com/cssnano/cssnano/issues"
37
31
  },
38
32
  "homepage": "https://github.com/cssnano/cssnano",
39
33
  "engines": {
40
- "node": "^22.11.0 || ^24.11.0 || >=26.0"
34
+ "node": "^22.22.3 || ^24.15.0 || >=26.0"
41
35
  },
42
36
  "devDependencies": {
43
37
  "postcss": "^8.5.26"
@@ -45,6 +39,7 @@
45
39
  "peerDependencies": {
46
40
  "postcss": "^8.5.26"
47
41
  },
42
+ "type": "module",
48
43
  "scripts": {
49
44
  "test": "node --test"
50
45
  }
package/src/index.js CHANGED
@@ -1,6 +1,5 @@
1
- 'use strict';
2
- const valueParser = require('postcss-value-parser');
3
- const mappings = require('./lib/map');
1
+ import valueParser from 'postcss-value-parser';
2
+ import mappings from './lib/map.js';
4
3
 
5
4
  const repeatPropertyRegex = /^(background(-repeat)?|(-\w+-)?mask-repeat)$/i;
6
5
  /**
@@ -169,8 +168,8 @@ function pluginCreator() {
169
168
  },
170
169
  };
171
170
  }
172
-
171
+ /** @type {true} */
173
172
  pluginCreator.postcss = true;
174
- module.exports = /** @type {import('postcss').PluginCreator<void>}*/ (
175
- pluginCreator
176
- );
173
+ const moduleExports = pluginCreator;
174
+
175
+ export { moduleExports as default, moduleExports as 'module.exports' };
package/src/lib/map.js CHANGED
@@ -1,5 +1,4 @@
1
- 'use strict';
2
- module.exports = new Map([
1
+ export default new Map([
3
2
  [['repeat', 'no-repeat'].toString(), 'repeat-x'],
4
3
  [['no-repeat', 'repeat'].toString(), 'repeat-y'],
5
4
  [['repeat', 'repeat'].toString(), 'repeat'],
package/types/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
- declare const _exports: import("postcss").PluginCreator<void>;
2
- export = _exports;
1
+ /**
2
+ * @return {import('postcss').Plugin}
3
+ */
4
+ declare function pluginCreator(): import('postcss').Plugin;
5
+ declare namespace pluginCreator {
6
+ var postcss: true;
7
+ }
8
+ declare const moduleExports: typeof pluginCreator;
9
+ export { moduleExports as default, moduleExports as 'module.exports' };
3
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAsIA;;GAEG;AACH,iBAAS,aAAa,IAFV,OAAO,SAAS,EAAE,MAAM,CAkCnC;kBAhCQ,aAAa;iBAiCX,IAAI;;AAEf,QAAA,MAAM,aAAa,sBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const _exports: Map<string, string>;
2
- export = _exports;
1
+ declare const _default: Map<string, string>;
2
+ export default _default;
3
3
  //# sourceMappingURL=map.d.ts.map