ps-toolkit-ui 1.15.8 → 1.15.9
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/ps-toolkit-ui.umd.js +2 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +2 -2
- package/esm2015/lib/classes/login.class.js +2 -3
- package/fesm2015/ps-toolkit-ui.js +2 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -1
- package/lib/classes/login.class.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1329,6 +1329,7 @@
|
|
|
1329
1329
|
return result;
|
|
1330
1330
|
};
|
|
1331
1331
|
HelperClass.setCookie = function (name, value, days) {
|
|
1332
|
+
if (days === void 0) { days = null; }
|
|
1332
1333
|
var expires = '';
|
|
1333
1334
|
if (days) {
|
|
1334
1335
|
var date = new Date();
|
|
@@ -7713,13 +7714,12 @@
|
|
|
7713
7714
|
this.active = 0;
|
|
7714
7715
|
this.onSuccess = null;
|
|
7715
7716
|
this.rules = null;
|
|
7716
|
-
this.expireHours = 30 * 24;
|
|
7717
7717
|
this.type = type;
|
|
7718
7718
|
this.l = l;
|
|
7719
7719
|
}
|
|
7720
7720
|
LoginClass.prototype.setCookie = function (r) {
|
|
7721
7721
|
if (r.Token) {
|
|
7722
|
-
HelperClass.setCookie('Authorization', "Bearer " + r.Token
|
|
7722
|
+
HelperClass.setCookie('Authorization', "Bearer " + r.Token);
|
|
7723
7723
|
}
|
|
7724
7724
|
};
|
|
7725
7725
|
LoginClass.prototype.showModal = function () {
|