sass-template-common 0.3.32 → 0.3.33

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.
@@ -11891,7 +11891,7 @@ async function r5({
11891
11891
  throw new Error("Falta el token de API del CMS");
11892
11892
  const l = `${s}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, u = encodeURIComponent(o), h = new URLSearchParams({
11893
11893
  publication: e,
11894
- username: t,
11894
+ username: t ?? !1,
11895
11895
  id: n,
11896
11896
  type: u
11897
11897
  }), m = `${l}?${h.toString()}`;
@@ -11904,9 +11904,9 @@ async function r5({
11904
11904
  encodedType: u,
11905
11905
  url: m
11906
11906
  });
11907
- const p = await se.post(m, null, {
11907
+ const p = await se.get(m, {
11908
11908
  headers: {
11909
- "User-Agent": "Bluestack",
11909
+ "User-Agent": "blu3st@ck-react",
11910
11910
  "x-security-token": c,
11911
11911
  "x-api-token": i,
11912
11912
  "Content-Type": "application/json"
@@ -11923,7 +11923,12 @@ async function r5({
11923
11923
  } catch (p) {
11924
11924
  if (console.error("Error reporting comment:", p), se.isAxiosError(p)) {
11925
11925
  const g = p.response?.status, A = p.response?.data;
11926
- throw g === 400 ? new Error("Datos inválidos para el reporte") : g === 401 ? new Error("Token de API inválido") : g === 403 ? new Error("Acceso denegado para reportar comentario") : g === 404 ? new Error("Comentario no encontrado") : g === 409 ? new Error("El comentario ya fue reportado por este usuario") : g === 500 ? new Error("Error interno del servidor CMS") : new Error(
11926
+ throw g === 400 ? new Error("Datos inválidos para el reporte") : g === 401 ? new Error("Token de API inválido") : g === 403 ? new Error("Acceso denegado para reportar comentario = " + m + " = " + JSON.stringify({
11927
+ "User-Agent": "blu3st@ck-react",
11928
+ "x-security-token": c,
11929
+ "x-api-token": i,
11930
+ "Content-Type": "application/json"
11931
+ })) : g === 404 ? new Error("Comentario no encontrado") : g === 409 ? new Error("El comentario ya fue reportado por este usuario") : g === 500 ? new Error("Error interno del servidor CMS") : new Error(
11927
11932
  A?.error || A?.message || `Error HTTP ${g}: No se pudo reportar el comentario`
11928
11933
  );
11929
11934
  }