@bgord/tools 0.15.0 → 0.15.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.
@@ -4,5 +4,5 @@ export const ApiKey = z
4
4
  .string(ApiKeyError)
5
5
  .trim()
6
6
  .length(64, ApiKeyError)
7
- .regex(/^[0-9a-f]{64}$/i, ApiKeyError)
7
+ .regex(/^[0-9a-zA-Z]{64}$/i, ApiKeyError)
8
8
  .brand("ApiKey");
@@ -2,5 +2,5 @@ import { z } from "zod/v4";
2
2
  export declare const LanguageError: {
3
3
  readonly error: "invalid.language";
4
4
  };
5
- export declare const Language: z.core.$ZodBranded<z.ZodString, "Language">;
5
+ export declare const Language: z.ZodString;
6
6
  export type LanguageType = z.infer<typeof Language>;
@@ -3,5 +3,4 @@ export const LanguageError = { error: "invalid.language" };
3
3
  export const Language = z
4
4
  .string(LanguageError)
5
5
  .length(2, LanguageError)
6
- .regex(/^[a-z]{2}$/, LanguageError)
7
- .brand("Language");
6
+ .regex(/^[a-z]{2}$/, LanguageError);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/tools",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
package/src/api-key.vo.ts CHANGED
@@ -6,7 +6,7 @@ export const ApiKey = z
6
6
  .string(ApiKeyError)
7
7
  .trim()
8
8
  .length(64, ApiKeyError)
9
- .regex(/^[0-9a-f]{64}$/i, ApiKeyError)
9
+ .regex(/^[0-9a-zA-Z]{64}$/i, ApiKeyError)
10
10
  .brand("ApiKey");
11
11
 
12
12
  export type ApiKeyType = z.infer<typeof ApiKey>;
@@ -5,7 +5,6 @@ export const LanguageError = { error: "invalid.language" } as const;
5
5
  export const Language = z
6
6
  .string(LanguageError)
7
7
  .length(2, LanguageError)
8
- .regex(/^[a-z]{2}$/, LanguageError)
9
- .brand("Language");
8
+ .regex(/^[a-z]{2}$/, LanguageError);
10
9
 
11
10
  export type LanguageType = z.infer<typeof Language>;