postcss-reduce-transforms 8.0.4 → 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 +5 -7
- package/src/index.js +5 -6
- package/types/index.d.ts +9 -2
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-reduce-transforms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Reduce transform functions with PostCSS.",
|
|
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
|
-
"./package.json": "./package.json"
|
|
9
|
+
}
|
|
14
10
|
},
|
|
15
11
|
"files": [
|
|
16
12
|
"LICENSE-MIT",
|
|
@@ -35,7 +31,7 @@
|
|
|
35
31
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
36
32
|
},
|
|
37
33
|
"engines": {
|
|
38
|
-
"node": "^22.
|
|
34
|
+
"node": "^22.22.3 || ^24.15.0 || >=26.0"
|
|
39
35
|
},
|
|
40
36
|
"devDependencies": {
|
|
41
37
|
"postcss": "^8.5.26"
|
|
@@ -43,7 +39,9 @@
|
|
|
43
39
|
"peerDependencies": {
|
|
44
40
|
"postcss": "^8.5.26"
|
|
45
41
|
},
|
|
42
|
+
"type": "module",
|
|
46
43
|
"scripts": {
|
|
44
|
+
"fuzz": "node ./script/fuzz.js",
|
|
47
45
|
"test": "node --test"
|
|
48
46
|
}
|
|
49
47
|
}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const valueParser = require('postcss-value-parser');
|
|
1
|
+
import valueParser from 'postcss-value-parser';
|
|
3
2
|
|
|
4
3
|
const transformRegex = /transform$/i;
|
|
5
4
|
/**
|
|
@@ -306,8 +305,8 @@ function pluginCreator() {
|
|
|
306
305
|
},
|
|
307
306
|
};
|
|
308
307
|
}
|
|
309
|
-
|
|
308
|
+
/** @type {true} */
|
|
310
309
|
pluginCreator.postcss = true;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
const moduleExports = pluginCreator;
|
|
311
|
+
|
|
312
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
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":"AA+QA;;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"}
|