@connectedxm/zpl-generator 0.0.4-beta.7 → 0.0.4-beta.9
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.es.js +5 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3119,7 +3119,9 @@ function Gs(e, t) {
|
|
|
3119
3119
|
h = t.account[l];
|
|
3120
3120
|
break;
|
|
3121
3121
|
case "accountAttributes":
|
|
3122
|
-
h = t.accountAttributes.find(
|
|
3122
|
+
h = t.accountAttributes.find(
|
|
3123
|
+
(d) => d.id === l
|
|
3124
|
+
)?.value;
|
|
3123
3125
|
break;
|
|
3124
3126
|
case "accountTiers":
|
|
3125
3127
|
h = t.accountTier?.name;
|
|
@@ -3152,7 +3154,7 @@ function Gs(e, t) {
|
|
|
3152
3154
|
break;
|
|
3153
3155
|
}
|
|
3154
3156
|
}
|
|
3155
|
-
i !== void 0 && n.push(i);
|
|
3157
|
+
i !== void 0 && n.push(i.trim());
|
|
3156
3158
|
}
|
|
3157
3159
|
return n.length === 0 ? e.hideEmpty ? void 0 : (e.defaultValue ?? "").trim() : n.join(e.sourceSeperator ?? " ").trim();
|
|
3158
3160
|
}
|
|
@@ -3167,7 +3169,7 @@ function Hs(e, t) {
|
|
|
3167
3169
|
t = t.toLowerCase();
|
|
3168
3170
|
break;
|
|
3169
3171
|
case V.Capitalize:
|
|
3170
|
-
t = t.
|
|
3172
|
+
t = t.toLowerCase().replace(/\b\w/g, (n) => n.toUpperCase());
|
|
3171
3173
|
break;
|
|
3172
3174
|
}
|
|
3173
3175
|
return e.maxCharacters !== void 0 && (t = t.slice(0, e.maxCharacters)), t;
|