@senior-agronegocio/angular-components 0.0.56 → 0.0.57
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/bundles/senior-agronegocio-angular-components.umd.js +5 -4
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/esm2015/common/agro-platform-utils.class.js +6 -5
- package/esm5/common/agro-platform-utils.class.js +6 -5
- package/fesm2015/senior-agronegocio-angular-components.js +5 -4
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +5 -4
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -2256,10 +2256,11 @@
|
|
|
2256
2256
|
*/
|
|
2257
2257
|
AgroPlatformUtils.getCurrentUserName = function () {
|
|
2258
2258
|
var _a;
|
|
2259
|
-
var cookie = AgroCookieUtils.getCookie('com.senior.token');
|
|
2259
|
+
var cookie = AgroCookieUtils.getCookie('com.senior.token', true);
|
|
2260
2260
|
if (cookie) {
|
|
2261
|
-
var str = (_a =
|
|
2261
|
+
var str = (_a = AgroObjectUtils.fromString(cookie)) === null || _a === void 0 ? void 0 : _a.fullName;
|
|
2262
2262
|
if (str) {
|
|
2263
|
+
str = str.replace(/\+/g, ' ');
|
|
2263
2264
|
return str;
|
|
2264
2265
|
}
|
|
2265
2266
|
}
|
|
@@ -2272,9 +2273,9 @@
|
|
|
2272
2273
|
*/
|
|
2273
2274
|
AgroPlatformUtils.getCurrentUserEmail = function () {
|
|
2274
2275
|
var _a;
|
|
2275
|
-
var cookie = AgroCookieUtils.getCookie('com.senior.token');
|
|
2276
|
+
var cookie = AgroCookieUtils.getCookie('com.senior.token', true);
|
|
2276
2277
|
if (cookie) {
|
|
2277
|
-
var str = (_a =
|
|
2278
|
+
var str = (_a = AgroObjectUtils.fromString(cookie)) === null || _a === void 0 ? void 0 : _a.email;
|
|
2278
2279
|
if (str) {
|
|
2279
2280
|
return str;
|
|
2280
2281
|
}
|