@chainfuse/helpers 3.3.1 → 3.3.2
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 +9 -1
- package/package.json +16 -16
package/dist/db.d.mts
CHANGED
|
@@ -27,7 +27,15 @@ export declare class SQLCache<C extends CacheStorageLike> extends DrizzleCache {
|
|
|
27
27
|
private globalTtl;
|
|
28
28
|
private _strategy;
|
|
29
29
|
private usedTablesPerKey;
|
|
30
|
-
|
|
30
|
+
static constructorArgs(): z.ZodObject<{
|
|
31
|
+
dbName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
32
|
+
dbType: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33
|
+
cacheTTL: z.ZodDefault<z.ZodInt>;
|
|
34
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
explicit: "explicit";
|
|
36
|
+
all: "all";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
31
39
|
/**
|
|
32
40
|
* Creates an instance of the class with the specified database name, type, and cache TTL.
|
|
33
41
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/helpers",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
"types": "./dist/index.d.mts"
|
|
47
47
|
},
|
|
48
48
|
"./buffers": {
|
|
49
|
-
"import": "./dist/buffers.
|
|
50
|
-
"types": "./dist/buffers.d.
|
|
49
|
+
"import": "./dist/buffers.mjs",
|
|
50
|
+
"types": "./dist/buffers.d.mts"
|
|
51
51
|
},
|
|
52
52
|
"./common": {
|
|
53
|
-
"import": "./dist/common.
|
|
54
|
-
"types": "./dist/common.d.
|
|
53
|
+
"import": "./dist/common.mjs",
|
|
54
|
+
"types": "./dist/common.d.mts"
|
|
55
55
|
},
|
|
56
56
|
"./crypto": {
|
|
57
|
-
"import": "./dist/crypto.
|
|
58
|
-
"types": "./dist/crypto.d.
|
|
57
|
+
"import": "./dist/crypto.mjs",
|
|
58
|
+
"types": "./dist/crypto.d.mts"
|
|
59
59
|
},
|
|
60
60
|
"./db": {
|
|
61
|
-
"import": "./dist/db.
|
|
62
|
-
"types": "./dist/db.d.
|
|
61
|
+
"import": "./dist/db.mjs",
|
|
62
|
+
"types": "./dist/db.d.mts"
|
|
63
63
|
},
|
|
64
64
|
"./discord": {
|
|
65
|
-
"import": "./dist/discord.
|
|
66
|
-
"types": "./dist/discord.d.
|
|
65
|
+
"import": "./dist/discord.mjs",
|
|
66
|
+
"types": "./dist/discord.d.mts"
|
|
67
67
|
},
|
|
68
68
|
"./dns": {
|
|
69
|
-
"import": "./dist/dns.
|
|
70
|
-
"types": "./dist/dns.d.
|
|
69
|
+
"import": "./dist/dns.mjs",
|
|
70
|
+
"types": "./dist/dns.d.mts"
|
|
71
71
|
},
|
|
72
72
|
"./net": {
|
|
73
|
-
"import": "./dist/net.
|
|
74
|
-
"types": "./dist/net.d.
|
|
73
|
+
"import": "./dist/net.mjs",
|
|
74
|
+
"types": "./dist/net.d.mts"
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"prettier": "@demosjarco/prettier-config",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"@cloudflare/workers-types": "^4.20250605.0",
|
|
90
90
|
"@types/node": "^22.15.29"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "c7b762988f05d1d4cb641a3073defce0af1b5e32"
|
|
93
93
|
}
|