Skip to content

Commit 84891a9

Browse files
committed
format code, bump version
1 parent 1a285c3 commit 84891a9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiktok-live-connector",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"description": "Node.js module to receive live stream chat events like comments and gifts from TikTok LIVE",
55
"main": "index.js",
66
"types": "./dist/index.d.ts",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class WebcastPushConnection extends EventEmitter {
7777
* @param {object} [options[].requestOptions={}] Custom request options for axios. Here you can specify an `httpsAgent` to use a proxy and a `timeout` value for example.
7878
* @param {object} [options[].websocketOptions={}] Custom request options for websocket.client. Here you can specify an `agent` to use a proxy and a `timeout` value for example.
7979
* @param {object} [options[].signProviderOptions={}] Custom request options for the TikTok signing server. Here you can specify a `host`, `params`, and `headers`.
80-
*/
80+
*/
8181
constructor(uniqueId, options) {
8282
super();
8383

src/lib/tiktokUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ function getRoomIdFromMainPageHtml(mainPageHtml) {
44
let idx = 0;
55
do {
66
// loop thru many "room" excerpts and look for a match
7-
idx = mainPageHtml.indexOf('roomId', idx+3);
7+
idx = mainPageHtml.indexOf('roomId', idx + 3);
88
const excerpt = mainPageHtml.substr(idx, 50);
99
let matchExcerpt = excerpt.match(/roomId":"([0-9]+)"/);
1010
if (matchExcerpt && matchExcerpt[1]) return matchExcerpt[1];
1111
} while (idx >= 0);
12-
12+
1313
let matchMeta = mainPageHtml.match(/room_id=([0-9]*)/);
1414
if (matchMeta && matchMeta[1]) return matchMeta[1];
1515

0 commit comments

Comments
 (0)