@entifix/redis 0.14.0 → 0.16.0
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/README.md +4 -15
- package/package.json +6 -18
- package/dist/adapters/redis-lock-service.d.ts +0 -17
- package/dist/adapters/redis-lock-service.d.ts.map +0 -1
- package/dist/adapters/redis-lock-service.js +0 -42
- package/dist/adapters/redis-lock-service.js.map +0 -1
- package/dist/adapters/redis-sequence-service.d.ts +0 -13
- package/dist/adapters/redis-sequence-service.d.ts.map +0 -1
- package/dist/adapters/redis-sequence-service.js +0 -18
- package/dist/adapters/redis-sequence-service.js.map +0 -1
- package/dist/transactions/index.d.ts +0 -11
- package/dist/transactions/index.d.ts.map +0 -1
- package/dist/transactions/index.js +0 -11
- package/dist/transactions/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# @entifix/redis
|
|
2
2
|
|
|
3
|
-
Redis adapters, on `ioredis
|
|
4
|
-
|
|
5
|
-
A session store does not arrive with a saga engine attached: the transactions half is behind its own subpath, and `@entifix/transactions` is an optional peer.
|
|
3
|
+
Redis adapters, on `ioredis`: the session and one-time-token stores from `@entifix/business`.
|
|
6
4
|
|
|
7
5
|
## Install
|
|
8
6
|
|
|
@@ -12,18 +10,9 @@ pnpm add @entifix/redis effect
|
|
|
12
10
|
|
|
13
11
|
## Entry points
|
|
14
12
|
|
|
15
|
-
| Import
|
|
16
|
-
|
|
|
17
|
-
| `@entifix/redis`
|
|
18
|
-
| `@entifix/redis/transactions` | `makeRedisLockService`, `makeRedisSequenceService` |
|
|
19
|
-
|
|
20
|
-
## Optional peers
|
|
21
|
-
|
|
22
|
-
Install these only if you use what needs them.
|
|
23
|
-
|
|
24
|
-
| Peer | Needed by |
|
|
25
|
-
| ----------------------- | ----------------------------- |
|
|
26
|
-
| `@entifix/transactions` | `@entifix/redis/transactions` |
|
|
13
|
+
| Import | What it holds |
|
|
14
|
+
| ---------------- | -------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `@entifix/redis` | `RedisLayer`, `makeRedisSessionStore`, `makeRedisOneTimeTokenStore`, `RedisHealthProbeLayer` |
|
|
27
16
|
|
|
28
17
|
---
|
|
29
18
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entifix/redis",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Redis adapters for sessions and one-time tokens
|
|
3
|
+
"version": "0.16.0",
|
|
4
|
+
"description": "Redis adapters for sessions and one-time tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,11 +21,6 @@
|
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"import": "./dist/index.js",
|
|
23
23
|
"default": "./dist/index.js"
|
|
24
|
-
},
|
|
25
|
-
"./transactions": {
|
|
26
|
-
"types": "./dist/transactions/index.d.ts",
|
|
27
|
-
"import": "./dist/transactions/index.js",
|
|
28
|
-
"default": "./dist/transactions/index.js"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
@@ -57,21 +52,14 @@
|
|
|
57
52
|
"dependencies": {
|
|
58
53
|
"@swc/helpers": "0.5.23",
|
|
59
54
|
"ioredis": "6.0.0",
|
|
60
|
-
"@entifix/
|
|
61
|
-
"@entifix/
|
|
55
|
+
"@entifix/core": "0.16.0",
|
|
56
|
+
"@entifix/business": "0.16.0"
|
|
62
57
|
},
|
|
63
58
|
"devDependencies": {
|
|
64
59
|
"effect": "4.0.7",
|
|
65
|
-
"@entifix/testing-unit": "0.
|
|
66
|
-
"@entifix/transactions": "0.14.0"
|
|
60
|
+
"@entifix/testing-unit": "0.16.0"
|
|
67
61
|
},
|
|
68
62
|
"peerDependencies": {
|
|
69
|
-
"effect": "^4.0.7"
|
|
70
|
-
"@entifix/transactions": "0.14.0"
|
|
71
|
-
},
|
|
72
|
-
"peerDependenciesMeta": {
|
|
73
|
-
"@entifix/transactions": {
|
|
74
|
-
"optional": true
|
|
75
|
-
}
|
|
63
|
+
"effect": "^4.0.7"
|
|
76
64
|
}
|
|
77
65
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type LockService, LockServiceTag } from '@entifix/transactions';
|
|
2
|
-
import { Layer } from 'effect';
|
|
3
|
-
import type { Redis } from 'ioredis';
|
|
4
|
-
import { RedisTag } from '../redis-connection/redis-connection.js';
|
|
5
|
-
/** How long a held lock survives without renewal — bounds a crashed holder. */
|
|
6
|
-
export declare const LOCK_TTL_MS = 5000;
|
|
7
|
-
/** Bounded retry budget so contention fails fast rather than hanging. */
|
|
8
|
-
export declare const LOCK_RETRIES = 20;
|
|
9
|
-
export declare const LOCK_RETRY_DELAY_MS = 100;
|
|
10
|
-
/**
|
|
11
|
-
* Redis-backed {@link LockService}: `SET key token NX PX ttl` with bounded
|
|
12
|
-
* retry. The `NX` flag makes acquisition atomic across instances.
|
|
13
|
-
*/
|
|
14
|
-
export declare const makeRedisLockService: (redis: Redis) => LockService;
|
|
15
|
-
/** Provides {@link LockServiceTag} from a {@link RedisTag} connection. */
|
|
16
|
-
export declare const RedisLockServiceLayer: Layer.Layer<LockServiceTag, never, RedisTag>;
|
|
17
|
-
//# sourceMappingURL=redis-lock-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis-lock-service.d.ts","sourceRoot":"","sources":["../../src/adapters/redis-lock-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAoB,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAEnE,+EAA+E;AAC/E,eAAO,MAAM,WAAW,OAAQ,CAAC;AACjC,yEAAyE;AACzE,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AASvC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,KAAG,WAqBlD,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,8CAGjC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { Contention } from '@entifix/core';
|
|
3
|
-
import { LockServiceTag } from '@entifix/transactions';
|
|
4
|
-
import { Duration, Effect, Layer } from 'effect';
|
|
5
|
-
import { translateRedisError } from '../errors/translate-redis-error.js';
|
|
6
|
-
import { RedisTag } from '../redis-connection/redis-connection.js';
|
|
7
|
-
/** How long a held lock survives without renewal — bounds a crashed holder. */ export const LOCK_TTL_MS = 5000;
|
|
8
|
-
/** Bounded retry budget so contention fails fast rather than hanging. */ export const LOCK_RETRIES = 20;
|
|
9
|
-
export const LOCK_RETRY_DELAY_MS = 100;
|
|
10
|
-
/**
|
|
11
|
-
* Compare-and-delete so a release only frees the caller's own lock — never one
|
|
12
|
-
* a later holder acquired after this one's TTL lapsed.
|
|
13
|
-
*/ const RELEASE_SCRIPT = 'if redis.call("get", KEYS[1]) == ARGV[1] then return redis.call("del", KEYS[1]) else return 0 end';
|
|
14
|
-
/**
|
|
15
|
-
* Redis-backed {@link LockService}: `SET key token NX PX ttl` with bounded
|
|
16
|
-
* retry. The `NX` flag makes acquisition atomic across instances.
|
|
17
|
-
*/ export const makeRedisLockService = (redis)=>({
|
|
18
|
-
acquire: (key)=>Effect.gen(function*() {
|
|
19
|
-
const token = randomUUID();
|
|
20
|
-
for(let attempt = 0; attempt < LOCK_RETRIES; attempt += 1){
|
|
21
|
-
const result = yield* Effect.tryPromise({
|
|
22
|
-
try: ()=>redis.set(key, token, 'PX', LOCK_TTL_MS, 'NX'),
|
|
23
|
-
catch: (error)=>translateRedisError(error)
|
|
24
|
-
});
|
|
25
|
-
if (result === 'OK') {
|
|
26
|
-
return {
|
|
27
|
-
key,
|
|
28
|
-
token
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
yield* Effect.sleep(Duration.millis(LOCK_RETRY_DELAY_MS));
|
|
32
|
-
}
|
|
33
|
-
return yield* Effect.fail(new Contention());
|
|
34
|
-
}),
|
|
35
|
-
release: (handle)=>Effect.tryPromise({
|
|
36
|
-
try: ()=>redis.eval(RELEASE_SCRIPT, 1, handle.key, handle.token),
|
|
37
|
-
catch: (error)=>translateRedisError(error)
|
|
38
|
-
}).pipe(Effect.asVoid)
|
|
39
|
-
});
|
|
40
|
-
/** Provides {@link LockServiceTag} from a {@link RedisTag} connection. */ export const RedisLockServiceLayer = Layer.effect(LockServiceTag, Effect.map(RedisTag, makeRedisLockService));
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=redis-lock-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/adapters/redis-lock-service.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\n\nimport { Contention } from '@entifix/core';\nimport { type LockService, LockServiceTag } from '@entifix/transactions';\nimport { Duration, Effect, Layer } from 'effect';\nimport type { Redis } from 'ioredis';\n\nimport { translateRedisError } from '../errors/translate-redis-error.js';\nimport { RedisTag } from '../redis-connection/redis-connection.js';\n\n/** How long a held lock survives without renewal — bounds a crashed holder. */\nexport const LOCK_TTL_MS = 5_000;\n/** Bounded retry budget so contention fails fast rather than hanging. */\nexport const LOCK_RETRIES = 20;\nexport const LOCK_RETRY_DELAY_MS = 100;\n\n/**\n * Compare-and-delete so a release only frees the caller's own lock — never one\n * a later holder acquired after this one's TTL lapsed.\n */\nconst RELEASE_SCRIPT =\n 'if redis.call(\"get\", KEYS[1]) == ARGV[1] then return redis.call(\"del\", KEYS[1]) else return 0 end';\n\n/**\n * Redis-backed {@link LockService}: `SET key token NX PX ttl` with bounded\n * retry. The `NX` flag makes acquisition atomic across instances.\n */\nexport const makeRedisLockService = (redis: Redis): LockService => ({\n acquire: key =>\n Effect.gen(function* () {\n const token = randomUUID();\n for (let attempt = 0; attempt < LOCK_RETRIES; attempt += 1) {\n const result = yield* Effect.tryPromise({\n try: () => redis.set(key, token, 'PX', LOCK_TTL_MS, 'NX'),\n catch: error => translateRedisError(error),\n });\n if (result === 'OK') {\n return { key, token };\n }\n yield* Effect.sleep(Duration.millis(LOCK_RETRY_DELAY_MS));\n }\n return yield* Effect.fail(new Contention());\n }),\n release: handle =>\n Effect.tryPromise({\n try: () => redis.eval(RELEASE_SCRIPT, 1, handle.key, handle.token),\n catch: error => translateRedisError(error),\n }).pipe(Effect.asVoid),\n});\n\n/** Provides {@link LockServiceTag} from a {@link RedisTag} connection. */\nexport const RedisLockServiceLayer = Layer.effect(\n LockServiceTag,\n Effect.map(RedisTag, makeRedisLockService),\n);\n"],"names":["randomUUID","Contention","LockServiceTag","Duration","Effect","Layer","translateRedisError","RedisTag","LOCK_TTL_MS","LOCK_RETRIES","LOCK_RETRY_DELAY_MS","RELEASE_SCRIPT","makeRedisLockService","redis","acquire","key","gen","token","attempt","result","tryPromise","try","set","catch","error","sleep","millis","fail","release","handle","eval","pipe","asVoid","RedisLockServiceLayer","effect","map"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAA2BC,cAAc,QAAQ,wBAAwB;AACzE,SAASC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,QAAQ,SAAS;AAGjD,SAASC,mBAAmB,QAAQ,qCAAqC;AACzE,SAASC,QAAQ,QAAQ,0CAA0C;AAEnE,6EAA6E,GAC7E,OAAO,MAAMC,cAAc,KAAM;AACjC,uEAAuE,GACvE,OAAO,MAAMC,eAAe,GAAG;AAC/B,OAAO,MAAMC,sBAAsB,IAAI;AAEvC;;;CAGC,GACD,MAAMC,iBACJ;AAEF;;;CAGC,GACD,OAAO,MAAMC,uBAAuB,CAACC,QAA+B,CAAA;QAClEC,SAASC,CAAAA,MACPX,OAAOY,GAAG,CAAC;gBACT,MAAMC,QAAQjB;gBACd,IAAK,IAAIkB,UAAU,GAAGA,UAAUT,cAAcS,WAAW,EAAG;oBAC1D,MAAMC,SAAS,OAAOf,OAAOgB,UAAU,CAAC;wBACtCC,KAAK,IAAMR,MAAMS,GAAG,CAACP,KAAKE,OAAO,MAAMT,aAAa;wBACpDe,OAAOC,CAAAA,QAASlB,oBAAoBkB;oBACtC;oBACA,IAAIL,WAAW,MAAM;wBACnB,OAAO;4BAAEJ;4BAAKE;wBAAM;oBACtB;oBACA,OAAOb,OAAOqB,KAAK,CAACtB,SAASuB,MAAM,CAAChB;gBACtC;gBACA,OAAO,OAAON,OAAOuB,IAAI,CAAC,IAAI1B;YAChC;QACF2B,SAASC,CAAAA,SACPzB,OAAOgB,UAAU,CAAC;gBAChBC,KAAK,IAAMR,MAAMiB,IAAI,CAACnB,gBAAgB,GAAGkB,OAAOd,GAAG,EAAEc,OAAOZ,KAAK;gBACjEM,OAAOC,CAAAA,QAASlB,oBAAoBkB;YACtC,GAAGO,IAAI,CAAC3B,OAAO4B,MAAM;IACzB,CAAA,EAAG;AAEH,wEAAwE,GACxE,OAAO,MAAMC,wBAAwB5B,MAAM6B,MAAM,CAC/ChC,gBACAE,OAAO+B,GAAG,CAAC5B,UAAUK,uBACrB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type SequenceService, SequenceServiceTag } from '@entifix/transactions';
|
|
2
|
-
import { Layer } from 'effect';
|
|
3
|
-
import type { Redis } from 'ioredis';
|
|
4
|
-
import { RedisTag } from '../redis-connection/redis-connection.js';
|
|
5
|
-
/**
|
|
6
|
-
* Redis-backed {@link SequenceService}. `INCR` is atomic, so concurrent
|
|
7
|
-
* commands across every service instance draw strictly distinct values — the
|
|
8
|
-
* uniqueness guarantee behind incremental codes.
|
|
9
|
-
*/
|
|
10
|
-
export declare const makeRedisSequenceService: (redis: Redis) => SequenceService;
|
|
11
|
-
/** Provides {@link SequenceServiceTag} from a {@link RedisTag} connection. */
|
|
12
|
-
export declare const RedisSequenceServiceLayer: Layer.Layer<SequenceServiceTag, never, RedisTag>;
|
|
13
|
-
//# sourceMappingURL=redis-sequence-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis-sequence-service.d.ts","sourceRoot":"","sources":["../../src/adapters/redis-sequence-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EACpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAU,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAKnE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,eAMtD,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,kDAGrC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SequenceServiceTag } from '@entifix/transactions';
|
|
2
|
-
import { Effect, Layer } from 'effect';
|
|
3
|
-
import { translateRedisError } from '../errors/translate-redis-error.js';
|
|
4
|
-
import { RedisTag } from '../redis-connection/redis-connection.js';
|
|
5
|
-
/** Namespace so sequence keys never collide with lock keys. */ const SEQ_PREFIX = 'seq:';
|
|
6
|
-
/**
|
|
7
|
-
* Redis-backed {@link SequenceService}. `INCR` is atomic, so concurrent
|
|
8
|
-
* commands across every service instance draw strictly distinct values — the
|
|
9
|
-
* uniqueness guarantee behind incremental codes.
|
|
10
|
-
*/ export const makeRedisSequenceService = (redis)=>({
|
|
11
|
-
next: (name)=>Effect.tryPromise({
|
|
12
|
-
try: ()=>redis.incr(`${SEQ_PREFIX}${name}`),
|
|
13
|
-
catch: (error)=>translateRedisError(error)
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
/** Provides {@link SequenceServiceTag} from a {@link RedisTag} connection. */ export const RedisSequenceServiceLayer = Layer.effect(SequenceServiceTag, Effect.map(RedisTag, makeRedisSequenceService));
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=redis-sequence-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/adapters/redis-sequence-service.ts"],"sourcesContent":["import {\n type SequenceService,\n SequenceServiceTag,\n} from '@entifix/transactions';\nimport { Effect, Layer } from 'effect';\nimport type { Redis } from 'ioredis';\n\nimport { translateRedisError } from '../errors/translate-redis-error.js';\nimport { RedisTag } from '../redis-connection/redis-connection.js';\n\n/** Namespace so sequence keys never collide with lock keys. */\nconst SEQ_PREFIX = 'seq:';\n\n/**\n * Redis-backed {@link SequenceService}. `INCR` is atomic, so concurrent\n * commands across every service instance draw strictly distinct values — the\n * uniqueness guarantee behind incremental codes.\n */\nexport const makeRedisSequenceService = (redis: Redis): SequenceService => ({\n next: name =>\n Effect.tryPromise({\n try: () => redis.incr(`${SEQ_PREFIX}${name}`),\n catch: error => translateRedisError(error),\n }),\n});\n\n/** Provides {@link SequenceServiceTag} from a {@link RedisTag} connection. */\nexport const RedisSequenceServiceLayer = Layer.effect(\n SequenceServiceTag,\n Effect.map(RedisTag, makeRedisSequenceService),\n);\n"],"names":["SequenceServiceTag","Effect","Layer","translateRedisError","RedisTag","SEQ_PREFIX","makeRedisSequenceService","redis","next","name","tryPromise","try","incr","catch","error","RedisSequenceServiceLayer","effect","map"],"mappings":"AAAA,SAEEA,kBAAkB,QACb,wBAAwB;AAC/B,SAASC,MAAM,EAAEC,KAAK,QAAQ,SAAS;AAGvC,SAASC,mBAAmB,QAAQ,qCAAqC;AACzE,SAASC,QAAQ,QAAQ,0CAA0C;AAEnE,6DAA6D,GAC7D,MAAMC,aAAa;AAEnB;;;;CAIC,GACD,OAAO,MAAMC,2BAA2B,CAACC,QAAmC,CAAA;QAC1EC,MAAMC,CAAAA,OACJR,OAAOS,UAAU,CAAC;gBAChBC,KAAK,IAAMJ,MAAMK,IAAI,CAAC,GAAGP,aAAaI,MAAM;gBAC5CI,OAAOC,CAAAA,QAASX,oBAAoBW;YACtC;IACJ,CAAA,EAAG;AAEH,4EAA4E,GAC5E,OAAO,MAAMC,4BAA4Bb,MAAMc,MAAM,CACnDhB,oBACAC,OAAOgB,GAAG,CAACb,UAAUE,2BACrB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The half of this package that needs `@entifix/transactions`: the `LockService`
|
|
3
|
-
* and `SequenceService` implementations.
|
|
4
|
-
*
|
|
5
|
-
* Behind a subpath so a session store or a one-time-token store — neither of
|
|
6
|
-
* which knows anything about a saga — can be taken on its own. What keeps it
|
|
7
|
-
* optional is the `peerDependenciesMeta.optional` entry in the manifest.
|
|
8
|
-
*/
|
|
9
|
-
export * from '../adapters/redis-lock-service.js';
|
|
10
|
-
export * from '../adapters/redis-sequence-service.js';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transactions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The half of this package that needs `@entifix/transactions`: the `LockService`
|
|
3
|
-
* and `SequenceService` implementations.
|
|
4
|
-
*
|
|
5
|
-
* Behind a subpath so a session store or a one-time-token store — neither of
|
|
6
|
-
* which knows anything about a saga — can be taken on its own. What keeps it
|
|
7
|
-
* optional is the `peerDependenciesMeta.optional` entry in the manifest.
|
|
8
|
-
*/ export * from '../adapters/redis-lock-service.js';
|
|
9
|
-
export * from '../adapters/redis-sequence-service.js';
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/transactions/index.ts"],"sourcesContent":["/**\n * The half of this package that needs `@entifix/transactions`: the `LockService`\n * and `SequenceService` implementations.\n *\n * Behind a subpath so a session store or a one-time-token store — neither of\n * which knows anything about a saga — can be taken on its own. What keeps it\n * optional is the `peerDependenciesMeta.optional` entry in the manifest.\n */\nexport * from '../adapters/redis-lock-service.js';\nexport * from '../adapters/redis-sequence-service.js';\n"],"names":[],"mappings":"AAAA;;;;;;;CAOC,GACD,cAAc,oCAAoC;AAClD,cAAc,wCAAwC"}
|