@vgabriel45/demo-sdk 0.2.0 → 1.0.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 +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** Sandbox SDK — used to test the release pipeline. */
|
|
2
|
-
export function greet(name = "world", {
|
|
2
|
+
export function greet(name = "world", { style = "default" } = {}) {
|
|
3
3
|
const message = `Hello, ${name}!`;
|
|
4
|
-
|
|
4
|
+
if (style === "upper") return message.toUpperCase();
|
|
5
|
+
if (style === "lower") return message.toLowerCase();
|
|
6
|
+
return message;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
export function farewell(name = "world") {
|