transform-to-unocss-core 0.0.65 → 0.0.66

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 CHANGED
@@ -56,7 +56,7 @@ function getVal(val, transform$1, inClass, prefix = "", dynamicFlag = false) {
56
56
  }
57
57
  function getHundred(n) {
58
58
  if (typeof n === "string" && n.endsWith("%")) return +n.slice(0, -1);
59
- return +n * 100;
59
+ return Math.round(Number(n) * 100);
60
60
  }
61
61
  function joinWithLine(s) {
62
62
  return s.replace(/\s+/g, " ").split(/\s/g).join("-");
@@ -58,7 +58,7 @@ function getVal(val, transform$1, inClass, prefix = "", dynamicFlag = false) {
58
58
  }
59
59
  function getHundred(n) {
60
60
  if (typeof n === "string" && n.endsWith("%")) return +n.slice(0, -1);
61
- return +n * 100;
61
+ return Math.round(Number(n) * 100);
62
62
  }
63
63
  function joinWithLine(s) {
64
64
  return s.replace(/\s+/g, " ").split(/\s/g).join("-");
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ function getVal(val, transform$1, inClass, prefix = "", dynamicFlag = false) {
54
54
  }
55
55
  function getHundred(n) {
56
56
  if (typeof n === "string" && n.endsWith("%")) return +n.slice(0, -1);
57
- return +n * 100;
57
+ return Math.round(Number(n) * 100);
58
58
  }
59
59
  function joinWithLine(s) {
60
60
  return s.replace(/\s+/g, " ").split(/\s/g).join("-");
package/dist/index.umd.js CHANGED
@@ -61,7 +61,7 @@ function getVal(val, transform$1, inClass, prefix = "", dynamicFlag = false) {
61
61
  }
62
62
  function getHundred(n) {
63
63
  if (typeof n === "string" && n.endsWith("%")) return +n.slice(0, -1);
64
- return +n * 100;
64
+ return Math.round(Number(n) * 100);
65
65
  }
66
66
  function joinWithLine(s) {
67
67
  return s.replace(/\s+/g, " ").split(/\s/g).join("-");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "transform-to-unocss-core",
3
3
  "type": "module",
4
- "version": "0.0.65",
4
+ "version": "0.0.66",
5
5
  "description": "A utility to transform CSS to UnoCSS syntax. Supports various CSS properties and custom parsing.",
6
6
  "author": "Simon He",
7
7
  "license": "MIT",