buzzk 1.6.8 β†’ 1.7.0

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/README.md CHANGED
@@ -17,6 +17,10 @@
17
17
 
18
18
  ## πŸ“– μ—…λ°μ΄νŠΈ λ‚΄μ—­
19
19
 
20
+ - μ±„νŒ… 데이터에 Role ν•­λͺ© μΆ”κ°€
21
+
22
+ >
23
+
20
24
  - JSON을 Parse ν•˜λŠ” 쀑 였λ₯˜κ°€ μƒκΈ°λŠ” 문제 ν•΄κ²°
21
25
 
22
26
  >
@@ -35,14 +39,6 @@
35
39
 
36
40
  - chat.getUserInfo ν•¨μˆ˜ μΆ”κ°€
37
41
 
38
- >
39
-
40
- - 방솑 μ‹œμž‘ μ‹œ onMessage ν•¨μˆ˜κ°€ μž‘λ™ν•˜μ§€ μ•ŠλŠ” 문제 μˆ˜μ •
41
-
42
- >
43
-
44
- - live.getDetail ν•¨μˆ˜μ˜ Return 값에 category ν•­λͺ© μΆ”κ°€
45
-
46
42
  ## βœ’οΈ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ κ°€μ΄λ“œ (v.1.2.x -> v.1.3.0)
47
43
 
48
44
  <details>
@@ -279,6 +275,7 @@ dotenv와 ν•¨κ»˜ μ‚¬μš©ν•˜λŠ” 것을 맀우 ꢌμž₯ν•©λ‹ˆλ‹€.
279
275
  - id
280
276
  - name
281
277
  - imageURL
278
+ - role
282
279
  - message
283
280
  - time
284
281
  - 1
@@ -305,6 +302,7 @@ dotenv와 ν•¨κ»˜ μ‚¬μš©ν•˜λŠ” 것을 맀우 ꢌμž₯ν•©λ‹ˆλ‹€.
305
302
  - id
306
303
  - name
307
304
  - imageURL
305
+ - role
308
306
  - message
309
307
  - time
310
308
  - 1
package/lib/chat.js CHANGED
@@ -226,7 +226,8 @@ class chzzkChat {
226
226
  else {
227
227
  data[o].profile = {
228
228
  nickname: null,
229
- profileImageUrl:null
229
+ profileImageUrl: null,
230
+ role: null
230
231
  };
231
232
  }
232
233
 
@@ -235,7 +236,8 @@ class chzzkChat {
235
236
  author: {
236
237
  id: data[o].uid,
237
238
  name: data[o].profile.nickname,
238
- imageURL: data[o].profile.profileImageUrl
239
+ imageURL: data[o].profile.profileImageUrl,
240
+ role: data[o].profile.userRoleCode
239
241
  },
240
242
  message: data[o].msg,
241
243
  time: data[o].msgTime
@@ -311,7 +313,8 @@ class chzzkChat {
311
313
  if (!data[o].profile) {
312
314
  data[o].profile = {
313
315
  nickname: null,
314
- profileImageUrl: null
316
+ profileImageUrl: null,
317
+ role: null
315
318
  }
316
319
  }
317
320
 
@@ -319,7 +322,8 @@ class chzzkChat {
319
322
  author: {
320
323
  id: data[o].userId,
321
324
  name: data[o].profile.nickname,
322
- imageURL: data[o].profile.profileImageUrl
325
+ imageURL: data[o].profile.profileImageUrl,
326
+ role: data[o].profile.userRoleCode
323
327
  },
324
328
  message: data[o].content,
325
329
  time: data[o].messageTime
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "1.6.8",
4
+ "version": "1.7.0",
5
5
  "description": "λΏŒμ§€μ§ (BUZZK) - μΉ˜μ§€μ§(CHZZK) 챗봇을 λ”μš± μ‰½κ²Œ κ°œλ°œν•  수 μžˆλ„λ‘ λ•λŠ” 비곡식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",