@effect-app/infra 0.85.0-next.2 → 0.85.0-next.3
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 +10 -0
- package/_cjs/_ext/Array.cjs +1 -1
- package/_cjs/api/defaultErrorHandler.cjs +2 -2
- package/_cjs/api/express/makeJsonSchema.cjs +1 -1
- package/_cjs/api/express/makeJsonSchema.test.cjs +1 -1
- package/_cjs/api/express/makeOpenApiSpecs.cjs +2 -2
- package/_cjs/api/express/schema/requestHandler.cjs +4 -4
- package/_cjs/api/express/schema/routing.cjs +2 -2
- package/_cjs/api/reportError.cjs +2 -2
- package/_cjs/api/routing.cjs +3 -3
- package/_cjs/api/setupRequest.cjs +1 -1
- package/_cjs/api/writeDocs.cjs +3 -3
- package/_cjs/errorReporter.cjs +2 -2
- package/_cjs/instrument.cjs +1 -1
- package/_cjs/logger/jsonLogger.cjs +4 -4
- package/_cjs/logger/shared.cjs +3 -3
- package/_cjs/rateLimit.cjs +1 -1
- package/_cjs/services/Emailer/Sendgrid.cjs +4 -4
- package/_cjs/services/Emailer/fake.cjs +2 -2
- package/_cjs/services/Operations/live.cjs +6 -6
- package/_cjs/services/Operations/service.cjs +2 -2
- package/_cjs/services/QueueMaker/errors.cjs +3 -3
- package/_cjs/services/QueueMaker/memQueue.cjs +2 -2
- package/_cjs/services/QueueMaker/sbqueue.cjs +2 -2
- package/_cjs/services/Repository.cjs +2 -2
- package/_cjs/services/RepositoryBase.cjs +5 -5
- package/_cjs/services/RequestContextContainer.cjs +3 -3
- package/_cjs/services/Store/Cosmos.cjs +4 -4
- package/_cjs/services/Store/Disk.cjs +3 -3
- package/_cjs/services/Store/Memory.cjs +6 -6
- package/_cjs/services/Store/Redis.cjs +4 -4
- package/_cjs/services/Store/codeFilter.test.cjs +1 -1
- package/_cjs/services/Store/index.cjs +3 -3
- package/_cjs/services/Store/utils.cjs +2 -2
- package/_cjs/services/simpledb/cosmosdb.cjs +3 -3
- package/_cjs/services/simpledb/diskdb.cjs +2 -2
- package/_cjs/services/simpledb/memdb.cjs +3 -3
- package/_cjs/services/simpledb/mongodb.cjs +2 -2
- package/_cjs/services/simpledb/redisdb.cjs +2 -2
- package/_cjs/services/simpledb/simpledb.cjs +3 -3
- package/dist/RequestContext.d.ts +16 -16
- package/dist/_ext/Array.js +1 -1
- package/dist/api/defaultErrorHandler.js +2 -2
- package/dist/api/express/makeJsonSchema.js +1 -1
- package/dist/api/express/makeOpenApiSpecs.js +2 -2
- package/dist/api/express/schema/requestHandler.js +4 -4
- package/dist/api/express/schema/routing.js +2 -2
- package/dist/api/reportError.d.ts +2 -2
- package/dist/api/reportError.d.ts.map +1 -1
- package/dist/api/reportError.js +2 -2
- package/dist/api/routing.d.ts +1 -1
- package/dist/api/routing.js +3 -3
- package/dist/api/setupRequest.d.ts +2 -2
- package/dist/api/setupRequest.d.ts.map +1 -1
- package/dist/api/setupRequest.js +1 -1
- package/dist/api/writeDocs.js +3 -3
- package/dist/errorReporter.js +2 -2
- package/dist/errors.d.ts +7 -7
- package/dist/instrument.d.ts +1 -1
- package/dist/instrument.d.ts.map +1 -1
- package/dist/instrument.js +1 -1
- package/dist/logger/jsonLogger.js +4 -4
- package/dist/logger/shared.js +3 -3
- package/dist/rateLimit.js +1 -1
- package/dist/services/Emailer/Sendgrid.js +4 -4
- package/dist/services/Emailer/fake.js +2 -2
- package/dist/services/Emailer/service.d.ts +1 -1
- package/dist/services/Operations/live.js +6 -6
- package/dist/services/Operations/service.d.ts +1 -1
- package/dist/services/Operations/service.js +2 -2
- package/dist/services/QueueMaker/errors.d.ts +1 -1
- package/dist/services/QueueMaker/errors.d.ts.map +1 -1
- package/dist/services/QueueMaker/errors.js +3 -3
- package/dist/services/QueueMaker/memQueue.d.ts +2 -2
- package/dist/services/QueueMaker/memQueue.js +2 -2
- package/dist/services/QueueMaker/sbqueue.d.ts +1 -1
- package/dist/services/QueueMaker/sbqueue.js +2 -2
- package/dist/services/Repository.js +2 -2
- package/dist/services/RepositoryBase.d.ts +3 -3
- package/dist/services/RepositoryBase.d.ts.map +1 -1
- package/dist/services/RepositoryBase.js +5 -5
- package/dist/services/RequestContextContainer.d.ts +2 -2
- package/dist/services/RequestContextContainer.d.ts.map +1 -1
- package/dist/services/RequestContextContainer.js +3 -3
- package/dist/services/Store/Cosmos.js +4 -4
- package/dist/services/Store/Disk.js +3 -3
- package/dist/services/Store/Memory.js +6 -6
- package/dist/services/Store/Redis.js +4 -4
- package/dist/services/Store/index.js +3 -3
- package/dist/services/Store/service.d.ts +2 -2
- package/dist/services/Store/utils.d.ts +1 -1
- package/dist/services/Store/utils.d.ts.map +1 -1
- package/dist/services/Store/utils.js +2 -2
- package/dist/services/simpledb/cosmosdb.js +3 -3
- package/dist/services/simpledb/diskdb.js +2 -2
- package/dist/services/simpledb/memdb.js +3 -3
- package/dist/services/simpledb/mongodb.js +2 -2
- package/dist/services/simpledb/redisdb.d.ts +6 -6
- package/dist/services/simpledb/redisdb.js +2 -2
- package/dist/services/simpledb/shared.d.ts +12 -12
- package/dist/services/simpledb/simpledb.d.ts +1 -1
- package/dist/services/simpledb/simpledb.d.ts.map +1 -1
- package/dist/services/simpledb/simpledb.js +3 -3
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/core/Tag";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/prelude/utils";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/prelude/schema";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/infra/services/QueueMaker/errors";
|
|
7
|
-
import * as tsplus_module_7 from "effect/Layer
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Layer";
|
|
8
8
|
import { LiveReceiver, LiveSender, LiveServiceBusClient, Receiver, Sender, subscribe } from "@effect-app/infra-adapters/ServiceBus";
|
|
9
9
|
import { captureException } from "@effect-app/infra/errorReporter";
|
|
10
10
|
import { RequestContext } from "@effect-app/infra/RequestContext";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/Pure";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/prelude/_ext/misc";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
4
|
-
import * as tsplus_module_4 from "effect/ReadonlyArray
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/ReadonlyArray";
|
|
5
5
|
import * as tsplus_module_5 from "effect/Effect";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/core/Array";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/core/_ext/Iterable";
|
|
@@ -62,7 +62,7 @@ export declare const RepositoryBase: <Service>() => <T extends {
|
|
|
62
62
|
flatMap<R1, E1, B>(f: (a: Service) => Effect<R1, E1, B>): Effect<Service | R1, E1, B>;
|
|
63
63
|
map<B_1>(f: (a: Service) => B_1): import("effect").Effect<Service, never, B_1>;
|
|
64
64
|
makeLayer(svc: Service): import("effect").Layer<never, never, Service>;
|
|
65
|
-
}) & import("effect/Context
|
|
65
|
+
}) & import("effect/Context").Tag<Service, Service>;
|
|
66
66
|
/**
|
|
67
67
|
* A base implementation to create a repository.
|
|
68
68
|
*/
|
|
@@ -160,7 +160,7 @@ export declare const RepositoryBaseImpl: <Service>() => <PM extends {
|
|
|
160
160
|
id: string;
|
|
161
161
|
}, ConstructorInput, Api, E extends {
|
|
162
162
|
id: string;
|
|
163
|
-
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => (abstract new () => Repository<T, PM, Evt, ItemType>) & import("effect/Context
|
|
163
|
+
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => (abstract new () => Repository<T, PM, Evt, ItemType>) & import("effect/Context").Tag<Service, Service> & {
|
|
164
164
|
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: Effect<never, never, readonly T[]>, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
165
165
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
166
166
|
}) | undefined): Effect<StoreMaker, never, Repository<T, PM, Evt, ItemType>>;
|
|
@@ -176,7 +176,7 @@ export declare const RepositoryDefaultImpl: <Service>() => <PM extends {
|
|
|
176
176
|
id: string;
|
|
177
177
|
}, ConstructorInput, Api, E extends {
|
|
178
178
|
id: string;
|
|
179
|
-
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => import("effect/Context
|
|
179
|
+
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => import("effect/Context").Tag<Service, Service> & {
|
|
180
180
|
new (impl: Repository<T, PM, Evt, ItemType>): Repository<T, PM, Evt, ItemType>;
|
|
181
181
|
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: Effect<never, never, readonly T[]>, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
182
182
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryBase.d.ts","sourceRoot":"","sources":["../../_src/services/RepositoryBase.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AACjE,OA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AK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;8BAEzB,EAAE,KAAK,MAAM;qBAEnC,MAAM,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC;WAC7B,WAAW,iBAAiB,EAAE,CAAC,CAAC;gCACX,OAAO;qBAClB,OAAO,KAAK,MAAM,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;sBACzC,OAAO;UACjB,WAAW,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC;CAuBzC,CAAA"}
|
|
@@ -3,17 +3,17 @@ import * as tsplus_module_2 from "effect/Layer";
|
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/prelude/service";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/prelude/schema";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/schema/custom/_api/condemn";
|
|
6
|
-
import * as tsplus_module_6 from "effect/Effect
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Effect";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/prelude/_ext/misc";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/Array";
|
|
9
|
-
import * as tsplus_module_9 from "effect/Chunk
|
|
9
|
+
import * as tsplus_module_9 from "effect/impl/Chunk";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/core/EffectX";
|
|
11
|
-
import * as tsplus_module_11 from "effect/ReadonlyArray
|
|
12
|
-
import * as tsplus_module_12 from "effect/Option
|
|
11
|
+
import * as tsplus_module_11 from "effect/impl/ReadonlyArray";
|
|
12
|
+
import * as tsplus_module_12 from "effect/impl/Option";
|
|
13
13
|
import * as tsplus_module_13 from "@effect-app/core/_ext/Iterable";
|
|
14
14
|
import * as tsplus_module_14 from "@effect-app/infra/services/Repository";
|
|
15
15
|
import * as tsplus_module_15 from "@effect-app/core/Function";
|
|
16
|
-
import * as tsplus_module_16 from "effect/Layer
|
|
16
|
+
import * as tsplus_module_16 from "effect/impl/Layer";
|
|
17
17
|
import { ContextMap, StoreMaker } from "./Store.js";
|
|
18
18
|
import { makeCodec } from "@effect-app/infra/api/codec";
|
|
19
19
|
import { makeFilters } from "@effect-app/infra/filter";
|
|
@@ -8,7 +8,7 @@ declare const RequestContextContainer_base: (abstract new () => {}) & {
|
|
|
8
8
|
flatMap<R1, E1, B>(f: (a: RequestContextContainer) => import("effect").Effect<R1, E1, B>): import("effect").Effect<RequestContextContainer | R1, E1, B>;
|
|
9
9
|
map<B_1>(f: (a: RequestContextContainer) => B_1): import("effect").Effect<RequestContextContainer, never, B_1>;
|
|
10
10
|
makeLayer(svc: RequestContextContainer): import("effect").Layer<never, never, RequestContextContainer>;
|
|
11
|
-
} & import("effect/Context
|
|
11
|
+
} & import("effect/Context").Tag<RequestContextContainer, RequestContextContainer>;
|
|
12
12
|
/**
|
|
13
13
|
* @tsplus companion RequestContextContainer.Ops
|
|
14
14
|
*/
|
|
@@ -33,6 +33,6 @@ export declare function live(inp: RequestContext.ConstructorInput): RequestConte
|
|
|
33
33
|
* @tsplus static RequestContext.Ops Tag
|
|
34
34
|
* @tsplus location "@effect-app/infra/services/RequestContextContainer"
|
|
35
35
|
*/
|
|
36
|
-
export declare const RCTag: import("effect/Context
|
|
36
|
+
export declare const RCTag: import("effect/Context").Tag<RequestContext, RequestContext>;
|
|
37
37
|
export {};
|
|
38
38
|
//# sourceMappingURL=RequestContextContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContextContainer.d.ts","sourceRoot":"","sources":["../../_src/services/RequestContextContainer.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;;;;;;AAErD;;GAEG;AACH,8BAAsB,uBAAwB,SAAQ,4BAAmC;IACvF,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,CAAA;IACtE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC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CAC1F;;;;;AAKD,wBAAgB,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,gBAAgB,+BAExD;;;;;AAGD,eAAO,MAAM,KAAK,8DAAwB,CAAA"}
|
|
@@ -11,13 +11,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _RequestContextContainerImpl_ref;
|
|
13
13
|
import * as tsplus_module_1 from "@effect-app/prelude/service";
|
|
14
|
-
import * as tsplus_module_2 from "effect/Option
|
|
14
|
+
import * as tsplus_module_2 from "effect/impl/Option";
|
|
15
15
|
import * as tsplus_module_3 from "effect/Option";
|
|
16
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
16
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
17
17
|
import * as tsplus_module_5 from "effect/Effect";
|
|
18
18
|
import * as tsplus_module_6 from "effect/Context";
|
|
19
19
|
import * as tsplus_module_7 from "effect/Ref";
|
|
20
|
-
import * as tsplus_module_8 from "effect/Ref
|
|
20
|
+
import * as tsplus_module_8 from "effect/impl/Ref";
|
|
21
21
|
import { RequestContext } from "../RequestContext.js";
|
|
22
22
|
/**
|
|
23
23
|
* @tsplus companion RequestContextContainer.Ops
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Option";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Option";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/Array";
|
|
5
|
-
import * as tsplus_module_5 from "effect/Chunk
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/Chunk";
|
|
6
6
|
import * as tsplus_module_6 from "effect/Duration";
|
|
7
|
-
import * as tsplus_module_7 from "effect/Effect
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Effect";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/_ext/Iterable";
|
|
9
9
|
import * as tsplus_module_9 from "@effect-app/infra/instrument";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/prelude/utils";
|
|
11
11
|
import * as tsplus_module_11 from "@effect-app/core/EffectX";
|
|
12
12
|
import * as tsplus_module_12 from "effect/Equivalence";
|
|
13
13
|
import * as tsplus_module_13 from "@effect-app/core/_ext/ord.ext";
|
|
14
|
-
import * as tsplus_module_14 from "effect/Layer
|
|
14
|
+
import * as tsplus_module_14 from "effect/impl/Layer";
|
|
15
15
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16
16
|
import { CosmosClient } from "@effect-app/infra-adapters/cosmos-client";
|
|
17
17
|
import { omit } from "@effect-app/prelude/utils";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Function";
|
|
4
|
-
import * as tsplus_module_4 from "effect/FiberRef
|
|
5
|
-
import * as tsplus_module_5 from "effect/Layer
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/FiberRef";
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/Layer";
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
7
|
import * as fu from "@effect-app/infra-adapters/fileUtil";
|
|
8
8
|
import fs from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/ReadonlyArray
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/ReadonlyArray";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/Array";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Option";
|
|
4
4
|
import * as tsplus_module_4 from "effect/FiberRef";
|
|
5
|
-
import * as tsplus_module_5 from "effect/FiberRef
|
|
6
|
-
import * as tsplus_module_6 from "effect/Effect
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/FiberRef";
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Effect";
|
|
7
7
|
import * as tsplus_module_7 from "effect/Effect";
|
|
8
|
-
import * as tsplus_module_8 from "effect/Chunk
|
|
8
|
+
import * as tsplus_module_8 from "effect/impl/Chunk";
|
|
9
9
|
import * as tsplus_module_9 from "effect/Ref";
|
|
10
|
-
import * as tsplus_module_10 from "effect/Ref
|
|
10
|
+
import * as tsplus_module_10 from "effect/impl/Ref";
|
|
11
11
|
import * as tsplus_module_11 from "@effect-app/core/_ext/Iterable";
|
|
12
12
|
import * as tsplus_module_12 from "effect/Option";
|
|
13
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
2
|
-
import * as tsplus_module_2 from "effect/Option
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Option";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/prelude/_ext/misc";
|
|
5
|
-
import * as tsplus_module_5 from "effect/ReadonlyArray
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/ReadonlyArray";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/core/_ext/Iterable";
|
|
7
7
|
import * as tsplus_module_7 from "effect/Option";
|
|
8
|
-
import * as tsplus_module_8 from "effect/Layer
|
|
8
|
+
import * as tsplus_module_8 from "effect/impl/Layer";
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
10
|
import { RedisClient } from "@effect-app/infra-adapters/redis-client";
|
|
11
11
|
import { NotFoundError } from "../../errors.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/ConfigSecret
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/ConfigSecret";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
4
|
-
import * as tsplus_module_4 from "effect/Layer
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Layer";
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import * as CosmosClient from "@effect-app/infra-adapters/cosmos-client";
|
|
7
7
|
import * as RedisClient from "@effect-app/infra-adapters/redis-client";
|
|
@@ -91,7 +91,7 @@ declare const StoreMaker_base: (abstract new () => {}) & {
|
|
|
91
91
|
flatMap<R1, E1, B>(f: (a: StoreMaker) => import("effect").Effect<R1, E1, B>): import("effect").Effect<StoreMaker | R1, E1, B>;
|
|
92
92
|
map<B_1>(f: (a: StoreMaker) => B_1): import("effect").Effect<StoreMaker, never, B_1>;
|
|
93
93
|
makeLayer(svc: StoreMaker): import("effect").Layer<never, never, StoreMaker>;
|
|
94
|
-
} & import("effect/Context
|
|
94
|
+
} & import("effect/Context").Tag<StoreMaker, StoreMaker>;
|
|
95
95
|
/**
|
|
96
96
|
* @tsplus type StoreMaker
|
|
97
97
|
* @tsplus companion StoreMaker.Ops
|
|
@@ -108,7 +108,7 @@ declare const ContextMap_base: (abstract new () => {}) & {
|
|
|
108
108
|
flatMap<R1, E1, B>(f: (a: ContextMap) => import("effect").Effect<R1, E1, B>): import("effect").Effect<ContextMap | R1, E1, B>;
|
|
109
109
|
map<B_1>(f: (a: ContextMap) => B_1): import("effect").Effect<ContextMap, never, B_1>;
|
|
110
110
|
makeLayer(svc: ContextMap): import("effect").Layer<never, never, ContextMap>;
|
|
111
|
-
} & import("effect/Context
|
|
111
|
+
} & import("effect/Context").Tag<ContextMap, ContextMap>;
|
|
112
112
|
/**
|
|
113
113
|
* @tsplus type ContextMap
|
|
114
114
|
* @tsplus companion ContextMap.Ops
|
|
@@ -5,7 +5,7 @@ export declare const makeETag: <E extends PersistenceModelType<Id>, Id extends s
|
|
|
5
5
|
export declare const makeUpdateETag: (type: string) => <E extends PersistenceModelType<Id>, Id extends string>(e: E, current: Option<E>) => import("effect").Effect<never, OptimisticConcurrencyException, E>;
|
|
6
6
|
export declare function codeFilter<E extends {
|
|
7
7
|
id: string;
|
|
8
|
-
}, NE extends E>(filter: Filter<NE>): (x: E) => import("effect/Option
|
|
8
|
+
}, NE extends E>(filter: Filter<NE>): (x: E) => import("effect/Option").None<NE> | import("effect/Option").Some<NE>;
|
|
9
9
|
export declare function codeFilterJoinSelect<E extends {
|
|
10
10
|
id: string;
|
|
11
11
|
}, NE>(filter: FilterJoinSelect): (x: E) => (NE & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAoB,MAAM,cAAc,CAAA;AAIpG,eAAO,MAAM,QAAQ,2EACF,CAAC,KACjB,CAIQ,CAAA;AACX,eAAO,MAAM,cAAc,SAClB,MAAM,gEAAgE,CAAC,WAAW,OAAO,CAAC,CAAC,sEAoB9F,CAAA;AAEN,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,OACxE,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAoB,MAAM,cAAc,CAAA;AAIpG,eAAO,MAAM,QAAQ,2EACF,CAAC,KACjB,CAIQ,CAAA;AACX,eAAO,MAAM,cAAc,SAClB,MAAM,gEAAgE,CAAC,WAAW,OAAO,CAAC,CAAC,sEAoB9F,CAAA;AAEN,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,OACxE,CAAC,yEA8Gb;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,EAC/D,MAAM,EAAE,gBAAgB,OAEb,CAAC;;KAkBb"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/_ext/misc";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Option
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Option";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Option";
|
|
5
|
-
import * as tsplus_module_5 from "effect/ReadonlyArray
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/ReadonlyArray";
|
|
6
6
|
import { get } from "@effect-app/prelude/utils";
|
|
7
7
|
import { OptimisticConcurrencyException } from "../../errors.js";
|
|
8
8
|
import objectHash from "object-hash";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Data";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
4
|
-
import * as tsplus_module_4 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Option";
|
|
5
5
|
import * as tsplus_module_5 from "effect/Option";
|
|
6
|
-
import * as tsplus_module_6 from "effect/ReadonlyArray
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/ReadonlyArray";
|
|
7
7
|
import { typedKeysOf } from "@effect-app/core/utils";
|
|
8
8
|
import * as Cosmos from "@effect-app/infra-adapters/cosmos-client";
|
|
9
9
|
import { OptimisticLockException } from "./shared.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Option
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Option";
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Option";
|
|
5
5
|
import { flow, pipe } from "@effect-app/core/Function";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Option
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Option";
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/EffectX";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Option";
|
|
5
5
|
import * as tsplus_module_5 from "effect/Effect";
|
|
6
|
-
import * as tsplus_module_6 from "effect/Exit
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Exit";
|
|
7
7
|
import { flow } from "@effect-app/core/Function";
|
|
8
8
|
import * as MO from "@effect-app/schema";
|
|
9
9
|
import { getRecordName, makeMap, SerializedDBRecord } from "./shared.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Option";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/EffectX";
|
|
5
|
-
import * as tsplus_module_5 from "effect/Option
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/Option";
|
|
6
6
|
import { MongoClient } from "@effect-app/infra-adapters/mongo-client";
|
|
7
7
|
import { OptimisticLockException } from "./shared.js";
|
|
8
8
|
import * as simpledb from "./simpledb.js";
|
|
@@ -11,13 +11,13 @@ export declare function createContext<TKey extends string, EA, A extends DBRecor
|
|
|
11
11
|
save: (record: A) => import("effect").Effect<RedisClient | simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
12
12
|
};
|
|
13
13
|
declare const RedisSerializedDBRecord_base: MO.Model<RedisSerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
14
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
15
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
16
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
14
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
15
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
16
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
17
17
|
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
18
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
19
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
20
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
18
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
19
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
20
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
21
21
|
}>>;
|
|
22
22
|
export declare class RedisSerializedDBRecord extends RedisSerializedDBRecord_base {
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/EffectX";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Option";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Effect";
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { flow, pipe } from "@effect-app/core/Function";
|
|
@@ -3,7 +3,7 @@ import { Effect } from "effect/Effect";
|
|
|
3
3
|
import { Option } from "effect/Option";
|
|
4
4
|
import * as MO from "@effect-app/schema";
|
|
5
5
|
import type { SchemaAny } from "@effect-app/schema";
|
|
6
|
-
declare const CouldNotAquireDbLockException_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
6
|
+
declare const CouldNotAquireDbLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
7
7
|
readonly _tag: "CouldNotAquireDbLockException";
|
|
8
8
|
} & Readonly<A>;
|
|
9
9
|
export declare class CouldNotAquireDbLockException extends CouldNotAquireDbLockException_base<{
|
|
@@ -14,7 +14,7 @@ export declare class CouldNotAquireDbLockException extends CouldNotAquireDbLockE
|
|
|
14
14
|
}> {
|
|
15
15
|
constructor(type: string, id: string, error: Error);
|
|
16
16
|
}
|
|
17
|
-
declare const OptimisticLockException_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
17
|
+
declare const OptimisticLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
18
18
|
readonly _tag: "OptimisticLockException";
|
|
19
19
|
} & Readonly<A>;
|
|
20
20
|
export declare class OptimisticLockException extends OptimisticLockException_base<{
|
|
@@ -24,7 +24,7 @@ export declare class OptimisticLockException extends OptimisticLockException_bas
|
|
|
24
24
|
}> {
|
|
25
25
|
constructor(type: string, id: string);
|
|
26
26
|
}
|
|
27
|
-
declare const ConnectionException_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
27
|
+
declare const ConnectionException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
28
28
|
readonly _tag: "ConnectionException";
|
|
29
29
|
} & Readonly<A>;
|
|
30
30
|
export declare class ConnectionException extends ConnectionException_base<{
|
|
@@ -38,20 +38,20 @@ export interface DBRecord<TKey extends string> {
|
|
|
38
38
|
id: TKey;
|
|
39
39
|
}
|
|
40
40
|
declare const SerializedDBRecord_base: MO.Model<SerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
41
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
42
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
43
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
41
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
42
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
43
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
44
44
|
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
45
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
46
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
47
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option
|
|
45
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
46
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
47
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
48
48
|
}>>;
|
|
49
49
|
export declare class SerializedDBRecord extends SerializedDBRecord_base {
|
|
50
50
|
}
|
|
51
51
|
export declare function makeSerialisedDBRecord(s: SchemaAny): MO.SchemaProperties<MO.ToProps<{
|
|
52
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, number, number, number, {}>, "required", import("effect/Option
|
|
53
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
54
|
-
data: MO.Property<MO.SchemaAny, "required", import("effect/Option
|
|
52
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, number, number, number, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
53
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
54
|
+
data: MO.Property<MO.SchemaAny, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
55
55
|
}>>;
|
|
56
56
|
export interface CachedRecord<T> {
|
|
57
57
|
version: string;
|
|
@@ -15,7 +15,7 @@ export declare function makeLiveRecordCache(): {
|
|
|
15
15
|
};
|
|
16
16
|
export interface RecordCache extends ReturnType<typeof makeLiveRecordCache> {
|
|
17
17
|
}
|
|
18
|
-
export declare const RecordCache: import("effect/Context
|
|
18
|
+
export declare const RecordCache: import("effect/Context").Tag<RecordCache, RecordCache>;
|
|
19
19
|
export declare const LiveRecordCache: import("effect").Layer<never, never, RecordCache>;
|
|
20
20
|
export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("effect").Effect<RecordCache | R | RDecode, InvalidStateError | E, import("effect").Option<A>>;
|
|
21
21
|
export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("effect").Effect<RecordCache | R, E, A>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpledb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/simpledb.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAW,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE9D,MAAM,MAAM,OAAO,GAAG,MAAM,CAAA;AAC5B,qBAAa,iBAAiB;IAEhB,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,CAAC;IADvD,QAAQ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AgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,SAAS,MAAM,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAC/E,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EACvE,IAAI,EAAE,MAAM,YAGI,CAAC,oDASlB;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EACnF,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAC/D,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EACvE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,EACrD,IAAI,EAAE,MAAM,YAGI,CAAC,6IA6BlB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Context";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Layer
|
|
4
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Layer";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/EffectX";
|
|
6
6
|
import * as tsplus_module_6 from "effect/Option";
|
|
7
|
-
import * as tsplus_module_7 from "effect/Option
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Option";
|
|
8
8
|
import { makeMap, OptimisticLockException } from "./shared.js";
|
|
9
9
|
export class InvalidStateError {
|
|
10
10
|
constructor(message, details) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.85.0-next.
|
|
3
|
+
"version": "0.85.0-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"proper-lockfile": "^4.1.2",
|
|
19
19
|
"pure-rand": "6.0.4",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
|
-
"@effect-app/
|
|
22
|
-
"@effect-app/
|
|
23
|
-
"@effect-app/
|
|
24
|
-
"@effect-app/prelude": "0.71.0-next.
|
|
21
|
+
"@effect-app/infra-adapters": "0.60.0-next.3",
|
|
22
|
+
"@effect-app/schema": "0.63.0-next.2",
|
|
23
|
+
"@effect-app/core": "0.69.0-next.2",
|
|
24
|
+
"@effect-app/prelude": "0.71.0-next.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/cli": "^7.23.0",
|