@vixoniccom/footbal-score 1.4.2 → 1.4.4

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.
@@ -0,0 +1,59 @@
1
+ /*!
2
+ localForage -- Offline Storage, Improved
3
+ Version 1.10.0
4
+ https://localforage.github.io/localForage
5
+ (c) 2013-2017 Mozilla, Apache License 2.0
6
+ */
7
+
8
+ /**
9
+ * @license
10
+ * Lodash <https://lodash.com/>
11
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
12
+ * Released under MIT license <https://lodash.com/license>
13
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
14
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
+ */
16
+
17
+ /**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */
26
+
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.production.min.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+
37
+ /**
38
+ * @license React
39
+ * react.production.min.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */
46
+
47
+ /**
48
+ * @license React
49
+ * scheduler.production.min.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */
56
+
57
+ //! moment.js
58
+
59
+ //! moment.js locale configuration
Binary file
@@ -0,0 +1,10 @@
1
+ {
2
+ "parameters": {
3
+ "league": 1,
4
+ "timeStart": "1 am",
5
+ "timeEnd": "11 pm",
6
+ "matchesYesterday": true,
7
+ "matchesTomorrow": true,
8
+ "itemsPerPage": 2
9
+ }
10
+ }
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.2",
4
+ "version": "1.4.4",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -9,7 +9,7 @@ const FOOTBALL_API_HOST = process.env.FOOTBALL_API_HOST
9
9
  const FOOTBALL_API_URL = process.env.FOOTBALL_API_URL
10
10
  const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000
11
11
 
12
- const USE_MOCK = false
12
+ const USE_MOCK = true
13
13
 
14
14
  export const getFixture = async (league: string, yesterday?: boolean, tomorrow?: boolean) => {
15
15
  if (USE_MOCK) return mockFixtures
@@ -27,6 +27,11 @@ export const getFixture = async (league: string, yesterday?: boolean, tomorrow?:
27
27
  headers: { 'X-RapidAPI-Key': FOOTBALL_API_KEY, 'X-RapidAPI-Host': FOOTBALL_API_HOST },
28
28
  }
29
29
 
30
- const response = await axios.request(options)
31
- return response.data.response
30
+ try {
31
+ const response = await axios.request(options)
32
+ return response.data.response
33
+ } catch (error) {
34
+ console.error(error)
35
+ return []
36
+ }
32
37
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "parameters": {
3
- "league": 265,
3
+ "league": 1,
4
4
  "timeStart": "1 am",
5
5
  "timeEnd": "11 pm",
6
6
  "matchesYesterday": true,