@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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/lib/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustme24/flext",
|
|
3
|
-
"version": "1.10.
|
|
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.
|
|
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
|