buzzk 1.6.8 β†’ 1.7.1

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
@@ -184,6 +184,7 @@ class chzzkChat {
184
184
  * @property {string} id
185
185
  * @property {string} name
186
186
  * @property {string} imageURL
187
+ * @property {string} role
187
188
  */
188
189
 
189
190
  /**
@@ -226,7 +227,8 @@ class chzzkChat {
226
227
  else {
227
228
  data[o].profile = {
228
229
  nickname: null,
229
- profileImageUrl:null
230
+ profileImageUrl: null,
231
+ role: null
230
232
  };
231
233
  }
232
234
 
@@ -235,7 +237,8 @@ class chzzkChat {
235
237
  author: {
236
238
  id: data[o].uid,
237
239
  name: data[o].profile.nickname,
238
- imageURL: data[o].profile.profileImageUrl
240
+ imageURL: data[o].profile.profileImageUrl,
241
+ role: data[o].profile.userRoleCode
239
242
  },
240
243
  message: data[o].msg,
241
244
  time: data[o].msgTime
@@ -311,7 +314,8 @@ class chzzkChat {
311
314
  if (!data[o].profile) {
312
315
  data[o].profile = {
313
316
  nickname: null,
314
- profileImageUrl: null
317
+ profileImageUrl: null,
318
+ role: null
315
319
  }
316
320
  }
317
321
 
@@ -319,7 +323,8 @@ class chzzkChat {
319
323
  author: {
320
324
  id: data[o].userId,
321
325
  name: data[o].profile.nickname,
322
- imageURL: data[o].profile.profileImageUrl
326
+ imageURL: data[o].profile.profileImageUrl,
327
+ role: data[o].profile.userRoleCode
323
328
  },
324
329
  message: data[o].content,
325
330
  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.1",
5
5
  "description": "λΏŒμ§€μ§ (BUZZK) - μΉ˜μ§€μ§(CHZZK) 챗봇을 λ”μš± μ‰½κ²Œ κ°œλ°œν•  수 μžˆλ„λ‘ λ•λŠ” 비곡식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",