@carlosdiazz/lottodiz-shared 2.2.6 → 2.2.8

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.
@@ -24,6 +24,8 @@ const validateDate = (date_verify, arrs) => {
24
24
  format_dates.push(dayjs_1.default.utc(date_verify).format("DD-MM").toUpperCase());
25
25
  //En Lote
26
26
  format_dates.push(dayjs_1.default.utc(date_verify).format("dddd D [de] MMMM, YYYY").toUpperCase());
27
+ // COSTA RICA JPS
28
+ format_dates.push(dayjs_1.default.utc(date_verify).format("dddd, D [de] MMMM").toUpperCase());
27
29
  //! Ingles
28
30
  dayjs_1.default.locale("en");
29
31
  //Test
@@ -32,6 +34,6 @@ const validateDate = (date_verify, arrs) => {
32
34
  format_dates.push(dayjs_1.default.utc(date_verify).locale("en").format("MMM D, YYYY").toUpperCase());
33
35
  const is_valid = format_dates.includes(date);
34
36
  if (!is_valid)
35
- throw new Error(`This is not the date to look for => Date: "${date}" format_dates: [${format_dates.join(",")}]`);
37
+ throw new Error(`This is not the date to look for => Date: "${date}" format_dates: [${format_dates.join("|")}]`);
36
38
  };
37
39
  exports.validateDate = validateDate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,