@carlosdiazz/lottodiz-shared 2.2.8 → 2.3.0

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