@chainfuse/helpers 3.5.1 → 3.5.3

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 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(): "all" | "explicit";
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/net.d.mts CHANGED
@@ -89,26 +89,26 @@ export declare class NetHelpers {
89
89
  */
90
90
  webp: z3.ZodOptional<z3.ZodBoolean>;
91
91
  }, "strip", z3.ZodTypeAny, {
92
- cacheEverything: boolean;
93
- scrapeShield: boolean;
94
92
  apps: boolean;
93
+ cacheEverything: boolean;
95
94
  mirage: boolean;
95
+ scrapeShield: boolean;
96
96
  cacheKey?: string | undefined;
97
97
  cacheTags?: [string, ...string[]] | undefined;
98
98
  cacheTtl?: number | undefined;
99
99
  cacheTtlByStatus?: Record<string, number> | undefined;
100
- polish?: "off" | "lossy" | "lossless" | undefined;
100
+ polish?: "lossy" | "lossless" | "off" | undefined;
101
101
  webp?: boolean | undefined;
102
102
  }, {
103
+ apps?: boolean | undefined;
103
104
  cacheEverything?: boolean | undefined;
104
105
  cacheKey?: string | undefined;
105
106
  cacheTags?: [string, ...string[]] | undefined;
106
107
  cacheTtl?: number | undefined;
107
108
  cacheTtlByStatus?: Record<string, number> | undefined;
108
- scrapeShield?: boolean | undefined;
109
- apps?: boolean | undefined;
110
109
  mirage?: boolean | undefined;
111
- polish?: "off" | "lossy" | "lossless" | undefined;
110
+ polish?: "lossy" | "lossless" | "off" | undefined;
111
+ scrapeShield?: boolean | undefined;
112
112
  webp?: boolean | undefined;
113
113
  }>>;
114
114
  }, "strip", z3.ZodTypeAny, {
@@ -119,15 +119,15 @@ export declare class NetHelpers {
119
119
  custom?: ((...args: unknown[]) => void | Promise<void>) | undefined;
120
120
  };
121
121
  cf: {
122
- cacheEverything: boolean;
123
- scrapeShield: boolean;
124
122
  apps: boolean;
123
+ cacheEverything: boolean;
125
124
  mirage: boolean;
125
+ scrapeShield: boolean;
126
126
  cacheKey?: string | undefined;
127
127
  cacheTags?: [string, ...string[]] | undefined;
128
128
  cacheTtl?: number | undefined;
129
129
  cacheTtlByStatus?: Record<string, number> | undefined;
130
- polish?: "off" | "lossy" | "lossless" | undefined;
130
+ polish?: "lossy" | "lossless" | "off" | undefined;
131
131
  webp?: boolean | undefined;
132
132
  };
133
133
  }, {
@@ -138,15 +138,15 @@ export declare class NetHelpers {
138
138
  color?: boolean | undefined;
139
139
  } | undefined;
140
140
  cf?: {
141
+ apps?: boolean | undefined;
141
142
  cacheEverything?: boolean | undefined;
142
143
  cacheKey?: string | undefined;
143
144
  cacheTags?: [string, ...string[]] | undefined;
144
145
  cacheTtl?: number | undefined;
145
146
  cacheTtlByStatus?: Record<string, number> | undefined;
146
- scrapeShield?: boolean | undefined;
147
- apps?: boolean | undefined;
148
147
  mirage?: boolean | undefined;
149
- polish?: "off" | "lossy" | "lossless" | undefined;
148
+ polish?: "lossy" | "lossless" | "off" | undefined;
149
+ scrapeShield?: boolean | undefined;
150
150
  webp?: boolean | undefined;
151
151
  } | undefined;
152
152
  }>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
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.11.4",
80
- "@discordjs/rest": "^2.5.1",
79
+ "@chainfuse/types": "^2.11.6",
80
+ "@discordjs/rest": "^2.6.0",
81
81
  "chalk": "^5.6.0",
82
82
  "cloudflare": "^4.5.0",
83
- "drizzle-orm": "^0.44.4",
83
+ "drizzle-orm": "^0.44.5",
84
84
  "strip-ansi": "^7.1.0",
85
85
  "uuid": "^11.1.0",
86
- "zod": "^4.0.17"
86
+ "zod": "^4.1.3"
87
87
  },
88
88
  "devDependencies": {
89
- "@cloudflare/workers-types": "^4.20250819.0",
90
- "@types/node": "^22.17.2"
89
+ "@cloudflare/workers-types": "^4.20250826.0",
90
+ "@types/node": "^22.18.0"
91
91
  },
92
- "gitHead": "34690e8aa0cd8c205ab9e5340eeef97daefc76cd"
92
+ "gitHead": "dfa818e16d4a8401de78a1b848930710b19d0a95"
93
93
  }