@genesislcap/foundation-comms 14.160.0 → 14.160.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../src/auth/auth.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;GAGG;AACH,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,eAAe,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,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C,IAAI,EAAE,MAAM,GAAG,OAAO;IAMnC,OAAO,CAAC,oBAAoB;CAG7B"}
@@ -99,7 +99,7 @@ let DefaultAuth = class DefaultAuth {
99
99
  logoutResult = {
100
100
  success: MESSAGE_TYPE === MessageType.LOGOUT_ACK ||
101
101
  CODE === MessageCode.SESSION_NOT_FOUND ||
102
- unexpectedLogoutNack,
102
+ !unexpectedLogoutNack,
103
103
  error,
104
104
  };
105
105
  // redirect to OIDC provider logout page if provided
@@ -20,11 +20,15 @@ export class AuthError extends Error {
20
20
  this.received = received;
21
21
  Object.setPrototypeOf(this, AuthError.prototype);
22
22
  }
23
- // Add known edge cases...
24
23
  isIgnorableError() {
25
- var _a, _b, _c, _d;
26
- // TODO: This is really ugly, lets figure out if this is still an issue and remove if not
27
- return (_d = (_c = (_b = (_a = this.received) === null || _a === void 0 ? void 0 : _a.DETAILS) === null || _b === void 0 ? void 0 : _b.ERROR) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === null || _d === void 0 ? void 0 : _d.includes('request needs the user to be logged'); // out or in
24
+ var _a, _b, _c, _d, _e, _f, _g, _h;
25
+ if ((_d = (_c = (_b = (_a = this.received) === null || _a === void 0 ? void 0 : _a.DETAILS) === null || _b === void 0 ? void 0 : _b.ERROR) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === null || _d === void 0 ? void 0 : _d.includes('request needs the user to be logged')) {
26
+ return true;
27
+ }
28
+ if ((_h = (_g = (_f = (_e = this.received) === null || _e === void 0 ? void 0 : _e.DETAILS) === null || _f === void 0 ? void 0 : _f.ERROR) === null || _g === void 0 ? void 0 : _g.toLowerCase()) === null || _h === void 0 ? void 0 : _h.includes('is not logged in')) {
29
+ return true;
30
+ }
31
+ return false;
28
32
  }
29
33
  getMessageError() {
30
34
  var _a, _b;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-comms",
3
3
  "description": "Genesis Foundation UI Comms",
4
- "version": "14.160.0",
4
+ "version": "14.160.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -59,13 +59,13 @@
59
59
  "test:debug": "genx test --debug"
60
60
  },
61
61
  "devDependencies": {
62
- "@genesislcap/foundation-testing": "14.160.0",
63
- "@genesislcap/genx": "14.160.0",
64
- "@genesislcap/rollup-builder": "14.160.0",
65
- "@genesislcap/ts-builder": "14.160.0",
66
- "@genesislcap/uvu-playwright-builder": "14.160.0",
67
- "@genesislcap/vite-builder": "14.160.0",
68
- "@genesislcap/webpack-builder": "14.160.0",
62
+ "@genesislcap/foundation-testing": "14.160.1",
63
+ "@genesislcap/genx": "14.160.1",
64
+ "@genesislcap/rollup-builder": "14.160.1",
65
+ "@genesislcap/ts-builder": "14.160.1",
66
+ "@genesislcap/uvu-playwright-builder": "14.160.1",
67
+ "@genesislcap/vite-builder": "14.160.1",
68
+ "@genesislcap/webpack-builder": "14.160.1",
69
69
  "@types/js-cookie": "^3.0.2",
70
70
  "@types/json-schema": "^7.0.11",
71
71
  "@types/webappsec-credential-management": "^0.6.2",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@finos/fdc3": "^1.2.0",
76
- "@genesislcap/foundation-logger": "14.160.0",
77
- "@genesislcap/foundation-utils": "14.160.0",
76
+ "@genesislcap/foundation-logger": "14.160.1",
77
+ "@genesislcap/foundation-utils": "14.160.1",
78
78
  "@microsoft/fast-element": "^1.12.0",
79
79
  "@microsoft/fast-foundation": "^2.49.4",
80
80
  "analytics": "^0.8.0",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "f8c85f5e0a1928e51aacd7403607bd2e7457f510"
94
+ "gitHead": "598e3599570a21709dfdc8e47adf5c77e5feff80"
95
95
  }