buzzk 1.8.2 β 1.8.4
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 +4 -8
- package/lib/chat.js +8 -6
- package/lib/live.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
## π μ
λ°μ΄νΈ λ΄μ
|
|
19
19
|
|
|
20
|
+
- μ±ν
μ±λ μ°κ²°μ μ μ§νμ§ λͺ»νλ λ¬Έμ ν΄κ²°
|
|
21
|
+
|
|
22
|
+
>
|
|
23
|
+
|
|
20
24
|
- μ±ν
μ±λμ΄ μμ λ μ€λ₯κ° μκΈ°λ λ¬Έμ ν΄κ²°
|
|
21
25
|
|
|
22
26
|
>
|
|
@@ -41,14 +45,6 @@
|
|
|
41
45
|
|
|
42
46
|
- chat μ λ©μΈμ§λ₯Ό νΈλ€λ§νλ μ€ μλμΉ μκ² μ€λ₯κ° λλ λ¬Έμ ν΄κ²°
|
|
43
47
|
|
|
44
|
-
>
|
|
45
|
-
|
|
46
|
-
- WebSocket is not open λ¬Έμ ν΄κ²°
|
|
47
|
-
|
|
48
|
-
>
|
|
49
|
-
|
|
50
|
-
- chat.getUserInfo ν¨μ μΆκ°
|
|
51
|
-
|
|
52
48
|
## βοΈ λ§μ΄κ·Έλ μ΄μ
κ°μ΄λ (v.1.2.x -> v.1.3.0)
|
|
53
49
|
|
|
54
50
|
<details>
|
package/lib/chat.js
CHANGED
|
@@ -484,19 +484,21 @@ class chzzkChat {
|
|
|
484
484
|
//Reconnect
|
|
485
485
|
this.#pollingStatus = false;
|
|
486
486
|
await this.disconnect();
|
|
487
|
-
await this.connect();
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
let connectRes = await this.connect();
|
|
488
|
+
if (connectRes) {
|
|
489
|
+
for (let o in this.#callbacks) {
|
|
490
|
+
if (this.#callbacks[o].type === "message") this.#onMessageHandler(this.#callbacks[o].callback);
|
|
491
|
+
else if (this.#callbacks[o].type === "donation") this.#onDonationHandler(this.#callbacks[o].callback);
|
|
492
|
+
}
|
|
493
|
+
return;
|
|
491
494
|
}
|
|
492
|
-
return;
|
|
493
495
|
//Reconnect
|
|
494
496
|
}
|
|
495
497
|
//Get ChatID
|
|
496
498
|
|
|
497
499
|
let interval;
|
|
498
500
|
if (cidRes && cidRes.polling && cidRes.polling.callPeriodMilliSecond) interval = cidRes.polling.callPeriodMilliSecond;
|
|
499
|
-
else interval =
|
|
501
|
+
else interval = 30000;
|
|
500
502
|
|
|
501
503
|
setTimeout(() => {
|
|
502
504
|
return this.#polling();
|
package/lib/live.js
CHANGED
|
@@ -58,7 +58,7 @@ async function getDetail (channelID) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
catch(error) {
|
|
61
|
-
return;
|
|
61
|
+
return resolve(null);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
});
|
|
@@ -100,7 +100,7 @@ async function getStatus (channelID) {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
catch(error) {
|
|
103
|
-
return;
|
|
103
|
+
return resolve(null);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzk",
|
|
3
3
|
"displayName": "BUZZK",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.4",
|
|
5
5
|
"description": "λΏμ§μ§ (BUZZK) - μΉμ§μ§(CHZZK) μ±λ΄μ λμ± μ½κ² κ°λ°ν μ μλλ‘ λλ λΉκ³΅μ λΌμ΄λΈλ¬λ¦¬.",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"type": "commonjs",
|