@ovencord/util 1.1.8 → 1.10.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ovencord/util",
4
- "version": "1.1.8",
4
+ "version": "1.10.0",
5
5
  "description": "Utilities shared across Discord.js packages",
6
6
  "scripts": {
7
7
  "test": "bun test",
@@ -22,7 +22,6 @@
22
22
  "api",
23
23
  "bot",
24
24
  "client",
25
- "node",
26
25
  "discordjs"
27
26
  ],
28
27
  "repository": {
package/src/AsyncQueue.ts CHANGED
@@ -17,7 +17,7 @@ export class AsyncQueue {
17
17
  * @param options.signal - An optional abort signal
18
18
  */
19
19
  public wait(options?: { signal?: AbortSignal }): Promise<void> {
20
- const next = this.#promises.length ? this.#promises.at(-1)?.promise : Promise.resolve();
20
+ const next = this.#promises.length ? this.#promises[this.#promises.length - 1].promise : Promise.resolve();
21
21
 
22
22
  let resolve!: () => void;
23
23
  const promise = new Promise<void>((res) => {