@bgord/tools 1.3.23 → 1.3.24
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/language.vo.d.ts +1 -2
- package/dist/language.vo.js +2 -8
- package/package.json +1 -1
package/dist/language.vo.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export declare const LanguageError: {
|
|
3
3
|
Type: string;
|
|
4
|
-
Case: string;
|
|
5
4
|
BadChars: string;
|
|
6
5
|
};
|
|
7
|
-
export declare const Language: z.
|
|
6
|
+
export declare const Language: z.ZodString;
|
|
8
7
|
export type LanguageType = z.infer<typeof Language>;
|
package/dist/language.vo.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
export const LanguageError = { Type: "language.type",
|
|
2
|
+
export const LanguageError = { Type: "language.type", BadChars: "language.bad.chars" };
|
|
3
3
|
// Two lowercase letters
|
|
4
4
|
const LANGUAGE_CHARS_WHITELIST = /^[a-z]{2}$/;
|
|
5
|
-
|
|
6
|
-
export const Language = z
|
|
7
|
-
// Stryker restore all
|
|
8
|
-
.string(LanguageError.Type)
|
|
9
|
-
.regex(LANGUAGE_CHARS_WHITELIST, LanguageError.BadChars)
|
|
10
|
-
.refine((value) => value === value.toLowerCase(), LanguageError.Case)
|
|
11
|
-
.brand("Language");
|
|
5
|
+
export const Language = z.string(LanguageError.Type).regex(LANGUAGE_CHARS_WHITELIST, LanguageError.BadChars);
|