@vixoniccom/footbal-score 1.4.0-dev.0 → 1.4.0-dev.1

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/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/footbal-score",
3
3
  "alias": "Resultados Deportivos",
4
- "version": "1.4.0-dev.0",
4
+ "version": "1.4.0-dev.1",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -9,9 +9,13 @@ const FOOTBALL_API_URL = process.env.FOOTBALL_API_URL
9
9
 
10
10
  export const getFixture = async (league: string, yesterday?: boolean, tomorrow?: boolean) => {
11
11
  const today = moment().format('YYYY-MM-DD')
12
- const year = moment().format('YYYY')
13
- const from = yesterday ? moment(Date.now() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD') : today
14
- const to = tomorrow ? moment(Date.now() + 24 * 60 * 60 * 1000).format('YYYY-MM-DD') : today
12
+ let year = moment().format('YYYY')
13
+ year = '2023'
14
+ let from = yesterday ? moment(Date.now() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD') : today
15
+ from = '2023-12-05'
16
+ let to = tomorrow ? moment(Date.now() + 24 * 60 * 60 * 1000).format('YYYY-MM-DD') : today
17
+ to = '2023-12-10'
18
+
15
19
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
16
20
 
17
21
  const options = {