ddd-ts-kit 0.111.0 → 0.112.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/CHANGELOG.md +112 -0
- package/README.fr.md +35 -6
- package/README.md +32 -5
- package/dist/alias/index.d.ts +2 -0
- package/dist/alias/index.d.ts.map +1 -1
- package/dist/alias/index.js +2 -0
- package/dist/alias/index.js.map +1 -1
- package/dist/alias/neighbour-sources.d.ts +17 -0
- package/dist/alias/neighbour-sources.d.ts.map +1 -0
- package/dist/alias/neighbour-sources.js +11 -0
- package/dist/alias/neighbour-sources.js.map +1 -0
- package/dist/alias/neighbour-suffix.d.ts +8 -0
- package/dist/alias/neighbour-suffix.d.ts.map +1 -0
- package/dist/alias/neighbour-suffix.js +10 -0
- package/dist/alias/neighbour-suffix.js.map +1 -0
- package/dist/build/rewrite-aliases.d.ts.map +1 -1
- package/dist/build/rewrite-aliases.js +11 -0
- package/dist/build/rewrite-aliases.js.map +1 -1
- package/dist/check/alias/build-scripts.d.ts.map +1 -1
- package/dist/check/alias/build-scripts.js +4 -8
- package/dist/check/alias/build-scripts.js.map +1 -1
- package/dist/check/alias/compiler-options-of.d.ts +3 -3
- package/dist/check/alias/compiler-options-of.js +17 -6
- package/dist/check/alias/compiler-options-of.js.map +1 -1
- package/dist/check/alias/neighbour-sources.d.ts +12 -0
- package/dist/check/alias/neighbour-sources.d.ts.map +1 -0
- package/dist/check/alias/neighbour-sources.js +80 -0
- package/dist/check/alias/neighbour-sources.js.map +1 -0
- package/dist/check/alias/script-steps.d.ts +11 -0
- package/dist/check/alias/script-steps.d.ts.map +1 -0
- package/dist/check/alias/script-steps.js +22 -0
- package/dist/check/alias/script-steps.js.map +1 -0
- package/dist/check/aspects/adapter-policies.d.ts +10 -0
- package/dist/check/aspects/adapter-policies.d.ts.map +1 -0
- package/dist/check/aspects/adapter-policies.js +104 -0
- package/dist/check/aspects/adapter-policies.js.map +1 -0
- package/dist/check/aspects/adapter-policy.d.ts +18 -0
- package/dist/check/aspects/adapter-policy.d.ts.map +1 -0
- package/dist/check/aspects/adapter-policy.js +2 -0
- package/dist/check/aspects/adapter-policy.js.map +1 -0
- package/dist/check/aspects/is-under-condition.d.ts +7 -0
- package/dist/check/aspects/is-under-condition.d.ts.map +1 -0
- package/dist/check/aspects/is-under-condition.js +50 -0
- package/dist/check/aspects/is-under-condition.js.map +1 -0
- package/dist/check/aspects/stated-policy.d.ts +18 -0
- package/dist/check/aspects/stated-policy.d.ts.map +1 -0
- package/dist/check/aspects/stated-policy.js +39 -0
- package/dist/check/aspects/stated-policy.js.map +1 -0
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +4 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/explain/imports-docs.d.ts.map +1 -1
- package/dist/check/explain/imports-docs.js +5 -3
- package/dist/check/explain/imports-docs.js.map +1 -1
- package/dist/check/explain/persistence-docs.d.ts.map +1 -1
- package/dist/check/explain/persistence-docs.js +21 -0
- package/dist/check/explain/persistence-docs.js.map +1 -1
- package/dist/check/explain/standard-docs.d.ts.map +1 -1
- package/dist/check/explain/standard-docs.js +16 -0
- package/dist/check/explain/standard-docs.js.map +1 -1
- package/dist/check/files/kit-content-types.d.ts +12 -0
- package/dist/check/files/kit-content-types.d.ts.map +1 -0
- package/dist/check/files/kit-content-types.js +38 -0
- package/dist/check/files/kit-content-types.js.map +1 -0
- package/dist/check/files/upload-content-defect.d.ts +7 -0
- package/dist/check/files/upload-content-defect.d.ts.map +1 -0
- package/dist/check/files/upload-content-defect.js +2 -0
- package/dist/check/files/upload-content-defect.js.map +1 -0
- package/dist/check/files/upload-content-defects.d.ts +9 -0
- package/dist/check/files/upload-content-defects.d.ts.map +1 -0
- package/dist/check/files/upload-content-defects.js +54 -0
- package/dist/check/files/upload-content-defects.js.map +1 -0
- package/dist/check/files/upload-declaration.d.ts +7 -0
- package/dist/check/files/upload-declaration.d.ts.map +1 -0
- package/dist/check/files/upload-declaration.js +2 -0
- package/dist/check/files/upload-declaration.js.map +1 -0
- package/dist/check/files/upload-declarations.d.ts +9 -0
- package/dist/check/files/upload-declarations.d.ts.map +1 -0
- package/dist/check/files/upload-declarations.js +41 -0
- package/dist/check/files/upload-declarations.js.map +1 -0
- package/dist/check/fixtures/alias-declared-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +95 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/imports-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/imports-fixtures.js +97 -0
- package/dist/check/fixtures/imports-fixtures.js.map +1 -1
- package/dist/check/fixtures/standard-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/standard-fixtures.js +42 -0
- package/dist/check/fixtures/standard-fixtures.js.map +1 -1
- package/dist/check/fixtures/upload-fixtures.d.ts +3 -0
- package/dist/check/fixtures/upload-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/upload-fixtures.js +94 -0
- package/dist/check/fixtures/upload-fixtures.js.map +1 -0
- package/dist/check/migrations/is-working-migration.d.ts +6 -0
- package/dist/check/migrations/is-working-migration.d.ts.map +1 -0
- package/dist/check/migrations/is-working-migration.js +8 -0
- package/dist/check/migrations/is-working-migration.js.map +1 -0
- package/dist/check/migrations/journal-entries.d.ts +4 -0
- package/dist/check/migrations/journal-entries.d.ts.map +1 -0
- package/dist/check/migrations/journal-entries.js +21 -0
- package/dist/check/migrations/journal-entries.js.map +1 -0
- package/dist/check/migrations/read-drizzle-migrations.d.ts.map +1 -1
- package/dist/check/migrations/read-drizzle-migrations.js +4 -9
- package/dist/check/migrations/read-drizzle-migrations.js.map +1 -1
- package/dist/check/modules/imported-modules.d.ts +4 -0
- package/dist/check/modules/imported-modules.d.ts.map +1 -0
- package/dist/check/modules/imported-modules.js +5 -0
- package/dist/check/modules/imported-modules.js.map +1 -0
- package/dist/check/modules/module-imports.d.ts +17 -0
- package/dist/check/modules/module-imports.d.ts.map +1 -0
- package/dist/check/modules/module-imports.js +23 -0
- package/dist/check/modules/module-imports.js.map +1 -0
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +1 -8
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/project/file-severity.d.ts +4 -0
- package/dist/check/project/file-severity.d.ts.map +1 -0
- package/dist/check/project/file-severity.js +11 -0
- package/dist/check/project/file-severity.js.map +1 -0
- package/dist/check/project/load-project.js +1 -10
- package/dist/check/project/load-project.js.map +1 -1
- package/dist/check/project/not-in-the-tree.d.ts +10 -0
- package/dist/check/project/not-in-the-tree.d.ts.map +1 -0
- package/dist/check/project/not-in-the-tree.js +17 -0
- package/dist/check/project/not-in-the-tree.js.map +1 -0
- package/dist/check/project/skipped-directories.d.ts +3 -0
- package/dist/check/project/skipped-directories.d.ts.map +1 -0
- package/dist/check/project/skipped-directories.js +3 -0
- package/dist/check/project/skipped-directories.js.map +1 -0
- package/dist/check/project/walk-directory.d.ts.map +1 -1
- package/dist/check/project/walk-directory.js +1 -1
- package/dist/check/project/walk-directory.js.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +3 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.js +179 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -0
- package/dist/check/rules/files-upload-content-rule.d.ts +3 -0
- package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -0
- package/dist/check/rules/files-upload-content-rule.js +25 -0
- package/dist/check/rules/files-upload-content-rule.js.map +1 -0
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +3 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +86 -7
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/module-no-cycle.js +12 -34
- package/dist/check/rules/module-no-cycle.js.map +1 -1
- package/dist/cli-error.d.ts +7 -2
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +8 -2
- package/dist/cli-error.js.map +1 -1
- package/dist/commands/generate.js +1 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +2 -1
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/move-to-module.d.ts +6 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +28 -3
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +2 -1
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +2 -1
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/verify-merge.d.ts +4 -2
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +8 -5
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/generate/generate-options.d.ts +3 -0
- package/dist/generate/generate-options.d.ts.map +1 -1
- package/dist/generate/generate-options.js +1 -0
- package/dist/generate/generate-options.js.map +1 -1
- package/dist/generate/kind.d.ts +2 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload/upload-file-vars.d.ts +9 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.d.ts.map +1 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.js +39 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.js.map +1 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js +2 -1
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js.map +1 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.js +2 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +5 -3
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/read-model/list-read-model.d.ts +17 -0
- package/dist/generate/kinds/read-model/list-read-model.d.ts.map +1 -0
- package/dist/generate/kinds/read-model/list-read-model.js +22 -0
- package/dist/generate/kinds/read-model/list-read-model.js.map +1 -0
- package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
- package/dist/generate/kinds/read-model-kind.js +19 -0
- package/dist/generate/kinds/read-model-kind.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +8 -0
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/wire-context.d.ts.map +1 -1
- package/dist/generate/kinds/wire-context.js +4 -0
- package/dist/generate/kinds/wire-context.js.map +1 -1
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +3 -2
- package/dist/generate/shared-writes.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +5 -1
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage.js +1 -1
- package/dist/help/work-notes.d.ts.map +1 -1
- package/dist/help/work-notes.js +9 -2
- package/dist/help/work-notes.js.map +1 -1
- package/dist/init/files/end-to-end-files.d.ts.map +1 -1
- package/dist/init/files/end-to-end-files.js +3 -0
- package/dist/init/files/end-to-end-files.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +8 -2
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/files/script-files.d.ts +2 -1
- package/dist/init/files/script-files.d.ts.map +1 -1
- package/dist/init/files/script-files.js +6 -1
- package/dist/init/files/script-files.js.map +1 -1
- package/dist/init/is-team-file.d.ts +2 -2
- package/dist/init/is-team-file.d.ts.map +1 -1
- package/dist/init/is-team-file.js +5 -4
- package/dist/init/is-team-file.js.map +1 -1
- package/dist/init/list-read-models.d.ts +17 -0
- package/dist/init/list-read-models.d.ts.map +1 -0
- package/dist/init/list-read-models.js +74 -0
- package/dist/init/list-read-models.js.map +1 -0
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +8 -0
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/versions.js +25 -25
- package/dist/init/rewire-contexts.d.ts +4 -2
- package/dist/init/rewire-contexts.d.ts.map +1 -1
- package/dist/init/rewire-contexts.js +10 -2
- package/dist/init/rewire-contexts.js.map +1 -1
- package/dist/init/run-init.js +1 -1
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/wiring-notes.js +1 -1
- package/dist/init/wiring-notes.js.map +1 -1
- package/dist/init/write-type-script-configs.d.ts +3 -1
- package/dist/init/write-type-script-configs.d.ts.map +1 -1
- package/dist/init/write-type-script-configs.js +14 -2
- package/dist/init/write-type-script-configs.js.map +1 -1
- package/dist/merge/format-merge-report.js +5 -2
- package/dist/merge/format-merge-report.js.map +1 -1
- package/dist/merge/land-drizzle.d.ts +4 -0
- package/dist/merge/land-drizzle.d.ts.map +1 -1
- package/dist/merge/land-drizzle.js +6 -1
- package/dist/merge/land-drizzle.js.map +1 -1
- package/dist/merge/land-up-to-date.d.ts +15 -0
- package/dist/merge/land-up-to-date.d.ts.map +1 -0
- package/dist/merge/land-up-to-date.js +76 -0
- package/dist/merge/land-up-to-date.js.map +1 -0
- package/dist/merge/lost/format-merge-verification.d.ts +2 -1
- package/dist/merge/lost/format-merge-verification.d.ts.map +1 -1
- package/dist/merge/lost/format-merge-verification.js +13 -2
- package/dist/merge/lost/format-merge-verification.js.map +1 -1
- package/dist/merge/lost/merge-verification.d.ts +4 -0
- package/dist/merge/lost/merge-verification.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.d.ts +2 -1
- package/dist/merge/lost/verify-merges.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.js +10 -4
- package/dist/merge/lost/verify-merges.js.map +1 -1
- package/dist/merge/merge-trunk.d.ts +2 -1
- package/dist/merge/merge-trunk.d.ts.map +1 -1
- package/dist/merge/merge-trunk.js +5 -2
- package/dist/merge/merge-trunk.js.map +1 -1
- package/dist/merge/next-steps.d.ts +3 -0
- package/dist/merge/next-steps.d.ts.map +1 -1
- package/dist/merge/next-steps.js +3 -0
- package/dist/merge/next-steps.js.map +1 -1
- package/dist/merge/order/applied-under-old-name.d.ts +13 -0
- package/dist/merge/order/applied-under-old-name.d.ts.map +1 -0
- package/dist/merge/order/applied-under-old-name.js +14 -0
- package/dist/merge/order/applied-under-old-name.js.map +1 -0
- package/dist/merge/order/comes-after.d.ts +8 -0
- package/dist/merge/order/comes-after.d.ts.map +1 -0
- package/dist/merge/order/comes-after.js +9 -0
- package/dist/merge/order/comes-after.js.map +1 -0
- package/dist/merge/order/drizzle-order.d.ts +11 -0
- package/dist/merge/order/drizzle-order.d.ts.map +1 -0
- package/dist/merge/order/drizzle-order.js +64 -0
- package/dist/merge/order/drizzle-order.js.map +1 -0
- package/dist/merge/order/in-order.d.ts +4 -0
- package/dist/merge/order/in-order.d.ts.map +1 -0
- package/dist/merge/order/in-order.js +6 -0
- package/dist/merge/order/in-order.js.map +1 -0
- package/dist/merge/order/migration-order-finding.d.ts +18 -0
- package/dist/merge/order/migration-order-finding.d.ts.map +1 -0
- package/dist/merge/order/migration-order-finding.js +2 -0
- package/dist/merge/order/migration-order-finding.js.map +1 -0
- package/dist/merge/order/migration-order.d.ts +12 -0
- package/dist/merge/order/migration-order.d.ts.map +1 -0
- package/dist/merge/order/migration-order.js +21 -0
- package/dist/merge/order/migration-order.js.map +1 -0
- package/dist/merge/order/migrations-of-commit.d.ts +7 -0
- package/dist/merge/order/migrations-of-commit.d.ts.map +1 -0
- package/dist/merge/order/migrations-of-commit.js +43 -0
- package/dist/merge/order/migrations-of-commit.js.map +1 -0
- package/dist/merge/order/migrations-of-tree.d.ts +9 -0
- package/dist/merge/order/migrations-of-tree.d.ts.map +1 -0
- package/dist/merge/order/migrations-of-tree.js +25 -0
- package/dist/merge/order/migrations-of-tree.js.map +1 -0
- package/dist/merge/order/named-order.d.ts +11 -0
- package/dist/merge/order/named-order.d.ts.map +1 -0
- package/dist/merge/order/named-order.js +36 -0
- package/dist/merge/order/named-order.js.map +1 -0
- package/dist/merge/order/ordered-migration.d.ts +12 -0
- package/dist/merge/order/ordered-migration.d.ts.map +1 -0
- package/dist/merge/order/ordered-migration.js +2 -0
- package/dist/merge/order/ordered-migration.js.map +1 -0
- package/dist/merge/order/trunk-to-follow.d.ts +9 -0
- package/dist/merge/order/trunk-to-follow.d.ts.map +1 -0
- package/dist/merge/order/trunk-to-follow.js +2 -0
- package/dist/merge/order/trunk-to-follow.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +14 -5
- package/dist/merge/renumber-migrations.d.ts.map +1 -1
- package/dist/merge/renumber-migrations.js +141 -60
- package/dist/merge/renumber-migrations.js.map +1 -1
- package/dist/merge/restamp-class.d.ts +9 -0
- package/dist/merge/restamp-class.d.ts.map +1 -0
- package/dist/merge/restamp-class.js +30 -0
- package/dist/merge/restamp-class.js.map +1 -0
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +1 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/plan-replay.d.ts.map +1 -1
- package/dist/migration/plan-replay.js +2 -1
- package/dist/migration/plan-replay.js.map +1 -1
- package/dist/migration/refuse-taken-migration-name.d.ts +8 -0
- package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -0
- package/dist/migration/refuse-taken-migration-name.js +22 -0
- package/dist/migration/refuse-taken-migration-name.js.map +1 -0
- package/dist/migration/replay-drizzle-migrations.d.ts +5 -0
- package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
- package/dist/migration/replay-drizzle-migrations.js +10 -2
- package/dist/migration/replay-drizzle-migrations.js.map +1 -1
- package/dist/migration/replay-plan.d.ts +2 -2
- package/dist/migration/replay-plan.d.ts.map +1 -1
- package/dist/migration/restore-migration-folder.d.ts +6 -2
- package/dist/migration/restore-migration-folder.d.ts.map +1 -1
- package/dist/migration/restore-migration-folder.js +14 -7
- package/dist/migration/restore-migration-folder.js.map +1 -1
- package/dist/migration/snapshot-migration-folder.d.ts +7 -0
- package/dist/migration/snapshot-migration-folder.d.ts.map +1 -0
- package/dist/migration/snapshot-migration-folder.js +12 -0
- package/dist/migration/snapshot-migration-folder.js.map +1 -0
- package/dist/move-to-module/before-the-move.d.ts +5 -0
- package/dist/move-to-module/before-the-move.d.ts.map +1 -0
- package/dist/move-to-module/before-the-move.js +13 -0
- package/dist/move-to-module/before-the-move.js.map +1 -0
- package/dist/move-to-module/closed-cycles.d.ts +21 -0
- package/dist/move-to-module/closed-cycles.d.ts.map +1 -0
- package/dist/move-to-module/closed-cycles.js +66 -0
- package/dist/move-to-module/closed-cycles.js.map +1 -0
- package/dist/move-to-module/cycle-lines.d.ts +7 -0
- package/dist/move-to-module/cycle-lines.d.ts.map +1 -0
- package/dist/move-to-module/cycle-lines.js +22 -0
- package/dist/move-to-module/cycle-lines.js.map +1 -0
- package/dist/move-to-module/cycle-refusal.d.ts +17 -0
- package/dist/move-to-module/cycle-refusal.d.ts.map +1 -0
- package/dist/move-to-module/cycle-refusal.js +25 -0
- package/dist/move-to-module/cycle-refusal.js.map +1 -0
- package/dist/move-to-module/index.d.ts +5 -0
- package/dist/move-to-module/index.d.ts.map +1 -1
- package/dist/move-to-module/index.js +4 -0
- package/dist/move-to-module/index.js.map +1 -1
- package/dist/move-to-module/module-imports-in.d.ts +11 -0
- package/dist/move-to-module/module-imports-in.d.ts.map +1 -0
- package/dist/move-to-module/module-imports-in.js +32 -0
- package/dist/move-to-module/module-imports-in.js.map +1 -0
- package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
- package/dist/move-to-module/moves-into-module.js +6 -18
- package/dist/move-to-module/moves-into-module.js.map +1 -1
- package/dist/move-to-module/place-in-module.d.ts +13 -0
- package/dist/move-to-module/place-in-module.d.ts.map +1 -0
- package/dist/move-to-module/place-in-module.js +24 -0
- package/dist/move-to-module/place-in-module.js.map +1 -0
- package/dist/move-to-module/watch-cycles.d.ts +19 -0
- package/dist/move-to-module/watch-cycles.d.ts.map +1 -0
- package/dist/move-to-module/watch-cycles.js +51 -0
- package/dist/move-to-module/watch-cycles.js.map +1 -0
- package/dist/run.js +1 -1
- package/dist/run.js.map +1 -1
- package/dist/slice/format-slice-verification.d.ts.map +1 -1
- package/dist/slice/format-slice-verification.js +11 -5
- package/dist/slice/format-slice-verification.js.map +1 -1
- package/dist/stack/alias-vars.d.ts +3 -1
- package/dist/stack/alias-vars.d.ts.map +1 -1
- package/dist/stack/alias-vars.js +5 -2
- package/dist/stack/alias-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
- package/templates/file-upload/controller.spec.ts.tpl +66 -2
- package/templates/file-upload/controller.ts.tpl +12 -0
- package/templates/file-upload/handler.spec.ts.tpl +3 -3
- package/templates/init/README.md.tpl +20 -1
- package/templates/init/e2e/jest.e2e.config.js.tpl +5 -0
- package/templates/init/e2e/test-database-setup.ts.tpl +120 -0
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -1
- package/templates/init/platform/composition/compose-application.container.ts.tpl +5 -0
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +20 -3
- package/templates/init/platform/composition/create-platform.manual.ts.tpl +6 -0
- package/templates/init/platform/composition/platform-options.manual.ts.tpl +11 -0
- package/templates/init/platform/composition/platform.manual.ts.tpl +7 -0
- package/templates/init/platform/composition/platform.module.container.ts.tpl +34 -0
- package/templates/init/platform/database/connect-to-database.drizzle.ts.tpl +7 -2
- package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.knex.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.prisma.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +8 -3
- package/templates/init/platform/database/read-model-tables.ts.tpl +67 -0
- package/templates/init/platform/database/test-database-budget.ts.tpl +108 -0
- package/templates/init/platform/database/test-database-clone.ts.tpl +52 -161
- package/templates/init/platform/database/test-database-copy.ts.tpl +76 -0
- package/templates/init/platform/database/test-database-emptying.ts.tpl +209 -0
- package/templates/init/platform/database/test-database-kept.ts.tpl +32 -0
- package/templates/init/platform/database/test-database-leftovers.ts.tpl +52 -0
- package/templates/init/platform/database/test-database-run.ts.tpl +99 -0
- package/templates/init/platform/database/test-database-server.ts.tpl +140 -0
- package/templates/init/platform/database/test-database-session.ts.tpl +141 -0
- package/templates/init/platform/database/test-database-teardown.ts.tpl +11 -1
- package/templates/init/platform/resilience/default-policy.ts.tpl +8 -1
- package/templates/init/rules/infrastructure.md.tpl +2 -2
- package/templates/init/scripts/read-model-tables.ts.tpl +83 -0
- package/templates/nest-controller/upload.spec.ts.tpl +67 -2
- package/templates/nest-controller/upload.ts.tpl +12 -0
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +5 -9
- package/templates/repository/drizzle/repository.ts.tpl +6 -9
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { matchingBracket } from '../text/matching-bracket.js';
|
|
2
|
+
import { splitTopLevel } from '../text/split-top-level.js';
|
|
3
|
+
const CALL = /^([A-Za-z_$][\w$]*)\s*\(/;
|
|
4
|
+
const NUMBER = /^\d[\d_]*$/;
|
|
5
|
+
/** The aspects of `@ddd-ts-kit/aspects` that state no time limit and no policy of their own. */
|
|
6
|
+
const WITHOUT_LIMIT = ['retry', 'circuitBreaker', 'cached', 'bulkhead', 'logged', 'timed'];
|
|
7
|
+
/**
|
|
8
|
+
* Reads the elements of an aspects list. A `timeout(` nested in the options of another aspect is
|
|
9
|
+
* not an element, and states nothing here.
|
|
10
|
+
*/
|
|
11
|
+
export function statedPolicy(elements) {
|
|
12
|
+
return elements.map(statedBy).reduce((all, one) => ({
|
|
13
|
+
ownPolicy: all.ownPolicy || one.ownPolicy,
|
|
14
|
+
timeouts: [...all.timeouts, ...one.timeouts],
|
|
15
|
+
readable: all.readable && one.readable,
|
|
16
|
+
}), { ownPolicy: false, timeouts: [], readable: true });
|
|
17
|
+
}
|
|
18
|
+
function statedBy(element) {
|
|
19
|
+
const call = CALL.exec(element);
|
|
20
|
+
const open = call === null ? -1 : call[0].length - 1;
|
|
21
|
+
if (call === null || matchingBracket(element, open) !== element.length - 1) {
|
|
22
|
+
return { ownPolicy: false, timeouts: [], readable: false };
|
|
23
|
+
}
|
|
24
|
+
const given = splitTopLevel(element.slice(open + 1, -1))
|
|
25
|
+
.map(({ code }) => code)
|
|
26
|
+
.filter((code) => code !== '');
|
|
27
|
+
if (call[1] === 'ownPolicy') {
|
|
28
|
+
return { ...statedPolicy(given), ownPolicy: true };
|
|
29
|
+
}
|
|
30
|
+
return call[1] === 'timeout'
|
|
31
|
+
? limitOf(given[0] ?? '')
|
|
32
|
+
: { ownPolicy: false, timeouts: [], readable: WITHOUT_LIMIT.includes(call[1] ?? '') };
|
|
33
|
+
}
|
|
34
|
+
function limitOf(duration) {
|
|
35
|
+
return NUMBER.test(duration)
|
|
36
|
+
? { ownPolicy: false, timeouts: [Number(duration.replaceAll('_', ''))], readable: true }
|
|
37
|
+
: { ownPolicy: false, timeouts: [], readable: false };
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=stated-policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stated-policy.js","sourceRoot":"","sources":["../../../src/check/aspects/stated-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,IAAI,GAAG,0BAA0B,CAAC;AACxC,MAAM,MAAM,GAAG,YAAY,CAAC;AAC5B,gGAAgG;AAChG,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAe3F;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAA2B;IACtD,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAClC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACb,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS;QACzC,QAAQ,EAAE,CAAC,GAAG,GAAG,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5C,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ;KACvC,CAAC,EACF,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnD,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,OAAe;IAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,IAAI,K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AAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxF,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAgH1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA+G7C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { aspectsOutsideIn } from '../rules/aspects-outside-in.js';
|
|
2
|
+
import { aspectsTimeoutCoversDelegate } from '../rules/aspects-timeout-covers-delegate.js';
|
|
2
3
|
import { authzActorExplicit } from '../rules/authz-actor-explicit.js';
|
|
3
4
|
import { authzFieldsBySchema } from '../rules/authz-fields-by-schema.js';
|
|
4
5
|
import { authzDeclared } from '../rules/authz-declared.js';
|
|
@@ -51,6 +52,7 @@ import { eventSourcingStoreBehindRepository } from '../rules/event-sourcing-stor
|
|
|
51
52
|
import { eventSourcingUpcasterRequired } from '../rules/event-sourcing-upcaster-required.js';
|
|
52
53
|
import { errorsKnownCode } from '../rules/errors-known-code.js';
|
|
53
54
|
import { filesPortNotConnector } from '../rules/files-port-not-connector.js';
|
|
55
|
+
import { filesUploadContentRule } from '../rules/files-upload-content-rule.js';
|
|
54
56
|
import { searchStoreFromPlatform } from '../rules/search-store-from-platform.js';
|
|
55
57
|
import { eventsConsumerIdempotent } from '../rules/events-consumer-idempotent.js';
|
|
56
58
|
import { eventsDefinedInPublishedLanguage } from '../rules/events-defined-in-published-language.js';
|
|
@@ -182,6 +184,7 @@ export const ARCHITECTURE_RULES = [
|
|
|
182
184
|
privacyNoPersonalDataInLogs,
|
|
183
185
|
privacySnapshotSealed,
|
|
184
186
|
aspectsOutsideIn,
|
|
187
|
+
aspectsTimeoutCoversDelegate,
|
|
185
188
|
tracingPlatformOnly,
|
|
186
189
|
tenancyScopedStatement,
|
|
187
190
|
standardNoParallelInterface,
|
|
@@ -215,6 +218,7 @@ export const ARCHITECTURE_RULES = [
|
|
|
215
218
|
persistenceNoFileContent,
|
|
216
219
|
persistencePrimaryKeyOrder,
|
|
217
220
|
filesPortNotConnector,
|
|
221
|
+
filesUploadContentRule,
|
|
218
222
|
searchStoreFromPlatform,
|
|
219
223
|
];
|
|
220
224
|
//# sourceMappingURL=architecture-rules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2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;IACvB,oBAAoB;IACpB,2BAA2B;IAC3B,2BAA2B;IAC3B,sBAAsB;IACtB,2BAA2B;IAC3B,qBAAqB;IACrB,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,qBAAqB;IACrB,uBAAuB;CACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAA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B,kBAAkB;IAClB,aAAa;IACb,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,oBAAoB;IACpB,2BAA2B;IAC3B,2BAA2B;IAC3B,sBAAsB;IACtB,2BAA2B;IAC3B,qBAAqB;IACrB,gBAAgB;IAChB,4BAA4B;IAC5B,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,uBAAuB;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"imports-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA8C1D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const IMPORTS_DOCS = {
|
|
2
2
|
'imports/alias-only': {
|
|
3
|
-
why: 'An alias names a file from the root of the project: the import reads the same from every file, says which context and which layer it reaches without counting "../", and does not change when the importing file moves. One way of writing an import also means one thing to review and one thing for the boundary rules to read: the checker, ESLint and dependency-cruiser resolve an alias exactly as they resolve a relative path, so no boundary is crossed by choosing the other spelling. The rule holds under the source root, test/ and scripts/, the same directory included, for import, export ... from and import(). The alias is declared once, under "paths" in tsconfig.json, and the build rewrites it into a relative path in the compiled output, which runs with plain `node`. An alias path with a "." or ".." segment is refused too, since it could name a file outside its directory. The compiler reports an alias that names no file; a JavaScript file at the project root (a config, a migration) is not judged. ESLint fixes the import (`eslint --fix`) and writes it with the ending "importExtension" asks for, which `imports/extension` holds.',
|
|
3
|
+
why: 'An alias names a file from the root of the project: the import reads the same from every file, says which context and which layer it reaches without counting "../", and does not change when the importing file moves. One way of writing an import also means one thing to review and one thing for the boundary rules to read: the checker, ESLint and dependency-cruiser resolve an alias exactly as they resolve a relative path, so no boundary is crossed by choosing the other spelling. The rule holds under the source root, test/ and scripts/, the same directory included, for import, export ... from and import(). The alias is declared once, under "paths" in tsconfig.json, and the build rewrites it into a relative path in the compiled output, which runs with plain `node`. An alias path with a "." or ".." segment is refused too, since it could name a file outside its directory. The compiler reports an alias that names no file; a JavaScript file at the project root (a config, a migration) is not judged. One relative path stands: a file directly under test/support/ imports its neighbour by "./<name>", because a test runner loads its global setup, and what that file imports, before any alias exists. That path names a file: "./.", "./.." and a directory of test/support/ are refused as any relative path. Its name is judged too, against the files on disk: a ".ts" source without its extension under "importExtension": "none"; under "js" the name of the source ("./x.ts" for "./x" and "./x.js", "./x.mts" for "./x.mjs"), where the runner finds the file under the name it has and a ".js" passes the type check, then stops the run on a module that cannot be found. A file that exists as it is named (a JSON file, a JavaScript file) is left alone. ESLint fixes the import (`eslint --fix`) and writes it with the ending "importExtension" asks for, which `imports/extension` holds.',
|
|
4
4
|
bad: `// src/contexts/billing/application/commands/issue-invoice/issue-invoice.handler.ts
|
|
5
5
|
import { Invoice } from '../../../domain/aggregates/invoice.aggregate';
|
|
6
6
|
import { IssueInvoiceCommand } from './issue-invoice.command';`,
|
|
@@ -8,7 +8,9 @@ import { IssueInvoiceCommand } from './issue-invoice.command';`,
|
|
|
8
8
|
import { IssueInvoiceCommand } from '@/contexts/billing/application/commands/issue-invoice/issue-invoice.command';
|
|
9
9
|
import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate';
|
|
10
10
|
// test/e2e/issue-invoice.e2e.spec.ts
|
|
11
|
-
import { startApplication } from '$test/e2e/support/start-application'
|
|
11
|
+
import { startApplication } from '$test/e2e/support/start-application';
|
|
12
|
+
// test/support/test-database-setup.ts: a test runner loads its global setup, and what it imports, before any alias exists
|
|
13
|
+
import { openRun } from './test-database-run'; // './test-database-run.ts' under "importExtension": "js"`,
|
|
12
14
|
},
|
|
13
15
|
'imports/extension': {
|
|
14
16
|
why: 'An import of a file of the project has one spelling, and "importExtension" in ddd-ts-kit.config.json says which. Under "none", the default of a new project, it names the file without an extension: the compiler resolves as a bundler does ("moduleResolution": "Bundler"), which still reports a file that does not exist but would also accept ".js", so this rule is what refuses it. Under "js", which is also what a config without the key means, it ends with the ".js" of the file the compiler emits: the compiler resolves as Node does and refuses any other spelling itself (TS2835); this rule says it in the words of the project and ESLint fixes it. Node needs the extension at run time either way: `ddd-ts-kit build-aliases` rewrites each alias of the compiled output into a relative path ending in ".js". Under "none" an alias may name a directory (".../published-language"): the compiler resolves its index.ts and the build completes it with "/index.js". Only a specifier that starts with an alias of the project is judged: a package subpath that ends like a file name ("zod/v4/core.js") is left alone, and a relative import belongs to imports/alias-only. A dot in a file name is not an extension: "invoice.aggregate" is written without one. To move a project from one spelling to the other: change "importExtension", write the "module" and "moduleResolution" that imports/alias-declared then asks for, run `eslint --fix` and the formatter.',
|
|
@@ -24,7 +26,7 @@ import { Invoice } from '@/contexts/billing/domain/aggregates/invoice.aggregate'
|
|
|
24
26
|
import { InvoiceIssued } from '@/contexts/billing/published-language';`,
|
|
25
27
|
},
|
|
26
28
|
'imports/alias-declared': {
|
|
27
|
-
why: 'An alias is declared in one place and resolved by many tools: the compiler, the dev runner, the test runner, ESLint, the checker, dependency-cruiser, knip, and the build that makes the output runnable. If two of them disagree, the type check passes on one file while production loads another, or a boundary rule stops seeing an import. So there is one source a person edits, "importAlias" in ddd-ts-kit.config.json, and one declaration derived from it that the tools read, "paths" in tsconfig.json. Node reads neither: the compiler emits an alias as it was written, so `ddd-ts-kit build-aliases` rewrites each one into a relative path after the compiler, and the output runs with plain `node`. The rule compares "paths" (tsconfig.json and tsconfig.build.json) with "importAlias", refuses a second entry under an alias, a "baseUrl" and a knip "paths"; checks that vitest and dependency-cruiser read tsconfig and that jest, which does not, repeats the same mapping; reports a script that compiles without the rewrite step and a tsx script under another tsconfig. The ending of an import has one source too, "importExtension", and three declarations follow it: "module" and "moduleResolution" of tsconfig.json ("ESNext" and "Bundler" without an extension, a Node resolution with one), the pattern of each jest mapping, and the build step, which writes the ".js" Node needs. An alias is "@/" or "$<name>/": neither can be the name of a package, so no installed dependency can ever take the place of a file of the project; "#<name>/" (a Node subpath import) and "@<name>/" (the name of a scope) are refused.',
|
|
29
|
+
why: 'An alias is declared in one place and resolved by many tools: the compiler, the dev runner, the test runner, ESLint, the checker, dependency-cruiser, knip, and the build that makes the output runnable. If two of them disagree, the type check passes on one file while production loads another, or a boundary rule stops seeing an import. So there is one source a person edits, "importAlias" in ddd-ts-kit.config.json, and one declaration derived from it that the tools read, "paths" in tsconfig.json. Node reads neither: the compiler emits an alias as it was written, so `ddd-ts-kit build-aliases` rewrites each one into a relative path after the compiler, and the output runs with plain `node`. The rule compares "paths" (tsconfig.json and tsconfig.build.json) with "importAlias", refuses a second entry under an alias, a "baseUrl" and a knip "paths"; checks that vitest and dependency-cruiser read tsconfig and that jest, which does not, repeats the same mapping; reports a script that compiles without the rewrite step and a tsx script under another tsconfig. The ending of an import has one source too, "importExtension", and three declarations follow it: "module" and "moduleResolution" of tsconfig.json ("ESNext" and "Bundler" without an extension, a Node resolution with one), the pattern of each jest mapping, and the build step, which writes the ".js" Node needs. Under "js" a file directly under test/support/ names its neighbour by the ".ts" of its source (imports/alias-only): where one does, tsconfig.json has to let the type check read that ending, with "allowImportingTsExtensions": true, which the compiler accepts only with "noEmit": true, and tsconfig.build.json, which extends it, has to set both back to false, or the build writes nothing. Whatever the ending, tsconfig.build.json and each tsconfig a script of package.json compiles what ships with are reported when they resolve "noEmit": true, their own or inherited through "extends": the compiler then writes no file, without an error, and an earlier output would ship. An alias is "@/" or "$<name>/": neither can be the name of a package, so no installed dependency can ever take the place of a file of the project; "#<name>/" (a Node subpath import) and "@<name>/" (the name of a scope) are refused.',
|
|
28
30
|
bad: `// ddd-ts-kit.config.json
|
|
29
31
|
"importAlias": "@/", "importExtension": "none"
|
|
30
32
|
// tsconfig.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,oBAAoB,EAAE;QACpB,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"imports-docs.js","sourceRoot":"","sources":["../../../src/check/explain/imports-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsC;IAC7D,oBAAoB,EAAE;QACpB,GAAG,EAAE,w1DAAw1D;QAC71D,GAAG,EAAE;;+DAEsD;QAC3D,IAAI,EAAE;;;;;;yGAM+F;KACtG;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,k6CAAk6C;QACv6C,GAAG,EAAE;;;;uEAI8D;QACnE,IAAI,EAAE;;;;uEAI6D;KACpE;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,muEAAmuE;QACxuE,GAAG,EAAE;;;;;;sCAM6B;QAClC,IAAI,EAAE;;;;;;;;iCAQuB;KAC9B;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"persistence-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoF9D,CAAC"}
|
|
@@ -42,6 +42,27 @@ export class AttachReceiptHandler {
|
|
|
42
42
|
export class AttachReceiptHandler {
|
|
43
43
|
constructor(private readonly staging: FileStaging, private readonly keys: FileKeys) {}
|
|
44
44
|
}`,
|
|
45
|
+
},
|
|
46
|
+
'files/upload-content-rule': {
|
|
47
|
+
why: "An upload is checked twice: the media type the client declares must be one the route accepts, and the first bytes must prove that type, by the signature of its format or, for text, by holding no control character and being valid UTF-8 (or any single-byte text when the upload says `text: 'single-byte'`). A type the kit has no such rule for can never be proven: `application/vnd.ms-excel`, which a browser on Windows sends for a CSV, `application/octet-stream`, a video. A route that accepts it without saying how its content is judged answers 415 to every file of it, which looks like a client mistake and is a declaration that could never work. So the route states the rule in `contentRules`: `text`, the content is text under another name, or `unchecked`, the route takes the bytes as they are and says so in its contract. `@ddd-ts-kit/http` refuses the route when it is declared, with the same sentence; this rule reads the upload of a *.route.ts or a *.controller.ts when its `mediaTypes` and `contentRules` are written as literals, and reports the string. Reported too: an entry that is no media type (`*/*`, a bare word), a family none of whose types has a rule (`video/*`), and a stated rule that does nothing, for a type the kit already verifies or one the upload does not accept. The rule of a family never reaches a type a browser runs (`image/svg+xml`, `text/html`, `application/xhtml+xml`, `text/javascript`, `application/javascript`): accepted, such a type is reported until `contentRules` names it. A list built elsewhere (a constant, a spread) is not read here: the declaration of the route judges it.",
|
|
48
|
+
bad: `@Controller({
|
|
49
|
+
method: 'POST',
|
|
50
|
+
path: '/statements',
|
|
51
|
+
upload: { field: 'file', maxBytes: 5_000_000, mediaTypes: ['text/csv', 'application/vnd.ms-excel'] },
|
|
52
|
+
response: { status: 201 },
|
|
53
|
+
})`,
|
|
54
|
+
good: `@Controller({
|
|
55
|
+
method: 'POST',
|
|
56
|
+
path: '/statements',
|
|
57
|
+
upload: {
|
|
58
|
+
field: 'file',
|
|
59
|
+
maxBytes: 5_000_000,
|
|
60
|
+
mediaTypes: ['text/csv', 'application/vnd.ms-excel'],
|
|
61
|
+
text: 'single-byte',
|
|
62
|
+
contentRules: { 'application/vnd.ms-excel': 'text' },
|
|
63
|
+
},
|
|
64
|
+
response: { status: 201 },
|
|
65
|
+
})`,
|
|
45
66
|
},
|
|
46
67
|
'search/store-from-platform': {
|
|
47
68
|
why: 'Which node a read model reaches and how its tenants are kept apart are choices of the platform, made once for every store: a context that opens a transport or names a tenancy of its own has chosen them for itself, out of reach of the provisioning, of the credentials of the deployment and of the tenancy of the project, and one of its stores may read the documents of every tenant; spreading the answer of `search.options` to replace its tenancy is the same choice made over the platform. The domain and the use cases see a read model through its port, as on any store.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,6wBAA6wB;QAClxB,GAAG,EAAE;oGAC2F;QAChG,IAAI,EAAE;0FACgF;KACvF;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2jBAA2jB;QAChkB,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;;EAOR;KACC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"persistence-docs.js","sourceRoot":"","sources":["../../../src/check/explain/persistence-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,+BAA+B,EAAE;QAC/B,GAAG,EAAE,0jCAA0jC;QAC/jC,GAAG,EAAE;;;wFAG+E;QACpF,IAAI,EAAE;;;kGAGwF;KAC/F;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,6wBAA6wB;QAClxB,GAAG,EAAE;oGAC2F;QAChG,IAAI,EAAE;0FACgF;KACvF;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,ugBAAugB;QAC5gB,GAAG,EAAE;;;IAGL;QACA,IAAI,EAAE;;;;;IAKN;KACD;IACD,0BAA0B,EAAE;QAC1B,GAAG,EAAE,0YAA0Y;QAC/Y,GAAG,EAAE;;;;EAIP;QACE,IAAI,EAAE;;;;EAIR;KACC;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,mlDAAmlD;QACxlD,GAAG,EAAE;;;;;GAKN;QACC,IAAI,EAAE;;;;;;;;;;;GAWP;KACA;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,2jBAA2jB;QAChkB,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;;EAOR;KACC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"standard-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2D3D,CAAC"}
|
|
@@ -7,6 +7,22 @@ import { Retry } from '@ddd-ts-kit/aspects/decorators';`,
|
|
|
7
7
|
builder.bind(PaymentGateway).toClass(StripePaymentGateway, [PaymentSettings]).with(retry({ attempts: 3 }), timeout(2000));
|
|
8
8
|
// infrastructure/external/stripe-payment.gateway.ts
|
|
9
9
|
import { Retry } from '@ddd-ts-kit/aspects/decorators';`,
|
|
10
|
+
},
|
|
11
|
+
'aspects/timeout-covers-delegate': {
|
|
12
|
+
why: 'The platform puts a default policy around every `external` or `gateway` adapter that states none: retries, and a time limit for each attempt (the fallback of OUTBOUND_TIMEOUT_MS in the configuration of the platform, else `timeoutMs` of resilience/default-resilience-settings.ts: 2 seconds as generated). An adapter that only hands its call to another adapter, slow by nature and bound with a longer limit of its own, is then cut by a limit nobody chose: every call fails at the default, as a timeout of the outer adapter, and nothing points at the adapter behind it. The rule reports that one case: an adapter left to the default policy (no `ownPolicy(...)`, no `timeout(...)` of its own, a kind `external` or `gateway`, which an `@Adapter` that names no kind has), given a port whose adapter states a longer `timeout(<ms>)` around all its methods. An adapter that states its own limit, even a shorter one, chose it and is never reported. It reads `@Adapter`, `@Gateway` and the bindings of the container of the kit (`bind(Port).toClass(Adapter).as(kind).with(...)`), and judges nothing the text does not show: a platform wired by hand (`platform.adapter(...)`); a duration or a kind that is not a literal; an aspect that is a variable, a spread, a call of another name or under `when(...)`; a `timeout(` nested in the options of another aspect; a `@Timeout` on a method; a port or an adapter bound more than once, bound again by `rebind(`, or bound under a condition; a parameter typed by a name the adapter does not import from a file of the project (a type of a package, a declaration of its own file); two ports of one name unless each file imports its own from the file that declares it; an adapter reached through a middle adapter; a default limit that is not one number, or an environment that sets OUTBOUND_TIMEOUT_MS; and the retries around a limit.',
|
|
13
|
+
bad: `// infrastructure/external/remote-quote-reader.adapter.ts
|
|
14
|
+
@Adapter(QuoteReader, { kind: 'external' })
|
|
15
|
+
export class RemoteQuoteReader implements QuoteReader {
|
|
16
|
+
constructor(private readonly models: ModelReader) {}
|
|
17
|
+
}
|
|
18
|
+
// infrastructure/external/remote-model-reader.adapter.ts
|
|
19
|
+
@Adapter(ModelReader, { kind: 'external', aspects: [ownPolicy(timeout(120_000))] })
|
|
20
|
+
export class RemoteModelReader implements ModelReader {}`,
|
|
21
|
+
good: `// infrastructure/external/remote-quote-reader.adapter.ts
|
|
22
|
+
@Adapter(QuoteReader, { kind: 'external', aspects: [ownPolicy(timeout(120_000))] })
|
|
23
|
+
export class RemoteQuoteReader implements QuoteReader {
|
|
24
|
+
constructor(private readonly models: ModelReader) {}
|
|
25
|
+
}`,
|
|
10
26
|
},
|
|
11
27
|
'tracing/platform-only': {
|
|
12
28
|
why: 'Tracing is non-invasive and wired once. One action is one trace because every span is opened by the same few places: the request boundary, the bus middleware, the instrumentation around adapters and handlers, the outbox relay. A context that imports @ddd-ts-kit/tracing or an @opentelemetry package opens spans of its own, with names and attributes nobody reviews, and can no longer be traced differently by changing the composition root alone. Judged: every source under the source root, tests included, but the platform directory, main.ts and apps/.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-docs.js","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,oBAAoB,EAAE;QACpB,GAAG,EAAE,8cAA8c;QACnd,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;;;wDAG8C;KACrD;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,yiBAAyiB;QAC9iB,GAAG,EAAE;4CACmC;QACxC,IAAI,EAAE;;wDAE8C;KACrD;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,qkBAAqkB;QAC1kB,GAAG,EAAE;;;;;gFAKuE;QAC5E,IAAI,EAAE;;;;;;6CAMmC;KAC1C;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,8TAA8T;QACnU,GAAG,EAAE;8GACqG;QAC1G,IAAI,EAAE;;;oFAG0E;KACjF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"standard-docs.js","sourceRoot":"","sources":["../../../src/check/explain/standard-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAsC;IAC9D,oBAAoB,EAAE;QACpB,GAAG,EAAE,8cAA8c;QACnd,GAAG,EAAE;wDAC+C;QACpD,IAAI,EAAE;;;wDAG8C;KACrD;IACD,iCAAiC,EAAE;QACjC,GAAG,EAAE,o0DAAo0D;QACz0D,GAAG,EAAE;;;;;;;yDAOgD;QACrD,IAAI,EAAE;;;;EAIR;KACC;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,yiBAAyiB;QAC9iB,GAAG,EAAE;4CACmC;QACxC,IAAI,EAAE;;wDAE8C;KACrD;IACD,gCAAgC,EAAE;QAChC,GAAG,EAAE,qkBAAqkB;QAC1kB,GAAG,EAAE;;;;;gFAKuE;QAC5E,IAAI,EAAE;;;;;;6CAMmC;KAC1C;IACD,+BAA+B,EAAE;QAC/B,GAAG,EAAE,8TAA8T;QACnU,GAAG,EAAE;8GACqG;QAC1G,IAAI,EAAE;;;oFAG0E;KACjF;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The media types `@ddd-ts-kit/kernel` has a content rule for, as its `SIGNED_MEDIA_TYPES` then its
|
|
3
|
+
* `TEXT_MEDIA_TYPES` list them: a signature for the first, the text rule for the others. The
|
|
4
|
+
* checker has no dependency, so it keeps its own copy; `kit-content-types.spec.ts` holds the two equal.
|
|
5
|
+
*/
|
|
6
|
+
export declare const KIT_CONTENT_TYPES: readonly string[];
|
|
7
|
+
/**
|
|
8
|
+
* The media types the rule of a family never reaches, as `NAMED_ONLY_MEDIA_TYPES` of the kernel
|
|
9
|
+
* lists them: a browser runs them, so an upload takes one only by naming it in `contentRules`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const NAMED_ONLY_CONTENT_TYPES: readonly string[];
|
|
12
|
+
//# sourceMappingURL=kit-content-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-content-types.d.ts","sourceRoot":"","sources":["../../../src/check/files/kit-content-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAoB9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAMrD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The media types `@ddd-ts-kit/kernel` has a content rule for, as its `SIGNED_MEDIA_TYPES` then its
|
|
3
|
+
* `TEXT_MEDIA_TYPES` list them: a signature for the first, the text rule for the others. The
|
|
4
|
+
* checker has no dependency, so it keeps its own copy; `kit-content-types.spec.ts` holds the two equal.
|
|
5
|
+
*/
|
|
6
|
+
export const KIT_CONTENT_TYPES = [
|
|
7
|
+
'application/pdf',
|
|
8
|
+
'image/png',
|
|
9
|
+
'image/jpeg',
|
|
10
|
+
'image/gif',
|
|
11
|
+
'image/webp',
|
|
12
|
+
'application/zip',
|
|
13
|
+
'application/gzip',
|
|
14
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
15
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
16
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
17
|
+
'application/vnd.oasis.opendocument.text',
|
|
18
|
+
'application/vnd.oasis.opendocument.spreadsheet',
|
|
19
|
+
'application/epub+zip',
|
|
20
|
+
'text/plain',
|
|
21
|
+
'text/csv',
|
|
22
|
+
'text/markdown',
|
|
23
|
+
'text/tab-separated-values',
|
|
24
|
+
'application/json',
|
|
25
|
+
'application/csv',
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* The media types the rule of a family never reaches, as `NAMED_ONLY_MEDIA_TYPES` of the kernel
|
|
29
|
+
* lists them: a browser runs them, so an upload takes one only by naming it in `contentRules`.
|
|
30
|
+
*/
|
|
31
|
+
export const NAMED_ONLY_CONTENT_TYPES = [
|
|
32
|
+
'image/svg+xml',
|
|
33
|
+
'text/html',
|
|
34
|
+
'application/xhtml+xml',
|
|
35
|
+
'text/javascript',
|
|
36
|
+
'application/javascript',
|
|
37
|
+
];
|
|
38
|
+
//# sourceMappingURL=kit-content-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit-content-types.js","sourceRoot":"","sources":["../../../src/check/files/kit-content-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,iBAAiB;IACjB,kBAAkB;IAClB,yEAAyE;IACzE,mEAAmE;IACnE,2EAA2E;IAC3E,yCAAyC;IACzC,gDAAgD;IAChD,sBAAsB;IACtB,YAAY;IACZ,UAAU;IACV,eAAe;IACf,2BAA2B;IAC3B,kBAAkB;IAClB,iBAAiB;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,eAAe;IACf,WAAW;IACX,uBAAuB;IACvB,iBAAiB;IACjB,wBAAwB;CACzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StringRecord } from '../scan/string-record.js';
|
|
2
|
+
/** A string of an upload declaration and what is wrong with it. */
|
|
3
|
+
export interface UploadContentDefect {
|
|
4
|
+
readonly literal: StringRecord;
|
|
5
|
+
readonly message: string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=upload-content-defect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-content-defect.d.ts","sourceRoot":"","sources":["../../../src/check/files/upload-content-defect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-content-defect.js","sourceRoot":"","sources":["../../../src/check/files/upload-content-defect.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UploadContentDefect } from './upload-content-defect.js';
|
|
2
|
+
import type { UploadDeclaration } from './upload-declaration.js';
|
|
3
|
+
/**
|
|
4
|
+
* What `contentRuleDefects` of `@ddd-ts-kit/kernel` refuses when the route is declared, read on the
|
|
5
|
+
* text: an accepted media type no content could prove, and a stated rule that does nothing.
|
|
6
|
+
* `upload-content-defects.spec.ts` holds the two to the same judgement.
|
|
7
|
+
*/
|
|
8
|
+
export declare function uploadContentDefects({ mediaTypes, stated }: UploadDeclaration): UploadContentDefect[];
|
|
9
|
+
//# sourceMappingURL=upload-content-defects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-content-defects.d.ts","sourceRoot":"","sources":["../../../src/check/files/upload-content-defects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAK9D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,mBAAmB,EAAE,CAQrG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { KIT_CONTENT_TYPES, NAMED_ONLY_CONTENT_TYPES } from './kit-content-types.js';
|
|
2
|
+
/** `type/subtype`, or a family `type/*`. */
|
|
3
|
+
const MEDIA_TYPE = /^[^/*\s]+\/(?:[^/*\s]+|\*)$/;
|
|
4
|
+
/**
|
|
5
|
+
* What `contentRuleDefects` of `@ddd-ts-kit/kernel` refuses when the route is declared, read on the
|
|
6
|
+
* text: an accepted media type no content could prove, and a stated rule that does nothing.
|
|
7
|
+
* `upload-content-defects.spec.ts` holds the two to the same judgement.
|
|
8
|
+
*/
|
|
9
|
+
export function uploadContentDefects({ mediaTypes, stated }) {
|
|
10
|
+
const accepted = mediaTypes.map(essenceOf);
|
|
11
|
+
const rules = stated.map(essenceOf);
|
|
12
|
+
return [
|
|
13
|
+
...mediaTypes.flatMap((literal) => unprovable(literal, rules)),
|
|
14
|
+
...stated.flatMap((literal) => misstated(literal, accepted)),
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
function unprovable(literal, rules) {
|
|
18
|
+
const essence = essenceOf(literal);
|
|
19
|
+
if (!MEDIA_TYPE.test(essence)) {
|
|
20
|
+
return [{ literal, message: `"${literal.value}" is neither a media type nor a family of them (\`image/*\`).` }];
|
|
21
|
+
}
|
|
22
|
+
const family = `${familyOf(essence)}/`;
|
|
23
|
+
const proven = essence.endsWith('/*')
|
|
24
|
+
? [...KIT_CONTENT_TYPES, ...rules].some((type) => type.startsWith(family))
|
|
25
|
+
: [...KIT_CONTENT_TYPES, ...rules].some((type) => type === essence || type === familyRuleOf(essence));
|
|
26
|
+
return proven ? [] : [{ literal, message: `"${literal.value}" has no content rule.` }];
|
|
27
|
+
}
|
|
28
|
+
/** The family whose stated rule holds for a type: none for a type a browser runs, which is stated by name. */
|
|
29
|
+
function familyRuleOf(essence) {
|
|
30
|
+
return NAMED_ONLY_CONTENT_TYPES.includes(essence) ? undefined : `${familyOf(essence)}/*`;
|
|
31
|
+
}
|
|
32
|
+
function misstated(literal, accepted) {
|
|
33
|
+
const essence = essenceOf(literal);
|
|
34
|
+
if (KIT_CONTENT_TYPES.includes(essence)) {
|
|
35
|
+
return [{ literal, message: `\`contentRules\` states "${literal.value}", which the kit already verifies.` }];
|
|
36
|
+
}
|
|
37
|
+
const taken = accepted.includes(essence) || (!essence.endsWith('/*') && accepted.includes(`${familyOf(essence)}/*`));
|
|
38
|
+
return taken
|
|
39
|
+
? []
|
|
40
|
+
: [
|
|
41
|
+
{
|
|
42
|
+
literal,
|
|
43
|
+
message: `\`contentRules\` states "${literal.value}", which is not one of the accepted media types.`,
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
/** `Image/PNG; charset=binary` is `image/png`, as `mediaTypeOf` of the kernel reads it. */
|
|
48
|
+
function essenceOf({ value }) {
|
|
49
|
+
return (value.split(';')[0] ?? '').trim().toLowerCase();
|
|
50
|
+
}
|
|
51
|
+
function familyOf(essence) {
|
|
52
|
+
return essence.split('/')[0] ?? '';
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=upload-content-defects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-content-defects.js","sourceRoot":"","sources":["../../../src/check/files/upload-content-defects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAIlF,4CAA4C;AAC5C,MAAM,UAAU,GAAG,6BAA6B,CAAC;AAEjD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,EAA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E,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StringRecord } from '../scan/string-record.js';
|
|
2
|
+
/** An upload a route declares, as far as its text says it: the media types it accepts and those it states a content rule for. */
|
|
3
|
+
export interface UploadDeclaration {
|
|
4
|
+
readonly mediaTypes: readonly StringRecord[];
|
|
5
|
+
readonly stated: readonly StringRecord[];
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=upload-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-declaration.d.ts","sourceRoot":"","sources":["../../../src/check/files/upload-declaration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,iIAAiI;AACjI,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-declaration.js","sourceRoot":"","sources":["../../../src/check/files/upload-declaration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Scan } from '../scan/scan.js';
|
|
2
|
+
import type { UploadDeclaration } from './upload-declaration.js';
|
|
3
|
+
/**
|
|
4
|
+
* The uploads a route file declares with its media types, and its content rules if any, written as
|
|
5
|
+
* literals: all a reading of the text can judge. One that builds them elsewhere (a constant, a
|
|
6
|
+
* spread) is left out: `@ddd-ts-kit/http` judges it when the route is declared.
|
|
7
|
+
*/
|
|
8
|
+
export declare function uploadDeclarations(scan: Scan): UploadDeclaration[];
|
|
9
|
+
//# sourceMappingURL=upload-declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-declarations.d.ts","sourceRoot":"","sources":["../../../src/check/files/upload-declarations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAc9D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,iBAAiB,EAAE,CAalE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { matchingBracket } from '../text/matching-bracket.js';
|
|
2
|
+
const UPLOAD = /(?<![\w$.])upload\s*:\s*\{/g;
|
|
3
|
+
const MEDIA_TYPES = /(?<![\w$.])mediaTypes\s*:\s*(\[)?/;
|
|
4
|
+
const CONTENT_RULES = /(?<![\w$.])contentRules\s*:\s*(\{)?/;
|
|
5
|
+
/** What stands between the strings of a list or of an object written whole: quotes and separators, the lexer having blanked the rest. */
|
|
6
|
+
const ONLY_LITERALS = /^[\s,:'"]*$/;
|
|
7
|
+
const UNREAD = 'unread';
|
|
8
|
+
/**
|
|
9
|
+
* The uploads a route file declares with its media types, and its content rules if any, written as
|
|
10
|
+
* literals: all a reading of the text can judge. One that builds them elsewhere (a constant, a
|
|
11
|
+
* spread) is left out: `@ddd-ts-kit/http` judges it when the route is declared.
|
|
12
|
+
*/
|
|
13
|
+
export function uploadDeclarations(scan) {
|
|
14
|
+
return [...scan.code.matchAll(UPLOAD)].flatMap((match) => {
|
|
15
|
+
const from = match.index + match[0].length - 1;
|
|
16
|
+
const upload = { from, to: matchingBracket(scan.code, from) };
|
|
17
|
+
const mediaTypes = literalsOf(scan, MEDIA_TYPES, upload);
|
|
18
|
+
const stated = literalsOf(scan, CONTENT_RULES, upload) ?? [];
|
|
19
|
+
if (mediaTypes === undefined || mediaTypes === UNREAD || stated === UNREAD) {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
return [{ mediaTypes, stated: stated.filter((literal) => literal.value.includes('/')) }];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** The strings of a property of the upload: `undefined` when it is absent, `unread` when it is not written whole. */
|
|
26
|
+
function literalsOf(scan, property, upload) {
|
|
27
|
+
const body = scan.code.slice(upload.from, upload.to);
|
|
28
|
+
const match = property.exec(body);
|
|
29
|
+
if (match === null) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (match[1] === undefined || body.includes('...')) {
|
|
33
|
+
return UNREAD;
|
|
34
|
+
}
|
|
35
|
+
const open = upload.from + match.index + match[0].length - 1;
|
|
36
|
+
const close = matchingBracket(scan.code, open);
|
|
37
|
+
return ONLY_LITERALS.test(scan.code.slice(open + 1, close))
|
|
38
|
+
? scan.strings.filter((literal) => literal.start > open && literal.end <= close)
|
|
39
|
+
: UNREAD;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=upload-declarations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-declarations.js","sourceRoot":"","sources":["../../../src/check/files/upload-declarations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,MAAM,MAAM,GAAG,6BAA6B,CAAC;AAC7C,MAAM,WAAW,GAAG,mCAAmC,CAAC;AACxD,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAC5D,yIAAyI;AACzI,MAAM,aAAa,GAAG,aAAa,CAAC;AACpC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAOxB;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAU;IAC3C,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACvD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,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AAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QACzD,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK,CAAC;QAChF,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias-declared-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/alias-declared-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"alias-declared-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/alias-declared-fixtures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BzC,eAAO,MAAM,uBAAuB,EAAE,SAAS,OAAO,EAoNrD,CAAC"}
|