inferred-types 0.55.12 → 0.55.13

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.
@@ -2694,10 +2694,21 @@ ${frameToCss(frames)}
2694
2694
 
2695
2695
  // src/css/cssFromDefinition.ts
2696
2696
  function cssFromDefinition(defn, opt) {
2697
+ if (isUndefined(defn)) {
2698
+ return "";
2699
+ }
2697
2700
  const inline = isDefined(opt?.inline) ? opt.inline : true;
2698
2701
  const indent = isString(opt?.indent) ? opt.indent : "";
2699
2702
  const nextDefn = inline ? " " : "\n";
2700
- return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}`).join(nextDefn);
2703
+ return Object.keys(defn).map(
2704
+ (key) => {
2705
+ const val = ensureTrailing(
2706
+ defn[key],
2707
+ ";"
2708
+ );
2709
+ return `${indent}${key}: ${val}`;
2710
+ }
2711
+ ).join(nextDefn);
2701
2712
  }
2702
2713
  function defineCss(defn) {
2703
2714
  const fn2 = (selector) => {