@genesislcap/foundation-comms 14.158.2-alpha-9dfdf28.0 → 14.159.0

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,YA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IAItB,YAAY,CAAC,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,15 +20,11 @@ export class AuthError extends Error {
20
20
  this.received = received;
21
21
  Object.setPrototypeOf(this, AuthError.prototype);
22
22
  }
23
+ // Add known edge cases...
23
24
  isIgnorableError() {
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;
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
32
28
  }
33
29
  getMessageError() {
34
30
  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.158.2-alpha-9dfdf28.0",
4
+ "version": "14.159.0",
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.158.2-alpha-9dfdf28.0",
63
- "@genesislcap/genx": "14.158.2-alpha-9dfdf28.0",
64
- "@genesislcap/rollup-builder": "14.158.2-alpha-9dfdf28.0",
65
- "@genesislcap/ts-builder": "14.158.2-alpha-9dfdf28.0",
66
- "@genesislcap/uvu-playwright-builder": "14.158.2-alpha-9dfdf28.0",
67
- "@genesislcap/vite-builder": "14.158.2-alpha-9dfdf28.0",
68
- "@genesislcap/webpack-builder": "14.158.2-alpha-9dfdf28.0",
62
+ "@genesislcap/foundation-testing": "14.159.0",
63
+ "@genesislcap/genx": "14.159.0",
64
+ "@genesislcap/rollup-builder": "14.159.0",
65
+ "@genesislcap/ts-builder": "14.159.0",
66
+ "@genesislcap/uvu-playwright-builder": "14.159.0",
67
+ "@genesislcap/vite-builder": "14.159.0",
68
+ "@genesislcap/webpack-builder": "14.159.0",
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.158.2-alpha-9dfdf28.0",
77
- "@genesislcap/foundation-utils": "14.158.2-alpha-9dfdf28.0",
76
+ "@genesislcap/foundation-logger": "14.159.0",
77
+ "@genesislcap/foundation-utils": "14.159.0",
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": "aed9487d5c829bbd361ee61d327782711bf16e3d"
94
+ "gitHead": "ca4f78e47565e5b813a263c4fe40f52c9be221ca"
95
95
  }