asv-hlps 1.3.17 → 1.3.18
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/lib/cjs/utils.js +1 -1
- package/lib/esm/utils.js +1 -1
- package/package.json +1 -1
package/lib/cjs/utils.js
CHANGED
|
@@ -623,7 +623,7 @@ const monthStringName = (date, format = "MMM", options) => {
|
|
|
623
623
|
return (0, dayjs_1.default)(date).locale("fr").format(format);
|
|
624
624
|
};
|
|
625
625
|
exports.monthStringName = monthStringName;
|
|
626
|
-
const dateFormatter = (date, format, separator = "/") => {
|
|
626
|
+
const dateFormatter = (date, format = "dmy", separator = "/") => {
|
|
627
627
|
switch (format) {
|
|
628
628
|
case "y":
|
|
629
629
|
return (0, dayjs_1.default)(date).format("YYYY");
|
package/lib/esm/utils.js
CHANGED
|
@@ -542,7 +542,7 @@ export const monthStringName = (date, format = "MMM", options) => {
|
|
|
542
542
|
}
|
|
543
543
|
return dayjs(date).locale("fr").format(format);
|
|
544
544
|
};
|
|
545
|
-
export const dateFormatter = (date, format, separator = "/") => {
|
|
545
|
+
export const dateFormatter = (date, format = "dmy", separator = "/") => {
|
|
546
546
|
switch (format) {
|
|
547
547
|
case "y":
|
|
548
548
|
return dayjs(date).format("YYYY");
|