@satorio/machinery 0.2.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/LICENSE +21 -0
- package/README.md +71 -0
- package/dictionary/all.json +4656 -0
- package/dictionary/all.toon +639 -0
- package/dictionary/core.json +221 -0
- package/dictionary/core.toon +33 -0
- package/dictionary/graphql.json +212 -0
- package/dictionary/graphql.toon +32 -0
- package/dictionary/http.json +113 -0
- package/dictionary/http.toon +21 -0
- package/dictionary/identifiers.json +266 -0
- package/dictionary/identifiers.toon +38 -0
- package/dictionary/index.json +96 -0
- package/dictionary/index.toon +18 -0
- package/dictionary/integration.json +131 -0
- package/dictionary/integration.toon +23 -0
- package/dictionary/money.json +383 -0
- package/dictionary/money.toon +51 -0
- package/dictionary/ports.json +392 -0
- package/dictionary/ports.toon +52 -0
- package/dictionary/postgres.json +473 -0
- package/dictionary/postgres.toon +61 -0
- package/dictionary/publishing.json +131 -0
- package/dictionary/publishing.toon +23 -0
- package/dictionary/queue.json +365 -0
- package/dictionary/queue.toon +49 -0
- package/dictionary/reference/api.mdx +843 -0
- package/dictionary/reference/uk/api.mdx +844 -0
- package/dictionary/storage.json +194 -0
- package/dictionary/storage.toon +30 -0
- package/dictionary/testing.json +707 -0
- package/dictionary/testing.toon +87 -0
- package/dictionary/time.json +311 -0
- package/dictionary/time.toon +43 -0
- package/dictionary/vitest.json +356 -0
- package/dictionary/vitest.toon +48 -0
- package/dictionary/workflow.json +185 -0
- package/dictionary/workflow.toon +29 -0
- package/dist/bin/command.d.ts +45 -0
- package/dist/bin/command.js +113 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +11 -0
- package/dist/core/bigint-json.d.ts +6 -0
- package/dist/core/bigint-json.js +6 -0
- package/dist/core/closed-set.d.ts +14 -0
- package/dist/core/closed-set.js +8 -0
- package/dist/core/domain-error.d.ts +8 -0
- package/dist/core/domain-error.js +11 -0
- package/dist/core/environment.d.ts +124 -0
- package/dist/core/environment.js +115 -0
- package/dist/core/index.d.ts +13 -0
- package/dist/core/index.js +13 -0
- package/dist/core/ulid.d.ts +27 -0
- package/dist/core/ulid.js +27 -0
- package/dist/graphql/builder.d.ts +36 -0
- package/dist/graphql/builder.js +35 -0
- package/dist/graphql/context.d.ts +36 -0
- package/dist/graphql/context.js +69 -0
- package/dist/graphql/failure-classification.d.ts +11 -0
- package/dist/graphql/failure-classification.js +1 -0
- package/dist/graphql/failures.d.ts +62 -0
- package/dist/graphql/failures.js +30 -0
- package/dist/graphql/graphiql.d.ts +45 -0
- package/dist/graphql/graphiql.js +56 -0
- package/dist/graphql/index.d.ts +15 -0
- package/dist/graphql/index.js +14 -0
- package/dist/graphql/layer.d.ts +15 -0
- package/dist/graphql/layer.js +23 -0
- package/dist/graphql/request-handler.d.ts +26 -0
- package/dist/graphql/request-handler.js +33 -0
- package/dist/graphql/server.d.ts +19 -0
- package/dist/graphql/server.js +16 -0
- package/dist/graphql/settings.d.ts +55 -0
- package/dist/graphql/settings.js +82 -0
- package/dist/http/health.d.ts +70 -0
- package/dist/http/health.js +60 -0
- package/dist/http/index.d.ts +5 -0
- package/dist/http/index.js +5 -0
- package/dist/identifiers/client-code.d.ts +37 -0
- package/dist/identifiers/client-code.js +41 -0
- package/dist/identifiers/creditor-reference.d.ts +38 -0
- package/dist/identifiers/creditor-reference.js +32 -0
- package/dist/identifiers/damm.d.ts +22 -0
- package/dist/identifiers/damm.js +50 -0
- package/dist/identifiers/document-number.d.ts +68 -0
- package/dist/identifiers/document-number.js +73 -0
- package/dist/identifiers/document-numbers.d.ts +27 -0
- package/dist/identifiers/document-numbers.js +16 -0
- package/dist/identifiers/failures.d.ts +46 -0
- package/dist/identifiers/failures.js +48 -0
- package/dist/identifiers/index.d.ts +14 -0
- package/dist/identifiers/index.js +13 -0
- package/dist/identifiers/next-document-number.d.ts +26 -0
- package/dist/identifiers/next-document-number.js +31 -0
- package/dist/identifiers/ulid.d.ts +28 -0
- package/dist/identifiers/ulid.js +71 -0
- package/dist/integration/external-http-client.d.ts +22 -0
- package/dist/integration/external-http-client.js +74 -0
- package/dist/integration/index.d.ts +12 -0
- package/dist/integration/index.js +12 -0
- package/dist/integration/layer.d.ts +19 -0
- package/dist/integration/layer.js +30 -0
- package/dist/integration/retry.d.ts +65 -0
- package/dist/integration/retry.js +54 -0
- package/dist/integration/settings.d.ts +73 -0
- package/dist/integration/settings.js +92 -0
- package/dist/money/amount.d.ts +60 -0
- package/dist/money/amount.js +67 -0
- package/dist/money/arithmetic.d.ts +60 -0
- package/dist/money/arithmetic.js +73 -0
- package/dist/money/currency.d.ts +25 -0
- package/dist/money/currency.js +24 -0
- package/dist/money/decimal.d.ts +29 -0
- package/dist/money/decimal.js +39 -0
- package/dist/money/exchange-rate.d.ts +32 -0
- package/dist/money/exchange-rate.js +28 -0
- package/dist/money/failures.d.ts +86 -0
- package/dist/money/failures.js +97 -0
- package/dist/money/index.d.ts +15 -0
- package/dist/money/index.js +15 -0
- package/dist/money/percent.d.ts +35 -0
- package/dist/money/percent.js +50 -0
- package/dist/money/schema.d.ts +25 -0
- package/dist/money/schema.js +41 -0
- package/dist/ports/blob-store.d.ts +42 -0
- package/dist/ports/blob-store.js +13 -0
- package/dist/ports/document-number-counter.d.ts +36 -0
- package/dist/ports/document-number-counter.js +12 -0
- package/dist/ports/event-publisher.d.ts +29 -0
- package/dist/ports/event-publisher.js +13 -0
- package/dist/ports/external-http-client.d.ts +60 -0
- package/dist/ports/external-http-client.js +25 -0
- package/dist/ports/index.d.ts +17 -0
- package/dist/ports/index.js +17 -0
- package/dist/ports/integration-event-outbox.d.ts +44 -0
- package/dist/ports/integration-event-outbox.js +13 -0
- package/dist/ports/port-unavailable.d.ts +21 -0
- package/dist/ports/port-unavailable.js +30 -0
- package/dist/ports/processed-event-registry.d.ts +57 -0
- package/dist/ports/processed-event-registry.js +24 -0
- package/dist/ports/queue-message-producer.d.ts +26 -0
- package/dist/ports/queue-message-producer.js +12 -0
- package/dist/ports/queue-message-source.d.ts +39 -0
- package/dist/ports/queue-message-source.js +13 -0
- package/dist/ports/readiness-probe.d.ts +27 -0
- package/dist/ports/readiness-probe.js +13 -0
- package/dist/ports/transaction-boundary.d.ts +28 -0
- package/dist/ports/transaction-boundary.js +13 -0
- package/dist/postgres/client.d.ts +51 -0
- package/dist/postgres/client.js +81 -0
- package/dist/postgres/document-number-counter.d.ts +14 -0
- package/dist/postgres/document-number-counter.js +27 -0
- package/dist/postgres/failures.d.ts +28 -0
- package/dist/postgres/failures.js +18 -0
- package/dist/postgres/index.d.ts +18 -0
- package/dist/postgres/index.js +18 -0
- package/dist/postgres/integration-event-outbox.d.ts +15 -0
- package/dist/postgres/integration-event-outbox.js +60 -0
- package/dist/postgres/jsonb-value.d.ts +10 -0
- package/dist/postgres/jsonb-value.js +9 -0
- package/dist/postgres/layer.d.ts +57 -0
- package/dist/postgres/layer.js +72 -0
- package/dist/postgres/migrations/advisory-lock.d.ts +47 -0
- package/dist/postgres/migrations/advisory-lock.js +59 -0
- package/dist/postgres/migrations/runner.d.ts +56 -0
- package/dist/postgres/migrations/runner.js +69 -0
- package/dist/postgres/migrations/sql-file-loader.d.ts +59 -0
- package/dist/postgres/migrations/sql-file-loader.js +99 -0
- package/dist/postgres/processed-event-registry.d.ts +13 -0
- package/dist/postgres/processed-event-registry.js +44 -0
- package/dist/postgres/readiness-probe.d.ts +27 -0
- package/dist/postgres/readiness-probe.js +33 -0
- package/dist/postgres/settings.d.ts +134 -0
- package/dist/postgres/settings.js +210 -0
- package/dist/postgres/sql/0001_processed_event.sql +4 -0
- package/dist/postgres/sql/0002_integration_event_outbox.sql +13 -0
- package/dist/postgres/sql/0003_document_number_counter.sql +6 -0
- package/dist/postgres/sql-failure.d.ts +19 -0
- package/dist/postgres/sql-failure.js +22 -0
- package/dist/postgres/store-failure.d.ts +17 -0
- package/dist/postgres/store-failure.js +16 -0
- package/dist/postgres/transaction-boundary.d.ts +13 -0
- package/dist/postgres/transaction-boundary.js +21 -0
- package/dist/publishing/event-publisher.sns.d.ts +66 -0
- package/dist/publishing/event-publisher.sns.js +75 -0
- package/dist/publishing/event-publisher.stdout.d.ts +15 -0
- package/dist/publishing/event-publisher.stdout.js +24 -0
- package/dist/publishing/index.d.ts +10 -0
- package/dist/publishing/index.js +10 -0
- package/dist/publishing/layer.d.ts +25 -0
- package/dist/publishing/layer.js +39 -0
- package/dist/publishing/settings.d.ts +60 -0
- package/dist/publishing/settings.js +85 -0
- package/dist/queue/consumer.d.ts +91 -0
- package/dist/queue/consumer.js +92 -0
- package/dist/queue/envelope.d.ts +39 -0
- package/dist/queue/envelope.js +39 -0
- package/dist/queue/failures.d.ts +33 -0
- package/dist/queue/failures.js +15 -0
- package/dist/queue/index.d.ts +14 -0
- package/dist/queue/index.js +14 -0
- package/dist/queue/layer.d.ts +33 -0
- package/dist/queue/layer.js +58 -0
- package/dist/queue/message-codec.d.ts +43 -0
- package/dist/queue/message-codec.js +33 -0
- package/dist/queue/queue-message-producer.d.ts +61 -0
- package/dist/queue/queue-message-producer.js +52 -0
- package/dist/queue/queue-message-source.d.ts +93 -0
- package/dist/queue/queue-message-source.js +86 -0
- package/dist/queue/readiness.d.ts +78 -0
- package/dist/queue/readiness.js +86 -0
- package/dist/queue/settings.d.ts +106 -0
- package/dist/queue/settings.js +160 -0
- package/dist/storage/blob-store.d.ts +84 -0
- package/dist/storage/blob-store.js +109 -0
- package/dist/storage/index.d.ts +9 -0
- package/dist/storage/index.js +9 -0
- package/dist/storage/layer.d.ts +17 -0
- package/dist/storage/layer.js +30 -0
- package/dist/storage/settings.d.ts +48 -0
- package/dist/storage/settings.js +65 -0
- package/dist/testing/blob-store.d.ts +27 -0
- package/dist/testing/blob-store.js +45 -0
- package/dist/testing/clock.d.ts +29 -0
- package/dist/testing/clock.js +41 -0
- package/dist/testing/dna-perturbator/attention.d.ts +55 -0
- package/dist/testing/dna-perturbator/attention.js +49 -0
- package/dist/testing/dna-perturbator/chains.d.ts +31 -0
- package/dist/testing/dna-perturbator/chains.js +53 -0
- package/dist/testing/dna-perturbator/report.d.ts +12 -0
- package/dist/testing/dna-perturbator/report.js +22 -0
- package/dist/testing/dna-perturbator/verdict.d.ts +26 -0
- package/dist/testing/dna-perturbator/verdict.js +28 -0
- package/dist/testing/dna-perturbator.d.ts +48 -0
- package/dist/testing/dna-perturbator.js +145 -0
- package/dist/testing/document-number-counter.d.ts +29 -0
- package/dist/testing/document-number-counter.js +39 -0
- package/dist/testing/event-publisher.d.ts +28 -0
- package/dist/testing/event-publisher.js +33 -0
- package/dist/testing/external-http-client.d.ts +29 -0
- package/dist/testing/external-http-client.js +49 -0
- package/dist/testing/index.d.ts +24 -0
- package/dist/testing/index.js +24 -0
- package/dist/testing/integration-event-outbox.d.ts +37 -0
- package/dist/testing/integration-event-outbox.js +67 -0
- package/dist/testing/mutation-settings.d.ts +71 -0
- package/dist/testing/mutation-settings.js +57 -0
- package/dist/testing/postgres-rows.d.ts +12 -0
- package/dist/testing/postgres-rows.js +19 -0
- package/dist/testing/processed-event-registry.d.ts +25 -0
- package/dist/testing/processed-event-registry.js +39 -0
- package/dist/testing/queue-message-producer.d.ts +27 -0
- package/dist/testing/queue-message-producer.js +41 -0
- package/dist/testing/queue-message-source.d.ts +54 -0
- package/dist/testing/queue-message-source.js +71 -0
- package/dist/testing/quiet-reporter.d.ts +86 -0
- package/dist/testing/quiet-reporter.js +81 -0
- package/dist/testing/readiness-probe.d.ts +27 -0
- package/dist/testing/readiness-probe.js +33 -0
- package/dist/testing/scenario.d.ts +94 -0
- package/dist/testing/scenario.js +81 -0
- package/dist/testing/transaction-boundary.d.ts +30 -0
- package/dist/testing/transaction-boundary.js +36 -0
- package/dist/testing/typed-failure.d.ts +8 -0
- package/dist/testing/typed-failure.js +15 -0
- package/dist/time/calendar-day.d.ts +83 -0
- package/dist/time/calendar-day.js +112 -0
- package/dist/time/failures.d.ts +51 -0
- package/dist/time/failures.js +56 -0
- package/dist/time/index.d.ts +11 -0
- package/dist/time/index.js +11 -0
- package/dist/time/instant.d.ts +64 -0
- package/dist/time/instant.js +67 -0
- package/dist/time/period.d.ts +45 -0
- package/dist/time/period.js +55 -0
- package/dist/vitest/container-reuse.d.ts +14 -0
- package/dist/vitest/container-reuse.js +15 -0
- package/dist/vitest/dotenv.d.ts +16 -0
- package/dist/vitest/dotenv.js +48 -0
- package/dist/vitest/effect-single-instance.d.ts +36 -0
- package/dist/vitest/effect-single-instance.js +125 -0
- package/dist/vitest/fast-check-single-instance.d.ts +11 -0
- package/dist/vitest/fast-check-single-instance.js +26 -0
- package/dist/vitest/index.d.ts +31 -0
- package/dist/vitest/index.js +30 -0
- package/dist/vitest/localstack-container.d.ts +32 -0
- package/dist/vitest/localstack-container.js +55 -0
- package/dist/vitest/port-contract-tester.d.ts +8 -0
- package/dist/vitest/port-contract-tester.js +1 -0
- package/dist/vitest/port-contracts/blob-store.contract.d.ts +22 -0
- package/dist/vitest/port-contracts/blob-store.contract.js +108 -0
- package/dist/vitest/port-contracts/document-number-counter.contract.d.ts +18 -0
- package/dist/vitest/port-contracts/document-number-counter.contract.js +90 -0
- package/dist/vitest/port-contracts/event-publisher.contract.d.ts +35 -0
- package/dist/vitest/port-contracts/event-publisher.contract.js +67 -0
- package/dist/vitest/port-contracts/external-http-client.contract.d.ts +35 -0
- package/dist/vitest/port-contracts/external-http-client.contract.js +52 -0
- package/dist/vitest/port-contracts/integration-event-outbox.contract.d.ts +23 -0
- package/dist/vitest/port-contracts/integration-event-outbox.contract.js +75 -0
- package/dist/vitest/port-contracts/processed-event-registry.contract.d.ts +18 -0
- package/dist/vitest/port-contracts/processed-event-registry.contract.js +84 -0
- package/dist/vitest/port-contracts/queue-message-producer.contract.d.ts +26 -0
- package/dist/vitest/port-contracts/queue-message-producer.contract.js +48 -0
- package/dist/vitest/port-contracts/queue-message-source.contract.d.ts +29 -0
- package/dist/vitest/port-contracts/queue-message-source.contract.js +71 -0
- package/dist/vitest/port-contracts/readiness-probe.contract.d.ts +18 -0
- package/dist/vitest/port-contracts/readiness-probe.contract.js +41 -0
- package/dist/vitest/port-contracts/transaction-boundary.contract.d.ts +21 -0
- package/dist/vitest/port-contracts/transaction-boundary.contract.js +64 -0
- package/dist/vitest/postgres-container.d.ts +57 -0
- package/dist/vitest/postgres-container.js +118 -0
- package/dist/vitest/reader-port-contract.d.ts +41 -0
- package/dist/vitest/reader-port-contract.js +43 -0
- package/dist/vitest/repo-source-files.d.ts +37 -0
- package/dist/vitest/repo-source-files.js +61 -0
- package/dist/vitest/reset-tables.d.ts +18 -0
- package/dist/vitest/reset-tables.js +30 -0
- package/dist/vitest/settings-contract.d.ts +38 -0
- package/dist/vitest/settings-contract.js +77 -0
- package/dist/vitest/stub-server.d.ts +43 -0
- package/dist/vitest/stub-server.js +60 -0
- package/dist/vitest/term-registry.json +730 -0
- package/dist/vitest/testclock-fork-isolated-files.d.ts +13 -0
- package/dist/vitest/testclock-fork-isolated-files.js +18 -0
- package/dist/vitest/testclock-fork-isolation.d.ts +77 -0
- package/dist/vitest/testclock-fork-isolation.js +188 -0
- package/dist/workflow/claim-once.d.ts +16 -0
- package/dist/workflow/claim-once.js +9 -0
- package/dist/workflow/failures.d.ts +47 -0
- package/dist/workflow/failures.js +22 -0
- package/dist/workflow/index.d.ts +12 -0
- package/dist/workflow/index.js +12 -0
- package/dist/workflow/on-claim.d.ts +17 -0
- package/dist/workflow/on-claim.js +8 -0
- package/dist/workflow/publish-pending-events.d.ts +31 -0
- package/dist/workflow/publish-pending-events.js +31 -0
- package/dist/workflow/transactionally.d.ts +8 -0
- package/dist/workflow/transactionally.js +8 -0
- package/dist/workflow/versioned-payload.d.ts +35 -0
- package/dist/workflow/versioned-payload.js +43 -0
- package/package.json +309 -0
package/package.json
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@satorio/machinery",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "The machinery half of a backend service: the shared engine your own service plugs into.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Satorio",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"bin": {
|
|
12
|
+
"satorio-machinery": "dist/bin.js"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"dictionary",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
"./core": {
|
|
23
|
+
"types": "./dist/core/index.d.ts",
|
|
24
|
+
"default": "./dist/core/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./time": {
|
|
27
|
+
"types": "./dist/time/index.d.ts",
|
|
28
|
+
"default": "./dist/time/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./money": {
|
|
31
|
+
"types": "./dist/money/index.d.ts",
|
|
32
|
+
"default": "./dist/money/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./identifiers": {
|
|
35
|
+
"types": "./dist/identifiers/index.d.ts",
|
|
36
|
+
"default": "./dist/identifiers/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./ports": {
|
|
39
|
+
"types": "./dist/ports/index.d.ts",
|
|
40
|
+
"default": "./dist/ports/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./workflow": {
|
|
43
|
+
"types": "./dist/workflow/index.d.ts",
|
|
44
|
+
"default": "./dist/workflow/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./postgres": {
|
|
47
|
+
"types": "./dist/postgres/index.d.ts",
|
|
48
|
+
"default": "./dist/postgres/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./queue": {
|
|
51
|
+
"types": "./dist/queue/index.d.ts",
|
|
52
|
+
"default": "./dist/queue/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./graphql": {
|
|
55
|
+
"types": "./dist/graphql/index.d.ts",
|
|
56
|
+
"default": "./dist/graphql/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./http": {
|
|
59
|
+
"types": "./dist/http/index.d.ts",
|
|
60
|
+
"default": "./dist/http/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./integration": {
|
|
63
|
+
"types": "./dist/integration/index.d.ts",
|
|
64
|
+
"default": "./dist/integration/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./publishing": {
|
|
67
|
+
"types": "./dist/publishing/index.d.ts",
|
|
68
|
+
"default": "./dist/publishing/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./storage": {
|
|
71
|
+
"types": "./dist/storage/index.d.ts",
|
|
72
|
+
"default": "./dist/storage/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./testing": {
|
|
75
|
+
"types": "./dist/testing/index.d.ts",
|
|
76
|
+
"default": "./dist/testing/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./vitest": {
|
|
79
|
+
"types": "./dist/vitest/index.d.ts",
|
|
80
|
+
"default": "./dist/vitest/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./package.json": "./package.json"
|
|
83
|
+
},
|
|
84
|
+
"typesVersions": {
|
|
85
|
+
"*": {
|
|
86
|
+
"core": [
|
|
87
|
+
"./dist/core/index.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"time": [
|
|
90
|
+
"./dist/time/index.d.ts"
|
|
91
|
+
],
|
|
92
|
+
"money": [
|
|
93
|
+
"./dist/money/index.d.ts"
|
|
94
|
+
],
|
|
95
|
+
"identifiers": [
|
|
96
|
+
"./dist/identifiers/index.d.ts"
|
|
97
|
+
],
|
|
98
|
+
"ports": [
|
|
99
|
+
"./dist/ports/index.d.ts"
|
|
100
|
+
],
|
|
101
|
+
"workflow": [
|
|
102
|
+
"./dist/workflow/index.d.ts"
|
|
103
|
+
],
|
|
104
|
+
"postgres": [
|
|
105
|
+
"./dist/postgres/index.d.ts"
|
|
106
|
+
],
|
|
107
|
+
"queue": [
|
|
108
|
+
"./dist/queue/index.d.ts"
|
|
109
|
+
],
|
|
110
|
+
"graphql": [
|
|
111
|
+
"./dist/graphql/index.d.ts"
|
|
112
|
+
],
|
|
113
|
+
"http": [
|
|
114
|
+
"./dist/http/index.d.ts"
|
|
115
|
+
],
|
|
116
|
+
"integration": [
|
|
117
|
+
"./dist/integration/index.d.ts"
|
|
118
|
+
],
|
|
119
|
+
"publishing": [
|
|
120
|
+
"./dist/publishing/index.d.ts"
|
|
121
|
+
],
|
|
122
|
+
"storage": [
|
|
123
|
+
"./dist/storage/index.d.ts"
|
|
124
|
+
],
|
|
125
|
+
"testing": [
|
|
126
|
+
"./dist/testing/index.d.ts"
|
|
127
|
+
],
|
|
128
|
+
"vitest": [
|
|
129
|
+
"./dist/vitest/index.d.ts"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"engines": {
|
|
134
|
+
"bun": ">=1.3",
|
|
135
|
+
"node": ">=22"
|
|
136
|
+
},
|
|
137
|
+
"scripts": {
|
|
138
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/fix-esm-extensions.mjs && node scripts/copy-postgres-sql.mjs && node scripts/copy-guard-data.mjs",
|
|
139
|
+
"generate:dictionary": "bun run scripts/generate-dictionary.mjs",
|
|
140
|
+
"generate:glossary": "bun run scripts/generate-glossary.mjs",
|
|
141
|
+
"generate:surface": "bun run scripts/generate-surface.mjs",
|
|
142
|
+
"surface": "bun run scripts/surface.mjs",
|
|
143
|
+
"typecheck": "tsc --noEmit",
|
|
144
|
+
"deps": "depcruise --config .dependency-cruiser.mjs src guards",
|
|
145
|
+
"effect-diagnostics": "effect-language-service diagnostics --project tsconfig.json",
|
|
146
|
+
"test": "vitest run",
|
|
147
|
+
"test:watch": "vitest",
|
|
148
|
+
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile.junit=./reports/junit.xml",
|
|
149
|
+
"test:mutation": "bun run build && stryker run",
|
|
150
|
+
"dna:perturbator": "bun run src/testing/dna-perturbator.ts",
|
|
151
|
+
"surface:diff": "bun run node_modules/@satorio/canon/dist/vitest/surface-diff.js",
|
|
152
|
+
"coverage": "vitest run --coverage",
|
|
153
|
+
"format": "biome format --write .",
|
|
154
|
+
"lint": "biome lint .",
|
|
155
|
+
"check": "biome check . && bun run typecheck && bun run deps && bun run effect-diagnostics && bun run test",
|
|
156
|
+
"check:fast": "biome check . && vitest run --project main --exclude '**/*.postgres.test.ts' --exclude '**/*.localstack.test.ts' src/vitest guards",
|
|
157
|
+
"check:ci": "biome check . && bun run typecheck && bun run deps && bun run effect-diagnostics && bun run test:ci",
|
|
158
|
+
"prepack": "bun run build && bun run generate:dictionary && bun run surface:diff",
|
|
159
|
+
"pack:dry": "bun pm pack --dry-run",
|
|
160
|
+
"hooks:install": "lefthook install"
|
|
161
|
+
},
|
|
162
|
+
"peerDependencies": {
|
|
163
|
+
"effect": "^3.22.1",
|
|
164
|
+
"dinero.js": "^2.0.2",
|
|
165
|
+
"ulid": "^3.0.2",
|
|
166
|
+
"node-iso11649": "^3.0.0",
|
|
167
|
+
"@effect/platform": "^0.97.1",
|
|
168
|
+
"@effect/platform-bun": "^0.91.2",
|
|
169
|
+
"@effect/sql": "^0.52.1",
|
|
170
|
+
"@effect/sql-pg": "^0.53.0",
|
|
171
|
+
"pg": "^8.23.0",
|
|
172
|
+
"@aws-sdk/client-sqs": "^3.1121.0",
|
|
173
|
+
"@aws-sdk/client-sns": "^3.1121.0",
|
|
174
|
+
"@aws-sdk/client-s3": "^3.1121.0",
|
|
175
|
+
"@aws-sdk/rds-signer": "^3.1121.0",
|
|
176
|
+
"graphql": "^16.11.0",
|
|
177
|
+
"graphql-yoga": "^5.22.0",
|
|
178
|
+
"@pothos/core": "^4.13.1",
|
|
179
|
+
"@pothos/plugin-directives": "^4.3.1",
|
|
180
|
+
"@pothos/plugin-federation": "^4.5.0",
|
|
181
|
+
"@pothos/plugin-sub-graph": "^4.5.1",
|
|
182
|
+
"@apollo/subgraph": "2.13.3",
|
|
183
|
+
"vitest": "^3.2.4",
|
|
184
|
+
"@effect/vitest": "^0.30.0",
|
|
185
|
+
"testcontainers": "^12.1.0",
|
|
186
|
+
"@testcontainers/postgresql": "^12.1.0",
|
|
187
|
+
"@testcontainers/localstack": "^12.1.0",
|
|
188
|
+
"fast-check": "3.23.2"
|
|
189
|
+
},
|
|
190
|
+
"peerDependenciesMeta": {
|
|
191
|
+
"@apollo/subgraph": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
194
|
+
"@aws-sdk/client-s3": {
|
|
195
|
+
"optional": true
|
|
196
|
+
},
|
|
197
|
+
"@aws-sdk/client-sns": {
|
|
198
|
+
"optional": true
|
|
199
|
+
},
|
|
200
|
+
"@aws-sdk/client-sqs": {
|
|
201
|
+
"optional": true
|
|
202
|
+
},
|
|
203
|
+
"@aws-sdk/rds-signer": {
|
|
204
|
+
"optional": true
|
|
205
|
+
},
|
|
206
|
+
"@effect/platform": {
|
|
207
|
+
"optional": true
|
|
208
|
+
},
|
|
209
|
+
"@effect/platform-bun": {
|
|
210
|
+
"optional": true
|
|
211
|
+
},
|
|
212
|
+
"@effect/sql": {
|
|
213
|
+
"optional": true
|
|
214
|
+
},
|
|
215
|
+
"@effect/sql-pg": {
|
|
216
|
+
"optional": true
|
|
217
|
+
},
|
|
218
|
+
"@effect/vitest": {
|
|
219
|
+
"optional": true
|
|
220
|
+
},
|
|
221
|
+
"@pothos/core": {
|
|
222
|
+
"optional": true
|
|
223
|
+
},
|
|
224
|
+
"@pothos/plugin-directives": {
|
|
225
|
+
"optional": true
|
|
226
|
+
},
|
|
227
|
+
"@pothos/plugin-federation": {
|
|
228
|
+
"optional": true
|
|
229
|
+
},
|
|
230
|
+
"@pothos/plugin-sub-graph": {
|
|
231
|
+
"optional": true
|
|
232
|
+
},
|
|
233
|
+
"@testcontainers/localstack": {
|
|
234
|
+
"optional": true
|
|
235
|
+
},
|
|
236
|
+
"@testcontainers/postgresql": {
|
|
237
|
+
"optional": true
|
|
238
|
+
},
|
|
239
|
+
"dinero.js": {
|
|
240
|
+
"optional": true
|
|
241
|
+
},
|
|
242
|
+
"fast-check": {
|
|
243
|
+
"optional": true
|
|
244
|
+
},
|
|
245
|
+
"graphql": {
|
|
246
|
+
"optional": true
|
|
247
|
+
},
|
|
248
|
+
"graphql-yoga": {
|
|
249
|
+
"optional": true
|
|
250
|
+
},
|
|
251
|
+
"node-iso11649": {
|
|
252
|
+
"optional": true
|
|
253
|
+
},
|
|
254
|
+
"pg": {
|
|
255
|
+
"optional": true
|
|
256
|
+
},
|
|
257
|
+
"testcontainers": {
|
|
258
|
+
"optional": true
|
|
259
|
+
},
|
|
260
|
+
"ulid": {
|
|
261
|
+
"optional": true
|
|
262
|
+
},
|
|
263
|
+
"vitest": {
|
|
264
|
+
"optional": true
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"devDependencies": {
|
|
268
|
+
"@apollo/subgraph": "2.13.3",
|
|
269
|
+
"@aws-sdk/client-s3": "3.1123.0",
|
|
270
|
+
"@aws-sdk/client-sns": "3.1123.0",
|
|
271
|
+
"@aws-sdk/client-sqs": "3.1123.0",
|
|
272
|
+
"@aws-sdk/rds-signer": "3.1123.0",
|
|
273
|
+
"@biomejs/biome": "2.5.11",
|
|
274
|
+
"@effect/language-service": "0.87.2",
|
|
275
|
+
"@effect/platform": "0.97.1",
|
|
276
|
+
"@effect/platform-bun": "0.91.2",
|
|
277
|
+
"@effect/sql": "0.52.1",
|
|
278
|
+
"@effect/sql-pg": "0.53.0",
|
|
279
|
+
"@effect/vitest": "0.30.0",
|
|
280
|
+
"@pothos/core": "4.13.1",
|
|
281
|
+
"@pothos/plugin-directives": "4.3.1",
|
|
282
|
+
"@pothos/plugin-federation": "4.5.0",
|
|
283
|
+
"@pothos/plugin-sub-graph": "4.5.1",
|
|
284
|
+
"@satorio/canon": "0.1.1",
|
|
285
|
+
"@stryker-mutator/core": "10.0.0",
|
|
286
|
+
"@stryker-mutator/typescript-checker": "10.0.0",
|
|
287
|
+
"@stryker-mutator/vitest-runner": "10.0.0",
|
|
288
|
+
"@testcontainers/localstack": "12.1.0",
|
|
289
|
+
"@testcontainers/postgresql": "12.1.0",
|
|
290
|
+
"@toon-format/toon": "4.1.1",
|
|
291
|
+
"@types/node": "26.4.0",
|
|
292
|
+
"@types/pg": "8.23.1",
|
|
293
|
+
"@vitest/coverage-istanbul": "3.2.7",
|
|
294
|
+
"bun-types": "1.4.0",
|
|
295
|
+
"dependency-cruiser": "18.2.0",
|
|
296
|
+
"dinero.js": "2.0.2",
|
|
297
|
+
"effect": "3.22.1",
|
|
298
|
+
"fast-check": "3.23.2",
|
|
299
|
+
"graphql": "16.14.2",
|
|
300
|
+
"graphql-yoga": "5.22.0",
|
|
301
|
+
"lefthook": "2.1.12",
|
|
302
|
+
"node-iso11649": "3.0.0",
|
|
303
|
+
"pg": "8.23.0",
|
|
304
|
+
"testcontainers": "12.1.0",
|
|
305
|
+
"typescript": "5.9.3",
|
|
306
|
+
"ulid": "3.0.2",
|
|
307
|
+
"vitest": "3.2.7"
|
|
308
|
+
}
|
|
309
|
+
}
|