@bgord/bun 1.14.7 → 1.15.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/dist/ab-variant-selector.service.js +2 -2
- package/dist/ab-variant-selector.service.js.map +1 -1
- package/dist/ab-variant-weight.vo.d.ts +3 -3
- package/dist/ab-variant-weight.vo.d.ts.map +1 -1
- package/dist/ab-variant-weight.vo.js +4 -8
- package/dist/ab-variant-weight.vo.js.map +1 -1
- package/dist/basic-auth-password.vo.d.ts +3 -3
- package/dist/basic-auth-password.vo.d.ts.map +1 -1
- package/dist/basic-auth-password.vo.js +4 -8
- package/dist/basic-auth-password.vo.js.map +1 -1
- package/dist/basic-auth-username.vo.d.ts +3 -3
- package/dist/basic-auth-username.vo.d.ts.map +1 -1
- package/dist/basic-auth-username.vo.js +4 -8
- package/dist/basic-auth-username.vo.js.map +1 -1
- package/dist/binary.vo.d.ts +3 -5
- package/dist/binary.vo.d.ts.map +1 -1
- package/dist/binary.vo.js +6 -16
- package/dist/binary.vo.js.map +1 -1
- package/dist/client-ip.vo.d.ts +3 -3
- package/dist/client-ip.vo.d.ts.map +1 -1
- package/dist/client-ip.vo.js +4 -3
- package/dist/client-ip.vo.js.map +1 -1
- package/dist/client-user-agent.vo.d.ts +3 -3
- package/dist/client-user-agent.vo.d.ts.map +1 -1
- package/dist/client-user-agent.vo.js +4 -7
- package/dist/client-user-agent.vo.js.map +1 -1
- package/dist/client.vo.d.ts.map +1 -1
- package/dist/client.vo.js +10 -3
- package/dist/client.vo.js.map +1 -1
- package/dist/command-envelope.d.ts +4 -4
- package/dist/commit-sha-value.vo.d.ts +3 -3
- package/dist/commit-sha-value.vo.d.ts.map +1 -1
- package/dist/commit-sha-value.vo.js +4 -7
- package/dist/commit-sha-value.vo.js.map +1 -1
- package/dist/commit-sha.vo.d.ts.map +1 -1
- package/dist/commit-sha.vo.js +2 -1
- package/dist/commit-sha.vo.js.map +1 -1
- package/dist/correlation-id.vo.d.ts +3 -3
- package/dist/correlation-id.vo.d.ts.map +1 -1
- package/dist/correlation.middleware.d.ts.map +1 -1
- package/dist/correlation.middleware.js +3 -2
- package/dist/correlation.middleware.js.map +1 -1
- package/dist/encryption-key-value.vo.d.ts +3 -3
- package/dist/encryption-key-value.vo.d.ts.map +1 -1
- package/dist/encryption-key-value.vo.js +4 -7
- package/dist/encryption-key-value.vo.js.map +1 -1
- package/dist/encryption-key.vo.d.ts.map +1 -1
- package/dist/encryption-key.vo.js +2 -1
- package/dist/encryption-key.vo.js.map +1 -1
- package/dist/environment-loader-encrypted.adapter.d.ts +1 -1
- package/dist/environment-loader-encrypted.adapter.d.ts.map +1 -1
- package/dist/environment-loader-encrypted.adapter.js +8 -1
- package/dist/environment-loader-encrypted.adapter.js.map +1 -1
- package/dist/environment-loader-noop.adapter.d.ts +1 -1
- package/dist/environment-loader-noop.adapter.d.ts.map +1 -1
- package/dist/environment-loader-noop.adapter.js +8 -4
- package/dist/environment-loader-noop.adapter.js.map +1 -1
- package/dist/environment-loader-process-safe.adapter.d.ts +1 -1
- package/dist/environment-loader-process-safe.adapter.d.ts.map +1 -1
- package/dist/environment-loader-process-safe.adapter.js +12 -3
- package/dist/environment-loader-process-safe.adapter.js.map +1 -1
- package/dist/environment-loader-process.adapter.d.ts +1 -1
- package/dist/environment-loader-process.adapter.d.ts.map +1 -1
- package/dist/environment-loader-process.adapter.js +8 -1
- package/dist/environment-loader-process.adapter.js.map +1 -1
- package/dist/environment-loader.port.d.ts +5 -2
- package/dist/environment-loader.port.d.ts.map +1 -1
- package/dist/environment-loader.port.js +1 -1
- package/dist/environment-loader.port.js.map +1 -1
- package/dist/event-envelope.d.ts +8 -8
- package/dist/event-envelope.d.ts.map +1 -1
- package/dist/event-envelope.js +3 -3
- package/dist/event-envelope.js.map +1 -1
- package/dist/event-store-with-logger.adapter.d.ts.map +1 -1
- package/dist/event-store-with-logger.adapter.js +1 -0
- package/dist/event-store-with-logger.adapter.js.map +1 -1
- package/dist/event-stream.vo.d.ts +3 -3
- package/dist/event-stream.vo.d.ts.map +1 -1
- package/dist/event-stream.vo.js +2 -5
- package/dist/event-stream.vo.js.map +1 -1
- package/dist/event-validator-registry.adapter.d.ts +12 -0
- package/dist/event-validator-registry.adapter.d.ts.map +1 -0
- package/dist/event-validator-registry.adapter.js +32 -0
- package/dist/event-validator-registry.adapter.js.map +1 -0
- package/dist/event-validator-registry.port.d.ts +3 -0
- package/dist/event-validator-registry.port.d.ts.map +1 -1
- package/dist/event-validator-registry.port.js +1 -1
- package/dist/event-validator-registry.port.js.map +1 -1
- package/dist/file-draft-zip.service.d.ts.map +1 -1
- package/dist/file-draft-zip.service.js +2 -1
- package/dist/file-draft-zip.service.js.map +1 -1
- package/dist/hash-bucket.vo.js +1 -1
- package/dist/hash-bucket.vo.js.map +1 -1
- package/dist/hash-value.vo.d.ts +3 -3
- package/dist/hash-value.vo.d.ts.map +1 -1
- package/dist/hash-value.vo.js +4 -7
- package/dist/hash-value.vo.js.map +1 -1
- package/dist/hash.vo.d.ts.map +1 -1
- package/dist/hash.vo.js +2 -1
- package/dist/hash.vo.js.map +1 -1
- package/dist/hcaptcha-secret-key.vo.d.ts +3 -3
- package/dist/hcaptcha-secret-key.vo.d.ts.map +1 -1
- package/dist/hcaptcha-secret-key.vo.js +4 -7
- package/dist/hcaptcha-secret-key.vo.js.map +1 -1
- package/dist/hcaptcha-site-key.vo.d.ts +3 -3
- package/dist/hcaptcha-site-key.vo.d.ts.map +1 -1
- package/dist/hcaptcha-site-key.vo.js +4 -7
- package/dist/hcaptcha-site-key.vo.js.map +1 -1
- package/dist/healthcheck-hono.handler.d.ts +3 -3
- package/dist/healthcheck.handler.d.ts +3 -3
- package/dist/healthcheck.handler.d.ts.map +1 -1
- package/dist/healthcheck.handler.js +4 -4
- package/dist/healthcheck.handler.js.map +1 -1
- package/dist/http-logger.middleware.js +1 -1
- package/dist/http-logger.middleware.js.map +1 -1
- package/dist/i18n.service.d.ts +2 -1
- package/dist/i18n.service.d.ts.map +1 -1
- package/dist/i18n.service.js +2 -1
- package/dist/i18n.service.js.map +1 -1
- package/dist/image-info-noop.adapter.d.ts.map +1 -1
- package/dist/image-info-noop.adapter.js +3 -2
- package/dist/image-info-noop.adapter.js.map +1 -1
- package/dist/image-info-sharp.adapter.d.ts.map +1 -1
- package/dist/image-info-sharp.adapter.js +4 -3
- package/dist/image-info-sharp.adapter.js.map +1 -1
- package/dist/in-flight-requests-tracker.service.d.ts.map +1 -1
- package/dist/in-flight-requests-tracker.service.js +2 -2
- package/dist/in-flight-requests-tracker.service.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/logger.port.d.ts +1 -3
- package/dist/logger.port.d.ts.map +1 -1
- package/dist/logger.port.js +0 -2
- package/dist/logger.port.js.map +1 -1
- package/dist/mailer-content-html.vo.d.ts +3 -3
- package/dist/mailer-content-html.vo.d.ts.map +1 -1
- package/dist/mailer-content-html.vo.js +4 -8
- package/dist/mailer-content-html.vo.js.map +1 -1
- package/dist/mailer-subject.vo.d.ts +3 -3
- package/dist/mailer-subject.vo.d.ts.map +1 -1
- package/dist/mailer-subject.vo.js +4 -8
- package/dist/mailer-subject.vo.js.map +1 -1
- package/dist/modules/history/event-handlers/onHistoryPopulatedEvent.d.ts.map +1 -1
- package/dist/modules/history/event-handlers/onHistoryPopulatedEvent.js +2 -1
- package/dist/modules/history/event-handlers/onHistoryPopulatedEvent.js.map +1 -1
- package/dist/modules/history/events/HISTORY_CLEARED_EVENT.d.ts +14 -14
- package/dist/modules/history/events/HISTORY_CLEARED_EVENT.d.ts.map +1 -1
- package/dist/modules/history/events/HISTORY_CLEARED_EVENT.js +4 -4
- package/dist/modules/history/events/HISTORY_CLEARED_EVENT.js.map +1 -1
- package/dist/modules/history/events/HISTORY_POPULATED_EVENT.d.ts +17 -17
- package/dist/modules/history/events/HISTORY_POPULATED_EVENT.d.ts.map +1 -1
- package/dist/modules/history/events/HISTORY_POPULATED_EVENT.js +4 -4
- package/dist/modules/history/events/HISTORY_POPULATED_EVENT.js.map +1 -1
- package/dist/modules/history/value-objects/history-created-at.d.ts +3 -3
- package/dist/modules/history/value-objects/history-created-at.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history-id.d.ts +1 -1
- package/dist/modules/history/value-objects/history-id.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history-operation.d.ts +2 -2
- package/dist/modules/history/value-objects/history-operation.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history-operation.js +2 -5
- package/dist/modules/history/value-objects/history-operation.js.map +1 -1
- package/dist/modules/history/value-objects/history-payload.d.ts +7 -3
- package/dist/modules/history/value-objects/history-payload.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history-payload.js +8 -6
- package/dist/modules/history/value-objects/history-payload.js.map +1 -1
- package/dist/modules/history/value-objects/history-subject.d.ts +3 -3
- package/dist/modules/history/value-objects/history-subject.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history-subject.js +2 -5
- package/dist/modules/history/value-objects/history-subject.js.map +1 -1
- package/dist/modules/history/value-objects/history.d.ts +21 -17
- package/dist/modules/history/value-objects/history.d.ts.map +1 -1
- package/dist/modules/history/value-objects/history.js +3 -3
- package/dist/modules/history/value-objects/history.js.map +1 -1
- package/dist/modules/preferences/command-handlers/handleSetUserLanguageCommand.d.ts.map +1 -1
- package/dist/modules/preferences/command-handlers/handleSetUserLanguageCommand.js +2 -1
- package/dist/modules/preferences/command-handlers/handleSetUserLanguageCommand.js.map +1 -1
- package/dist/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.d.ts +12 -12
- package/dist/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.d.ts.map +1 -1
- package/dist/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.js +4 -4
- package/dist/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.js.map +1 -1
- package/dist/modules/preferences/events/USER_LANGUAGE_SET_EVENT.d.ts +15 -15
- package/dist/modules/preferences/events/USER_LANGUAGE_SET_EVENT.d.ts.map +1 -1
- package/dist/modules/preferences/events/USER_LANGUAGE_SET_EVENT.js +4 -4
- package/dist/modules/preferences/events/USER_LANGUAGE_SET_EVENT.js.map +1 -1
- package/dist/modules/system/events/HOUR_HAS_PASSED_EVENT.d.ts +14 -14
- package/dist/modules/system/events/HOUR_HAS_PASSED_EVENT.d.ts.map +1 -1
- package/dist/modules/system/events/HOUR_HAS_PASSED_EVENT.js +4 -4
- package/dist/modules/system/events/HOUR_HAS_PASSED_EVENT.js.map +1 -1
- package/dist/modules/system/events/MINUTE_HAS_PASSED_EVENT.d.ts +14 -14
- package/dist/modules/system/events/MINUTE_HAS_PASSED_EVENT.d.ts.map +1 -1
- package/dist/modules/system/events/MINUTE_HAS_PASSED_EVENT.js +4 -4
- package/dist/modules/system/events/MINUTE_HAS_PASSED_EVENT.js.map +1 -1
- package/dist/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.d.ts +21 -21
- package/dist/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.d.ts.map +1 -1
- package/dist/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.js +7 -7
- package/dist/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.js.map +1 -1
- package/dist/modules/system/services/passage-of-time-hourly.service.d.ts.map +1 -1
- package/dist/modules/system/services/passage-of-time-hourly.service.js +2 -1
- package/dist/modules/system/services/passage-of-time-hourly.service.js.map +1 -1
- package/dist/modules/system/services/passage-of-time-minute.service.d.ts.map +1 -1
- package/dist/modules/system/services/passage-of-time-minute.service.js +2 -1
- package/dist/modules/system/services/passage-of-time-minute.service.js.map +1 -1
- package/dist/node-env.vo.d.ts +0 -5
- package/dist/node-env.vo.d.ts.map +1 -1
- package/dist/node-env.vo.js +0 -3
- package/dist/node-env.vo.js.map +1 -1
- package/dist/nonce-provider-crypto.adapter.d.ts.map +1 -1
- package/dist/nonce-provider-crypto.adapter.js +2 -1
- package/dist/nonce-provider-crypto.adapter.js.map +1 -1
- package/dist/nonce-provider-noop.adapter.d.ts.map +1 -1
- package/dist/nonce-provider-noop.adapter.js +2 -1
- package/dist/nonce-provider-noop.adapter.js.map +1 -1
- package/dist/nonce-value.vo.d.ts +3 -3
- package/dist/nonce-value.vo.d.ts.map +1 -1
- package/dist/nonce-value.vo.js +4 -7
- package/dist/nonce-value.vo.js.map +1 -1
- package/dist/port.vo.d.ts +3 -3
- package/dist/port.vo.d.ts.map +1 -1
- package/dist/port.vo.js +4 -9
- package/dist/port.vo.js.map +1 -1
- package/dist/prerequisite-verifier-outside-connectivity.adapter.d.ts.map +1 -1
- package/dist/prerequisite-verifier-outside-connectivity.adapter.js +2 -1
- package/dist/prerequisite-verifier-outside-connectivity.adapter.js.map +1 -1
- package/dist/recaptcha-secret-key.vo.d.ts +3 -3
- package/dist/recaptcha-secret-key.vo.d.ts.map +1 -1
- package/dist/recaptcha-secret-key.vo.js +4 -7
- package/dist/recaptcha-secret-key.vo.js.map +1 -1
- package/dist/recaptcha-site-key.vo.d.ts +3 -3
- package/dist/recaptcha-site-key.vo.d.ts.map +1 -1
- package/dist/recaptcha-site-key.vo.js +4 -7
- package/dist/recaptcha-site-key.vo.js.map +1 -1
- package/dist/redactor-error-cause-depth-limit.strategy.js +2 -2
- package/dist/redactor-error-cause-depth-limit.strategy.js.map +1 -1
- package/dist/redactor-metadata-compact-array.strategy.d.ts.map +1 -1
- package/dist/redactor-metadata-compact-array.strategy.js +1 -1
- package/dist/redactor-metadata-compact-array.strategy.js.map +1 -1
- package/dist/redactor-metadata-compact-object.strategy.d.ts.map +1 -1
- package/dist/redactor-metadata-compact-object.strategy.js +1 -1
- package/dist/redactor-metadata-compact-object.strategy.js.map +1 -1
- package/dist/remote-file-storage-disk.adapter.d.ts.map +1 -1
- package/dist/remote-file-storage-disk.adapter.js +2 -1
- package/dist/remote-file-storage-disk.adapter.js.map +1 -1
- package/dist/retry-backoff-exponential.strategy.d.ts.map +1 -1
- package/dist/retry-backoff-exponential.strategy.js +2 -1
- package/dist/retry-backoff-exponential.strategy.js.map +1 -1
- package/dist/retry-backoff-fibonacci.strategy.d.ts.map +1 -1
- package/dist/retry-backoff-fibonacci.strategy.js +2 -1
- package/dist/retry-backoff-fibonacci.strategy.js.map +1 -1
- package/dist/retry-backoff-linear.strategy.d.ts.map +1 -1
- package/dist/retry-backoff-linear.strategy.js +2 -1
- package/dist/retry-backoff-linear.strategy.js.map +1 -1
- package/dist/retry.service.d.ts.map +1 -1
- package/dist/retry.service.js +1 -1
- package/dist/retry.service.js.map +1 -1
- package/dist/security-countermeasure-ban.strategy.d.ts.map +1 -1
- package/dist/security-countermeasure-ban.strategy.js +3 -2
- package/dist/security-countermeasure-ban.strategy.js.map +1 -1
- package/dist/security-countermeasure-mirage.strategy.d.ts.map +1 -1
- package/dist/security-countermeasure-mirage.strategy.js +2 -1
- package/dist/security-countermeasure-mirage.strategy.js.map +1 -1
- package/dist/security-countermeasure-name.vo.d.ts +3 -5
- package/dist/security-countermeasure-name.vo.d.ts.map +1 -1
- package/dist/security-countermeasure-name.vo.js +4 -11
- package/dist/security-countermeasure-name.vo.js.map +1 -1
- package/dist/security-countermeasure-noop.strategy.d.ts.map +1 -1
- package/dist/security-countermeasure-noop.strategy.js +2 -1
- package/dist/security-countermeasure-noop.strategy.js.map +1 -1
- package/dist/security-countermeasure-report.strategy.d.ts.map +1 -1
- package/dist/security-countermeasure-report.strategy.js +2 -1
- package/dist/security-countermeasure-report.strategy.js.map +1 -1
- package/dist/security-countermeasure-tarpit.strategy.d.ts.map +1 -1
- package/dist/security-countermeasure-tarpit.strategy.js +2 -1
- package/dist/security-countermeasure-tarpit.strategy.js.map +1 -1
- package/dist/security-rule-and.strategy.d.ts.map +1 -1
- package/dist/security-rule-and.strategy.js +2 -1
- package/dist/security-rule-and.strategy.js.map +1 -1
- package/dist/security-rule-bait-routes.strategy.d.ts.map +1 -1
- package/dist/security-rule-bait-routes.strategy.js +2 -1
- package/dist/security-rule-bait-routes.strategy.js.map +1 -1
- package/dist/security-rule-fail.strategy.d.ts.map +1 -1
- package/dist/security-rule-fail.strategy.js +2 -1
- package/dist/security-rule-fail.strategy.js.map +1 -1
- package/dist/security-rule-honey-pot-field.strategy.d.ts.map +1 -1
- package/dist/security-rule-honey-pot-field.strategy.js +2 -1
- package/dist/security-rule-honey-pot-field.strategy.js.map +1 -1
- package/dist/security-rule-name.vo.d.ts +3 -5
- package/dist/security-rule-name.vo.d.ts.map +1 -1
- package/dist/security-rule-name.vo.js +5 -12
- package/dist/security-rule-name.vo.js.map +1 -1
- package/dist/security-rule-or.strategy.d.ts.map +1 -1
- package/dist/security-rule-or.strategy.js +2 -1
- package/dist/security-rule-or.strategy.js.map +1 -1
- package/dist/security-rule-pass.strategy.d.ts.map +1 -1
- package/dist/security-rule-pass.strategy.js +2 -1
- package/dist/security-rule-pass.strategy.js.map +1 -1
- package/dist/security-rule-user-agent.strategy.d.ts.map +1 -1
- package/dist/security-rule-user-agent.strategy.js +2 -1
- package/dist/security-rule-user-agent.strategy.js.map +1 -1
- package/dist/security-rule-violation-threshold.strategy.d.ts.map +1 -1
- package/dist/security-rule-violation-threshold.strategy.js +3 -2
- package/dist/security-rule-violation-threshold.strategy.js.map +1 -1
- package/dist/shield-body-limit.strategy.d.ts.map +1 -1
- package/dist/shield-body-limit.strategy.js +3 -2
- package/dist/shield-body-limit.strategy.js.map +1 -1
- package/dist/shield-recaptcha.strategy.d.ts.map +1 -1
- package/dist/shield-recaptcha.strategy.js +2 -1
- package/dist/shield-recaptcha.strategy.js.map +1 -1
- package/dist/smtp-host.vo.d.ts +3 -3
- package/dist/smtp-host.vo.d.ts.map +1 -1
- package/dist/smtp-host.vo.js +4 -8
- package/dist/smtp-host.vo.js.map +1 -1
- package/dist/smtp-pass.vo.d.ts +3 -3
- package/dist/smtp-pass.vo.d.ts.map +1 -1
- package/dist/smtp-pass.vo.js +4 -8
- package/dist/smtp-pass.vo.js.map +1 -1
- package/dist/smtp-port.vo.d.ts +3 -3
- package/dist/smtp-port.vo.d.ts.map +1 -1
- package/dist/smtp-user.vo.d.ts +3 -3
- package/dist/smtp-user.vo.d.ts.map +1 -1
- package/dist/smtp-user.vo.js +4 -8
- package/dist/smtp-user.vo.js.map +1 -1
- package/dist/time-zone-offset.middleware.d.ts.map +1 -1
- package/dist/time-zone-offset.middleware.js +3 -2
- package/dist/time-zone-offset.middleware.js.map +1 -1
- package/dist/timekeeper-google.adapter.d.ts +2 -1
- package/dist/timekeeper-google.adapter.d.ts.map +1 -1
- package/dist/timekeeper-google.adapter.js +2 -1
- package/dist/timekeeper-google.adapter.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/uuid.vo.d.ts +3 -3
- package/dist/uuid.vo.d.ts.map +1 -1
- package/dist/uuid.vo.js +2 -2
- package/dist/uuid.vo.js.map +1 -1
- package/dist/woodchopper-dispatcher-async.strategy.d.ts.map +1 -1
- package/dist/woodchopper-dispatcher-async.strategy.js +2 -2
- package/dist/woodchopper-dispatcher-async.strategy.js.map +1 -1
- package/dist/woodchopper.js +7 -7
- package/dist/woodchopper.js.map +1 -1
- package/package.json +8 -9
- package/readme.md +1 -2
- package/src/ab-variant-selector.service.ts +2 -2
- package/src/ab-variant-weight.vo.ts +10 -9
- package/src/basic-auth-password.vo.ts +9 -9
- package/src/basic-auth-username.vo.ts +9 -9
- package/src/binary.vo.ts +10 -17
- package/src/client-ip.vo.ts +8 -5
- package/src/client-user-agent.vo.ts +8 -8
- package/src/client.vo.ts +7 -3
- package/src/commit-sha-value.vo.ts +8 -8
- package/src/commit-sha.vo.ts +2 -1
- package/src/correlation-id.vo.ts +2 -2
- package/src/correlation.middleware.ts +3 -2
- package/src/encryption-key-value.vo.ts +8 -8
- package/src/encryption-key.vo.ts +2 -1
- package/src/environment-loader-encrypted.adapter.ts +10 -5
- package/src/environment-loader-noop.adapter.ts +10 -8
- package/src/environment-loader-process-safe.adapter.ts +14 -9
- package/src/environment-loader-process.adapter.ts +10 -5
- package/src/environment-loader.port.ts +5 -2
- package/src/event-envelope.ts +3 -3
- package/src/event-store-with-logger.adapter.ts +1 -0
- package/src/event-stream.vo.ts +7 -6
- package/src/event-validator-registry.adapter.ts +44 -0
- package/src/event-validator-registry.port.ts +2 -0
- package/src/file-draft-zip.service.ts +2 -1
- package/src/hash-bucket.vo.ts +1 -1
- package/src/hash-value.vo.ts +8 -8
- package/src/hash.vo.ts +2 -1
- package/src/hcaptcha-secret-key.vo.ts +8 -8
- package/src/hcaptcha-site-key.vo.ts +8 -8
- package/src/healthcheck.handler.ts +7 -7
- package/src/http-logger.middleware.ts +1 -1
- package/src/i18n.service.ts +2 -1
- package/src/image-info-noop.adapter.ts +3 -2
- package/src/image-info-sharp.adapter.ts +4 -3
- package/src/in-flight-requests-tracker.service.ts +2 -2
- package/src/index.ts +1 -2
- package/src/logger.port.ts +1 -3
- package/src/mailer-content-html.vo.ts +9 -9
- package/src/mailer-subject.vo.ts +9 -9
- package/src/modules/history/event-handlers/onHistoryPopulatedEvent.ts +2 -1
- package/src/modules/history/events/HISTORY_CLEARED_EVENT.ts +5 -5
- package/src/modules/history/events/HISTORY_POPULATED_EVENT.ts +5 -5
- package/src/modules/history/value-objects/history-created-at.ts +2 -2
- package/src/modules/history/value-objects/history-operation.ts +6 -5
- package/src/modules/history/value-objects/history-payload.ts +15 -9
- package/src/modules/history/value-objects/history-subject.ts +7 -6
- package/src/modules/history/value-objects/history.ts +5 -5
- package/src/modules/preferences/command-handlers/handleSetUserLanguageCommand.ts +2 -1
- package/src/modules/preferences/commands/SET_USER_LANGUAGE_COMMAND.ts +5 -5
- package/src/modules/preferences/events/USER_LANGUAGE_SET_EVENT.ts +5 -5
- package/src/modules/system/events/HOUR_HAS_PASSED_EVENT.ts +5 -5
- package/src/modules/system/events/MINUTE_HAS_PASSED_EVENT.ts +5 -5
- package/src/modules/system/events/SECURITY_VIOLATION_DETECTED_EVENT.ts +8 -8
- package/src/modules/system/services/passage-of-time-hourly.service.ts +2 -1
- package/src/modules/system/services/passage-of-time-minute.service.ts +2 -1
- package/src/node-env.vo.ts +0 -6
- package/src/nonce-provider-crypto.adapter.ts +2 -1
- package/src/nonce-provider-noop.adapter.ts +2 -1
- package/src/nonce-value.vo.ts +8 -8
- package/src/port.vo.ts +12 -10
- package/src/prerequisite-verifier-outside-connectivity.adapter.ts +2 -1
- package/src/recaptcha-secret-key.vo.ts +8 -8
- package/src/recaptcha-site-key.vo.ts +8 -8
- package/src/redactor-error-cause-depth-limit.strategy.ts +2 -2
- package/src/redactor-metadata-compact-array.strategy.ts +1 -1
- package/src/redactor-metadata-compact-object.strategy.ts +1 -1
- package/src/remote-file-storage-disk.adapter.ts +2 -1
- package/src/retry-backoff-exponential.strategy.ts +2 -1
- package/src/retry-backoff-fibonacci.strategy.ts +2 -1
- package/src/retry-backoff-linear.strategy.ts +2 -1
- package/src/retry.service.ts +1 -2
- package/src/security-countermeasure-ban.strategy.ts +3 -2
- package/src/security-countermeasure-mirage.strategy.ts +2 -1
- package/src/security-countermeasure-name.vo.ts +8 -12
- package/src/security-countermeasure-noop.strategy.ts +2 -1
- package/src/security-countermeasure-report.strategy.ts +2 -1
- package/src/security-countermeasure-tarpit.strategy.ts +2 -1
- package/src/security-rule-and.strategy.ts +2 -1
- package/src/security-rule-bait-routes.strategy.ts +2 -1
- package/src/security-rule-fail.strategy.ts +2 -1
- package/src/security-rule-honey-pot-field.strategy.ts +2 -1
- package/src/security-rule-name.vo.ts +9 -13
- package/src/security-rule-or.strategy.ts +2 -1
- package/src/security-rule-pass.strategy.ts +2 -1
- package/src/security-rule-user-agent.strategy.ts +2 -1
- package/src/security-rule-violation-threshold.strategy.ts +3 -2
- package/src/shield-body-limit.strategy.ts +3 -2
- package/src/shield-recaptcha.strategy.ts +3 -1
- package/src/smtp-host.vo.ts +9 -9
- package/src/smtp-pass.vo.ts +9 -9
- package/src/smtp-port.vo.ts +2 -2
- package/src/smtp-user.vo.ts +9 -9
- package/src/time-zone-offset.middleware.ts +3 -2
- package/src/timekeeper-google.adapter.ts +2 -1
- package/src/uuid.vo.ts +3 -3
- package/src/woodchopper-dispatcher-async.strategy.ts +2 -2
- package/src/woodchopper.ts +7 -7
- package/dist/environment-schema.port.d.ts +0 -4
- package/dist/environment-schema.port.d.ts.map +0 -1
- package/dist/environment-schema.port.js +0 -2
- package/dist/environment-schema.port.js.map +0 -1
- package/dist/event-validator-registry-zod.adapter.d.ts +0 -24
- package/dist/event-validator-registry-zod.adapter.d.ts.map +0 -1
- package/dist/event-validator-registry-zod.adapter.js +0 -25
- package/dist/event-validator-registry-zod.adapter.js.map +0 -1
- package/src/environment-schema.port.ts +0 -3
- package/src/event-validator-registry-zod.adapter.ts +0 -47
|
@@ -10,9 +10,9 @@ export class AbVariantSelector {
|
|
|
10
10
|
}
|
|
11
11
|
select(hash) {
|
|
12
12
|
const bucket = HashBucket.fromHash(hash);
|
|
13
|
-
let cumulative = tools.
|
|
13
|
+
let cumulative = tools.Int.nonNegative(0);
|
|
14
14
|
for (const variant of this.variants.variants) {
|
|
15
|
-
cumulative = tools.
|
|
15
|
+
cumulative = tools.Int.nonNegative(cumulative + variant.config.weight);
|
|
16
16
|
if (bucket.isLessThan(cumulative))
|
|
17
17
|
return variant;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ab-variant-selector.service.js","sourceRoot":"","sources":["../src/ab-variant-selector.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,sBAAsB;AACtB,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,iBAAiB,EAAE,yCAAyC,EAAE,CAAC;AACvG,sBAAsB;AAEtB,MAAM,OAAO,iBAAiB;IACC;IAA7B,YAA6B,QAAoB;QAApB,aAAQ,GAAR,QAAQ,CAAY;IAAG,CAAC;IAErD,MAAM,CAAC,IAAU;QACf,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEzC,IAAI,UAAU,GAAG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ab-variant-selector.service.js","sourceRoot":"","sources":["../src/ab-variant-selector.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,sBAAsB;AACtB,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,iBAAiB,EAAE,yCAAyC,EAAE,CAAC;AACvG,sBAAsB;AAEtB,MAAM,OAAO,iBAAiB;IACC;IAA7B,YAA6B,QAAoB;QAApB,aAAQ,GAAR,QAAQ,CAAY;IAAG,CAAC;IAErD,MAAM,CAAC,IAAU;QACf,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEzC,IAAI,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAE1C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;YAC7C,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAEvE,IAAI,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC;gBAAE,OAAO,OAAO,CAAC;QACpD,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const AbVariantWeightErrors: {
|
|
3
3
|
MinMax: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const AbVariantWeight:
|
|
6
|
-
export type AbVariantWeightType =
|
|
5
|
+
export declare const AbVariantWeight: v.SchemaWithPipe<readonly [v.NumberSchema<string>, v.IntegerAction<number, string>, v.MinValueAction<number, 1, string>, v.MaxValueAction<number, 99, string>, v.BrandAction<number, "AbVariantWeight">]>;
|
|
6
|
+
export type AbVariantWeightType = v.InferOutput<typeof AbVariantWeight>;
|
|
7
7
|
//# sourceMappingURL=ab-variant-weight.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ab-variant-weight.vo.d.ts","sourceRoot":"","sources":["../src/ab-variant-weight.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ab-variant-weight.vo.d.ts","sourceRoot":"","sources":["../src/ab-variant-weight.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,qBAAqB;;CAA0C,CAAC;AAE7E,eAAO,MAAM,eAAe,2MAO3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const AbVariantWeightErrors = { MinMax: "ab.variant.weight.min.max" };
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.int(AbVariantWeightErrors.MinMax)
|
|
7
|
-
.gte(1, AbVariantWeightErrors.MinMax)
|
|
8
|
-
.lte(99, AbVariantWeightErrors.MinMax)
|
|
9
|
-
.brand("AbVariantWeight");
|
|
3
|
+
export const AbVariantWeight = v.pipe(v.number(AbVariantWeightErrors.MinMax), v.integer(AbVariantWeightErrors.MinMax), v.minValue(1, AbVariantWeightErrors.MinMax), v.maxValue(99, AbVariantWeightErrors.MinMax),
|
|
4
|
+
// Stryker disable next-line StringLiteral
|
|
5
|
+
v.brand("AbVariantWeight"));
|
|
10
6
|
//# sourceMappingURL=ab-variant-weight.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ab-variant-weight.vo.js","sourceRoot":"","sources":["../src/ab-variant-weight.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ab-variant-weight.vo.js","sourceRoot":"","sources":["../src/ab-variant-weight.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,MAAM,EAAE,2BAA2B,EAAE,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CACnC,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,EACtC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,EACvC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,EAC3C,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,qBAAqB,CAAC,MAAM,CAAC;AAC5C,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC3B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const BasicAuthPasswordError: {
|
|
3
3
|
Type: string;
|
|
4
4
|
Empty: string;
|
|
5
5
|
TooLong: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const BasicAuthPassword:
|
|
8
|
-
export type BasicAuthPasswordType =
|
|
7
|
+
export declare const BasicAuthPassword: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "BasicAuthPassword">]>;
|
|
8
|
+
export type BasicAuthPasswordType = v.InferOutput<typeof BasicAuthPassword>;
|
|
9
9
|
//# sourceMappingURL=basic-auth-password.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-auth-password.vo.d.ts","sourceRoot":"","sources":["../src/basic-auth-password.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"basic-auth-password.vo.d.ts","sourceRoot":"","sources":["../src/basic-auth-password.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,+KAM7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const BasicAuthPasswordError = {
|
|
3
3
|
Type: "basic.auth.password.type",
|
|
4
4
|
Empty: "basic.auth.password.empty",
|
|
5
5
|
TooLong: "basic.auth.password.too.long",
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.string(BasicAuthPasswordError.Type)
|
|
11
|
-
.min(1, BasicAuthPasswordError.Empty)
|
|
12
|
-
.max(128, BasicAuthPasswordError.TooLong)
|
|
13
|
-
.brand("BasicAuthPassword");
|
|
7
|
+
export const BasicAuthPassword = v.pipe(v.string(BasicAuthPasswordError.Type), v.minLength(1, BasicAuthPasswordError.Empty), v.maxLength(128, BasicAuthPasswordError.TooLong),
|
|
8
|
+
// Stryker disable next-line StringLiteral
|
|
9
|
+
v.brand("BasicAuthPassword"));
|
|
14
10
|
//# sourceMappingURL=basic-auth-password.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-auth-password.vo.js","sourceRoot":"","sources":["../src/basic-auth-password.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"basic-auth-password.vo.js","sourceRoot":"","sources":["../src/basic-auth-password.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,2BAA2B;IAClC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CACrC,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACrC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAC5C,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,sBAAsB,CAAC,OAAO,CAAC;AAChD,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC7B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const BasicAuthUsernameError: {
|
|
3
3
|
Type: string;
|
|
4
4
|
Empty: string;
|
|
5
5
|
TooLong: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const BasicAuthUsername:
|
|
8
|
-
export type BasicAuthUsernameType =
|
|
7
|
+
export declare const BasicAuthUsername: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.MinLengthAction<string, 1, string>, v.MaxLengthAction<string, 128, string>, v.BrandAction<string, "BasicAuthUsername">]>;
|
|
8
|
+
export type BasicAuthUsernameType = v.InferOutput<typeof BasicAuthUsername>;
|
|
9
9
|
//# sourceMappingURL=basic-auth-username.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-auth-username.vo.d.ts","sourceRoot":"","sources":["../src/basic-auth-username.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"basic-auth-username.vo.d.ts","sourceRoot":"","sources":["../src/basic-auth-username.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,+KAM7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const BasicAuthUsernameError = {
|
|
3
3
|
Type: "basic.auth.username.type",
|
|
4
4
|
Empty: "basic.auth.username.empty",
|
|
5
5
|
TooLong: "basic.auth.username.too.long",
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.string(BasicAuthUsernameError.Type)
|
|
11
|
-
.min(1, BasicAuthUsernameError.Empty)
|
|
12
|
-
.max(128, BasicAuthUsernameError.TooLong)
|
|
13
|
-
.brand("BasicAuthUsername");
|
|
7
|
+
export const BasicAuthUsername = v.pipe(v.string(BasicAuthUsernameError.Type), v.minLength(1, BasicAuthUsernameError.Empty), v.maxLength(128, BasicAuthUsernameError.TooLong),
|
|
8
|
+
// Stryker disable next-line StringLiteral
|
|
9
|
+
v.brand("BasicAuthUsername"));
|
|
14
10
|
//# sourceMappingURL=basic-auth-username.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-auth-username.vo.js","sourceRoot":"","sources":["../src/basic-auth-username.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"basic-auth-username.vo.js","sourceRoot":"","sources":["../src/basic-auth-username.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,2BAA2B;IAClC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CACrC,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACrC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAC5C,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,sBAAsB,CAAC,OAAO,CAAC;AAChD,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC7B,CAAC"}
|
package/dist/binary.vo.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const BinaryError: {
|
|
3
3
|
Type: string;
|
|
4
|
-
Empty: string;
|
|
5
|
-
TooLong: string;
|
|
6
4
|
BadChars: string;
|
|
7
5
|
};
|
|
8
|
-
export declare const Binary:
|
|
9
|
-
export type BinaryType =
|
|
6
|
+
export declare const Binary: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "Binary">]>;
|
|
7
|
+
export type BinaryType = v.InferOutput<typeof Binary>;
|
|
10
8
|
//# sourceMappingURL=binary.vo.d.ts.map
|
package/dist/binary.vo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.vo.d.ts","sourceRoot":"","sources":["../src/binary.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"binary.vo.d.ts","sourceRoot":"","sources":["../src/binary.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,WAAW;;;CAAwD,CAAC;AAKjF,eAAO,MAAM,MAAM,qHAKlB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/binary.vo.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export const BinaryError = {
|
|
3
|
-
Type: "binary.type",
|
|
4
|
-
Empty: "binary.empty",
|
|
5
|
-
TooLong: "binary.too.long",
|
|
6
|
-
BadChars: "binary.bad.chars",
|
|
7
|
-
};
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export const BinaryError = { Type: "binary.type", BadChars: "binary.bad.chars" };
|
|
8
3
|
// One to sixty four letters, digits, hyphens, or underscores
|
|
9
|
-
const CHARS_WHITELIST = /^[a-zA-Z0-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.string(BinaryError.Type)
|
|
14
|
-
.min(1, BinaryError.Empty)
|
|
15
|
-
.max(64, BinaryError.TooLong)
|
|
16
|
-
.regex(CHARS_WHITELIST, BinaryError.BadChars)
|
|
17
|
-
.brand("Binary");
|
|
4
|
+
const CHARS_WHITELIST = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
5
|
+
export const Binary = v.pipe(v.string(BinaryError.Type), v.regex(CHARS_WHITELIST, BinaryError.BadChars),
|
|
6
|
+
// Stryker disable next-line StringLiteral
|
|
7
|
+
v.brand("Binary"));
|
|
18
8
|
//# sourceMappingURL=binary.vo.js.map
|
package/dist/binary.vo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.vo.js","sourceRoot":"","sources":["../src/binary.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"binary.vo.js","sourceRoot":"","sources":["../src/binary.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,CAAC;AAEjF,6DAA6D;AAC7D,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAC1B,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAC1B,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,WAAW,CAAC,QAAQ,CAAC;AAC9C,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAClB,CAAC"}
|
package/dist/client-ip.vo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const ClientIpError: {
|
|
3
3
|
Invalid: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const ClientIp:
|
|
6
|
-
export type ClientIpType =
|
|
5
|
+
export declare const ClientIp: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.Ipv4Action<string, string>, v.BrandAction<string, "ClientIp">]>;
|
|
6
|
+
export type ClientIpType = v.InferOutput<typeof ClientIp>;
|
|
7
7
|
//# sourceMappingURL=client-ip.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-ip.vo.d.ts","sourceRoot":"","sources":["../src/client-ip.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"client-ip.vo.d.ts","sourceRoot":"","sources":["../src/client-ip.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,aAAa;;CAAmC,CAAC;AAE9D,eAAO,MAAM,QAAQ,sHAKpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
package/dist/client-ip.vo.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const ClientIpError = { Invalid: "client.ip.invalid" };
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export const ClientIp = v.pipe(v.string(ClientIpError.Invalid), v.ipv4(ClientIpError.Invalid),
|
|
4
|
+
// Stryker disable next-line StringLiteral
|
|
5
|
+
v.brand("ClientIp"));
|
|
5
6
|
//# sourceMappingURL=client-ip.vo.js.map
|
package/dist/client-ip.vo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-ip.vo.js","sourceRoot":"","sources":["../src/client-ip.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"client-ip.vo.js","sourceRoot":"","sources":["../src/client-ip.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE9D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAC5B,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAC/B,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7B,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CACpB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const ClientUserAgentError: {
|
|
3
3
|
Type: string;
|
|
4
4
|
Invalid: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const ClientUserAgent:
|
|
7
|
-
export type ClientUserAgentType =
|
|
6
|
+
export declare const ClientUserAgent: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "ClientUserAgent">]>;
|
|
7
|
+
export type ClientUserAgentType = v.InferOutput<typeof ClientUserAgent>;
|
|
8
8
|
//# sourceMappingURL=client-user-agent.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-user-agent.vo.d.ts","sourceRoot":"","sources":["../src/client-user-agent.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"client-user-agent.vo.d.ts","sourceRoot":"","sources":["../src/client-user-agent.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC;AAKF,eAAO,MAAM,eAAe,8HAK3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const ClientUserAgentError = {
|
|
3
3
|
Type: "client.user.agent.type",
|
|
4
4
|
Invalid: "client.user.agent.invalid",
|
|
5
5
|
};
|
|
6
6
|
// ASCII printable characters
|
|
7
7
|
const CHARS_BLACKLIST = /^[\x20-\x7E]{1,256}$/;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.string(ClientUserAgentError.Type)
|
|
12
|
-
.regex(CHARS_BLACKLIST, ClientUserAgentError.Invalid)
|
|
13
|
-
.brand("ClientUserAgent");
|
|
8
|
+
export const ClientUserAgent = v.pipe(v.string(ClientUserAgentError.Type), v.regex(CHARS_BLACKLIST, ClientUserAgentError.Invalid),
|
|
9
|
+
// Stryker disable next-line StringLiteral
|
|
10
|
+
v.brand("ClientUserAgent"));
|
|
14
11
|
//# sourceMappingURL=client-user-agent.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-user-agent.vo.js","sourceRoot":"","sources":["../src/client-user-agent.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"client-user-agent.vo.js","sourceRoot":"","sources":["../src/client-user-agent.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEF,6BAA6B;AAC7B,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CACnC,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,EACnC,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC;AACtD,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC3B,CAAC"}
|
package/dist/client.vo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.vo.d.ts","sourceRoot":"","sources":["../src/client.vo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.vo.d.ts","sourceRoot":"","sources":["../src/client.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,qBAAa,MAAM;IAEf,QAAQ,CAAC,EAAE,CAAC,EAAE,YAAY;IAC1B,QAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB;IAFnC,OAAO;IAKP,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAUxE,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,YAAY,GAAG,SAAS,EAAE,EAAE,EAAE,mBAAmB,GAAG,SAAS,GAAG,MAAM;IAI/F,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI9B,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIjC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIjC,MAAM,IAAI;QAAE,EAAE,CAAC,EAAE,YAAY,CAAC;QAAC,EAAE,CAAC,EAAE,mBAAmB,CAAA;KAAE;CAG1D"}
|
package/dist/client.vo.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
1
2
|
import { ClientIp } from "./client-ip.vo";
|
|
2
3
|
import { ClientUserAgent } from "./client-user-agent.vo";
|
|
3
4
|
export class Client {
|
|
@@ -8,9 +9,15 @@ export class Client {
|
|
|
8
9
|
this.ua = ua;
|
|
9
10
|
}
|
|
10
11
|
static fromParts(ip, ua) {
|
|
11
|
-
const parsedIp =
|
|
12
|
-
const parsedUa =
|
|
13
|
-
|
|
12
|
+
const parsedIp = v.safeParse(ClientIp, ip);
|
|
13
|
+
const parsedUa = v.safeParse(ClientUserAgent, ua);
|
|
14
|
+
if (parsedIp.success && parsedUa.success)
|
|
15
|
+
return new Client(parsedIp.output, parsedUa.output);
|
|
16
|
+
if (parsedIp.success && !parsedUa.success)
|
|
17
|
+
return new Client(parsedIp.output, undefined);
|
|
18
|
+
if (!parsedIp.success && parsedUa.success)
|
|
19
|
+
return new Client(undefined, parsedUa.output);
|
|
20
|
+
return new Client(undefined, undefined);
|
|
14
21
|
}
|
|
15
22
|
static fromSafeParts(ip, ua) {
|
|
16
23
|
return new Client(ip, ua);
|
package/dist/client.vo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.vo.js","sourceRoot":"","sources":["../src/client.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAA4B,MAAM,wBAAwB,CAAC;AAEnF,MAAM,OAAO,MAAM;IAEN;IACA;IAFX,YACW,EAAiB,EACjB,EAAwB;QADxB,OAAE,GAAF,EAAE,CAAe;QACjB,OAAE,GAAF,EAAE,CAAsB;IAChC,CAAC;IAEJ,MAAM,CAAC,SAAS,CAAC,EAAsB,EAAE,EAAsB;QAC7D,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"client.vo.js","sourceRoot":"","sources":["../src/client.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAqB,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAA4B,MAAM,wBAAwB,CAAC;AAEnF,MAAM,OAAO,MAAM;IAEN;IACA;IAFX,YACW,EAAiB,EACjB,EAAwB;QADxB,OAAE,GAAF,EAAE,CAAe;QACjB,OAAE,GAAF,EAAE,CAAsB;IAChC,CAAC;IAEJ,MAAM,CAAC,SAAS,CAAC,EAAsB,EAAE,EAAsB;QAC7D,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;QAElD,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO;YAAE,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC9F,IAAI,QAAQ,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO;YAAE,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACzF,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO;YAAE,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzF,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,EAA4B,EAAE,EAAmC;QACpF,OAAO,IAAI,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,OAAO,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;IACtD,CAAC;IAED,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;IACvD,CAAC;IAED,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,EAAE,KAAK,SAAS,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;IACvD,CAAC;IAED,MAAM;QACJ,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -5,14 +5,14 @@ type Dependencies = {
|
|
|
5
5
|
Clock: ClockPort;
|
|
6
6
|
};
|
|
7
7
|
export declare const CommandEnvelopeSchema: {
|
|
8
|
-
id: import("
|
|
9
|
-
correlationId: import("
|
|
10
|
-
createdAt: import("
|
|
8
|
+
id: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<"uuid.type">, import("valibot").UuidAction<string, "uuid.type">]>;
|
|
9
|
+
correlationId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<"uuid.type">, import("valibot").UuidAction<string, "uuid.type">]>;
|
|
10
|
+
createdAt: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<string>, import("valibot").IntegerAction<number, string>, import("valibot").MinValueAction<number, 0, string>, import("valibot").BrandAction<number, "TimestampValue">]>;
|
|
11
11
|
};
|
|
12
12
|
export declare const createCommandEnvelope: (deps: Dependencies) => {
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly correlationId: string;
|
|
15
|
-
readonly createdAt: number & import("
|
|
15
|
+
readonly createdAt: number & import("valibot").Brand<"TimestampValue">;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=command-envelope.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const CommitShaValueError: {
|
|
3
3
|
Type: string;
|
|
4
4
|
InvalidHex: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const CommitShaValue:
|
|
7
|
-
export type CommitShaValueType =
|
|
6
|
+
export declare const CommitShaValue: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "CommitShaValue">]>;
|
|
7
|
+
export type CommitShaValueType = v.InferOutput<typeof CommitShaValue>;
|
|
8
8
|
//# sourceMappingURL=commit-sha-value.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-sha-value.vo.d.ts","sourceRoot":"","sources":["../src/commit-sha-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"commit-sha-value.vo.d.ts","sourceRoot":"","sources":["../src/commit-sha-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAKF,eAAO,MAAM,cAAc,6HAK1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const CommitShaValueError = {
|
|
3
3
|
Type: "commit.sha.value.type",
|
|
4
4
|
InvalidHex: "commit.sha.value.invalid.hex",
|
|
5
5
|
};
|
|
6
6
|
// 40 hex chars allowed
|
|
7
7
|
const CHARS_WHITELIST = /^[a-fA-F0-9]{40}$/;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.string(CommitShaValueError.Type)
|
|
12
|
-
.regex(CHARS_WHITELIST, CommitShaValueError.InvalidHex)
|
|
13
|
-
.brand("CommitShaValue");
|
|
8
|
+
export const CommitShaValue = v.pipe(v.string(CommitShaValueError.Type), v.regex(CHARS_WHITELIST, CommitShaValueError.InvalidHex),
|
|
9
|
+
// Stryker disable next-line StringLiteral
|
|
10
|
+
v.brand("CommitShaValue"));
|
|
14
11
|
//# sourceMappingURL=commit-sha-value.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-sha-value.vo.js","sourceRoot":"","sources":["../src/commit-sha-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"commit-sha-value.vo.js","sourceRoot":"","sources":["../src/commit-sha-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,8BAA8B;CAC3C,CAAC;AAEF,uBAAuB;AACvB,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAClC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAClC,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,mBAAmB,CAAC,UAAU,CAAC;AACxD,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-sha.vo.d.ts","sourceRoot":"","sources":["../src/commit-sha.vo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commit-sha.vo.d.ts","sourceRoot":"","sources":["../src/commit-sha.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,qBAAa,SAAS;IACA,OAAO,CAAC,QAAQ,CAAC,KAAK;IAA1C,OAAO;IAEP,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;IAI/C,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS;IAI3D,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO;IAInC,aAAa,CAAC,MAAM,SAAI,GAAG,MAAM;IAIjC,QAAQ,IAAI,kBAAkB;IAI9B,MAAM,IAAI,MAAM;CAGjB"}
|
package/dist/commit-sha.vo.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
1
2
|
import { CommitShaValue } from "./commit-sha-value.vo";
|
|
2
3
|
export class CommitSha {
|
|
3
4
|
value;
|
|
@@ -5,7 +6,7 @@ export class CommitSha {
|
|
|
5
6
|
this.value = value;
|
|
6
7
|
}
|
|
7
8
|
static fromString(candidate) {
|
|
8
|
-
return new CommitSha(
|
|
9
|
+
return new CommitSha(v.parse(CommitShaValue, candidate));
|
|
9
10
|
}
|
|
10
11
|
static fromStringSafe(value) {
|
|
11
12
|
return new CommitSha(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-sha.vo.js","sourceRoot":"","sources":["../src/commit-sha.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2B,MAAM,uBAAuB,CAAC;AAEhF,MAAM,OAAO,SAAS;IACiB;IAArC,YAAqC,KAAyB;QAAzB,UAAK,GAAL,KAAK,CAAoB;IAAG,CAAC;IAElE,MAAM,CAAC,UAAU,CAAC,SAAiB;QACjC,OAAO,IAAI,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"commit-sha.vo.js","sourceRoot":"","sources":["../src/commit-sha.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,cAAc,EAA2B,MAAM,uBAAuB,CAAC;AAEhF,MAAM,OAAO,SAAS;IACiB;IAArC,YAAqC,KAAyB;QAAzB,UAAK,GAAL,KAAK,CAAoB;IAAG,CAAC;IAElE,MAAM,CAAC,UAAU,CAAC,SAAiB;QACjC,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,KAAyB;QAC7C,OAAO,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,OAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,aAAa,CAAC,MAAM,GAAG,CAAC;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
export declare const CorrelationId:
|
|
3
|
-
export type CorrelationIdType =
|
|
1
|
+
import type * as v from "valibot";
|
|
2
|
+
export declare const CorrelationId: v.SchemaWithPipe<readonly [v.StringSchema<"uuid.type">, v.UuidAction<string, "uuid.type">]>;
|
|
3
|
+
export type CorrelationIdType = v.InferOutput<typeof CorrelationId>;
|
|
4
4
|
//# sourceMappingURL=correlation-id.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.vo.d.ts","sourceRoot":"","sources":["../src/correlation-id.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"correlation-id.vo.d.ts","sourceRoot":"","sources":["../src/correlation-id.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC;AAGlC,eAAO,MAAM,aAAa,6FAAO,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation.middleware.d.ts","sourceRoot":"","sources":["../src/correlation.middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"correlation.middleware.d.ts","sourceRoot":"","sources":["../src/correlation.middleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,KAAK,YAAY,GAAG;IAAE,UAAU,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnD,qBAAa,qBAAqB;IAGpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAoB;gBAElB,IAAI,EAAE,YAAY;IAE/C,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,QAAQ;CAQ9C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
1
2
|
import { UUID } from "./uuid.vo";
|
|
2
3
|
export class CorrelationMiddleware {
|
|
3
4
|
deps;
|
|
@@ -7,9 +8,9 @@ export class CorrelationMiddleware {
|
|
|
7
8
|
}
|
|
8
9
|
evaluate(context) {
|
|
9
10
|
const incoming = context.request.header(CorrelationMiddleware.HEADER_NAME);
|
|
10
|
-
const existing =
|
|
11
|
+
const existing = v.safeParse(UUID, incoming);
|
|
11
12
|
if (existing.success)
|
|
12
|
-
return existing.
|
|
13
|
+
return existing.output;
|
|
13
14
|
return this.deps.IdProvider.generate();
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation.middleware.js","sourceRoot":"","sources":["../src/correlation.middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"correlation.middleware.js","sourceRoot":"","sources":["../src/correlation.middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,OAAO,EAAE,IAAI,EAAiB,MAAM,WAAW,CAAC;AAIhD,MAAM,OAAO,qBAAqB;IAGH;IAF7B,MAAM,CAAU,WAAW,GAAG,gBAAgB,CAAC;IAE/C,YAA6B,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;IAAG,CAAC;IAEnD,QAAQ,CAAC,OAAyB;QAChC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAE3E,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAE7C,IAAI,QAAQ,CAAC,OAAO;YAAE,OAAO,QAAQ,CAAC,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export declare const EncryptionKeyValueError: {
|
|
3
3
|
Type: string;
|
|
4
4
|
InvalidHex: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const EncryptionKeyValue:
|
|
7
|
-
export type EncryptionKeyValueType =
|
|
6
|
+
export declare const EncryptionKeyValue: v.SchemaWithPipe<readonly [v.StringSchema<string>, v.RegexAction<string, string>, v.BrandAction<string, "EncryptionKeyValue">]>;
|
|
7
|
+
export type EncryptionKeyValueType = v.InferOutput<typeof EncryptionKeyValue>;
|
|
8
8
|
//# sourceMappingURL=encryption-key-value.vo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption-key-value.vo.d.ts","sourceRoot":"","sources":["../src/encryption-key-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"encryption-key-value.vo.d.ts","sourceRoot":"","sources":["../src/encryption-key-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,uBAAuB;;;CAGnC,CAAC;AAKF,eAAO,MAAM,kBAAkB,iIAK9B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v from "valibot";
|
|
2
2
|
export const EncryptionKeyValueError = {
|
|
3
3
|
Type: "encryption.key.value.type",
|
|
4
4
|
InvalidHex: "encryption.key.value.invalid.hex",
|
|
5
5
|
};
|
|
6
6
|
// 64 hex chars allowed
|
|
7
7
|
const CHARS_WHITELIST = /^[a-fA-F0-9]{64}$/;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.string(EncryptionKeyValueError.Type)
|
|
12
|
-
.regex(CHARS_WHITELIST, EncryptionKeyValueError.InvalidHex)
|
|
13
|
-
.brand("EncryptionKeyValue");
|
|
8
|
+
export const EncryptionKeyValue = v.pipe(v.string(EncryptionKeyValueError.Type), v.regex(CHARS_WHITELIST, EncryptionKeyValueError.InvalidHex),
|
|
9
|
+
// Stryker disable next-line StringLiteral
|
|
10
|
+
v.brand("EncryptionKeyValue"));
|
|
14
11
|
//# sourceMappingURL=encryption-key-value.vo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption-key-value.vo.js","sourceRoot":"","sources":["../src/encryption-key-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"encryption-key-value.vo.js","sourceRoot":"","sources":["../src/encryption-key-value.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,kCAAkC;CAC/C,CAAC;AAEF,uBAAuB;AACvB,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CACtC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,EACtC,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,uBAAuB,CAAC,UAAU,CAAC;AAC5D,0CAA0C;AAC1C,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption-key.vo.d.ts","sourceRoot":"","sources":["../src/encryption-key.vo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encryption-key.vo.d.ts","sourceRoot":"","sources":["../src/encryption-key.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,eAAO,MAAM,kBAAkB;;CAAqD,CAAC;AAErF,qBAAa,aAAa;IACJ,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAxC,OAAO;IAEP,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,sBAAsB,GAAG,aAAa;IAInE,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa;IAInD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa;IAMnD,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO;IAIvC,OAAO,IAAI,UAAU;IAIrB,QAAQ,IAAI,MAAM;IAIlB,MAAM,IAAI,MAAM;CAGjB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
1
2
|
import { EncryptionKeyValue } from "./encryption-key-value.vo";
|
|
2
3
|
export const EncryptionKeyError = { InvalidBuffer: "encryption.key.invalid.buffer" };
|
|
3
4
|
export class EncryptionKey {
|
|
@@ -9,7 +10,7 @@ export class EncryptionKey {
|
|
|
9
10
|
return new EncryptionKey(value);
|
|
10
11
|
}
|
|
11
12
|
static fromString(candidate) {
|
|
12
|
-
return new EncryptionKey(
|
|
13
|
+
return new EncryptionKey(v.parse(EncryptionKeyValue, candidate));
|
|
13
14
|
}
|
|
14
15
|
static fromBytes(buffer) {
|
|
15
16
|
if (buffer.length !== 32)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption-key.vo.js","sourceRoot":"","sources":["../src/encryption-key.vo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA+B,MAAM,2BAA2B,CAAC;AAE5F,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,aAAa,EAAE,+BAA+B,EAAE,CAAC;AAErF,MAAM,OAAO,aAAa;IACa;IAArC,YAAqC,GAA2B;QAA3B,QAAG,GAAH,GAAG,CAAwB;IAAG,CAAC;IAEpE,MAAM,CAAC,cAAc,CAAC,KAA6B;QACjD,OAAO,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,SAAiB;QACjC,OAAO,IAAI,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"encryption-key.vo.js","sourceRoot":"","sources":["../src/encryption-key.vo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAA+B,MAAM,2BAA2B,CAAC;AAE5F,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,aAAa,EAAE,+BAA+B,EAAE,CAAC;AAErF,MAAM,OAAO,aAAa;IACa;IAArC,YAAqC,GAA2B;QAA3B,QAAG,GAAH,GAAG,CAAwB;IAAG,CAAC;IAEpE,MAAM,CAAC,cAAc,CAAC,KAA6B;QACjD,OAAO,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,SAAiB;QACjC,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,MAAkB;QACjC,IAAI,MAAM,CAAC,MAAM,KAAK,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QAE5E,OAAO,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,OAAsB;QAC3B,OAAO,IAAI,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;IAClC,CAAC;IAED,OAAO;QACL,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,QAAQ;QACN,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as tools from "@bgord/tools";
|
|
2
2
|
import type { EncryptionPort } from "./encryption.port";
|
|
3
|
-
import type
|
|
3
|
+
import { type EnvironmentLoaderConfig, type EnvironmentLoaderPort, type EnvironmentResultType } from "./environment-loader.port";
|
|
4
4
|
type Dependencies = {
|
|
5
5
|
Encryption: EncryptionPort;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment-loader-encrypted.adapter.d.ts","sourceRoot":"","sources":["../src/environment-loader-encrypted.adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"environment-loader-encrypted.adapter.d.ts","sourceRoot":"","sources":["../src/environment-loader-encrypted.adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,2BAA2B,CAAC;AAEnC,KAAK,YAAY,GAAG;IAAE,UAAU,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnD,qBAAa,iCAAiC,CAAC,CAAC,SAAS,MAAM,CAAE,YAAW,qBAAqB,CAAC,CAAC,CAAC;IAEhG,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,IAAI,EAAE,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,EACrD,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAClC,IAAI,EAAE,YAAY;IAG/B,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;CAW1D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import util from "node:util";
|
|
2
|
+
import { EnvironmentLoaderError, } from "./environment-loader.port";
|
|
2
3
|
export class EnvironmentLoaderEncryptedAdapter {
|
|
3
4
|
path;
|
|
4
5
|
config;
|
|
@@ -12,7 +13,13 @@ export class EnvironmentLoaderEncryptedAdapter {
|
|
|
12
13
|
const file = await this.deps.Encryption.view(this.path);
|
|
13
14
|
const plaintext = new TextDecoder().decode(file);
|
|
14
15
|
const env = util.parseEnv(plaintext);
|
|
15
|
-
|
|
16
|
+
const result = this.config.EnvironmentSchema["~standard"].validate(env);
|
|
17
|
+
if (result instanceof Promise)
|
|
18
|
+
throw new Error(EnvironmentLoaderError.NoAsyncSchema);
|
|
19
|
+
// Stryker disable next-line OptionalChaining
|
|
20
|
+
if (result.issues)
|
|
21
|
+
throw new Error(result.issues[0]?.message);
|
|
22
|
+
return Object.freeze({ ...result.value, type: this.config.type });
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
25
|
//# sourceMappingURL=environment-loader-encrypted.adapter.js.map
|