Skip to content

Commit

Permalink
Merge pull request #3 from d2n0s4ur/release/1.2.0
Browse files Browse the repository at this point in the history
hotfix: v1.2.2
  • Loading branch information
d2n0s4ur authored Feb 13, 2024
2 parents 1a4c810 + f24d38c commit d4b7ea2
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 139 deletions.
2 changes: 1 addition & 1 deletion fixup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cp dist/mjs/index.d.ts dist

rm -rf dist/*/index.d.ts
mkdir dist/lib
cp src/lib/chzzkChat.d.ts dist/lib/
cp dist/mjs/lib/* dist/lib

cat >dist/cjs/package.json <<!EOF
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d2n0s4ur/chzzk-chat",
"version": "1.2.0",
"version": "1.2.2",
"description": "chzzk-chat: node.js 개발자를 위한 chzzk 채팅 & 후원 비공식 라이브러리",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
5 changes: 0 additions & 5 deletions src/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions src/lib/chzzkChat.d.ts

This file was deleted.

108 changes: 0 additions & 108 deletions src/lib/chzzkChat.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib/chzzkChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ChzzkChat {
case 93101: // default message
if (!this.messageHandler) return;
this.messageHandler(
this.parseBadgeUrl(profile.activityBadges as string[]),
this.parseBadgeUrl(profile ? profile.activityBadges : undefined),
profile.nickname,
msg.msgStatusType === "CBOTBLIND"
? "클린봇에 의해 삭제된 메시지입니다."
Expand All @@ -131,7 +131,7 @@ export class ChzzkChat {
const extras = JSON.parse(data.bdy[0].extras);
if (!this.donationHandler) return;
this.donationHandler(
this.parseBadgeUrl(profile.activityBadges as string[]),
this.parseBadgeUrl(profile ? profile.activityBadges : undefined),
msg.uid !== "anonymous" ? profile.nickname : "익명의 후원자",
msg.msg,
msg.uid === "anonymous",
Expand Down

0 comments on commit d4b7ea2

Please sign in to comment.