@matterbridge/utils 3.9.5-dev-20260715-33298cd → 3.10.0-dev-20260716-7f8762c

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.
@@ -1,5 +1,6 @@
1
1
  export declare function isValidIpv4Address(ipv4Address: string): boolean;
2
2
  export declare function isValidNumber(value: unknown, min?: number, max?: number): value is number;
3
+ export declare function isValidInteger(value: unknown, min?: number, max?: number): value is number;
3
4
  export declare function isValidBoolean(value: unknown): value is boolean;
4
5
  export declare function isValidString(value: unknown, minLength?: number, maxLength?: number): value is string;
5
6
  export declare function isValidRegExp(value: unknown): value is RegExp;
package/dist/validate.js CHANGED
@@ -13,6 +13,9 @@ export function isValidNumber(value, min, max) {
13
13
  return false;
14
14
  return true;
15
15
  }
16
+ export function isValidInteger(value, min, max) {
17
+ return isValidNumber(value, min, max) && Number.isInteger(value);
18
+ }
16
19
  export function isValidBoolean(value) {
17
20
  return value !== undefined && value !== null && typeof value === 'boolean';
18
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/utils",
3
- "version": "3.9.5-dev-20260715-33298cd",
3
+ "version": "3.10.0-dev-20260716-7f8762c",
4
4
  "description": "Matterbridge utils library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",