@golstats/gsc-reports 1.1.2 → 1.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@golstats/gsc-checkbox": "^1.0.13",
52
- "@golstats/gsc-template-report-maker": "^1.1.2",
52
+ "@golstats/gsc-template-report-maker": "^1.1.3",
53
53
  "axios": "^1.10.0",
54
54
  "gridstack": "^12.1.1",
55
55
  "tiny-emitter": "^2.1.0",
@@ -300,7 +300,8 @@ const props = defineProps({
300
300
  },
301
301
  token: {
302
302
  type: String,
303
- required: true,
303
+ default:
304
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE',
304
305
  },
305
306
  team: {
306
307
  type: Number,
@@ -412,10 +413,15 @@ async function cargarTorneos() {
412
413
  loading.value = true
413
414
  const response = await axios.get(
414
415
  getApiUrl(
415
- 'https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments',
416
+ 'https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments',
416
417
  props.provider,
417
418
  props.isDevApis,
418
419
  ),
420
+ {
421
+ headers: {
422
+ Authorization: props.token,
423
+ },
424
+ },
419
425
  )
420
426
 
421
427
  if (response.data && Array.isArray(response.data)) {
@@ -850,6 +856,13 @@ watch(
850
856
  { immediate: true },
851
857
  )
852
858
 
859
+ watch(
860
+ () => props.token,
861
+ () => {
862
+ cargarTorneos()
863
+ },
864
+ )
865
+
853
866
  onMounted(() => {
854
867
  // Si se debe mostrar el error 409 desde el inicio, configurarlo
855
868
  if (props.showError409OnMount) {