@tixyel/streamelements 7.0.0 → 7.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 CHANGED
@@ -3275,6 +3275,7 @@ declare class FakeUser {
3275
3275
  }
3276
3276
  interface FakeUserPoolOptions {
3277
3277
  id?: string;
3278
+ names?: string[];
3278
3279
  badges?: Twitch.tags[];
3279
3280
  limits?: {
3280
3281
  [key in Twitch.tags]?: number;
@@ -3294,7 +3295,7 @@ declare class FakeUserPool extends EventProvider<FakeUserPoolEvents> {
3294
3295
  private readonly byBadge;
3295
3296
  private static fixUser;
3296
3297
  private static getRandomSubTier;
3297
- constructor(names?: string[], options?: FakeUserPoolOptions);
3298
+ constructor(options?: FakeUserPoolOptions);
3298
3299
  private start;
3299
3300
  pick(): FakeUser | null;
3300
3301
  getByName(name: string): FakeUser | null;
package/dist/index.es.js CHANGED
@@ -10131,8 +10131,8 @@ var N = class {
10131
10131
  3e3: .1
10132
10132
  }) ?? "prime";
10133
10133
  }
10134
- constructor(e = w.names, t) {
10135
- super(), this.users = [], this.byId = /* @__PURE__ */ new Map(), this.byName = /* @__PURE__ */ new Map(), this.byBadge = /* @__PURE__ */ new Map(), this.users = this.start(e, t?.badges, t), this.id = t?.id ?? `fake_user_pool_${Math.random().toString(36).slice(2, 10)}`, this.byId = new Map(this.users.map((e) => [e.id, e])), this.byName = new Map(this.users.map((e) => [e.login, e])), this.byBadge = new Map(this.users.reduce((e, t) => {
10134
+ constructor(e) {
10135
+ super(), this.users = [], this.byId = /* @__PURE__ */ new Map(), this.byName = /* @__PURE__ */ new Map(), this.byBadge = /* @__PURE__ */ new Map(), this.id = e?.id || `fake_user_pool_${Math.random().toString(36).slice(2, 10)}`, this.users = this.start(e?.names || w.names, e?.badges, e), this.byId = new Map(this.users.map((e) => [e.id, e])), this.byName = new Map(this.users.map((e) => [e.login, e])), this.byBadge = new Map(this.users.reduce((e, t) => {
10136
10136
  for (let n of t.badges) {
10137
10137
  let r = e.get(n) ?? [];
10138
10138
  e.set(n, [...r, t]);