buzzk 2.3.9 โ†’ 2.3.11

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Emin-G
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Emin-G
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -14,21 +14,41 @@
14
14
 
15
15
  ## ๐Ÿ“– ์—…๋ฐ์ดํŠธ ๋‚ด์—ญ
16
16
 
17
- ### ๐ŸŽ‰ 2.2 ์—…๋ฐ์ดํŠธ
18
- - ์ด์ œ Axios๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ API๋ฅผ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค!
19
- - ๋”์šฑ ์•ˆ์ •์ ์ด๊ณ  ๋น ๋ฅธ ์„ฑ๋Šฅ์„ ๋ณด์ผ ๊ฒƒ์œผ๋กœ ๊ธฐ๋Œ€๋ฉ๋‹ˆ๋‹ค!
20
-
21
- ### ๐ŸŽ‰ 2.1 ์—…๋ฐ์ดํŠธ
22
- - ๊ณต์‹ API๋กœ ๊ฑฐ์˜ ๋Œ€๋ถ€๋ถ„์˜ ์ž‘์—…์„ ๋Œ€์ฒดํ–ˆ์–ด์š”!
17
+ ### ๐ŸŽ‰ 2.3.11 ์—…๋ฐ์ดํŠธ
18
+ - ์ด์ œ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š”, ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ํ•จ์ˆ˜ buzzk.video๋ฅผ Deprecate ํ–ˆ์Šต๋‹ˆ๋‹ค.
19
+ - ํ”„๋กœ์ ํŠธ์—์„œ buzzk.video ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์…จ๋‹ค๋ฉด ์—…๋ฐ์ดํŠธ ์ „ ๋ชจ๋‘ ์ œ๊ฑฐํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
20
+ - ์ž์„ธํ•œ ์‚ฌํ•ญ์€ ํ•˜๋‹จ์˜ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”.
23
21
 
24
22
  > [!CAUTION]
25
- > ์ด ๋ฒ„์ „ ์ดํ›„๋ถ€ํ„ฐ๋Š” ๊ณต์‹ API์™€ ๋น„๊ณต์‹ API๋ฅผ ํ˜ผ์šฉํ•˜์—ฌ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
23
+ > ํ˜„์žฌ ๋ฒ„์ „์€ ๊ณต์‹ API์™€ ๋น„๊ณต์‹ API๋ฅผ ํ˜ผ์šฉํ•˜์—ฌ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
26
24
  > ๊ณต์‹ API๋กœ ๋Œ€์ฒด ๊ฐ€๋Šฅํ•œ ๊ธฐ๋Šฅ์€ ๋ชจ๋‘ ๊ณต์‹ API๋ฅผ ์ด์šฉํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.
27
25
 
28
26
  > [!WARNING]
29
27
  > * ๋น„๊ณต์‹ API ์ „์šฉ ๋ชจ๋“ˆ์€ ๋” ์ด์ƒ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
30
28
  > * ๋น„๊ณต์‹ API๋กœ๋งŒ ์ด๋ฃจ์–ด์ง„ ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•˜์‹œ๋ ค๋ฉด
31
29
  > `npm install buzzk@1.11.3`
30
+ > * (์ง€์›๋˜์ง€ ์•Š์Œ / ๊ถŒ์žฅ๋˜์ง€ ์•Š์Œ)
31
+
32
+ ---
33
+
34
+ ## โœ’๏ธ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๊ฐ€์ด๋“œ (v.2.3.x -> v.2.3.11)
35
+
36
+ <details>
37
+ <summary>ํŽผ์ณ๋ณด๊ธฐ</summary>
38
+
39
+ buzzk.video
40
+
41
+ | <img src="https://github.com/Emin-G/Img/blob/main/tags/tag_delete-min.png?raw=true" alt="BUZZK" width="70"> | ์‚ญ์ œ |
42
+ |--|--|
43
+ | | buzzk.video.getList(channelID, size) |
44
+
45
+ ---
46
+
47
+ | <img src="https://github.com/Emin-G/Img/blob/main/tags/tag_delete-min.png?raw=true" alt="BUZZK" width="70"> | ์‚ญ์ œ |
48
+ |--|--|
49
+ | | buzzk.video.get(no) |
50
+
51
+ </details>
32
52
 
33
53
  ---
34
54
 
package/lib/index.js CHANGED
@@ -5,7 +5,6 @@ module.exports = {
5
5
  chat: require("./chat.js").chzzkChat,
6
6
  live: require("./live.js"),
7
7
  oauth: require("./oauth.js"),
8
- video: require("./video.js"),
9
8
 
10
9
  auth: require("./val.js").auth,
11
10
  login: require("./val.js").login
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "2.3.9",
4
+ "version": "2.3.11",
5
5
  "description": "๋ฟŒ์ง€์ง (BUZZK) - ์น˜์ง€์ง(CHZZK) ์ฑ—๋ด‡์„ ๋”์šฑ ์‰ฝ๊ฒŒ ๊ฐœ๋ฐœํ•  ์ˆ˜ ์žˆ๋„๋ก ๋•๋Š” ๋น„๊ณต์‹ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",
@@ -31,7 +31,7 @@
31
31
  "๋ฟŒ์ง€์ง"
32
32
  ],
33
33
  "dependencies": {
34
- "axios": "^1.9.0",
34
+ "axios": "^1.15.0",
35
35
  "socket.io-client": "^2.0.3"
36
36
  }
37
37
  }
package/lib/video.js DELETED
@@ -1,113 +0,0 @@
1
- const { reqChzzk, reqNaver } = require("./tool.js");
2
-
3
- /**
4
- * @typedef {Object.<number, chzzkVideo>} chzzkVideos
5
- */
6
-
7
- /**
8
- * @typedef {Object} chzzkVideo
9
- * @property {number} no
10
- * @property {string} id
11
- * @property {string} title
12
- * @property {string} category
13
- * @property {number} duration
14
- * @property {string} uploadOn
15
- * @property {string} imageURL
16
- * @property {string} trailerURL
17
- */
18
-
19
- /**
20
- * @param {string} channelID
21
- * @param {?number} size
22
- * @returns {Promise<chzzkVideos>}
23
- */
24
- async function getList (channelID, size) {
25
- return new Promise(async (resolve, reject) => {
26
- let res = await reqChzzk("service/v1/channels/" + channelID + "/videos?sortType=LATEST&pagingType=PAGE&page=0&size=" + size || 24);
27
- if (res.code != 200 || !res.content) return resolve(null);
28
- let videos = res.content.data;
29
- if (Object.keys(videos).length < 1) return resolve(null);
30
-
31
- let data = new Map();
32
-
33
- try {
34
- for (let o in videos) {
35
- let vdDetail = {
36
- no: videos[o].videoNo,
37
- id: videos[o].videoId,
38
- title: videos[o].videoTitle,
39
- category: videos[o].videoCategoryValue,
40
- duration: videos[o].duration,
41
- uploadOn: videos[o].publishDate,
42
- imageURL: videos[o].thumbnailImageUrl,
43
- trailerURL: videos[o].trailerUrl
44
- }
45
-
46
- data[Object.keys(data).length] = vdDetail;
47
- }
48
-
49
- return resolve(data);
50
- }
51
-
52
- catch(error) {
53
- return resolve(null);
54
- }
55
-
56
- });
57
- }
58
-
59
- /**
60
- * @typedef {Object} chzzkVideoDetail
61
- * @property {string} id
62
- * @property {string} title
63
- * @property {string} category
64
- * @property {number} duration
65
- * @property {string} uploadOn
66
- * @property {string} startOn
67
- * @property {string} imageURL
68
- * @property {string} trailerURL
69
- * @property {chzzkVideoURL} videoURL
70
- */
71
-
72
- /**
73
- * @typedef {Object.<number, string>} chzzkVideoURL
74
- */
75
-
76
- /**
77
- * @param {number} no
78
- * @returns {Promise<chzzkVideoDetail>}
79
- */
80
- async function get (no) {
81
- return new Promise(async (resolve, reject) => {
82
-
83
- let res = await reqChzzk("service/v3/videos/" + no);
84
- if (res.code != 200 || !res.content) return resolve(null);
85
- res = res.content;
86
-
87
- try {
88
- let vdDetail = {
89
- id: res.videoId,
90
- title: res.videoTitle,
91
- category: res.videoCategoryValue,
92
- duration: res.duration,
93
- uploadOn: res.publishDate,
94
- startOn: res.liveOpenDate,
95
- imageURL: res.thumbnailImageUrl,
96
- trailerURL: res.trailerUrl,
97
- videoURL: "https://apis.naver.com/neonplayer/vodplay/v2/playback/" + res.videoId + "?key=" + res.inKey
98
- }
99
-
100
- return resolve(vdDetail);
101
- }
102
-
103
- catch(error) {
104
- return resolve(null);
105
- }
106
-
107
- });
108
- }
109
-
110
- module.exports = {
111
- getList: getList,
112
- get: get
113
- }