@genesislcap/foundation-state-machine 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 +22 -3
- package/dist/dts/core/errors.d.ts.map +1 -1
- package/dist/esm/core/errors.js +4 -1
- package/package.json +12 -12
package/README.md
CHANGED
@@ -7,8 +7,6 @@ State machines in `foundation-ui` are built upon the [xState](https://github.com
|
|
7
7
|
|
8
8
|
For details on how machines work see the API Docs and the v5+ version of the [xstate docs](https://stately.ai/docs/xstate-v5).
|
9
9
|
|
10
|
-
### [API Docs](./docs/api/index.md)
|
11
|
-
|
12
10
|
### Pre-built state machines
|
13
11
|
|
14
12
|
Overtime this package will provide a number of pre-built machines that offer common functionality. Visit their README files and API Docs for more information.
|
@@ -18,9 +16,30 @@ Overtime this package will provide a number of pre-built machines that offer com
|
|
18
16
|
|
19
17
|
Domain focused machines like `AuthMachine` will live in different packages.
|
20
18
|
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
To enable this module in your application, follow the steps below.
|
23
|
+
|
24
|
+
1. Add `@genesislcap/foundation-state-machine` 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.
|
25
|
+
|
26
|
+
```json
|
27
|
+
{
|
28
|
+
...
|
29
|
+
"dependencies": {
|
30
|
+
...
|
31
|
+
"@genesislcap/foundation-state-machine": "latest"
|
32
|
+
...
|
33
|
+
},
|
34
|
+
...
|
35
|
+
}
|
36
|
+
```
|
37
|
+
|
38
|
+
## [API Docs](./docs/api/index.md)
|
39
|
+
|
21
40
|
## License
|
22
41
|
|
23
|
-
Note: this project provides front
|
42
|
+
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
24
43
|
|
25
44
|
### Licensed components
|
26
45
|
Genesis low-code platform
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAElC,IAAI,CAAC,EAAE,OAAO;IACd,QAAQ,CAAC,EAAE,OAAO;gBADlB,IAAI,CAAC,EAAE,OAAO,EACd,QAAQ,CAAC,EAAE,OAAO,EACzB,OAAO,GAAE,MAAwC;IAOnD;;;;OAIG;IACH,gBAAgB;
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAElC,IAAI,CAAC,EAAE,OAAO;IACd,QAAQ,CAAC,EAAE,OAAO;gBADlB,IAAI,CAAC,EAAE,OAAO,EACd,QAAQ,CAAC,EAAE,OAAO,EACzB,OAAO,GAAE,MAAwC;IAOnD;;;;OAIG;IACH,gBAAgB,IAAI,OAAO;IAc3B,eAAe;IAMf,eAAe,IAAI,MAAM;IAMzB,YAAY,CAAC,IAAI,EAAE,MAAM;IAMzB,OAAO,CAAC,oBAAoB;CAG7B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UAAW,OAAO,gCACd,CAAC;AAEtC;;;GAGG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAE5B,GAAG,CAAC,EAAE,OAAO;gBAAb,GAAG,CAAC,EAAE,OAAO,EACpB,OAAO,GAAE,MAAiC;CAM7C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,UAAW,OAAO,0BACd,CAAC"}
|
package/dist/esm/core/errors.js
CHANGED
@@ -18,10 +18,13 @@ export class GenesisServerError extends Error {
|
|
18
18
|
* This is ugly, lets figure out if this is still an issue and remove if not.
|
19
19
|
*/
|
20
20
|
isIgnorableError() {
|
21
|
-
var _a, _b, _c, _d;
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
22
22
|
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')) {
|
23
23
|
return true;
|
24
24
|
}
|
25
|
+
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')) {
|
26
|
+
return true;
|
27
|
+
}
|
25
28
|
return false;
|
26
29
|
}
|
27
30
|
getMessageError() {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-state-machine",
|
3
3
|
"description": "Genesis Foundation State Machine",
|
4
|
-
"version": "14.
|
4
|
+
"version": "14.161.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -44,19 +44,19 @@
|
|
44
44
|
"test": "genx test"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
-
"@genesislcap/foundation-testing": "14.
|
48
|
-
"@genesislcap/genx": "14.
|
49
|
-
"@genesislcap/rollup-builder": "14.
|
50
|
-
"@genesislcap/ts-builder": "14.
|
51
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
52
|
-
"@genesislcap/vite-builder": "14.
|
53
|
-
"@genesislcap/webpack-builder": "14.
|
47
|
+
"@genesislcap/foundation-testing": "14.161.0",
|
48
|
+
"@genesislcap/genx": "14.161.0",
|
49
|
+
"@genesislcap/rollup-builder": "14.161.0",
|
50
|
+
"@genesislcap/ts-builder": "14.161.0",
|
51
|
+
"@genesislcap/uvu-playwright-builder": "14.161.0",
|
52
|
+
"@genesislcap/vite-builder": "14.161.0",
|
53
|
+
"@genesislcap/webpack-builder": "14.161.0",
|
54
54
|
"rimraf": "^3.0.2"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@genesislcap/foundation-comms": "14.
|
58
|
-
"@genesislcap/foundation-logger": "14.
|
59
|
-
"@genesislcap/foundation-utils": "14.
|
57
|
+
"@genesislcap/foundation-comms": "14.161.0",
|
58
|
+
"@genesislcap/foundation-logger": "14.161.0",
|
59
|
+
"@genesislcap/foundation-utils": "14.161.0",
|
60
60
|
"@microsoft/fast-element": "^1.12.0",
|
61
61
|
"@microsoft/fast-foundation": "^2.49.4",
|
62
62
|
"cockatiel": "^3.1.1",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"publishConfig": {
|
73
73
|
"access": "public"
|
74
74
|
},
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "75ef6861f287624c5efcee0f3ca24d1c167102d3"
|
76
76
|
}
|