@tixyel/streamelements 7.12.0 → 7.12.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 CHANGED
@@ -3125,7 +3125,7 @@ declare class UtilsHelper {
3125
3125
  userId: string;
3126
3126
  name: string;
3127
3127
  broadcasterId?: string;
3128
- }, session: StreamElements.Session.Data, checkWithAPI?: boolean): Promise<3 | 1 | 2>;
3128
+ }, session: StreamElements.Session.Data, checkWithAPI?: boolean): Promise<1 | 2 | 3>;
3129
3129
  /**
3130
3130
  * Identifies a user based on the received event and session data, returning their ID, name, role, badges, and top status.
3131
3131
  * @param receivedEvent - The event received from the provider (Twitch or YouTube) containing user information.
package/dist/index.es.js CHANGED
@@ -10482,11 +10482,15 @@ var j = class {
10482
10482
  type: "googleFont",
10483
10483
  label: a.capitalize(d),
10484
10484
  value: l.split(",")[0].trim().replaceAll("'", "")
10485
- } : e[n] = {
10485
+ } : [
10486
+ "step",
10487
+ "min",
10488
+ "max"
10489
+ ].some((e) => !n.endsWith(e)) && (e[n] = {
10486
10490
  type: "text",
10487
10491
  label: a.capitalize(d),
10488
10492
  value: String(l)
10489
- };
10493
+ });
10490
10494
  break;
10491
10495
  case "value":
10492
10496
  if (o.validate(l)) e[n] = {
@@ -10526,11 +10530,15 @@ var j = class {
10526
10530
  max: p,
10527
10531
  step: m
10528
10532
  };
10529
- } else if (isNaN(parseFloat(l))) e[n] = {
10533
+ } else if (isNaN(parseFloat(l))) [
10534
+ "step",
10535
+ "min",
10536
+ "max"
10537
+ ].some((e) => !n.endsWith(e)) && (e[n] = {
10530
10538
  type: "text",
10531
10539
  label: a.capitalize(d),
10532
10540
  value: String(l)
10533
- };
10541
+ });
10534
10542
  else {
10535
10543
  var f = c[n + "-min"] ? parseFloat(c[n + "-min"]) : void 0, p = c[n + "-max"] ? parseFloat(c[n + "-max"]) : void 0, m = c[n + "-step"] ? parseFloat(c[n + "-step"]) : void 0;
10536
10544
  e[n] = {