@golstats/gsc-top-player 1.1.5 → 1.1.7
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/dist/{FilterConditions-b0597311-D3VSZDZb.js → FilterConditions-33ce2100-CmxB2vlM.js} +30 -30
- package/dist/FilterField-0f3013eb-jqe9lIkG.js +21 -0
- package/dist/{FilterSubcategories-1640fee4-BGOe2kpQ.js → FilterSubcategories-4c69ac5b-C7DNPEBa.js} +11 -11
- package/dist/gsc-top-player.css +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +14 -17
- package/dist/{index-BOWVj-KB.js → index-Bhd9iHma.js} +4569 -5726
- package/package.json +1 -1
- package/src/components/gsc-top-player.vue +2 -0
- package/src/utils/apiUrl.js +9 -0
- package/dist/FilterField-f5bc7f5e-CcOKfHc_.js +0 -21
package/package.json
CHANGED
package/src/utils/apiUrl.js
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* @param {boolean} isDevApis - false → prod; true → dev
|
|
7
7
|
* @returns {string} - URL final a usar en la petición
|
|
8
8
|
*/
|
|
9
|
+
const OPTA_CACHE_BASE = 'https://opta-integration-dev-gold-s3-cache.s3.us-west-2.amazonaws.com/'
|
|
10
|
+
|
|
9
11
|
export function getApiUrl(originalUrl, provider, isDevApis) {
|
|
10
12
|
// Regla A: provider es 1, 0 o null → devolver URL sin cambios
|
|
11
13
|
if (provider == null || provider <= 1) {
|
|
@@ -25,5 +27,12 @@ export function getApiUrl(originalUrl, provider, isDevApis) {
|
|
|
25
27
|
|
|
26
28
|
// Quitar barra inicial y combinar con la base
|
|
27
29
|
const relativePath = pathWithQuery.replace(/^\//, '')
|
|
30
|
+
|
|
31
|
+
// Los .json (S3) no los sirve el gateway /{provider}/: responde 404. Con provider >= 2 se
|
|
32
|
+
// piden al cache de Opta, mismo path y sin segmento de proveedor.
|
|
33
|
+
if (parsed.pathname.endsWith('.json')) {
|
|
34
|
+
return OPTA_CACHE_BASE + relativePath
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
return base + relativePath
|
|
29
38
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ref as r, openBlock as a, createElementBlock as n, createVNode as d, unref as f } from "vue";
|
|
2
|
-
import { t as u, M as c } from "./index-BOWVj-KB.js";
|
|
3
|
-
const i = { class: "filter-field" }, s = {
|
|
4
|
-
__name: "FilterField",
|
|
5
|
-
setup(m) {
|
|
6
|
-
const l = r(Array.from({ length: 16 }, (o, e) => e + 1));
|
|
7
|
-
function t() {
|
|
8
|
-
}
|
|
9
|
-
return (o, e) => (a(), n("div", i, [
|
|
10
|
-
d(f(c), {
|
|
11
|
-
width: "100%",
|
|
12
|
-
"background-color": "#2E3B46",
|
|
13
|
-
value: l.value,
|
|
14
|
-
"onUpdate:modelValue": t
|
|
15
|
-
}, null, 8, ["value"])
|
|
16
|
-
]));
|
|
17
|
-
}
|
|
18
|
-
}, _ = /* @__PURE__ */ u(s, [["__scopeId", "data-v-ef90fbbd"]]);
|
|
19
|
-
export {
|
|
20
|
-
_ as default
|
|
21
|
-
};
|