@genesislcap/foundation-state-machine 14.225.3 → 14.225.4-alpha-9342136.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/dts/core/binding.d.ts.map +1 -1
  2. package/dist/dts/core/guards.d.ts.map +1 -1
  3. package/dist/dts/machines/fetch/types.d.ts.map +1 -1
  4. package/dist/esm/machines/fetch/machine.js +6 -6
  5. package/dist/foundation-state-machine.api.json +769 -236
  6. package/dist/foundation-state-machine.d.ts +3 -3
  7. package/dist/{dts/tsdoc-metadata.json → tsdoc-metadata.json} +1 -1
  8. package/docs/api/foundation-state-machine.createerrorstatenode.md +14 -1
  9. package/docs/api/foundation-state-machine.createfetchpolicy.md +15 -1
  10. package/docs/api/foundation-state-machine.createresponsedataextractorwithdeserializer.md +13 -1
  11. package/docs/api/foundation-state-machine.errorworkflowinput.md +8 -6
  12. package/docs/api/foundation-state-machine.isaborterror.md +12 -1
  13. package/docs/api/foundation-state-machine.isactorerrorevent.md +13 -1
  14. package/docs/api/foundation-state-machine.isapierror.md +12 -1
  15. package/docs/api/foundation-state-machine.isdoneinvokeevent.md +12 -1
  16. package/docs/api/foundation-state-machine.iserrorcustomevent.md +11 -1
  17. package/docs/api/foundation-state-machine.iserrorevent.md +12 -1
  18. package/docs/api/foundation-state-machine.iserrortype.md +12 -1
  19. package/docs/api/foundation-state-machine.iseventwithparams.md +12 -1
  20. package/docs/api/foundation-state-machine.isgenesisservererror.md +12 -1
  21. package/docs/api/foundation-state-machine.ismappingerror.md +12 -1
  22. package/docs/api/foundation-state-machine.isnetworkerror.md +12 -1
  23. package/docs/api/foundation-state-machine.isnotfounderror.md +12 -1
  24. package/docs/api/foundation-state-machine.issyntaxerror.md +12 -1
  25. package/docs/api/foundation-state-machine.istypeerror.md +12 -1
  26. package/docs/api/foundation-state-machine.isunauthorizederror.md +12 -1
  27. package/docs/api/foundation-state-machine.md +20 -20
  28. package/docs/api/foundation-state-machine.seterrorbykey.md +11 -1
  29. package/docs/{api-report.md → api-report.md.api.md} +3 -3
  30. package/package.json +13 -13
@@ -1 +1 @@
1
- {"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../src/core/binding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,GAAG,IAAI,CACpD,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,eAAe,KAClB,IAAI,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,CAClE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,EAC7D,IAAI,EAAE,eAAe,KAClB,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,WAAW,gBAAgB,CAAC,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;IAC5D,YAAY,EAAE,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CACzD;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,KAAK,GAAG,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,WAAW,2BAA4B,OAAO,EAAE,2BAS5D,CAAC"}
1
+ {"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../src/core/binding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,GAAG,IAAI,CACpD,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,eAAe,KAClB,IAAI,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,GA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class DefaultFetchMachine extends AbstractMachine {
106
106
  },
107
107
  }, {
108
108
  actors: {
109
- fetch: fromPromise(({ input }) => __awaiter(this, void 0, void 0, function* () {
110
- var _a, _b, _c, _d, _e;
109
+ fetch: fromPromise((_a) => __awaiter(this, [_a], void 0, function* ({ input }) {
110
+ var _b, _c, _d, _e, _f;
111
111
  const { controller, fetchConfig, requestInit, url } = input;
112
- const fetcher = (_b = (_a = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.fetcher) !== null && _a !== void 0 ? _a : this.config.fetcher) !== null && _b !== void 0 ? _b : fetch;
113
- const fetchPolicy = (_c = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.fetchPolicy) !== null && _c !== void 0 ? _c : this.config.fetchPolicy;
112
+ const fetcher = (_c = (_b = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.fetcher) !== null && _b !== void 0 ? _b : this.config.fetcher) !== null && _c !== void 0 ? _c : fetch;
113
+ const fetchPolicy = (_d = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.fetchPolicy) !== null && _d !== void 0 ? _d : this.config.fetchPolicy;
114
114
  const init = requestInit !== null && requestInit !== void 0 ? requestInit : { method: 'GET' };
115
- const okChecker = (_d = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.responseOkChecker) !== null && _d !== void 0 ? _d : this.config.responseOkChecker;
116
- const dataExtractor = (_e = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.responseDataExtractor) !== null && _e !== void 0 ? _e : this.config.responseDataExtractor;
115
+ const okChecker = (_e = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.responseOkChecker) !== null && _e !== void 0 ? _e : this.config.responseOkChecker;
116
+ const dataExtractor = (_f = fetchConfig === null || fetchConfig === void 0 ? void 0 : fetchConfig.responseDataExtractor) !== null && _f !== void 0 ? _f : this.config.responseDataExtractor;
117
117
  return fetchPolicy.execute(() => __awaiter(this, void 0, void 0, function* () {
118
118
  try {
119
119
  const response = yield fetcher(url, Object.assign(Object.assign({}, init), { signal: controller.signal }));