sigesp 0.8.97-20220614 → 0.8.98-20220615

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.
@@ -6144,6 +6144,7 @@
6144
6144
  * @author Miguel Ramírez
6145
6145
  */
6146
6146
  SigespService.prototype.onlyNumbers = function (event) {
6147
+ // console.log(event);
6147
6148
  if (!isNaN(+event.key) && event.keyCode != 32) {
6148
6149
  return true;
6149
6150
  }
@@ -7095,13 +7096,16 @@
7095
7096
  return this.http.get(this.URL + "/dao/sss/derechos_usuario_dao.php?idComponent=" + this.currentComponent.id + "&column=" + column, { headers: this.getHttpHeaders() });
7096
7097
  };
7097
7098
  /**
7098
- * @description Retorna los headers para hacer las peticiones
7099
- * @return HttpHeaders
7100
- * @author Miguel Ramírez
7101
- */
7102
- SigespService.prototype.getHttpHeaders = function () {
7099
+ * @description Retorna los headers para hacer las peticiones
7100
+ * @params type: Tipo MIME permitido por defecto se toma application/json
7101
+ * @return HttpHeaders
7102
+ * @author Miguel Ramírez
7103
+ * @date-update: 15-06-2022
7104
+ */
7105
+ SigespService.prototype.getHttpHeaders = function (type) {
7106
+ !type ? type = 'application/json' : '';
7103
7107
  var headers = new i1.HttpHeaders({
7104
- 'Content-Type': 'application/json',
7108
+ 'Content-Type': type,
7105
7109
  'Authorization': "" + this.usuarioActivo.token
7106
7110
  });
7107
7111
  return headers;