@ovencord/util 1.1.5 → 1.1.7

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,12 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ovencord/util",
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "description": "Utilities shared across Discord.js packages",
6
6
  "scripts": {
7
7
  "test": "bun test",
8
8
  "typecheck": "tsc --noEmit",
9
- "lint": "eslint src"
9
+ "lint": "biome check .",
10
+ "format": "biome format --write .",
11
+ "check": "biome check --write ."
10
12
  },
11
13
  "type": "module",
12
14
  "exports": "./src/index.ts",
@@ -34,7 +36,7 @@
34
36
  "homepage": "https://ovencord.dev",
35
37
  "funding": "https://github.com/ovencord/ovencord?sponsor",
36
38
  "dependencies": {
37
- "discord-api-types": "^0.38.36"
39
+ "discord-api-types": "^0.38.40"
38
40
  },
39
41
  "devDependencies": {},
40
42
  "engines": {
@@ -10,9 +10,7 @@
10
10
  * const value = lazy(() => computeExpensiveValue());
11
11
  * ```
12
12
  */
13
- // eslint-disable-next-line
14
13
  export function lazy<Value>(cb: () => Value): () => Value {
15
14
  let defaultValue: Value;
16
- // eslint-disable-next-line
17
15
  return () => (defaultValue ??= cb());
18
16
  }