@fnlb-project/shared 1.4.8 → 1.5.0

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.
@@ -230,6 +230,7 @@ export interface IConnectedClientBot extends IClientBot {
230
230
  id?: string;
231
231
  members: IPartyMember[];
232
232
  };
233
+ matches: number;
233
234
  }
234
235
  export interface ICategoryConfig {
235
236
  replyLangs?: Locales[];
@@ -0,0 +1,16 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export declare class DataValidator {
4
+ static isValidNumber(value: number): boolean;
5
+ static isValidInteger(value: number): boolean;
6
+ static isValidString(value: string): boolean;
7
+ static isAlphanumeric(value: string): boolean;
8
+ static isValidStringArray(values: string[]): boolean;
9
+ static isValidStringList(...values: string[]): boolean;
10
+ static isStringLengthBetweenLimits(value: string, min: number, max: number): boolean;
11
+ static isStringArrayLengthBetweenLimits(min: number, max: number, values: string[]): boolean;
12
+ static isStringListLengthBetweenLimits(min: number, max: number, ...values: string[]): boolean;
13
+ static isValidEmail(value: string): boolean;
14
+ }
15
+
16
+ export {};
@@ -0,0 +1 @@
1
+ class t{static isValidNumber(i){return!Number.isNaN(i)}static isValidInteger(i){return t.isValidNumber(i)&&Number.isInteger(i)}static isValidString(i){return typeof i==="string"&&!!i.trim()}static isAlphanumeric(i){return t.isValidString(i)&&/^[\w-.=:]+$/.test(i)}static isValidStringArray(i){return i.every((r)=>t.isValidString(r))}static isValidStringList(...i){return t.isValidStringArray(i)}static isStringLengthBetweenLimits(i,r,n){return t.isValidString(i)&&i.length>=r&&i.length<=n}static isStringArrayLengthBetweenLimits(i,r,n){return n.every((e)=>t.isStringLengthBetweenLimits(e,i,r))}static isStringListLengthBetweenLimits(i,r,...n){return t.isStringArrayLengthBetweenLimits(i,r,n)}static isValidEmail(i){return/^[\w-.]+@([\w-]+\.)+[\w-]{2,10}$/.test(i)}}export{t as DataValidator};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@fnlb-project/shared",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "FNLB Shared Library",
5
5
  "files": ["dist"],
6
6
  "author": "FNLB-Project",
7
7
  "devDependencies": {
8
8
  "@biomejs/biome": "^1.9.4",
9
- "@types/bun": "^1.1.13",
9
+ "@types/bun": "^1.1.14",
10
10
  "bun-plugin-dts": "^0.3.0",
11
11
  "typescript": "^5.7.2"
12
12
  },
@@ -27,6 +27,10 @@
27
27
  "types": "./dist/types/index.d.ts",
28
28
  "default": "./dist/types/index.js"
29
29
  },
30
+ "./validator": {
31
+ "types": "./dist/util/validator.d.ts",
32
+ "default": "./dist/util/validator.js"
33
+ },
30
34
  "./util": {
31
35
  "types": "./dist/util/index.d.ts",
32
36
  "default": "./dist/util/index.js"