@unocss/inspector 0.58.7 → 0.58.8

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
@@ -133,6 +133,8 @@ function auto(str) {
133
133
  return "auto";
134
134
  }
135
135
  function rem(str) {
136
+ if (!str)
137
+ return;
136
138
  if (unitOnlyRE.test(str))
137
139
  return `1${str}`;
138
140
  const match = str.match(numberWithUnitRE);
@@ -174,6 +176,8 @@ function percent(str) {
174
176
  return `${round(num / 100)}`;
175
177
  }
176
178
  function fraction(str) {
179
+ if (!str)
180
+ return;
177
181
  if (str === "full")
178
182
  return "100%";
179
183
  const [left, right] = str.split("/");
package/dist/index.mjs CHANGED
@@ -125,6 +125,8 @@ function auto(str) {
125
125
  return "auto";
126
126
  }
127
127
  function rem(str) {
128
+ if (!str)
129
+ return;
128
130
  if (unitOnlyRE.test(str))
129
131
  return `1${str}`;
130
132
  const match = str.match(numberWithUnitRE);
@@ -166,6 +168,8 @@ function percent(str) {
166
168
  return `${round(num / 100)}`;
167
169
  }
168
170
  function fraction(str) {
171
+ if (!str)
172
+ return;
169
173
  if (str === "full")
170
174
  return "100%";
171
175
  const [left, right] = str.split("/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/inspector",
3
- "version": "0.58.7",
3
+ "version": "0.58.8",
4
4
  "description": "The inspector UI for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "dependencies": {
37
37
  "gzip-size": "^6.0.0",
38
38
  "sirv": "^2.0.4",
39
- "@unocss/core": "0.58.7",
40
- "@unocss/rule-utils": "0.58.7"
39
+ "@unocss/rule-utils": "0.58.8",
40
+ "@unocss/core": "0.58.8"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "unbuild",