buzzk 2.2.2 → 2.3.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
@@ -329,6 +329,7 @@ dotenv와 함께 사용하는 것을 매우 권장합니다.
329
329
  - closeOn
330
330
  - status
331
331
  - polling
332
+ - imageURL
332
333
  - liveID
333
334
  - videoID
334
335
 
package/lib/live.js CHANGED
@@ -37,7 +37,7 @@ const { reqChzzk } = require("./tool.js");
37
37
  async function getDetail (channelID) {
38
38
  return new Promise(async (resolve, reject) => {
39
39
 
40
- let res = await reqChzzk("service/v3/channels/" + channelID + "/live-detail");
40
+ let res = await reqChzzk("service/v3.2/channels/" + channelID + "/live-detail");
41
41
  if (res.code != 200 || !res.content) return resolve(null);
42
42
  res = res.content;
43
43
 
@@ -56,6 +56,7 @@ async function getDetail (channelID) {
56
56
  closeOn: res.closeDate,
57
57
  status: res.status,
58
58
  polling: JSON.parse(res.livePollingStatusJson),
59
+ imageURL: res.liveImageUrl.split("{type}").join("480"),
59
60
  liveID: livePlayback.meta.liveId,
60
61
  videoID: livePlayback.meta.videoId
61
62
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "2.2.2",
4
+ "version": "2.3.0",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",