@vgabriel45/demo-sdk 2.0.0 → 2.1.0
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/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -68,3 +68,9 @@ export function formatSlug(text = "") {
|
|
|
68
68
|
export function getDemoSdkMarker() {
|
|
69
69
|
return "demo-sdk-change";
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
/** Build a friendly greeting for UI headers. */
|
|
73
|
+
export function greetDisplayName(name = "") {
|
|
74
|
+
const displayName = formatName(name);
|
|
75
|
+
return greet(displayName || "world");
|
|
76
|
+
}
|