buzzk 1.3.1 → 1.3.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.
package/lib/chat.js CHANGED
@@ -233,6 +233,13 @@ class chzzkChat {
233
233
 
234
234
  for (let o in data) {
235
235
  data[o].profile = JSON.parse(data[o].profile);
236
+
237
+ if (!data[o].profile) {
238
+ data[o].profile = {
239
+ nickname: null,
240
+ profileImageUrl: null
241
+ }
242
+ }
236
243
 
237
244
  msgList[Object.keys(msgList).length] = {
238
245
  author: {
package/lib/live.js CHANGED
@@ -35,7 +35,7 @@ async function getDetail (channelID) {
35
35
  return new Promise(async (resolve, reject) => {
36
36
 
37
37
  let res = await reqChzzk("service/v2/channels/" + channelID + "/live-detail");
38
- if (res.code != 200) return resolve(null);
38
+ if (res.code != 200 || !res.content) return resolve(null);
39
39
  res = res.content;
40
40
 
41
41
  let lvDetail = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",