tylersong 1.0.17 → 1.0.18
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.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67,14 +67,15 @@ const formatAllExperiences = (experiences) => {
|
|
|
67
67
|
/**
|
|
68
68
|
* 프로필 정보를 표시합니다
|
|
69
69
|
*/
|
|
70
|
+
const DEFAULT_AUTHOR_NAME = "송민성";
|
|
70
71
|
const showProfile = async () => {
|
|
71
|
-
let authorName =
|
|
72
|
+
let authorName = DEFAULT_AUTHOR_NAME;
|
|
72
73
|
let authorEmail = "";
|
|
73
74
|
try {
|
|
74
|
-
const portfolio = await getPortfolio(
|
|
75
|
+
const portfolio = await getPortfolio(DEFAULT_AUTHOR_NAME);
|
|
75
76
|
if (portfolio?.author) {
|
|
76
|
-
authorName = portfolio.author.name ||
|
|
77
|
-
authorEmail = portfolio.author.email || "
|
|
77
|
+
authorName = portfolio.author.name?.trim() || DEFAULT_AUTHOR_NAME;
|
|
78
|
+
authorEmail = portfolio.author.email?.trim() || "";
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
catch (error) {
|