topkat-utils 1.0.44 → 1.0.45

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "topkat-utils",
3
- "version": "1.0.44",
4
- "type": "module",
3
+ "version": "1.0.45",
4
+ "type": "commonjs",
5
5
  "private": false,
6
6
  "description": "UTILS BIG TIME",
7
7
  "author": "538ROMEO",
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "module": "es2020",
3
+ "module": "CommonJS",
4
4
  "allowSyntheticDefaultImports": true,
5
5
  "target": "ES2018",
6
6
  "noImplicitAny": false,
package/utils.d.ts CHANGED
@@ -8,7 +8,7 @@ declare type Color = [number, number, number];
8
8
  declare type ObjectGeneric = {
9
9
  [k: string]: any;
10
10
  };
11
- declare type BaseTypes = 'objectId' | 'dateInt6' | 'dateInt' | 'dateInt8' | 'dateInt12' | 'time' | 'humanReadableTimestamp' | 'date' | 'dateObject' | 'array' | 'object' | 'buffer' | 'string' | 'function' | 'boolean' | 'number' | 'bigint' | 'year' | 'email';
11
+ declare type BaseTypes = 'objectId' | 'dateInt6' | 'dateInt' | 'dateInt8' | 'dateInt12' | 'time' | 'humanReadableTimestamp' | 'date' | 'dateObject' | 'array' | 'object' | 'buffer' | 'string' | 'function' | 'boolean' | 'number' | 'bigint' | 'year' | 'email' | 'any';
12
12
  /** Round with custom number of decimals (default:0) */
13
13
  declare function round(number: number, decimals?: number): number;
14
14
  /** Round with custom number of decimals (default:0) */
@@ -437,6 +437,7 @@ declare type ValidatorObject = {
437
437
  regexp?: RegExp;
438
438
  mustNotBeSet?: boolean;
439
439
  optional?: boolean;
440
+ isArray?: boolean;
440
441
  [k: string]: any;
441
442
  };
442
443
  declare function validator(...paramsToValidate: ValidatorObject[]): void;