@golstats/gsc-reports 1.0.134 → 1.0.136

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.0.134",
3
+ "version": "1.0.136",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -299,7 +299,8 @@ const props = defineProps({
299
299
  },
300
300
  token: {
301
301
  type: String,
302
- required: true,
302
+ default:
303
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE',
303
304
  },
304
305
  team: {
305
306
  type: Number,
@@ -402,7 +403,12 @@ async function cargarTorneos() {
402
403
  try {
403
404
  loading.value = true
404
405
  const response = await axios.get(
405
- 'https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments',
406
+ 'https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments',
407
+ {
408
+ headers: {
409
+ Authorization: props.token,
410
+ },
411
+ },
406
412
  )
407
413
 
408
414
  if (response.data && Array.isArray(response.data)) {
@@ -829,6 +835,13 @@ watch(
829
835
  { immediate: true },
830
836
  )
831
837
 
838
+ watch(
839
+ () => props.token,
840
+ () => {
841
+ cargarTorneos()
842
+ },
843
+ )
844
+
832
845
  onMounted(() => {
833
846
  // Si se debe mostrar el error 409 desde el inicio, configurarlo
834
847
  if (props.showError409OnMount) {