@unocss/transformer-directives 0.52.7 → 0.53.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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ function handleScreen({ code, uno }, node) {
|
|
|
92
92
|
function calcMaxWidthBySize(size) {
|
|
93
93
|
const value = size.match(/^-?[0-9]+\.?[0-9]*/)?.[0] || "";
|
|
94
94
|
const unit = size.slice(value.length);
|
|
95
|
-
const maxWidth = parseFloat(value) - 0.1;
|
|
95
|
+
const maxWidth = Number.parseFloat(value) - 0.1;
|
|
96
96
|
return Number.isNaN(maxWidth) ? size : `${maxWidth}${unit}`;
|
|
97
97
|
}
|
|
98
98
|
|
package/dist/index.mjs
CHANGED
|
@@ -88,7 +88,7 @@ function handleScreen({ code, uno }, node) {
|
|
|
88
88
|
function calcMaxWidthBySize(size) {
|
|
89
89
|
const value = size.match(/^-?[0-9]+\.?[0-9]*/)?.[0] || "";
|
|
90
90
|
const unit = size.slice(value.length);
|
|
91
|
-
const maxWidth = parseFloat(value) - 0.1;
|
|
91
|
+
const maxWidth = Number.parseFloat(value) - 0.1;
|
|
92
92
|
return Number.isNaN(maxWidth) ? size : `${maxWidth}${unit}`;
|
|
93
93
|
}
|
|
94
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
5
5
|
"author": "hannoeru <me@hanlee.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"css-tree": "^2.3.1",
|
|
36
|
-
"@unocss/core": "0.
|
|
36
|
+
"@unocss/core": "0.53.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"magic-string": "^0.30.0"
|