@entifix/testing-unit 0.10.2 → 0.11.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/dist/contracts/flow-engine.contract.d.ts +16 -0
- package/dist/contracts/flow-engine.contract.d.ts.map +1 -0
- package/dist/contracts/flow-engine.contract.js +163 -0
- package/dist/contracts/flow-engine.contract.js.map +1 -0
- package/dist/contracts/idempotency-store.contract.d.ts +17 -0
- package/dist/contracts/idempotency-store.contract.d.ts.map +1 -0
- package/dist/contracts/idempotency-store.contract.js +94 -0
- package/dist/contracts/idempotency-store.contract.js.map +1 -0
- package/dist/contracts/index.d.ts +4 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +4 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/outbox.contract.d.ts +18 -0
- package/dist/contracts/outbox.contract.d.ts.map +1 -0
- package/dist/contracts/outbox.contract.js +117 -0
- package/dist/contracts/outbox.contract.js.map +1 -0
- package/dist/contracts/transaction-ports.contract.d.ts +1 -1
- package/dist/contracts/transaction-ports.contract.d.ts.map +1 -1
- package/dist/contracts/transaction-ports.contract.js +10 -1
- package/dist/contracts/transaction-ports.contract.js.map +1 -1
- package/dist/contracts/unit-of-work.contract.d.ts.map +1 -1
- package/dist/contracts/unit-of-work.contract.js +5 -0
- package/dist/contracts/unit-of-work.contract.js.map +1 -1
- package/dist/contracts/variants.contract.d.ts +15 -0
- package/dist/contracts/variants.contract.d.ts.map +1 -0
- package/dist/contracts/variants.contract.js +39 -0
- package/dist/contracts/variants.contract.js.map +1 -0
- package/dist/doubles/flow-engine.d.ts +22 -0
- package/dist/doubles/flow-engine.d.ts.map +1 -0
- package/dist/doubles/flow-engine.js +137 -0
- package/dist/doubles/flow-engine.js.map +1 -0
- package/dist/doubles/idempotency-store.d.ts +12 -0
- package/dist/doubles/idempotency-store.d.ts.map +1 -0
- package/dist/doubles/idempotency-store.js +40 -0
- package/dist/doubles/idempotency-store.js.map +1 -0
- package/dist/doubles/outbox.d.ts +15 -0
- package/dist/doubles/outbox.d.ts.map +1 -0
- package/dist/doubles/outbox.js +70 -0
- package/dist/doubles/outbox.js.map +1 -0
- package/dist/doubles/unit-of-work.d.ts +2 -3
- package/dist/doubles/unit-of-work.d.ts.map +1 -1
- package/dist/doubles/unit-of-work.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/doubles/outbox.ts"],"sourcesContent":["import {\n aggregateKey,\n type EventBus,\n type Outbox,\n type OutboxEntry,\n} from '@entifix/transactions';\nimport { Effect, Result } from 'effect';\n\nexport interface InMemoryOutbox extends Outbox {\n /** Every entry, in enqueue order. */\n readonly entries: readonly OutboxEntry[];\n /**\n * One relay pass with the semantics every relay has: oldest first, in order\n * within each aggregate, a failing head holding back only its own aggregate,\n * and quarantine at `maxAttempts`.\n */\n readonly drain: (bus: EventBus, maxAttempts: number) => Effect.Effect<number>;\n}\n\n/** An {@link Outbox} over an array, for a spec that has no store. */\nexport const makeInMemoryOutbox = (): InMemoryOutbox => {\n const entries: OutboxEntry[] = [];\n const find = (eventId: string) =>\n entries.find(entry => entry.eventId === eventId);\n const pendingOnes = () =>\n entries\n .filter(entry => !entry.sent && !entry.quarantined)\n .sort(\n (a, b) =>\n a.createdAt.localeCompare(b.createdAt) || a.version - b.version,\n );\n\n const outbox: Outbox = {\n enqueue: event =>\n Effect.sync(() => {\n if (find(event.id) !== undefined) return 'duplicate' as const;\n entries.push({\n eventId: event.id,\n aggregate: event.aggregate,\n version: event.version,\n event,\n sent: false,\n attempts: 0,\n quarantined: false,\n createdAt: event.at,\n });\n return 'enqueued' as const;\n }),\n pending: limit => Effect.sync(() => pendingOnes().slice(0, limit)),\n markSent: entry =>\n Effect.sync(() => {\n const stored = find(entry.eventId);\n if (stored !== undefined) stored.sent = true;\n }),\n recordFailure: (entry, error, quarantine) =>\n Effect.sync(() => {\n const stored = find(entry.eventId);\n if (stored === undefined) return;\n stored.attempts += 1;\n stored.lastError = error;\n stored.quarantined = quarantine;\n }),\n stats: () =>\n Effect.sync(() => {\n const pending = pendingOnes();\n const oldest = pending[0];\n return {\n pending: pending.length,\n quarantined: entries.filter(entry => entry.quarantined).length,\n ...(oldest === undefined\n ? {}\n : { oldestPendingAt: oldest.createdAt }),\n };\n }),\n };\n\n const drain = (bus: EventBus, maxAttempts: number) =>\n Effect.gen(function* () {\n const held = new Set<string>();\n let sent = 0;\n for (const entry of yield* outbox.pending(Number.MAX_SAFE_INTEGER)) {\n const key = aggregateKey(entry.aggregate);\n if (held.has(key)) continue;\n const outcome = yield* Effect.result(bus.publish(entry.event));\n if (Result.isFailure(outcome)) {\n const quarantine = entry.attempts + 1 >= maxAttempts;\n yield* outbox.recordFailure(\n entry,\n outcome.failure.message,\n quarantine,\n );\n if (!quarantine) held.add(key);\n continue;\n }\n yield* outbox.markSent(entry);\n sent += 1;\n }\n return sent;\n }).pipe(Effect.orDie);\n\n return { ...outbox, entries, drain };\n};\n"],"names":["aggregateKey","Effect","Result","makeInMemoryOutbox","entries","find","eventId","entry","pendingOnes","filter","sent","quarantined","sort","a","b","createdAt","localeCompare","version","outbox","enqueue","event","sync","id","undefined","push","aggregate","attempts","at","pending","limit","slice","markSent","stored","recordFailure","error","quarantine","lastError","stats","oldest","length","oldestPendingAt","drain","bus","maxAttempts","gen","held","Set","Number","MAX_SAFE_INTEGER","key","has","outcome","result","publish","isFailure","failure","message","add","pipe","orDie"],"mappings":";AAAA,SACEA,YAAY,QAIP,wBAAwB;AAC/B,SAASC,MAAM,EAAEC,MAAM,QAAQ,SAAS;AAaxC,mEAAmE,GACnE,OAAO,MAAMC,qBAAqB;IAChC,MAAMC,UAAyB,EAAE;IACjC,MAAMC,OAAO,CAACC,UACZF,QAAQC,IAAI,CAACE,CAAAA,QAASA,MAAMD,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A,MAAMI,WAAW,EAAE4B,MAAM;mBAC1DD,WAAWf,YACX,CAAC,IACD;oBAAEiB,iBAAiBF,OAAOvB,SAAS;gBAAC;YAE5C;IACJ;IAEA,MAAM0B,QAAQ,CAACC,KAAeC,cAC5B1C,OAAO2C,GAAG,CAAC;YACT,MAAMC,OAAO,IAAIC;YACjB,IAAIpC,OAAO;YACX,KAAK,MAAMH,SAAS,OAAOW,OAAOU,OAAO,CAACmB,OAAOC,gBAAgB,EAAG;gBAClE,MAAMC,MAAMjD,aAAaO,MAAMkB,SAAS;gBACxC,IAAIoB,KAAKK,GAAG,CAACD,MAAM;gBACnB,MAAME,UAAU,OAAOlD,OAAOmD,MAAM,CAACV,IAAIW,OAAO,CAAC9C,MAAMa,KAAK;gBAC5D,IAAIlB,OAAOoD,SAAS,CAACH,UAAU;oBAC7B,MAAMhB,aAAa5B,MAAMmB,QAAQ,GAAG,KAAKiB;oBACzC,OAAOzB,OAAOe,aAAa,CACzB1B,OACA4C,QAAQI,OAAO,CAACC,OAAO,EACvBrB;oBAEF,IAAI,CAACA,YAAYU,KAAKY,GAAG,CAACR;oBAC1B;gBACF;gBACA,OAAO/B,OAAOa,QAAQ,CAACxB;gBACvBG,QAAQ;YACV;YACA,OAAOA;QACT,GAAGgD,IAAI,CAACzD,OAAO0D,KAAK;IAEtB,OAAO,aAAKzC;QAAQd;QAASqC;;AAC/B,EAAE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { UnitOfWork } from '@entifix/transactions';
|
|
1
|
+
import type { OutboxEvent, UnitOfWork } from '@entifix/transactions';
|
|
3
2
|
/**
|
|
4
3
|
* The handle an in-memory unit hands its body: a working copy of the records,
|
|
5
4
|
* which becomes the store only if the unit commits.
|
|
@@ -11,7 +10,7 @@ export interface InMemoryUnitOfWork extends UnitOfWork<InMemoryUnitHandle> {
|
|
|
11
10
|
/** The committed records. */
|
|
12
11
|
readonly records: ReadonlyMap<string, unknown>;
|
|
13
12
|
/** Every event a committed unit emitted, in commit order. */
|
|
14
|
-
readonly outbox: readonly
|
|
13
|
+
readonly outbox: readonly OutboxEvent[];
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
17
16
|
* A {@link UnitOfWork} over plain maps, for testing code that runs units
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-of-work.d.ts","sourceRoot":"","sources":["../../src/doubles/unit-of-work.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unit-of-work.d.ts","sourceRoot":"","sources":["../../src/doubles/unit-of-work.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAa,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGhF;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACxE,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;CACzC;AAOD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAM,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,KAC9C,kBA0EF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/doubles/unit-of-work.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/doubles/unit-of-work.ts"],"sourcesContent":["import { isStoreFault } from '@entifix/core';\nimport type { OutboxEvent, UnitClaim, UnitOfWork } from '@entifix/transactions';\nimport { Effect, Option, Result } from 'effect';\n\n/**\n * The handle an in-memory unit hands its body: a working copy of the records,\n * which becomes the store only if the unit commits.\n */\nexport interface InMemoryUnitHandle {\n readonly records: Map<string, unknown>;\n}\n\nexport interface InMemoryUnitOfWork extends UnitOfWork<InMemoryUnitHandle> {\n /** The committed records. */\n readonly records: ReadonlyMap<string, unknown>;\n /** Every event a committed unit emitted, in commit order. */\n readonly outbox: readonly OutboxEvent[];\n}\n\nconst claimKey = (claim: UnitClaim): string =>\n claim.kind === 'event'\n ? `event:${claim.consumer}:${claim.eventId}`\n : `command:${claim.commandId}`;\n\n/**\n * A {@link UnitOfWork} over plain maps, for testing code that runs units\n * without a database.\n *\n * Atomic the way a real one is: the body writes to a copy, and a body that\n * fails — with a business reason or with a store error — leaves the committed\n * records, the outbox and the claims exactly as they were. Like the Mongo\n * driver fake it is atomicity and not isolation; nothing here runs\n * concurrently, so a race is a `live` test's to prove.\n */\nexport const makeInMemoryUnitOfWork = (\n seed: Iterable<readonly [string, unknown]> = [],\n): InMemoryUnitOfWork => {\n let records = new Map<string, unknown>(seed);\n const outbox: OutboxEvent[] = [];\n const eventIds = new Set<string>();\n // A taken claim, and for a command what it is to be answered with.\n const claims = new Map<string, Option.Option<unknown>>();\n\n const unitOfWork: InMemoryUnitOfWork = {\n get records() {\n return records;\n },\n get outbox() {\n return outbox;\n },\n\n run: (body, options) =>\n Effect.gen(function* () {\n const key = options?.claim ? claimKey(options.claim) : undefined;\n const taken = key === undefined ? undefined : claims.get(key);\n if (taken !== undefined) {\n return { _tag: 'duplicate' as const, replay: taken };\n }\n\n const handle: InMemoryUnitHandle = { records: new Map(records) };\n const emitted: OutboxEvent[] = [];\n const outcome = yield* Effect.result(\n body({ handle, emit: event => void emitted.push(event) }),\n );\n\n if (Result.isFailure(outcome)) {\n if (isStoreFault(outcome.failure)) {\n return yield* Effect.fail(outcome.failure);\n }\n return {\n _tag: 'aborted' as const,\n reason: outcome.failure as never,\n };\n }\n\n // An event id already recorded is the outbox's own idempotency claim:\n // the work it announces has committed before.\n if (emitted.some(event => eventIds.has(event.id))) {\n return { _tag: 'duplicate' as const, replay: Option.none() };\n }\n\n records = handle.records;\n for (const event of emitted) {\n eventIds.add(event.id);\n outbox.push(event);\n }\n if (key !== undefined) {\n claims.set(\n key,\n options?.replay && options.claim?.kind === 'command'\n ? Option.some(options.replay(outcome.success))\n : Option.none(),\n );\n }\n\n if (options?.afterCommit) {\n yield* options.afterCommit.pipe(Effect.ignore);\n }\n return { _tag: 'committed' as const, value: outcome.success };\n }),\n\n replay: commandId =>\n Effect.sync(() =>\n Option.flatten(\n Option.fromUndefinedOr(claims.get(`command:${commandId}`)),\n ),\n ),\n };\n\n return unitOfWork;\n};\n"],"names":["isStoreFault","Effect","Option","Result","claimKey","claim","kind","consumer","eventId","commandId","makeInMemoryUnitOfWork","seed","records","Map","outbox","eventIds","Set","claims","unitOfWork","run","body","options","gen","key","undefined","taken","get","_tag","replay","handle","emitted","outcome","result","emit","event","push","isFailure","failure","fail","reason","some","has","id","none","add","set","success","afterCommit","pipe","ignore","value","sync","flatten","fromUndefinedOr"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAE7C,SAASC,MAAM,EAAEC,MAAM,EAAEC,MAAM,QAAQ,SAAS;AAiBhD,MAAMC,WAAW,CAACC,QAChBA,MAAMC,IAAI,KAAK,UACX,CAAC,MAAM,EAAED,MAAME,QAAQ,CAAC,CAAC,EAAEF,MAAMG,OAAO,EAAE,GAC1C,CAAC,QAAQ,EAAEH,MAAMI,SAAS,EAAE;AAElC;;;;;;;;;CASC,GACD,OAAO,MAAMC,yBAAyB,CACpCC,OAA6C,EAAE;IAE/C,IAAIC,UAAU,IAAIC,IAAqBF;IACvC,MAAMG,SAAwB,EAAE;IAChC,MAAMC,WAAW,IAAIC;IACrB,mEAAmE;IACnE,MAAMC,SAAS,IAAIJ;IAEnB,MAAMK,aAAiC;QACrC,IAAIN;YACF,OAAOA;QACT;QACA,IAAIE;YACF,OAAOA;QACT;QAEAK,KAAK,CAACC,MAAMC,UACVpB,OAAOqB,GAAG,CAAC;gBACT,MAAMC,MAAMF,CAAAA,2B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,IAAI;gBAEnB;gBAEA,IAAItB,2BAAAA,QAAS0B,WAAW,EAAE;oBACxB,OAAO1B,QAAQ0B,WAAW,CAACC,IAAI,CAAC/C,OAAOgD,MAAM;gBAC/C;gBACA,OAAO;oBAAEtB,MAAM;oBAAsBuB,OAAOnB,QAAQe,OAAO;gBAAC;YAC9D;QAEFlB,QAAQnB,CAAAA,YACNR,OAAOkD,IAAI,CAAC,IACVjD,OAAOkD,OAAO,CACZlD,OAAOmD,eAAe,CAACpC,OAAOS,GAAG,CAAC,CAAC,QAAQ,EAAEjB,WAAW;IAGhE;IAEA,OAAOS;AACT,EAAE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,10 @@ export * from './builders/entity-builder.js';
|
|
|
2
2
|
export * from './doubles/configuration.js';
|
|
3
3
|
export * from './doubles/entity-facet-counter.js';
|
|
4
4
|
export * from './doubles/entity-repository.js';
|
|
5
|
+
export * from './doubles/flow-engine.js';
|
|
6
|
+
export * from './doubles/idempotency-store.js';
|
|
5
7
|
export * from './doubles/link-resolver.js';
|
|
8
|
+
export * from './doubles/outbox.js';
|
|
6
9
|
export * from './doubles/transaction-ports.js';
|
|
7
10
|
export * from './doubles/unit-of-work.js';
|
|
8
11
|
export * from './effect/run.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,10 @@ export * from './builders/entity-builder.js';
|
|
|
2
2
|
export * from './doubles/configuration.js';
|
|
3
3
|
export * from './doubles/entity-facet-counter.js';
|
|
4
4
|
export * from './doubles/entity-repository.js';
|
|
5
|
+
export * from './doubles/flow-engine.js';
|
|
6
|
+
export * from './doubles/idempotency-store.js';
|
|
5
7
|
export * from './doubles/link-resolver.js';
|
|
8
|
+
export * from './doubles/outbox.js';
|
|
6
9
|
export * from './doubles/transaction-ports.js';
|
|
7
10
|
export * from './doubles/unit-of-work.js';
|
|
8
11
|
export * from './effect/run.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './builders/entity-builder.js';\nexport * from './doubles/configuration.js';\nexport * from './doubles/entity-facet-counter.js';\nexport * from './doubles/entity-repository.js';\nexport * from './doubles/link-resolver.js';\nexport * from './doubles/transaction-ports.js';\nexport * from './doubles/unit-of-work.js';\nexport * from './effect/run.js';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,oCAAoC;AAClD,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C,cAAc,4BAA4B;AAC1C,cAAc,kBAAkB"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './builders/entity-builder.js';\nexport * from './doubles/configuration.js';\nexport * from './doubles/entity-facet-counter.js';\nexport * from './doubles/entity-repository.js';\nexport * from './doubles/flow-engine.js';\nexport * from './doubles/idempotency-store.js';\nexport * from './doubles/link-resolver.js';\nexport * from './doubles/outbox.js';\nexport * from './doubles/transaction-ports.js';\nexport * from './doubles/unit-of-work.js';\nexport * from './effect/run.js';\n"],"names":[],"mappings":"AAAA,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,oCAAoC;AAClD,cAAc,iCAAiC;AAC/C,cAAc,2BAA2B;AACzC,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,4BAA4B;AAC1C,cAAc,kBAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entifix/testing-unit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Test doubles for entifix: in-memory ports, driver fakes for Mongo, Redis, RabbitMQ and SQL, MSW handlers and port contract suites.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@swc/helpers": "0.5.23",
|
|
75
|
-
"@entifix/business": "0.
|
|
76
|
-
"@entifix/
|
|
77
|
-
"@entifix/
|
|
75
|
+
"@entifix/business": "0.11.0",
|
|
76
|
+
"@entifix/core": "0.11.0",
|
|
77
|
+
"@entifix/transactions": "0.11.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@testing-library/react": "*",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"msw": ">=3",
|
|
83
83
|
"react": "*",
|
|
84
84
|
"vitest": "*",
|
|
85
|
-
"@entifix/react-controls": "0.
|
|
85
|
+
"@entifix/react-controls": "0.11.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependenciesMeta": {
|
|
88
88
|
"@entifix/react-controls": {
|