postcss-normalize-repeat-style 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 +1 -1
- package/package.json +5 -7
- package/src/index.js +6 -7
- package/src/lib/map.js +1 -2
- package/types/index.d.ts +9 -2
- package/types/index.d.ts.map +1 -1
- package/types/lib/map.d.ts +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-normalize-repeat-style",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
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
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
10
|
"./package.json": "./package.json"
|
|
16
11
|
},
|
|
12
|
+
"main": "./src/index.js",
|
|
13
|
+
"types": "./types/index.d.ts",
|
|
17
14
|
"files": [
|
|
18
15
|
"LICENSE-MIT",
|
|
19
16
|
"src",
|
|
@@ -37,7 +34,7 @@
|
|
|
37
34
|
},
|
|
38
35
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
39
36
|
"engines": {
|
|
40
|
-
"node": "^22.
|
|
37
|
+
"node": "^22.22.3 || ^24.15.0 || >=26.0"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
40
|
"postcss": "^8.5.26"
|
|
@@ -45,6 +42,7 @@
|
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"postcss": "^8.5.26"
|
|
47
44
|
},
|
|
45
|
+
"type": "module",
|
|
48
46
|
"scripts": {
|
|
49
47
|
"test": "node --test"
|
|
50
48
|
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
const moduleExports = pluginCreator;
|
|
174
|
+
|
|
175
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
package/src/lib/map.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
package/types/index.d.ts.map
CHANGED
|
@@ -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"}
|
package/types/lib/map.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export
|
|
1
|
+
declare const _default: Map<string, string>;
|
|
2
|
+
export default _default;
|
|
3
3
|
//# sourceMappingURL=map.d.ts.map
|