@trustme24/flext 1.10.4 → 1.10.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustme24/flext",
3
- "version": "1.10.4",
3
+ "version": "1.10.5",
4
4
  "description": "A technology for building reliable document templates",
5
5
  "keywords": ["templates", "templating engine", "documents", "document engine", "handlebars"],
6
6
  "repository": "https://github.com/TrustMe-kz/flext.git",
package/src/lib/index.ts CHANGED
@@ -629,7 +629,7 @@ export function ensureDate<T extends boolean = true>(val: Date | string | number
629
629
  const [ year, month, day ] = _val?.split('-')?.map(Number) ?? [];
630
630
 
631
631
  if (year && month && day)
632
- return DateTime.fromtypes.Object({ year, month, day }).toJSDate();
632
+ return DateTime.fromObject({ year, month, day }).toJSDate();
633
633
  else if (_doWarn)
634
634
  throw new BaseError('Flext: Unable to get date: The date is invalid: ' + audit(_val));
635
635
  else