postcss-normalize-positions 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 +5 -8
- package/src/index.js +7 -8
- 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-normalize-positions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Normalize keyword values for position into length values.",
|
|
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
|
"src",
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
},
|
|
32
28
|
"repository": {
|
|
33
29
|
"type": "git",
|
|
34
|
-
"url": "cssnano/cssnano"
|
|
30
|
+
"url": "git+https://github.com/cssnano/cssnano.git"
|
|
35
31
|
},
|
|
36
32
|
"dependencies": {
|
|
37
33
|
"postcss-value-parser": "^4.2.0"
|
|
@@ -40,7 +36,7 @@
|
|
|
40
36
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
41
37
|
},
|
|
42
38
|
"engines": {
|
|
43
|
-
"node": "^22.
|
|
39
|
+
"node": "^22.22.3 || ^24.15.0 || >=26.0"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
42
|
"postcss": "^8.5.26"
|
|
@@ -48,6 +44,7 @@
|
|
|
48
44
|
"peerDependencies": {
|
|
49
45
|
"postcss": "^8.5.26"
|
|
50
46
|
},
|
|
47
|
+
"type": "module",
|
|
51
48
|
"scripts": {
|
|
52
49
|
"test": "node --test"
|
|
53
50
|
}
|
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 directionKeywords = new Set(['top', 'right', 'bottom', 'left', 'center']);
|
|
5
4
|
|
|
@@ -57,9 +56,9 @@ function isNumberNode(node) {
|
|
|
57
56
|
return false;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
const value = parseFloat(node.value);
|
|
59
|
+
const value = Number.parseFloat(node.value);
|
|
61
60
|
|
|
62
|
-
return !isNaN(value);
|
|
61
|
+
return !Number.isNaN(value);
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
/**
|
|
@@ -275,8 +274,8 @@ function pluginCreator() {
|
|
|
275
274
|
},
|
|
276
275
|
};
|
|
277
276
|
}
|
|
278
|
-
|
|
277
|
+
/** @type {true} */
|
|
279
278
|
pluginCreator.postcss = true;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
const moduleExports = pluginCreator;
|
|
280
|
+
|
|
281
|
+
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":"AAkPA;;GAEG;AACH,iBAAS,aAAa,IAFV,OAAO,SAAS,EAAE,MAAM,CAgCnC;kBA9BQ,aAAa;iBA+BX,IAAI;;AAEf,QAAA,MAAM,aAAa,sBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}
|