@vixoniccom/footbal-score 1.4.0-dev.6 → 1.4.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.
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.6",
4
+ "version": "1.4.0",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -26,8 +26,8 @@
26
26
  "devDependencies": {
27
27
  "@types/react": "^18.3.23",
28
28
  "@types/react-dom": "^18.3.7",
29
- "@vixoniccom/module-packager": "^2.13.0-dev.1",
30
- "@vixoniccom/modules": "^2.20.5-dev.1",
29
+ "@vixoniccom/module-packager": "^2.13.0",
30
+ "@vixoniccom/modules": "^2.21.0",
31
31
  "standard-version": "^9.5.0"
32
32
  }
33
33
  }
@@ -10,12 +10,9 @@ const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000
10
10
 
11
11
  export const getFixture = async (league: string, yesterday?: boolean, tomorrow?: boolean) => {
12
12
  const today = moment().format('YYYY-MM-DD')
13
- let year = moment().format('YYYY')
14
- year = '2023'
15
- let from = yesterday ? moment(Date.now() - MILLISECONDS_PER_DAY).format('YYYY-MM-DD') : today
16
- from = '2023-12-05'
17
- let to = tomorrow ? moment(Date.now() + MILLISECONDS_PER_DAY).format('YYYY-MM-DD') : today
18
- to = '2023-12-10'
13
+ const year = moment().format('YYYY')
14
+ const from = yesterday ? moment(Date.now() - MILLISECONDS_PER_DAY).format('YYYY-MM-DD') : today
15
+ const to = tomorrow ? moment(Date.now() + MILLISECONDS_PER_DAY).format('YYYY-MM-DD') : today
19
16
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
20
17
 
21
18
  const options = {