@unocss/preset-typography 66.6.0 → 66.6.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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -1
  2. package/package.json +5 -9
package/dist/index.mjs CHANGED
@@ -1079,7 +1079,12 @@ const presetTypography = definePreset((options) => {
1079
1079
  const resolvedColorScheme = resolveColorScheme(options?.colorScheme);
1080
1080
  const resolvedSizeScheme = resolveSizeScheme(options?.sizeScheme);
1081
1081
  const extended = (entries, theme) => {
1082
- return mergeDeep(entries, (typeof options?.cssExtend === "function" ? options?.cssExtend(theme) : options?.cssExtend) ?? {});
1082
+ const merged = mergeDeep(entries, (typeof options?.cssExtend === "function" ? options?.cssExtend(theme) : options?.cssExtend) ?? {});
1083
+ for (const key in merged) {
1084
+ const value = merged[key];
1085
+ if (value == null || typeof value === "object" && Object.keys(value).length === 0) delete merged[key];
1086
+ }
1087
+ return merged;
1083
1088
  };
1084
1089
  const normalizeSelector = (s) => {
1085
1090
  if (typeof options?.important === "string") s = `${options.important} ${s}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-typography",
3
3
  "type": "module",
4
- "version": "66.6.0",
4
+ "version": "66.6.2",
5
5
  "description": "Typography preset for UnoCSS",
6
6
  "author": "Jeff Yang",
7
7
  "license": "MIT",
@@ -20,20 +20,16 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "exports": {
23
- ".": {
24
- "types": "./dist/index.d.mts",
25
- "default": "./dist/index.mjs"
26
- }
23
+ ".": "./dist/index.mjs",
24
+ "./package.json": "./package.json"
27
25
  },
28
- "main": "dist/index.mjs",
29
- "module": "dist/index.mjs",
30
26
  "types": "dist/index.d.mts",
31
27
  "files": [
32
28
  "dist"
33
29
  ],
34
30
  "dependencies": {
35
- "@unocss/core": "66.6.0",
36
- "@unocss/rule-utils": "66.6.0"
31
+ "@unocss/core": "66.6.2",
32
+ "@unocss/rule-utils": "66.6.2"
37
33
  },
38
34
  "scripts": {
39
35
  "build": "tsdown",