@chainfuse/helpers 4.5.2 → 4.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.
@@ -18,13 +18,7 @@ export declare class BufferHelpers {
18
18
  static bufferToBase64(buffer: UuidExportBlobInput, urlSafe: boolean): Promise<string>;
19
19
  static bufferToBase64Sync(buffer: UuidExportBlobInput, urlSafe: boolean): string;
20
20
  static v7OptionsBase: z.ZodMiniObject<{
21
- /**
22
- * RFC "timestamp" field
23
- */
24
21
  msecs: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumberFormat, z.ZodMiniPipe<z.ZodMiniDate<Date>, z.ZodMiniTransform<number, Date>>]>>;
25
- /**
26
- * 32-bit sequence Number between 0 - 0xffffffff. This may be provided to help ensure uniqueness for UUIDs generated within the same millisecond time interval. Default = random value.
27
- */
28
22
  seq: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
29
23
  }, z.core.$strip>;
30
24
  static generateUuid7(_options?: z.input<Awaited<typeof this.v7OptionsBase>>): Promise<UuidExport>;
package/dist/net.d.mts CHANGED
@@ -25,61 +25,19 @@ export declare class NetHelpers {
25
25
  custom: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnknown, z.ZodMiniTransform<(...args: any[]) => void | Promise<void>, unknown>>>;
26
26
  }, z.core.$strip>>;
27
27
  cf: z.ZodMiniDefault<z.ZodMiniObject<{
28
- /**
29
- * Whether Cloudflare Apps should be enabled for this request
30
- * @link https://www.cloudflare.com/apps/
31
- * @default true
32
- */
33
28
  apps: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
34
- /**
35
- * Treats all content as static and caches all file types beyond the Cloudflare default cached content. Respects cache headers from the origin web server. This is equivalent to setting the Page Rule Cache Level (to Cache Everything).
36
- * @default false
37
- * @note This option applies to GET and HEAD request methods only
38
- */
39
29
  cacheEverything: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
40
- /**
41
- * A request's cache key is what determines if two requests are the same for caching purposes. If a request has the same cache key as some previous request, then Cloudflare can serve the same cached response for both.
42
- */
43
30
  cacheKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
44
- /**
45
- * This option appends additional Cache-Tag headers to the response from the origin server. This allows for purges of cached content based on tags provided by the Worker, without modifications to the origin server. This is performed using the Purge by Tag feature.
46
- */
47
31
  cacheTags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
48
- /**
49
- * This option forces Cloudflare to cache the response for this request, regardless of what headers are seen on the response. This is equivalent to setting two Page Rules: Edge Cache TTL and Cache Level (to Cache Everything). The value must be zero or a positive number. A value of 0 indicates that the cache asset expires immediately.
50
- * @note This option applies to GET and HEAD request methods only.
51
- */
52
32
  cacheTtl: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
53
- /**
54
- * This option is a version of the cacheTtl feature which chooses a TTL based on the response's status code. If the response to this request has a status code that matches, Cloudflare will cache for the instructed time and override cache instructives sent by the origin. For example: { "200-299": 86400, "404": 1, "500-599": 0 }. The value can be any integer, including zero and negative integers. A value of 0 indicates that the cache asset expires immediately. Any negative value instructs Cloudflare not to cache at all.
55
- * @note This option applies to GET and HEAD request methods only.
56
- */
57
33
  cacheTtlByStatus: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniNumberFormat>>;
58
- /**
59
- * Whether Mirage should be enabled for this request, if otherwise configured for this zone.
60
- * @link https://www.cloudflare.com/website-optimization/mirage/
61
- * @default true
62
- */
63
34
  mirage: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
64
- /**
65
- * Sets Polish mode. The possible values are lossy, lossless or off.
66
- * @link https://blog.cloudflare.com/introducing-polish-automatic-image-optimizati/
67
- */
68
35
  polish: z.ZodMiniOptional<z.ZodMiniEnum<{
69
36
  off: "off";
70
37
  lossy: "lossy";
71
38
  lossless: "lossless";
72
39
  }>>;
73
- /**
74
- * Whether ScrapeShield should be enabled for this request, if otherwise configured for this zone.
75
- * @link https://blog.cloudflare.com/introducing-scrapeshield-discover-defend-dete/
76
- * @default true
77
- */
78
40
  scrapeShield: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
79
- /**
80
- * Enables or disables WebP image format in Polish.
81
- * @link https://blog.cloudflare.com/a-very-webp-new-year-from-cloudflare/
82
- */
83
41
  webp: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
84
42
  }, z.core.$strip>>;
85
43
  }, z.core.$strip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "prettier": "@demosjarco/prettier-config",
82
82
  "dependencies": {
83
- "@chainfuse/types": "^4.2.25",
83
+ "@chainfuse/types": "^4.2.26",
84
84
  "@discordjs/rest": "^2.6.1",
85
85
  "chalk": "^5.6.2",
86
86
  "cloudflare": "^5.2.0",
@@ -88,11 +88,11 @@
88
88
  "drizzle-orm": "^0.45.2",
89
89
  "strip-ansi": "^7.2.0",
90
90
  "uuid": "^14.0.0",
91
- "zod": "^4.3.6"
91
+ "zod": "^4.4.3"
92
92
  },
93
93
  "devDependencies": {
94
- "@cloudflare/workers-types": "^4.20260423.1",
94
+ "@cloudflare/workers-types": "^4.20260506.1",
95
95
  "@types/dns-packet": "^5.6.5"
96
96
  },
97
- "gitHead": "541ddfd71684b2d3effac993b3ed8bce58e03b0c"
97
+ "gitHead": "1a94d910d3c29da489b42763d7b446e5922c1d50"
98
98
  }