@das-fed/utils 7.0.7-hot.54 → 7.0.7-hot.56

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
@@ -1817,6 +1817,7 @@ const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
1817
1817
  await b.post(r);
1818
1818
  } catch {
1819
1819
  }
1820
+ debugger;
1820
1821
  tt(e);
1821
1822
  }, or = async (e = "") => {
1822
1823
  if (!jn()) return;
@@ -1,11 +1,16 @@
1
- let e = null, l = null;
2
- const n = () => e !== null, o = (r) => (e = r, () => {
3
- e === r && (e = null);
4
- }), t = async (r) => e ? (l || (l = Promise.resolve(e(r)).finally(() => {
5
- l = null;
6
- })), l) : null;
1
+ const n = Symbol.for("@das-fed/utils/unauthorized-recovery-state"), o = () => {
2
+ const r = globalThis;
3
+ return r[n] || (r[n] = {
4
+ handler: null,
5
+ promise: null
6
+ }), r[n];
7
+ }, e = o(), l = () => e.handler !== null, t = (r) => (e.handler = r, () => {
8
+ e.handler === r && (e.handler = null);
9
+ }), s = async (r) => e.handler ? (e.promise || (e.promise = Promise.resolve(e.handler(r)).finally(() => {
10
+ e.promise = null;
11
+ })), e.promise) : null;
7
12
  export {
8
- n as hasUnauthorizedRecovery,
9
- t as recoverUnauthorized,
10
- o as registerUnauthorizedRecovery
13
+ l as hasUnauthorizedRecovery,
14
+ s as recoverUnauthorized,
15
+ t as registerUnauthorizedRecovery
11
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "7.0.7-hot.54",
3
+ "version": "7.0.7-hot.56",
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.54",
12
+ "@das-fed/utils": "7.0.7-hot.56",
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.54",
25
- "@das-fed/web": "7.0.7-hot.54",
24
+ "@das-fed/cli": "7.0.7-hot.56",
25
+ "@das-fed/web": "7.0.7-hot.56",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",