@das-fed/utils 7.0.7-hot.49 → 7.0.7-hot.50

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.
Binary file
@@ -1694,22 +1694,22 @@ b.getAdapter = Qe.getAdapter;
1694
1694
  b.HttpStatusCode = le;
1695
1695
  b.default = b;
1696
1696
  const {
1697
- Axios: $n,
1698
- AxiosError: vn,
1699
- CanceledError: Jn,
1700
- isCancel: Vn,
1701
- CancelToken: Wn,
1702
- VERSION: Kn,
1703
- all: Xn,
1704
- Cancel: Gn,
1705
- isAxiosError: Qn,
1706
- spread: Zn,
1707
- toFormData: Yn,
1708
- AxiosHeaders: er,
1709
- HttpStatusCode: tr,
1710
- formToJSON: nr,
1711
- getAdapter: rr,
1712
- mergeConfig: sr
1697
+ Axios: zn,
1698
+ AxiosError: $n,
1699
+ CanceledError: vn,
1700
+ isCancel: Jn,
1701
+ CancelToken: Vn,
1702
+ VERSION: Wn,
1703
+ all: Kn,
1704
+ Cancel: Xn,
1705
+ isAxiosError: Gn,
1706
+ spread: Qn,
1707
+ toFormData: Zn,
1708
+ AxiosHeaders: Yn,
1709
+ HttpStatusCode: er,
1710
+ formToJSON: tr,
1711
+ getAdapter: nr,
1712
+ mergeConfig: rr
1713
1713
  } = b;
1714
1714
  /*! js-cookie v3.0.5 | MIT */
1715
1715
  function v(e) {
@@ -1784,15 +1784,15 @@ function fe(e, t) {
1784
1784
  var Pe = fe(kn, { path: "/" });
1785
1785
  const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
1786
1786
  uat: "https://sso-uat.jmc.com.cn"
1787
- }, jn = () => {
1788
- const e = localStorage.getItem("thirdLogouSource"), t = localStorage.getItem("loginType");
1789
- return e === "jmc" && t === "das" ? !1 : e === "zhongshen" || e === "jmc";
1787
+ }, sr = () => {
1788
+ const e = localStorage.getItem("thirdLogouSource");
1789
+ return e === "zhongshen" || e === "jmc";
1790
1790
  }, tt = (e) => {
1791
1791
  localStorage.removeItem("thirdLogouSource"), location.href = e;
1792
- }, In = (e) => {
1792
+ }, jn = (e) => {
1793
1793
  const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
1794
1794
  tt(n);
1795
- }, qn = async () => {
1795
+ }, In = async () => {
1796
1796
  let e = "";
1797
1797
  try {
1798
1798
  const { baseURL: s } = nt();
@@ -1819,17 +1819,16 @@ const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
1819
1819
  }
1820
1820
  tt(e);
1821
1821
  }, or = async (e) => {
1822
- if (!jn()) return;
1823
1822
  const t = localStorage.getItem("thirdLogouSource");
1824
1823
  if (t === "zhongshen") {
1825
- In(e);
1824
+ jn(e);
1826
1825
  return;
1827
1826
  }
1828
- t === "jmc" && await qn();
1827
+ t === "jmc" && await In();
1829
1828
  };
1830
1829
  export {
1831
- jn as isThirdLogin,
1832
- qn as jmcLogout,
1830
+ sr as isThirdLogin,
1831
+ In as jmcLogout,
1833
1832
  or as thirdLogout,
1834
- In as zhongshenLogout
1833
+ jn as zhongshenLogout
1835
1834
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "7.0.7-hot.49",
3
+ "version": "7.0.7-hot.50",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,7 +9,7 @@
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
11
  "@antv/x6": "^2.18.1",
12
- "@das-fed/utils": "7.0.7-hot.49",
12
+ "@das-fed/utils": "7.0.7-hot.50",
13
13
  "@vue/shared": "^3.4.21",
14
14
  "@vueuse/core": "^9.6.0",
15
15
  "axios": "^1.6.7",
@@ -21,8 +21,8 @@
21
21
  "vue": "^3.4.21"
22
22
  },
23
23
  "devDependencies": {
24
- "@das-fed/cli": "7.0.7-hot.49",
25
- "@das-fed/web": "7.0.7-hot.49",
24
+ "@das-fed/cli": "7.0.7-hot.50",
25
+ "@das-fed/web": "7.0.7-hot.50",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",