@chainfuse/helpers 3.4.4 → 3.4.5
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/db.d.mts +2 -2
- package/dist/discord.mjs +6 -6
- package/package.json +7 -7
package/dist/db.d.mts
CHANGED
|
@@ -34,8 +34,8 @@ export declare class SQLCache<C extends CacheStorageLike> extends DrizzleCache {
|
|
|
34
34
|
cacheTTL: z.ZodDefault<z.ZodInt>;
|
|
35
35
|
cachePurge: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodDate]>>;
|
|
36
36
|
strategy: z.ZodDefault<z.ZodEnum<{
|
|
37
|
-
all: "all";
|
|
38
37
|
explicit: "explicit";
|
|
38
|
+
all: "all";
|
|
39
39
|
}>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
/**
|
|
@@ -56,7 +56,7 @@ export declare class SQLCache<C extends CacheStorageLike> extends DrizzleCache {
|
|
|
56
56
|
* - `all`: All queries are cached globally.
|
|
57
57
|
* @default 'explicit'
|
|
58
58
|
*/
|
|
59
|
-
strategy(): "
|
|
59
|
+
strategy(): "explicit" | "all";
|
|
60
60
|
/**
|
|
61
61
|
* Generates a cache key as a `Request` object based on the provided tag or key.
|
|
62
62
|
*
|
package/dist/discord.mjs
CHANGED
|
@@ -29,15 +29,15 @@ export class DiscordHelpers {
|
|
|
29
29
|
return new Date(Number((snowflake >> BigInt(22)) + this.discordEpoch));
|
|
30
30
|
}
|
|
31
31
|
static disordRestLogging() {
|
|
32
|
-
return import('zod').then(({ z }) =>
|
|
32
|
+
return import('zod/v3').then(({ z: z3 }) => z3
|
|
33
33
|
.object({
|
|
34
|
-
level:
|
|
35
|
-
error:
|
|
36
|
-
color:
|
|
37
|
-
custom:
|
|
34
|
+
level: z3.coerce.number().int().min(0).max(4).default(0),
|
|
35
|
+
error: z3.coerce.number().int().min(0).max(4).default(1),
|
|
36
|
+
color: z3.boolean().default(true),
|
|
37
|
+
custom: z3
|
|
38
38
|
.function()
|
|
39
39
|
.args()
|
|
40
|
-
.returns(
|
|
40
|
+
.returns(z3.union([z3.void(), z3.promise(z3.void())]))
|
|
41
41
|
.optional(),
|
|
42
42
|
})
|
|
43
43
|
.default({}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/helpers",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
},
|
|
77
77
|
"prettier": "@demosjarco/prettier-config",
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@chainfuse/types": "^2.10.
|
|
79
|
+
"@chainfuse/types": "^2.10.26",
|
|
80
80
|
"@discordjs/rest": "^2.5.1",
|
|
81
81
|
"chalk": "^5.4.1",
|
|
82
82
|
"cloudflare": "^4.4.1",
|
|
83
|
-
"drizzle-orm": "^0.44.
|
|
83
|
+
"drizzle-orm": "^0.44.3",
|
|
84
84
|
"strip-ansi": "^7.1.0",
|
|
85
85
|
"uuid": "^11.1.0",
|
|
86
|
-
"zod": "^
|
|
86
|
+
"zod": "^4.0.5"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@cloudflare/workers-types": "^4.
|
|
90
|
-
"@types/node": "^22.16.
|
|
89
|
+
"@cloudflare/workers-types": "^4.20250715.0",
|
|
90
|
+
"@types/node": "^22.16.4"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "ef350e04ec89751b8984e7fa5ceaac2bad94ee73"
|
|
93
93
|
}
|