utn-cli 2.0.64 → 2.0.66
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
|
@@ -56,7 +56,7 @@ app.use((solicitud, respuesta, next) => {
|
|
|
56
56
|
});
|
|
57
57
|
app.use(cors({
|
|
58
58
|
credentials: true,
|
|
59
|
-
origin: [/localhost(:\d+)?$/, /\.
|
|
59
|
+
origin: [/localhost(:\d+)?$/, /\.sigu\.utn\.ac\.cr.*$/]
|
|
60
60
|
}));
|
|
61
61
|
|
|
62
62
|
// Esta función se debe llamar cada vez que inicia el backend
|
|
@@ -11,13 +11,13 @@ class API {
|
|
|
11
11
|
// let URL = undefined;
|
|
12
12
|
// switch (process.env.ENV) {
|
|
13
13
|
// case 'desarrollo':
|
|
14
|
-
// URL = 'http://dgdh-oferentes-backend-desarrollo.
|
|
14
|
+
// URL = 'http://dgdh-oferentes-backend-desarrollo.svc.cluster.local';
|
|
15
15
|
// break;
|
|
16
16
|
// case 'calidad':
|
|
17
|
-
// URL = 'http://dgdh-oferentes-backend-calidad.
|
|
17
|
+
// URL = 'http://dgdh-oferentes-backend-calidad.svc.cluster.local';
|
|
18
18
|
// break;
|
|
19
19
|
// case 'pruebas':
|
|
20
|
-
// URL = 'http://dgdh-oferentes-backend-pruebas.
|
|
20
|
+
// URL = 'http://dgdh-oferentes-backend-pruebas.svc.cluster.local';
|
|
21
21
|
// break;
|
|
22
22
|
// case 'production':
|
|
23
23
|
// URL = 'https://dgdh-oferentes-backend.sigu.utn.ac.cr';
|
|
@@ -37,13 +37,13 @@ class API {
|
|
|
37
37
|
// let URL = undefined;
|
|
38
38
|
// switch (process.env.ENV) {
|
|
39
39
|
// case 'desarrollo':
|
|
40
|
-
// URL = 'http://dru-matri-s-backend-desarrollo.
|
|
40
|
+
// URL = 'http://dru-matri-s-backend-desarrollo.svc.cluster.local';
|
|
41
41
|
// break;
|
|
42
42
|
// case 'calidad':
|
|
43
|
-
// URL = 'http://dru-matri-s-backend-calidad.
|
|
43
|
+
// URL = 'http://dru-matri-s-backend-calidad.svc.cluster.local';
|
|
44
44
|
// break;
|
|
45
45
|
// case 'pruebas':
|
|
46
|
-
// URL = 'http://dru-matri-s-backend-pruebas.
|
|
46
|
+
// URL = 'http://dru-matri-s-backend-pruebas.svc.cluster.local';
|
|
47
47
|
// break;
|
|
48
48
|
// case 'production':
|
|
49
49
|
// URL = 'https://dru-matri-s-backend.sigu.utn.ac.cr';
|
|
@@ -59,13 +59,13 @@ class API {
|
|
|
59
59
|
// let URL = undefined;
|
|
60
60
|
// switch (process.env.ENV) {
|
|
61
61
|
// case 'desarrollo':
|
|
62
|
-
// URL = 'http://vdoc-trabajoacademico-p-backend-desarrollo.
|
|
62
|
+
// URL = 'http://vdoc-trabajoacademico-p-backend-desarrollo.svc.cluster.local';
|
|
63
63
|
// break;
|
|
64
64
|
// case 'calidad':
|
|
65
|
-
// URL = 'http://vdoc-trabajoacademico-p-backend-calidad.
|
|
65
|
+
// URL = 'http://vdoc-trabajoacademico-p-backend-calidad.svc.cluster.local';
|
|
66
66
|
// break;
|
|
67
67
|
// case 'pruebas':
|
|
68
|
-
// URL = 'http://vdoc-trabajoacademico-p-backend-pruebas.
|
|
68
|
+
// URL = 'http://vdoc-trabajoacademico-p-backend-pruebas.svc.cluster.local';
|
|
69
69
|
// break;
|
|
70
70
|
// case 'production':
|
|
71
71
|
// URL = 'https://vdoc-trabajoacademico-p-backend.sigu.utn.ac.cr';
|
|
@@ -84,13 +84,13 @@ class API {
|
|
|
84
84
|
// let URL = undefined;
|
|
85
85
|
// switch (process.env.ENV) {
|
|
86
86
|
// case 'desarrollo':
|
|
87
|
-
// URL = 'http://dgdh-djur-s-backend-desarrollo.
|
|
87
|
+
// URL = 'http://dgdh-djur-s-backend-desarrollo.svc.cluster.local';
|
|
88
88
|
// break;
|
|
89
89
|
// case 'calidad':
|
|
90
|
-
// URL = 'http://dgdh-djur-s-backend-calidad.
|
|
90
|
+
// URL = 'http://dgdh-djur-s-backend-calidad.svc.cluster.local';
|
|
91
91
|
// break;
|
|
92
92
|
// case 'pruebas':
|
|
93
|
-
// URL = 'http://dgdh-djur-s-backend-pruebas.
|
|
93
|
+
// URL = 'http://dgdh-djur-s-backend-pruebas.svc.cluster.local';
|
|
94
94
|
// break;
|
|
95
95
|
// case 'production':
|
|
96
96
|
// URL = 'https://dgdh-djur-s-backend.sigu.utn.ac.cr';
|
|
@@ -106,13 +106,13 @@ class API {
|
|
|
106
106
|
// let URL = undefined;
|
|
107
107
|
// switch (process.env.ENV) {
|
|
108
108
|
// case 'desarrollo':
|
|
109
|
-
// URL = 'http://dgdh-djur-s-backend-desarrollo.
|
|
109
|
+
// URL = 'http://dgdh-djur-s-backend-desarrollo.svc.cluster.local';
|
|
110
110
|
// break;
|
|
111
111
|
// case 'calidad':
|
|
112
|
-
// URL = 'http://dgdh-djur-s-backend-calidad.
|
|
112
|
+
// URL = 'http://dgdh-djur-s-backend-calidad.svc.cluster.local';
|
|
113
113
|
// break;
|
|
114
114
|
// case 'pruebas':
|
|
115
|
-
// URL = 'http://dgdh-djur-s-backend-pruebas.
|
|
115
|
+
// URL = 'http://dgdh-djur-s-backend-pruebas.svc.cluster.local';
|
|
116
116
|
// break;
|
|
117
117
|
// case 'production':
|
|
118
118
|
// URL = 'https://dgdh-djur-s-backend.sigu.utn.ac.cr';
|
|
@@ -77,7 +77,7 @@ class Miscelaneo {
|
|
|
77
77
|
WHERE v_user_id = ?
|
|
78
78
|
AND v_original_url NOT IN (?)
|
|
79
79
|
ORDER BY Consecutivo DESC
|
|
80
|
-
LIMIT
|
|
80
|
+
LIMIT 20
|
|
81
81
|
`, [decoded.uid, RUTAS_EXCLUIDAS]);
|
|
82
82
|
return datos;
|
|
83
83
|
} catch (error) {
|
|
@@ -812,7 +812,7 @@ class Miscelaneo {
|
|
|
812
812
|
LastUser,
|
|
813
813
|
LastUser
|
|
814
814
|
]);
|
|
815
|
-
return { Token, Dominio: ((process.env.ENV || 'local') === 'production' ? '.sigu.utn.ac.cr' : '.
|
|
815
|
+
return { Token, Dominio: ((process.env.ENV || 'local') === 'production' ? '.sigu.utn.ac.cr' : '.svc.cluster.local') };
|
|
816
816
|
|
|
817
817
|
} else {
|
|
818
818
|
console.log("La clave brindada para el usuario", Solicitud.body.Identificacion, "no conincide");
|
|
@@ -1830,7 +1830,6 @@ class Miscelaneo {
|
|
|
1830
1830
|
Opciones.body = JSON.stringify(Cuerpo);
|
|
1831
1831
|
}
|
|
1832
1832
|
const ListaDeDominiosPermitidos = [
|
|
1833
|
-
"181.193.85.44.nip.io",
|
|
1834
1833
|
"sigu.utn.ac.cr",
|
|
1835
1834
|
"localhost",
|
|
1836
1835
|
"svc.cluster.local"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<div class="mensaje-informativo">
|
|
7
7
|
<mat-icon>info</mat-icon>
|
|
8
|
-
<p>Si tiene dudas sobre la información que ve en pantalla, por favor comparta una captura de pantalla al correo <strong>soporte
|
|
8
|
+
<p>Si tiene dudas sobre la información que ve en pantalla, por favor comparta una captura de pantalla al correo <strong>soporte@utn.ac.cr</strong>.</p>
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
11
|
|