@genesislcap/foundation-comms 14.160.0 → 14.161.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -5,7 +5,25 @@
5
5
 
6
6
  `foundation-comms` provides a collection of comms services and utilities. See the API docs linked below for more information.
7
7
 
8
- ### [API Docs](./docs/api/index.md)
8
+ ## Installation
9
+
10
+ To enable this module in your application, follow the steps below.
11
+
12
+ 1. Add `@genesislcap/foundation-comms` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
13
+
14
+ ```json
15
+ {
16
+ ...
17
+ "dependencies": {
18
+ ...
19
+ "@genesislcap/foundation-comms": "latest"
20
+ ...
21
+ },
22
+ ...
23
+ }
24
+ ```
25
+
26
+ ## [API Docs](./docs/api/index.md)
9
27
 
10
28
  ## License
11
29
 
@@ -13,4 +31,3 @@ Note: this project provides front-end dependencies and uses licensed components
13
31
 
14
32
  ### Licensed components
15
33
  Genesis low-code platform
16
-
@@ -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;C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IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAEzB,IAAI,EAAE,OAAO;IACb,QAAQ,CAAC,EAAE,OAAO;gBADlB,IAAI,EAAE,OAAO,EACb,QAAQ,CAAC,EAAE,OAAO,EACzB,OAAO,GAAE,MAAyB;IAMpC,gBAAgB,IAAI,OAAO;IAc3B,eAAe,IAAI,MAAM;IAMzB,eAAe,IAAI,MAAM;IAMzB,uBAAuB,IAAI,OAAO;IAIlC,WAAW,IAAI,OAAO;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,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.161.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.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.161.0",
63
+ "@genesislcap/genx": "14.161.0",
64
+ "@genesislcap/rollup-builder": "14.161.0",
65
+ "@genesislcap/ts-builder": "14.161.0",
66
+ "@genesislcap/uvu-playwright-builder": "14.161.0",
67
+ "@genesislcap/vite-builder": "14.161.0",
68
+ "@genesislcap/webpack-builder": "14.161.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.160.0",
77
- "@genesislcap/foundation-utils": "14.160.0",
76
+ "@genesislcap/foundation-logger": "14.161.0",
77
+ "@genesislcap/foundation-utils": "14.161.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": "f8c85f5e0a1928e51aacd7403607bd2e7457f510"
94
+ "gitHead": "75ef6861f287624c5efcee0f3ca24d1c167102d3"
95
95
  }