@effect-app/infra 0.50.0 → 0.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.50.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Cleanup error report
8
+
3
9
  ## 0.50.0
4
10
 
5
11
  ### Minor Changes
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.RequestException = void 0;
7
7
  exports.forkDaemonReportRequest = forkDaemonReportRequest;
8
8
  exports.forkDaemonReportRequestUnexpected = forkDaemonReportRequestUnexpected;
9
- exports.reportRequestError_ = exports.reportRequestError = exports.logRequestError_ = exports.logRequestError = void 0;
9
+ exports.reportRequestError = exports.logRequestError = void 0;
10
10
  var tsplus_module_1 = _interopRequireWildcard(require("@effect/io/Effect"));
11
11
  var tsplus_module_2 = _interopRequireWildcard(require("@effect/data/Debug"));
12
12
  var tsplus_module_3 = _interopRequireWildcard(require("@effect/io/Cause"));
13
13
  var _errorReporter = require("../errorReporter.cjs");
14
14
  var _errors = require("../errors.cjs");
15
- var _RequestContextContainer = require("../services/RequestContextContainer.cjs");
16
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
17
  class RequestException extends _errors.CauseException {
@@ -21,19 +20,9 @@ class RequestException extends _errors.CauseException {
21
20
  }
22
21
  }
23
22
  exports.RequestException = RequestException;
24
- const reportRequestError_ = (0, _errorReporter.reportError)(cause => new RequestException(cause));
25
- exports.reportRequestError_ = reportRequestError_;
26
- const reportRequestError = (cause, context) => tsplus_module_2.untraced(() => tsplus_module_1.flatMap(_RequestContextContainer.RequestContextContainer.get, requestContext => reportRequestError_(cause, {
27
- requestContext,
28
- ...context
29
- })));
23
+ const reportRequestError = (0, _errorReporter.reportError)(cause => new RequestException(cause));
30
24
  exports.reportRequestError = reportRequestError;
31
- const logRequestError_ = (0, _errorReporter.logError)(cause => new RequestException(cause));
32
- exports.logRequestError_ = logRequestError_;
33
- const logRequestError = (cause, context) => tsplus_module_2.untraced(() => tsplus_module_1.flatMap(_RequestContextContainer.RequestContextContainer.get, requestContext => logRequestError_(cause, {
34
- requestContext,
35
- ...context
36
- })));
25
+ const logRequestError = (0, _errorReporter.logError)(cause => new RequestException(cause));
37
26
  /**
38
27
  * Forks the effect into a new fiber attached to the global scope. Because the
39
28
  * new fiber is attached to the global scope, when the fiber executing the
@@ -1 +1 @@
1
- {"version":3,"file":"reportError.cjs","names":["_errorReporter","require","_errors","_RequestContextContainer","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RequestException","CauseException","constructor","cause","exports","reportRequestError_","reportError","reportRequestError","context","tsplus_module_2","untraced","tsplus_module_1","flatMap","RequestContextContainer","requestContext","logRequestError_","logError","logRequestError","forkDaemonReportRequest","self","daemonChildren","fork","tapErrorCause","forkDaemonReportRequestUnexpected","tsplus_module_3","isInterruptedOnly","isDie"],"sources":["../../_src/api/reportError.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAAgF,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAC,GAAA,EAAAL,WAAA,SAAAA,WAAA,IAAAK,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAA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eAAA,CAAAU,IAAA,CACzBV,eAAA,CAAAW,aAAA,CAAAH,IAAI,EACaZ,kBAAkB,CAAC,EAEnB,CAClB;AACH;AAEA;;;;;;;;;AASM,SAAUgB,iCAAiCA,CAAUJ,IAAqB;EAC9E,OAAOV,eAAA,CAAAC,QAAA,CAAe,MAAKC,eAAA,CAAAS,cAAA,CAAAT,eAAA,CAAAU,IAAA,CACzBV,eAAA,CAAAW,aAAA,CAAAH,IAAI,EACchB,KAAK,IACnBqB,eAAA,CAAAC,iBAAA,CAAAtB,KAAK,CAAoB,IAAIqB,eAAA,CAAAE,KAAA,CAAAvB,KAAK,CAAQ,GACtCI,kBAAkB,CAACJ,KAAK,CAAC,GACzBc,eAAe,CAACd,KAAK,CAAC,CAC3B,EAEc,CAClB;AACH"}
1
+ {"version":3,"file":"reportError.cjs","names":["_errorReporter","require","_errors","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RequestException","CauseException","constructor","cause","exports","reportRequestError","reportError","logRequestError","logError","forkDaemonReportRequest","self","tsplus_module_2","untraced","tsplus_module_1","daemonChildren","fork","tapErrorCause","forkDaemonReportRequestUnexpected","tsplus_module_3","isInterruptedOnly","isDie"],"sources":["../../_src/api/reportError.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAA6C,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAC,GAAA,EAAAL,WAAA,SAAAA,WAAA,IAAAK,G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;AAE/E;;;;;;;;;AAAAC,OAAA,CAAAG,eAAA,GAAAA,eAAA;AASM,SAAUE,uBAAuBA,CAAUC,IAAqB;EACpE,OAAOC,eAAA,CAAAC,QAAA,CAAe,MAAKC,eAAA,CAAAC,cAAA,CAAAD,eAAA,CAAAE,IAAA,CACzBF,eAAA,CAAAG,aAAA,CAAAN,IAAI,EACaL,kBAAkB,CAAC,EAEnB,CAClB;AACH;AAEA;;;;;;;;;AASM,SAAUY,iCAAiCA,CAAUP,IAAqB;EAC9E,OAAOC,eAAA,CAAAC,QAAA,CAAe,MAAKC,eAAA,CAAAC,cAAA,CAAAD,eAAA,CAAAE,IAAA,CACzBF,eAAA,CAAAG,aAAA,CAAAN,IAAI,EACcP,KAAK,IACnBe,eAAA,CAAAC,iBAAA,CAAAhB,KAAK,CAAoB,IAAIe,eAAA,CAAAE,KAAA,CAAAjB,KAAK,CAAQ,GACtCE,kBAAkB,CAACF,KAAK,CAAC,GACzBI,eAAe,CAACJ,KAAK,CAAC,CAC3B,EAEc,CAClB;AACH"}
@@ -9,13 +9,11 @@ exports.reportFatalQueueError = void 0;
9
9
  exports.reportNonInterruptedFailure = reportNonInterruptedFailure;
10
10
  exports.reportNonInterruptedFailureCause = reportNonInterruptedFailureCause;
11
11
  exports.reportQueueError = void 0;
12
- var tsplus_module_1 = _interopRequireWildcard(require("@effect-app/core/Option"));
13
- var tsplus_module_2 = _interopRequireWildcard(require("@effect/io/Effect"));
14
- var tsplus_module_3 = _interopRequireWildcard(require("@effect/io/Exit"));
15
- var tsplus_module_4 = _interopRequireWildcard(require("@effect/io/Cause"));
12
+ var tsplus_module_1 = _interopRequireWildcard(require("@effect/io/Effect"));
13
+ var tsplus_module_2 = _interopRequireWildcard(require("@effect/io/Exit"));
14
+ var tsplus_module_3 = _interopRequireWildcard(require("@effect/io/Cause"));
16
15
  var _errorReporter = require("@effect-app/infra/errorReporter");
17
16
  var _errors = require("@effect-app/infra/errors");
18
- var _RequestContextContainer = require("../RequestContextContainer.cjs");
19
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
19
  class MessageException extends _errors.CauseException {
@@ -31,10 +29,7 @@ class FatalQueueException extends _errors.CauseException {
31
29
  }
32
30
  exports.FatalQueueException = FatalQueueException;
33
31
  const reportQueueError_ = (0, _errorReporter.reportError)(cause => new MessageException(cause));
34
- const reportQueueError = (cause, context) => tsplus_module_2.flatMap(_RequestContextContainer.RequestContextContainer.getOption, requestContext => reportQueueError_(cause, {
35
- requestContext: tsplus_module_1.getOrUndefined(requestContext),
36
- ...context
37
- }));
32
+ const reportQueueError = (cause, extras) => reportQueueError_(cause, extras);
38
33
  /**
39
34
  * Forks the effect into a new fiber attached to the global scope. Because the
40
35
  * new fiber is attached to the global scope, when the fiber executing the
@@ -46,18 +41,18 @@ const reportQueueError = (cause, context) => tsplus_module_2.flatMap(_RequestCon
46
41
  */
47
42
  exports.reportQueueError = reportQueueError;
48
43
  function forkDaemonReportQueue(self) {
49
- return tsplus_module_2.daemonChildren(tsplus_module_2.fork(tsplus_module_2.tapErrorCause(self, reportNonInterruptedFailureCause({}))));
44
+ return tsplus_module_1.daemonChildren(tsplus_module_1.fork(tsplus_module_1.tapErrorCause(self, reportNonInterruptedFailureCause({}))));
50
45
  }
51
46
  const reportFatalQueueError = (0, _errorReporter.reportError)(cause => new FatalQueueException(cause));
52
47
  exports.reportFatalQueueError = reportFatalQueueError;
53
48
  function reportNonInterruptedFailure(context) {
54
49
  const report = reportNonInterruptedFailureCause(context);
55
- return inp => tsplus_module_2.flatMap(tsplus_module_2.exit(inp), result => tsplus_module_3.match(result, cause => tsplus_module_2.map(report(cause), () => result), () => tsplus_module_2.sync(() => result)));
50
+ return inp => tsplus_module_1.flatMap(tsplus_module_1.exit(inp), result => tsplus_module_2.match(result, cause => tsplus_module_1.map(report(cause), () => result), () => tsplus_module_1.sync(() => result)));
56
51
  }
57
52
  function reportNonInterruptedFailureCause(context) {
58
53
  return cause => {
59
- if (tsplus_module_4.isInterrupted(cause)) {
60
- return tsplus_module_2.failCause(cause);
54
+ if (tsplus_module_3.isInterrupted(cause)) {
55
+ return tsplus_module_1.failCause(cause);
61
56
  }
62
57
  return reportQueueError(cause, context);
63
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"errors.cjs","names":["_errorReporter","require","_errors","_RequestContextContainer","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","MessageException","CauseException","constructor","cause","exports","FatalQueueException","reportQueueError_","reportError","reportQueueError","context","tsplus_module_2","flatMap","RequestContextContainer","getOption","requestContext","tsplus_module_1","getOrUndefined","forkDaemonReportQueue","self","daemonChildren","fork","tapErrorCause","reportNonInterruptedFailureCause","reportFatalQueueError","reportNonInterruptedFailure","report","inp","exit","result","tsplus_module_3","match","map","sync","tsplus_module_4","isInterrupted","failCause"],"sources":["../../../_src/services/QueueMaker/errors.ts"],"sourcesCont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eAAA,CAAAC,KAAA,CAAAF,MAAM,EACHzB,KAAK,IAAKO,eAAA,CAAAqB,GAAA,CAAAN,MAAM,CAACtB,KAAK,CAAC,EAAK,MAAMyB,MAAM,CAAC,EAC1C,MAAMlB,eAAA,CAAAsB,IAAA,OAAOJ,MAAM,CAAC,CACrB,CACF;AACP;AAEM,SAAUN,gCAAgCA,CAACb,OAAiC;EAChF,OAAWN,KAAe,IAAgC;IACxD,IAAI8B,eAAA,CAAAC,aAAA,CAAA/B,KAAK,CAAgB,EAAE;MACzB,OAAAO,eAAA,CAAAyB,SAAA,CAAQhC,KAAsB;;IAEhC,OAAOK,gBAAgB,CAACL,KAAK,EAAEM,OAAO,CAAC;EACzC,CAAC;AACH"}
1
+ {"version":3,"file":"errors.cjs","names":["_errorReporter","require","_errors","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","MessageException","CauseException","constructor","cause","exports","FatalQueueException","reportQueueError_","reportError","reportQueueError","extras","forkDaemonReportQueue","self","tsplus_module_1","daemonChildren","fork","tapErrorCause","reportNonInterruptedFailureCause","reportFatalQueueError","reportNonInterruptedFailure","context","report","inp","flatMap","exit","result","tsplus_module_2","match","map","sync","tsplus_module_3","isInterrupted","failCause"],"sources":["../../../_src/services/QueueMaker/errors.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAAyD,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAC,GAAA,EAAA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.js"
2
2
  import { CauseException } from "../errors.js"
3
- import { RequestContextContainer } from "../services/RequestContextContainer.js"
4
3
 
5
4
  export class RequestException<E> extends CauseException<E> {
6
5
  constructor(cause: Cause<E>) {
7
6
  super(cause, "Request")
8
7
  }
9
8
  }
10
- export const reportRequestError_ = reportError((cause) => new RequestException(cause))
11
-
12
- export const reportRequestError = <E>(cause: Cause<E>, context?: Record<string, unknown> | undefined) =>
13
- Debug.untraced(() =>
14
- RequestContextContainer.get.flatMap((requestContext) => reportRequestError_(cause, { requestContext, ...context }))
15
- )
16
-
17
- export const logRequestError_ = logError((cause) => new RequestException(cause))
18
-
19
- export const logRequestError = <E>(cause: Cause<E>, context?: Record<string, unknown> | undefined) =>
20
- Debug.untraced(() =>
21
- RequestContextContainer.get.flatMap((requestContext) => logRequestError_(cause, { requestContext, ...context }))
22
- )
9
+ export const reportRequestError = reportError((cause) => new RequestException(cause))
10
+ export const logRequestError = logError((cause) => new RequestException(cause))
23
11
 
24
12
  /**
25
13
  * Forks the effect into a new fiber attached to the global scope. Because the
@@ -1,6 +1,5 @@
1
1
  import { reportError } from "@effect-app/infra/errorReporter"
2
2
  import { CauseException } from "@effect-app/infra/errors"
3
- import { RequestContextContainer } from "../RequestContextContainer.js"
4
3
 
5
4
  export class MessageException<E> extends CauseException<E> {
6
5
  constructor(cause: Cause<E>) {
@@ -16,10 +15,8 @@ export class FatalQueueException<E> extends CauseException<E> {
16
15
 
17
16
  const reportQueueError_ = reportError((cause) => new MessageException(cause))
18
17
 
19
- export const reportQueueError = <E>(cause: Cause<E>, context?: Record<string, unknown> | undefined) =>
20
- RequestContextContainer.getOption.flatMap((requestContext) =>
21
- reportQueueError_(cause, { requestContext: requestContext.value, ...context })
22
- )
18
+ export const reportQueueError = <E>(cause: Cause<E>, extras?: Record<string, unknown> | undefined) =>
19
+ reportQueueError_(cause, extras)
23
20
 
24
21
  /**
25
22
  * Forks the effect into a new fiber attached to the global scope. Because the
@@ -1,7 +1,7 @@
1
1
  import { Effect } from "@effect/io/Effect";
2
2
  import type express from "express";
3
3
  import type { InvalidStateError, NotFoundError, NotLoggedInError, OptimisticConcurrencyException, UnauthorizedError, ValidationError } from "../errors.js";
4
- export declare function defaultBasicErrorHandler<R>(_req: express.Request, res: express.Response, r2: Effect<R, ValidationError, void>): import("@effect/io/Effect").Effect<import("../services/RequestContextContainer.js").RequestContextContainer | R, never, void | express.Response<any, Record<string, any>>>;
5
- export declare function defaultErrorHandler<R>(req: express.Request, res: express.Response, r2: Effect<R, SupportedErrors, void>): import("@effect/io/Effect").Effect<import("../services/RequestContextContainer.js").RequestContextContainer | R, never, void | express.Response<any, Record<string, any>>>;
4
+ export declare function defaultBasicErrorHandler<R>(_req: express.Request, res: express.Response, r2: Effect<R, ValidationError, void>): import("@effect/io/Effect").Effect<R, never, void | express.Response<any, Record<string, any>>>;
5
+ export declare function defaultErrorHandler<R>(req: express.Request, res: express.Response, r2: Effect<R, SupportedErrors, void>): import("@effect/io/Effect").Effect<R, never, void | express.Response<any, Record<string, any>>>;
6
6
  export type SupportedErrors = ValidationError | NotFoundError | NotLoggedInError | UnauthorizedError | InvalidStateError | OptimisticConcurrencyException;
7
7
  //# sourceMappingURL=defaultErrorHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultErrorHandler.d.ts","sourceRoot":"","sources":["../../_src/api/defaultErrorHandler.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EAChB,MAAM,cAAc,CAAA;AAGrB,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,IAAI,EAAE,OAAO,CAAC,OAAO,EACrB,GAAG,EAAE,OAAO,CAAC,QAAQ,EACrB,EAAE,EAAE,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,8KAiBrC;AAKD,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,EACrB,EAAE,EAAE,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,8KA4BrC;AAED,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,8BAA8B,CAAA"}
1
+ {"version":3,"file":"defaultErrorHandler.d.ts","sourceRoot":"","sources":["../../_src/api/defaultErrorHandler.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,EAChB,MAAM,cAAc,CAAA;AAGrB,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,IAAI,EAAE,OAAO,CAAC,OAAO,EACrB,GAAG,EAAE,OAAO,CAAC,QAAQ,EACrB,EAAE,EAAE,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,mGAiBrC;AAKD,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,EACrB,EAAE,EAAE,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,mGA4BrC;AAED,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,8BAA8B,CAAA"}
@@ -18,7 +18,7 @@ export declare function makeOpenApiSpecs(rdescs: Iterable<RouteDescriptorAny>, i
18
18
  version: string;
19
19
  };
20
20
  tags: never[];
21
- paths: Record<string, Record<"PATCH" | "GET" | "POST" | "PUT" | "DELETE", {
21
+ paths: Record<string, Record<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", {
22
22
  [x: string]: {
23
23
  responses: any;
24
24
  tags: readonly string[] | undefined;
@@ -1,14 +1,11 @@
1
1
  import { Cause } from "@effect/io/Cause";
2
2
  import { Effect } from "@effect/io/Effect";
3
3
  import { CauseException } from "../errors.js";
4
- import { RequestContextContainer } from "../services/RequestContextContainer.js";
5
4
  export declare class RequestException<E> extends CauseException<E> {
6
5
  constructor(cause: Cause<E>);
7
6
  }
8
- export declare const reportRequestError_: (cause: import("@effect/io/Cause").Cause<unknown>, extras?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
9
- export declare const reportRequestError: <E>(cause: import("@effect/io/Cause").Cause<E>, context?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<RequestContextContainer, never, void>;
10
- export declare const logRequestError_: (cause: import("@effect/io/Cause").Cause<unknown>, context?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
11
- export declare const logRequestError: <E>(cause: import("@effect/io/Cause").Cause<E>, context?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<RequestContextContainer, never, void>;
7
+ export declare const reportRequestError: (cause: import("@effect/io/Cause").Cause<unknown>, extras?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
8
+ export declare const logRequestError: (cause: import("@effect/io/Cause").Cause<unknown>, context?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
12
9
  /**
13
10
  * Forks the effect into a new fiber attached to the global scope. Because the
14
11
  * new fiber is attached to the global scope, when the fiber executing the
@@ -18,7 +15,7 @@ export declare const logRequestError: <E>(cause: import("@effect/io/Cause").Caus
18
15
  * @tsplus getter effect/io/Effect forkDaemonReportRequest
19
16
  * @tsplus location "@effect-app/infra/api/reportError"
20
17
  */
21
- export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<RequestContextContainer | R, never, import("@effect/io/Fiber").RuntimeFiber<E, A>>;
18
+ export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<R, never, import("@effect/io/Fiber").RuntimeFiber<E, A>>;
22
19
  /**
23
20
  * Forks the effect into a new fiber attached to the global scope. Because the
24
21
  * new fiber is attached to the global scope, when the fiber executing the
@@ -28,5 +25,5 @@ export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>):
28
25
  * @tsplus getter effect/io/Effect forkDaemonReportRequestUnexpected
29
26
  * @tsplus location "@effect-app/infra/api/reportError"
30
27
  */
31
- export declare function forkDaemonReportRequestUnexpected<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<RequestContextContainer | R, never, import("@effect/io/Fiber").RuntimeFiber<E, A>>;
28
+ export declare function forkDaemonReportRequestUnexpected<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<R, never, import("@effect/io/Fiber").RuntimeFiber<E, A>>;
32
29
  //# sourceMappingURL=reportError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reportError.d.ts","sourceRoot":"","sources":["../../_src/api/reportError.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAEhF,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AACD,eAAO,MAAM,mBAAmB,4JAAsD,CAAA;AAEtF,eAAO,MAAM,kBAAkB,4DAAkC,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,6EAGjG,CAAA;AAEH,eAAO,MAAM,gBAAgB,6JAAmD,CAAA;AAEhF,eAAO,MAAM,eAAe,4DAAkC,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,6EAG9F,CAAA;;;;;;;;;;AAWH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,yHAOrE;;;;;;;;;;AAWD,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,yHAW/E"}
1
+ {"version":3,"file":"reportError.d.ts","sourceRoot":"","sources":["../../_src/api/reportError.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AACD,eAAO,MAAM,kBAAkB,4JAAsD,CAAA;AACrF,eAAO,MAAM,eAAe,6JAAmD,CAAA;;;;;;;;;;AAW/E,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+FAOrE;;;;;;;;;;AAWD,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+FAW/E"}
@@ -3,16 +3,13 @@ import * as tsplus_module_2 from "@effect/data/Debug";
3
3
  import * as tsplus_module_3 from "@effect/io/Cause";
4
4
  import { logError, reportError } from "../errorReporter.js";
5
5
  import { CauseException } from "../errors.js";
6
- import { RequestContextContainer } from "../services/RequestContextContainer.js";
7
6
  export class RequestException extends CauseException {
8
7
  constructor(cause) {
9
8
  super(cause, "Request");
10
9
  }
11
10
  }
12
- export const reportRequestError_ = reportError((cause) => new RequestException(cause));
13
- export const reportRequestError = (cause, context) => tsplus_module_2.untraced(() => tsplus_module_1.flatMap(RequestContextContainer.get, (requestContext) => reportRequestError_(cause, { requestContext, ...context })));
14
- export const logRequestError_ = logError((cause) => new RequestException(cause));
15
- export const logRequestError = (cause, context) => tsplus_module_2.untraced(() => tsplus_module_1.flatMap(RequestContextContainer.get, (requestContext) => logRequestError_(cause, { requestContext, ...context })));
11
+ export const reportRequestError = reportError((cause) => new RequestException(cause));
12
+ export const logRequestError = logError((cause) => new RequestException(cause));
16
13
  /**
17
14
  * Forks the effect into a new fiber attached to the global scope. Because the
18
15
  * new fiber is attached to the global scope, when the fiber executing the
@@ -39,4 +36,4 @@ export function forkDaemonReportRequestUnexpected(self) {
39
36
  ? reportRequestError(cause)
40
37
  : logRequestError(cause)))));
41
38
  }
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0RXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9fc3JjL2FwaS9yZXBvcnRFcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBQzNELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFDN0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sd0NBQXdDLENBQUE7QUFFaEYsTUFBTSxPQUFPLGdCQUFvQixTQUFRLGNBQWlCO0lBQ3hELFlBQVksS0FBZTtRQUN6QixLQUFLLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFBO0lBQ3pCLENBQUM7Q0FDRjtBQUNELE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLFdBQVcsQ0FBQyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFBO0FBRXRGLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHLENBQUksS0FBZSxFQUFFLE9BQTZDLEV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LEVBRW5CLENBQ2xCLENBQUE7QUFDSCxDQUFDO0FBRUQ7Ozs7Ozs7O0dBUUc7QUFDSCxNQUFNLFVBQVUsaUNBQWlDLENBQVUsSUFBcUI7SUFDOUUsT0FBTyx5QkFBZSxHQUFHLEVBQUUscURBQ3pCLDhCQUFBLElBQUksRUFDYSxDQUFDLEtBQUssRUFBRSxFQUFFLENBQ3ZCLGtDQUFBLEtBQUssQ0FBb0IsSUFBSSxzQkFBQSxLQUFLLENBQVE7UUFDeEMsQ0FBQyxDQUFDLGtCQUFrQixDQUFDLEtBQUssQ0FBQztRQUMzQixDQUFDLENBQUMsZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUMzQixFQUVjLENBQ2xCLENBQUE7QUFDSCxDQUFDIn0=
@@ -23,21 +23,21 @@ export declare abstract class Operations extends Operations_base {
23
23
  * @tsplus getter effect/io/Effect forkOperation
24
24
  * @tsplus location "@effect-app/infra/services/Operations/service"
25
25
  */
26
- export declare function forkOperation<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<import("../RequestContextContainer.js").RequestContextContainer | Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
26
+ export declare function forkOperation<R, E, A>(self: Effect<R, E, A>): import("@effect/io/Effect").Effect<Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
27
27
  /**
28
28
  * @tsplus getter function forkOperation
29
29
  * @tsplus location "@effect-app/infra/services/Operations/service"
30
30
  */
31
- export declare function forkOperationFunction<R, E, A, Inp>(fnc: (inp: Inp) => Effect<R, E, A>): (inp: Inp) => import("@effect/io/Effect").Effect<import("../RequestContextContainer.js").RequestContextContainer | Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
31
+ export declare function forkOperationFunction<R, E, A, Inp>(fnc: (inp: Inp) => Effect<R, E, A>): (inp: Inp) => import("@effect/io/Effect").Effect<Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
32
32
  /**
33
33
  * @tsplus static effect/io/Effect.Ops forkOperation
34
34
  * @tsplus location "@effect-app/infra/services/Operations/service"
35
35
  */
36
- export declare function forkOperation2<R, E, A>(self: (opId: OperationId) => Effect<R, E, A>): import("@effect/io/Effect").Effect<import("../RequestContextContainer.js").RequestContextContainer | Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
36
+ export declare function forkOperation2<R, E, A>(self: (opId: OperationId) => Effect<R, E, A>): import("@effect/io/Effect").Effect<Operations | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
37
37
  /**
38
38
  * @tsplus static effect/io/Effect.Ops forkOperationWithEffect
39
39
  * @tsplus location "@effect-app/infra/services/Operations/service"
40
40
  */
41
- export declare function forkOperationWithEffect<R, R2, E, E2, A, A2>(self: (id: OperationId) => Effect<R, E, A>, fnc: (id: OperationId) => Effect<R2, E2, A2>): import("@effect/io/Effect").Effect<import("../RequestContextContainer.js").RequestContextContainer | Operations | Exclude<R, Scope.Scope> | Exclude<R2, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
41
+ export declare function forkOperationWithEffect<R, R2, E, E2, A, A2>(self: (id: OperationId) => Effect<R, E, A>, fnc: (id: OperationId) => Effect<R2, E2, A2>): import("@effect/io/Effect").Effect<Operations | Exclude<R, Scope.Scope> | Exclude<R2, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
42
42
  export {};
43
43
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Operations/service.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC/F,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAEzC,eAAO,MAAM,YAAY,eAAyB,CAAA;;;;;;AAClD;;;GAGG;AACH,8BAAsB,UAAW,SAAQ,eA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,EAAE,WAAW,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,kIAcnF;;;;;AAKD,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EACzD,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC1C,GAAG,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,6JAgB7C"}
@@ -8,7 +8,7 @@ export declare class MessageException<E> extends CauseException<E> {
8
8
  export declare class FatalQueueException<E> extends CauseException<E> {
9
9
  constructor(cause: Cause<E>);
10
10
  }
11
- export declare const reportQueueError: <E>(cause: import("@effect/io/Cause").Cause<E>, context?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
11
+ export declare const reportQueueError: <E>(cause: import("@effect/io/Cause").Cause<E>, extras?: Record<string, unknown> | undefined) => import("@effect/io/Effect").Effect<never, never, void>;
12
12
  /**
13
13
  * Forks the effect into a new fiber attached to the global scope. Because the
14
14
  * new fiber is attached to the global scope, when the fiber executing the
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../_src/services/QueueMaker/errors.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAGzD,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC/C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAID,eAAO,MAAM,gBAAgB,4DAAkC,OAAO,MAAM,EAAE,OAAO,CAAC,G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AAM,CAAC,MAAM,EAAE,OAAO,CAAC,sDACnD,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAMxD"}
@@ -1,10 +1,8 @@
1
- import * as tsplus_module_1 from "@effect-app/core/Option";
2
- import * as tsplus_module_2 from "@effect/io/Effect";
3
- import * as tsplus_module_3 from "@effect/io/Exit";
4
- import * as tsplus_module_4 from "@effect/io/Cause";
1
+ import * as tsplus_module_1 from "@effect/io/Effect";
2
+ import * as tsplus_module_2 from "@effect/io/Exit";
3
+ import * as tsplus_module_3 from "@effect/io/Cause";
5
4
  import { reportError } from "@effect-app/infra/errorReporter";
6
5
  import { CauseException } from "@effect-app/infra/errors";
7
- import { RequestContextContainer } from "../RequestContextContainer.js";
8
6
  export class MessageException extends CauseException {
9
7
  constructor(cause) {
10
8
  super(cause, "Message");
@@ -16,7 +14,7 @@ export class FatalQueueException extends CauseException {
16
14
  }
17
15
  }
18
16
  const reportQueueError_ = reportError((cause) => new MessageException(cause));
19
- export const reportQueueError = (cause, context) => tsplus_module_2.flatMap(RequestContextContainer.getOption, (requestContext) => reportQueueError_(cause, { requestContext: tsplus_module_1.getOrUndefined(requestContext), ...context }));
17
+ export const reportQueueError = (cause, extras) => reportQueueError_(cause, extras);
20
18
  /**
21
19
  * Forks the effect into a new fiber attached to the global scope. Because the
22
20
  * new fiber is attached to the global scope, when the fiber executing the
@@ -27,19 +25,19 @@ export const reportQueueError = (cause, context) => tsplus_module_2.flatMap(Requ
27
25
  * @tsplus getter effect/io/Effect forkDaemonReportQueue
28
26
  */
29
27
  export function forkDaemonReportQueue(self) {
30
- return tsplus_module_2.daemonChildren(tsplus_module_2.fork(tsplus_module_2.tapErrorCause(self, reportNonInterruptedFailureCause({}))));
28
+ return tsplus_module_1.daemonChildren(tsplus_module_1.fork(tsplus_module_1.tapErrorCause(self, reportNonInterruptedFailureCause({}))));
31
29
  }
32
30
  export const reportFatalQueueError = reportError((cause) => new FatalQueueException(cause));
33
31
  export function reportNonInterruptedFailure(context) {
34
32
  const report = reportNonInterruptedFailureCause(context);
35
- return (inp) => tsplus_module_2.flatMap(tsplus_module_2.exit(inp), (result) => tsplus_module_3.match(result, (cause) => tsplus_module_2.map(report(cause), () => result), () => tsplus_module_2.sync(() => result)));
33
+ return (inp) => tsplus_module_1.flatMap(tsplus_module_1.exit(inp), (result) => tsplus_module_2.match(result, (cause) => tsplus_module_1.map(report(cause), () => result), () => tsplus_module_1.sync(() => result)));
36
34
  }
37
35
  export function reportNonInterruptedFailureCause(context) {
38
36
  return (cause) => {
39
- if (tsplus_module_4.isInterrupted(cause)) {
40
- return tsplus_module_2.failCause(cause);
37
+ if (tsplus_module_3.isInterrupted(cause)) {
38
+ return tsplus_module_1.failCause(cause);
41
39
  }
42
40
  return reportQueueError(cause, context);
43
41
  };
44
42
  }
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vX3NyYy9zZXJ2aWNlcy9RdWV1ZU1ha2VyL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGlDQUFpQyxDQUFBO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQTtBQUN6RCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQTtBQUV2RSxNQUFNLE9BQU8sZ0JBQW9CLFNBQVEsY0FBaUI7SUFDeEQsWUFBWSxLQUFlO1FBQ3pCLEtBQUssQ0FBQyxLQUFLLEVBQUUsU0FBUyxDQUFDLENBQUE7SUFDekIsQ0FBQztDQUNGO0FBRUQsTUFBTSxPQUFPLG1CQUF1QixTQUFRLGNBQWlCO0lBQzNELFlBQVksS0FBZTtRQUN6QixLQUFLLENBQUMsS0FBSyxFQUF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aEYsT0FBTyxDQUFJLEtBQWUsRUFBOEIsRUFBRTtRQUN4RCxJQUFJLDhCQUFBLEtBQUssQ0FBZ0IsRUFBRTtZQUN6QixpQ0FBUSxLQUFzQixFQUFVO1NBQ3pDO1FBQ0QsT0FBTyxnQkFBZ0IsQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUE7SUFDekMsQ0FBQyxDQUFBO0FBQ0gsQ0FBQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.50.0",
3
+ "version": "0.50.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -19,8 +19,8 @@
19
19
  "proper-lockfile": "^4.1.2",
20
20
  "pure-rand": "^6.0.1",
21
21
  "redlock": "^4.2.0",
22
- "@effect-app/core": "0.43.0",
23
22
  "@effect-app/prelude": "0.39.0",
23
+ "@effect-app/core": "0.43.0",
24
24
  "@effect-app/infra-adapters": "0.37.0",
25
25
  "@effect-app/schema": "0.35.0"
26
26
  },