@carlosdiazz/lottodiz-shared 2.2.7 → 2.2.9

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