@cyberalien/svg-utils 1.1.2 → 1.1.3

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.
@@ -38,7 +38,10 @@ function stringifySelectors(data, depth = 0) {
38
38
  const lines = [];
39
39
  for (const selector in data) {
40
40
  const item = data[selector];
41
- if (item.rules) lines.push(stringifyCSSSelector(selector, item.rules, depth));
41
+ if (item.rules) {
42
+ const value = stringifyCSSSelector(selector, item.rules, depth);
43
+ if (value.length) lines.push(value);
44
+ }
42
45
  if (item.nested) {
43
46
  const nestedContent = stringifySelectors(item.nested, depth + 1);
44
47
  if (nestedContent.length) lines.push(`${indent(depth)}${selector} {\n${nestedContent}${indent(depth)}}\n`);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "description": "Common functions for working with SVG used by various packages.",
5
5
  "author": "Vjacheslav Trushkin",
6
- "version": "1.1.2",
6
+ "version": "1.1.3",
7
7
  "license": "MIT",
8
8
  "bugs": "https://github.com/cyberalien/svg-utils/issues",
9
9
  "homepage": "https://cyberalien.dev/",