@unocss/preset-typography 0.56.0 → 0.56.2

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
@@ -178,18 +178,14 @@ function getCSS(options) {
178
178
  if (match) {
179
179
  const matchStr = match[0];
180
180
  s = s.replace(matchStr, "");
181
- return escapedSelector.map(
182
- (e) => disableNotUtility ? `${e} ${s}${matchStr}` : `${e} :where(${s})${notProseSelector}${matchStr}`
183
- ).join(",");
181
+ return escapedSelector.map((e) => disableNotUtility ? `${e} ${s}${matchStr}` : `${e} :where(${s})${notProseSelector}${matchStr}`).join(",");
184
182
  }
185
183
  return null;
186
184
  }).filter((v) => v);
187
185
  if (pseudoCSSMatchArray.length) {
188
186
  css += pseudoCSSMatchArray.join(",");
189
187
  } else {
190
- css += escapedSelector.map(
191
- (e) => disableNotUtility ? selector.split(",").map((s) => `${e} ${s}`).join(",") : `${e} :where(${selector})${notProseSelector}`
192
- ).join(",");
188
+ css += escapedSelector.map((e) => disableNotUtility ? selector.split(",").map((s) => `${e} ${s}`).join(",") : `${e} :where(${selector})${notProseSelector}`).join(",");
193
189
  }
194
190
  css += "{";
195
191
  for (const k in cssDeclarationBlock) {
package/dist/index.mjs CHANGED
@@ -174,18 +174,14 @@ function getCSS(options) {
174
174
  if (match) {
175
175
  const matchStr = match[0];
176
176
  s = s.replace(matchStr, "");
177
- return escapedSelector.map(
178
- (e) => disableNotUtility ? `${e} ${s}${matchStr}` : `${e} :where(${s})${notProseSelector}${matchStr}`
179
- ).join(",");
177
+ return escapedSelector.map((e) => disableNotUtility ? `${e} ${s}${matchStr}` : `${e} :where(${s})${notProseSelector}${matchStr}`).join(",");
180
178
  }
181
179
  return null;
182
180
  }).filter((v) => v);
183
181
  if (pseudoCSSMatchArray.length) {
184
182
  css += pseudoCSSMatchArray.join(",");
185
183
  } else {
186
- css += escapedSelector.map(
187
- (e) => disableNotUtility ? selector.split(",").map((s) => `${e} ${s}`).join(",") : `${e} :where(${selector})${notProseSelector}`
188
- ).join(",");
184
+ css += escapedSelector.map((e) => disableNotUtility ? selector.split(",").map((s) => `${e} ${s}`).join(",") : `${e} :where(${selector})${notProseSelector}`).join(",");
189
185
  }
190
186
  css += "{";
191
187
  for (const k in cssDeclarationBlock) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-typography",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "description": "Typography preset for UnoCSS",
5
5
  "author": "Jeff Yang",
6
6
  "license": "MIT",
@@ -32,8 +32,8 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@unocss/core": "0.56.0",
36
- "@unocss/preset-mini": "0.56.0"
35
+ "@unocss/core": "0.56.2",
36
+ "@unocss/preset-mini": "0.56.2"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",