@tixyel/streamelements 4.0.0 → 4.0.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/dist/index.d.ts +2 -0
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2135,6 +2135,7 @@ declare class useComfyJs extends EventProvider<ComfyEvents> {
|
|
|
2135
2135
|
password?: string;
|
|
2136
2136
|
channels: string[];
|
|
2137
2137
|
isDebug: boolean;
|
|
2138
|
+
private init;
|
|
2138
2139
|
emulate: boolean;
|
|
2139
2140
|
/**
|
|
2140
2141
|
* Initializes a new ComfyJS instance and connects to Twitch chat.
|
|
@@ -2146,6 +2147,7 @@ declare class useComfyJs extends EventProvider<ComfyEvents> {
|
|
|
2146
2147
|
password?: string;
|
|
2147
2148
|
channels: string[];
|
|
2148
2149
|
isDebug?: boolean;
|
|
2150
|
+
init?: boolean;
|
|
2149
2151
|
}, emulate: boolean);
|
|
2150
2152
|
/**
|
|
2151
2153
|
* Loads the ComfyJS script if not already loaded.
|
package/dist/index.es.js
CHANGED
|
@@ -6808,6 +6808,7 @@ class pt extends O {
|
|
|
6808
6808
|
password;
|
|
6809
6809
|
channels;
|
|
6810
6810
|
isDebug = !1;
|
|
6811
|
+
init = !1;
|
|
6811
6812
|
emulate = !1;
|
|
6812
6813
|
/**
|
|
6813
6814
|
* Initializes a new ComfyJS instance and connects to Twitch chat.
|
|
@@ -6815,7 +6816,7 @@ class pt extends O {
|
|
|
6815
6816
|
* @param emulate - Whether to emulate chat messages in the Simulation module.
|
|
6816
6817
|
*/
|
|
6817
6818
|
constructor(e, a) {
|
|
6818
|
-
super(), this.username = e.username, this.password = e.password, this.channels = e.channels, this.isDebug = !!e.isDebug, this.emulate = a, this.load().then((c) => {
|
|
6819
|
+
super(), this.username = e.username, this.password = e.password, this.channels = e.channels, this.isDebug = !!e.isDebug, this.init = !!e.init, this.emulate = a, this.load().then((c) => {
|
|
6819
6820
|
this.instance = c, this.emit("load", c), this.connect();
|
|
6820
6821
|
}).catch((c) => {
|
|
6821
6822
|
J.error("useComfyJs: Failed to load ComfyJS", c);
|
|
@@ -6961,7 +6962,7 @@ class pt extends O {
|
|
|
6961
6962
|
this.emit("connected", e, a, c);
|
|
6962
6963
|
}, this.instance.onReconnect = (e) => {
|
|
6963
6964
|
this.emit("reconnect", e);
|
|
6964
|
-
};
|
|
6965
|
+
}, this.init && this.instance.Init(this.username, this.password, this.channels, this.isDebug);
|
|
6965
6966
|
}
|
|
6966
6967
|
}
|
|
6967
6968
|
class D extends O {
|