ecinc-cloud-wappaio 9.0.27 → 9.0.28

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.
@@ -215307,10 +215307,13 @@ var js_cookie = __webpack_require__("a78e");
215307
215307
  var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
215308
215308
 
215309
215309
  // CONCATENATED MODULE: ./packages/common/auth/index.js
215310
+ function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
215310
215311
 
215311
215312
  var port = '-' + location.port;
215312
215313
  if (sessionStorage.getItem('productCode')) {
215313
215314
  port = '-' + sessionStorage.getItem('productCode');
215315
+ } else if (location.href.indexOf("productCode=") !== -1) {
215316
+ port = '-' + location.href.split("productCode=")[1].split("&")[0];
215314
215317
  }
215315
215318
  var TokenKey = (window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN') + port;
215316
215319
  var RoleKey = 'ECWEB-ROLE-CODE-LIST' + port;
@@ -215337,7 +215340,11 @@ var auth_install = function install(Vue) {
215337
215340
  return sessionStorage.removeItem('productCode');
215338
215341
  },
215339
215342
  getTicket: function getTicket() {
215340
- var ticket = js_cookie_default.a.get((window.ecwebTicket || 'ecweb-ticket') + port);
215343
+ var tname = (window.ecwebTicket || 'ecweb-ticket') + port;
215344
+ var ticket = js_cookie_default.a.get(tname);
215345
+ if (!ticket && location.href.indexOf(tname + '=') !== -1) {
215346
+ location.href.split(tname + '=')[1].split("&")[0], _readOnlyError("ticket");
215347
+ }
215341
215348
  return ticket === 'undefined' ? null : ticket;
215342
215349
  },
215343
215350
  setTicket: function setTicket(ticket) {
@@ -215316,10 +215316,13 @@ var js_cookie = __webpack_require__("a78e");
215316
215316
  var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
215317
215317
 
215318
215318
  // CONCATENATED MODULE: ./packages/common/auth/index.js
215319
+ function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
215319
215320
 
215320
215321
  var port = '-' + location.port;
215321
215322
  if (sessionStorage.getItem('productCode')) {
215322
215323
  port = '-' + sessionStorage.getItem('productCode');
215324
+ } else if (location.href.indexOf("productCode=") !== -1) {
215325
+ port = '-' + location.href.split("productCode=")[1].split("&")[0];
215323
215326
  }
215324
215327
  var TokenKey = (window.jwtTokenKey || 'ECWEB-JWTSSO-TOKEN') + port;
215325
215328
  var RoleKey = 'ECWEB-ROLE-CODE-LIST' + port;
@@ -215346,7 +215349,11 @@ var auth_install = function install(Vue) {
215346
215349
  return sessionStorage.removeItem('productCode');
215347
215350
  },
215348
215351
  getTicket: function getTicket() {
215349
- var ticket = js_cookie_default.a.get((window.ecwebTicket || 'ecweb-ticket') + port);
215352
+ var tname = (window.ecwebTicket || 'ecweb-ticket') + port;
215353
+ var ticket = js_cookie_default.a.get(tname);
215354
+ if (!ticket && location.href.indexOf(tname + '=') !== -1) {
215355
+ location.href.split(tname + '=')[1].split("&")[0], _readOnlyError("ticket");
215356
+ }
215350
215357
  return ticket === 'undefined' ? null : ticket;
215351
215358
  },
215352
215359
  setTicket: function setTicket(ticket) {