valgen 6.2.1 → 6.2.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.
package/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = '6.2.1';
1
+ export const version = '6.2.2';
2
2
  export const postValidation = Symbol('postValidation');
3
3
  export const preValidation = Symbol('preValidation');
4
4
  export const VALIDATE_METADATA = Symbol('VALIDATE_METADATA');
package/index.d.ts CHANGED
@@ -65,6 +65,7 @@ declare const toBoolean: Validator<boolean | undefined, unknown, ExecutionOption
65
65
  declare const toDate: Validator<Date, string | number | Date, ExecutionOptions>;
66
66
  declare const toDateString: (input: Date | string | number, options?: ExecutionOptions & {
67
67
  trim?: vg.isDateString.Precision;
68
+ separators?: boolean;
68
69
  }, ctx?: Context) => any;
69
70
  declare const toInteger: Validator<number, unknown, ExecutionOptions>;
70
71
  declare const toNumber: Validator<number, unknown, ExecutionOptions>;
package/index.js CHANGED
@@ -79,6 +79,7 @@ const toDateString = (input, options, ctx) => {
79
79
  coerce: true,
80
80
  precisionMax,
81
81
  trim: true,
82
+ separators: options?.separators,
82
83
  });
83
84
  toDateStringValidators.set(precisionMax, validator);
84
85
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valgen",
3
3
  "description": "Fast runtime type validator, converter and io (encoding/decoding) library",
4
- "version": "6.2.1",
4
+ "version": "6.2.2",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {