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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tylersong",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "나의 CLI 자기소개 도구",
5
5
  "main": "dist/index.js",
6
6
  "bin": {