buzzk 1.8.1 โ†’ 1.8.2

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 (3) hide show
  1. package/README.md +5 -1
  2. package/lib/live.js +33 -21
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -17,6 +17,10 @@
17
17
 
18
18
  ## ๐Ÿ“– ์—…๋ฐ์ดํŠธ ๋‚ด์—ญ
19
19
 
20
+ - ์ฑ„ํŒ… ์ฑ„๋„์ด ์—†์„ ๋•Œ ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ
21
+
22
+ >
23
+
20
24
  - onDonation ํ•จ์ˆ˜ ์ถ”๊ฐ€
21
25
 
22
26
  - ๋ณธ์ธ ์ธ์ฆ ์ฑ„ํŒ… ์ง€์› ์ถ”๊ฐ€
@@ -322,7 +326,7 @@ dotenv์™€ ํ•จ๊ป˜ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ๋งค์šฐ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
322
326
  console.log(data);
323
327
 
324
328
  for (let o in data) {
325
- console.log(data[o].amount); //๋ฉ”์„ธ์ง€๋งŒ ์ „๋ถ€ ๊บผ๋‚ด๊ธฐ
329
+ console.log(data[o].amount); //ํ›„์› ๊ธˆ์•ก๋งŒ ์ „๋ถ€ ๊บผ๋‚ด๊ธฐ
326
330
  }
327
331
  });
328
332
 
package/lib/live.js CHANGED
@@ -39,21 +39,27 @@ async function getDetail (channelID) {
39
39
  if (res.code != 200 || !res.content) return resolve(null);
40
40
  res = res.content;
41
41
 
42
- let lvDetail = {
43
- channelID: res.channel.channelId,
44
- channel: { name: res.channel.channelName, imageURL: res.channel.channelImageUrl },
45
- chatID: res.chatChannelId,
46
- chatLimit: res.chatAvailableGroup,
47
- userCount: { now: res.concurrentUserCount, total: res.accumulateCount },
48
- title: res.liveTitle,
49
- category: res.liveCategoryValue,
50
- startOn: res.openDate,
51
- closeOn: res.closeDate,
52
- status: res.status,
53
- polling: JSON.parse(res.livePollingStatusJson)
42
+ try {
43
+ let lvDetail = {
44
+ channelID: res.channel.channelId,
45
+ channel: { name: res.channel.channelName, imageURL: res.channel.channelImageUrl },
46
+ chatID: res.chatChannelId,
47
+ chatLimit: res.chatAvailableGroup,
48
+ userCount: { now: res.concurrentUserCount, total: res.accumulateCount },
49
+ title: res.liveTitle,
50
+ category: res.liveCategoryValue,
51
+ startOn: res.openDate,
52
+ closeOn: res.closeDate,
53
+ status: res.status,
54
+ polling: JSON.parse(res.livePollingStatusJson)
55
+ }
56
+
57
+ return resolve(lvDetail);
54
58
  }
55
59
 
56
- return resolve(lvDetail);
60
+ catch(error) {
61
+ return;
62
+ }
57
63
 
58
64
  });
59
65
  }
@@ -80,16 +86,22 @@ async function getStatus (channelID) {
80
86
  if (res.code != 200) return resolve(null);
81
87
  res = res.content;
82
88
 
83
- let lvStatus = {
84
- channelID: channelID,
85
- chatID: res.chatChannelId,
86
- userCount: { now: res.concurrentUserCount, total: res.accumulateCount },
87
- title: res.liveTitle,
88
- status: res.status,
89
- polling: JSON.parse(res.livePollingStatusJson)
89
+ try {
90
+ let lvStatus = {
91
+ channelID: channelID,
92
+ chatID: res.chatChannelId,
93
+ userCount: { now: res.concurrentUserCount, total: res.accumulateCount },
94
+ title: res.liveTitle,
95
+ status: res.status,
96
+ polling: JSON.parse(res.livePollingStatusJson)
97
+ }
98
+
99
+ return resolve(lvStatus);
90
100
  }
91
101
 
92
- return resolve(lvStatus);
102
+ catch(error) {
103
+ return;
104
+ }
93
105
 
94
106
  });
95
107
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "1.8.1",
4
+ "version": "1.8.2",
5
5
  "description": "๋ฟŒ์ง€์ง (BUZZK) - ์น˜์ง€์ง(CHZZK) ์ฑ—๋ด‡์„ ๋”์šฑ ์‰ฝ๊ฒŒ ๊ฐœ๋ฐœํ•  ์ˆ˜ ์žˆ๋„๋ก ๋•๋Š” ๋น„๊ณต์‹ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",