@warlock.js/notifications 5.20.0 → 5.22.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 +12 -1
- package/cjs/index.cjs +1 -1
- package/cjs/rabbitmq-driver-DsJYFQr3.cjs +3 -0
- package/cjs/{esm-BxeBV3ce.cjs → src-DDFfLj-d.cjs} +435 -343
- package/cjs/src-DDFfLj-d.cjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/communicators/broker-registry.mjs +5 -5
- package/esm/herald/src/communicators/broker-registry.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/communicators/broker.mjs +7 -1
- package/esm/herald/src/communicators/broker.mjs.map +1 -0
- package/esm/herald/src/communicators/index.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/decorators/consumable.mjs +1 -1
- package/esm/herald/src/decorators/consumable.mjs.map +1 -0
- package/esm/herald/src/decorators/index.mjs +3 -0
- package/esm/herald/src/drivers/index.mjs +5 -0
- package/esm/herald/src/drivers/rabbitmq/index.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/drivers/rabbitmq/rabbitmq-channel.mjs +13 -6
- package/esm/herald/src/drivers/rabbitmq/rabbitmq-channel.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/drivers/rabbitmq/rabbitmq-driver.mjs +11 -10
- package/esm/herald/src/drivers/rabbitmq/rabbitmq-driver.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/message-managers/event-consumer.mjs +22 -10
- package/esm/herald/src/message-managers/event-consumer.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/message-managers/event-message.mjs +20 -3
- package/esm/herald/src/message-managers/event-message.mjs.map +1 -0
- package/esm/herald/src/message-managers/index.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/message-managers/prepare-consumer-subscription.mjs +1 -1
- package/esm/herald/src/message-managers/prepare-consumer-subscription.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/use-case-broadcast.mjs +1 -1
- package/esm/herald/src/use-case-broadcast.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/utils/connect-to-broker.mjs +1 -1
- package/esm/herald/src/utils/connect-to-broker.mjs.map +1 -0
- package/esm/herald/src/utils/index.mjs +3 -0
- package/esm/index.d.mts +0 -4
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/number/round.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/number/round.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/except.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/except.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/get.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/get.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/omit.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/omit.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/unset.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/object/unset.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/trim.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/trim.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/words.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/string/words.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/tap.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/utils/tap.mjs.map +1 -1
- package/esm/node_modules/.pnpm/{@mongez_supportive-is@2.1.4 → @mongez_supportive-is@2.1.5}/node_modules/@mongez/supportive-is/esm/index.mjs +1 -1
- package/esm/node_modules/.pnpm/{@mongez_supportive-is@2.1.4 → @mongez_supportive-is@2.1.5}/node_modules/@mongez/supportive-is/esm/index.mjs.map +1 -1
- package/esm/queue/load-herald.d.mts.map +1 -1
- package/esm/queue/load-herald.mjs +1 -1
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/config.mjs +1 -1
- package/esm/seal/src/config.mjs.map +1 -0
- package/esm/seal/src/factory/index.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/factory/validate.mjs +1 -1
- package/esm/seal/src/factory/validate.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/factory/validators.mjs +1 -1
- package/esm/seal/src/factory/validators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/helpers/date-helpers.mjs +1 -1
- package/esm/seal/src/helpers/date-helpers.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/helpers/get-field-value.mjs +3 -3
- package/esm/seal/src/helpers/get-field-value.mjs.map +1 -0
- package/esm/seal/src/helpers/index.mjs +6 -0
- package/esm/seal/src/helpers/is-empty-value.mjs +10 -0
- package/esm/seal/src/helpers/is-empty-value.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/helpers/path-helpers.mjs +1 -1
- package/esm/seal/src/helpers/path-helpers.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/helpers/validation-helpers.mjs +1 -1
- package/esm/seal/src/helpers/validation-helpers.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/index.mjs +0 -7
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/array-mutators.mjs +3 -3
- package/esm/seal/src/mutators/array-mutators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/boolean-mutators.mjs +1 -1
- package/esm/seal/src/mutators/boolean-mutators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/date-mutators.mjs +3 -3
- package/esm/seal/src/mutators/date-mutators.mjs.map +1 -0
- package/esm/seal/src/mutators/index.mjs +9 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/number-mutators.mjs +4 -4
- package/esm/seal/src/mutators/number-mutators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/object-mutators.mjs +4 -4
- package/esm/seal/src/mutators/object-mutators.mjs.map +1 -0
- package/esm/seal/src/mutators/scalar-mutators.mjs +9 -0
- package/esm/seal/src/mutators/scalar-mutators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/mutators/string-mutators.mjs +11 -11
- package/esm/seal/src/mutators/string-mutators.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/object.mjs +1 -1
- package/esm/seal/src/object.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/array/array-rules.mjs +1 -1
- package/esm/seal/src/rules/array/array-rules.mjs.map +1 -0
- package/esm/seal/src/rules/array/index.mjs +3 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/color/color-rules.mjs +1 -1
- package/esm/seal/src/rules/color/color-rules.mjs.map +1 -0
- package/esm/seal/src/rules/color/index.mjs +3 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/enum.mjs +1 -1
- package/esm/seal/src/rules/common/enum.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/equals-field-rules.mjs +1 -1
- package/esm/seal/src/rules/common/equals-field-rules.mjs.map +1 -0
- package/esm/seal/src/rules/common/index.mjs +8 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/instanceof.mjs +1 -1
- package/esm/seal/src/rules/common/instanceof.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/literal.mjs +1 -1
- package/esm/seal/src/rules/common/literal.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/type-rules.mjs +2 -2
- package/esm/seal/src/rules/common/type-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/common/unknown-key.mjs +1 -1
- package/esm/seal/src/rules/common/unknown-key.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/forbidden-if-rules.mjs +2 -2
- package/esm/seal/src/rules/conditional/forbidden-if-rules.mjs.map +1 -0
- package/esm/seal/src/rules/conditional/index.mjs +12 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/present-if-rules.mjs +2 -2
- package/esm/seal/src/rules/conditional/present-if-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/present-unless-rules.mjs +1 -1
- package/esm/seal/src/rules/conditional/present-unless-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/present-with-rules.mjs +3 -3
- package/esm/seal/src/rules/conditional/present-with-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/present-without-rules.mjs +3 -3
- package/esm/seal/src/rules/conditional/present-without-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/required-if-rules.mjs +4 -4
- package/esm/seal/src/rules/conditional/required-if-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/required-unless-rules.mjs +2 -2
- package/esm/seal/src/rules/conditional/required-unless-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/required-when-rule.mjs +2 -2
- package/esm/seal/src/rules/conditional/required-when-rule.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/required-with-rules.mjs +4 -4
- package/esm/seal/src/rules/conditional/required-with-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/conditional/required-without-rules.mjs +4 -4
- package/esm/seal/src/rules/conditional/required-without-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/core/equal.mjs +1 -1
- package/esm/seal/src/rules/core/equal.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/core/forbidden.mjs +2 -2
- package/esm/seal/src/rules/core/forbidden.mjs.map +1 -0
- package/esm/seal/src/rules/core/index.mjs +7 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/core/required.mjs +2 -2
- package/esm/seal/src/rules/core/required.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/core/union.mjs +1 -1
- package/esm/seal/src/rules/core/union.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/core/when.mjs +3 -3
- package/esm/seal/src/rules/core/when.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-comparison-rules.mjs +1 -1
- package/esm/seal/src/rules/date/date-comparison-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-day-rules.mjs +1 -1
- package/esm/seal/src/rules/date/date-day-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-field-comparison-rules.mjs +3 -3
- package/esm/seal/src/rules/date/date-field-comparison-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-period-rules.mjs +3 -3
- package/esm/seal/src/rules/date/date-period-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-relative-rules.mjs +1 -1
- package/esm/seal/src/rules/date/date-relative-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date-special-rules.mjs +1 -1
- package/esm/seal/src/rules/date/date-special-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/date/date.mjs +3 -3
- package/esm/seal/src/rules/date/date.mjs.map +1 -0
- package/esm/seal/src/rules/date/index.mjs +9 -0
- package/esm/seal/src/rules/index.mjs +54 -0
- package/esm/seal/src/rules/length/index.mjs +3 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/length/length-rules.mjs +1 -1
- package/esm/seal/src/rules/length/length-rules.mjs.map +1 -0
- package/esm/seal/src/rules/number/index.mjs +3 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/number/number-rules.mjs +3 -3
- package/esm/seal/src/rules/number/number-rules.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/scalar/accepted-rule.mjs +2 -2
- package/esm/seal/src/rules/scalar/accepted-rule.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/scalar/declined-rule.mjs +2 -2
- package/esm/seal/src/rules/scalar/declined-rule.mjs.map +1 -0
- package/esm/seal/src/rules/scalar/index.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/alpha.mjs +1 -1
- package/esm/seal/src/rules/string/alpha.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/credit-card.mjs +1 -1
- package/esm/seal/src/rules/string/credit-card.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/email.mjs +2 -2
- package/esm/seal/src/rules/string/email.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/id-formats.mjs +1 -1
- package/esm/seal/src/rules/string/id-formats.mjs.map +1 -0
- package/esm/seal/src/rules/string/index.mjs +13 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/ip.mjs +1 -1
- package/esm/seal/src/rules/string/ip.mjs.map +1 -0
- package/esm/seal/src/rules/string/matches.mjs +4 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/pattern.mjs +1 -1
- package/esm/seal/src/rules/string/pattern.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/string-comparison.mjs +1 -1
- package/esm/seal/src/rules/string/string-comparison.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/strong-password-rule.mjs +1 -1
- package/esm/seal/src/rules/string/strong-password-rule.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/url.mjs +1 -1
- package/esm/seal/src/rules/string/url.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/string/without-whitespace.mjs +1 -1
- package/esm/seal/src/rules/string/without-whitespace.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/standard-schema/json-schema.mjs +1 -1
- package/esm/seal/src/standard-schema/json-schema.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/standard-schema/map-result.mjs +1 -1
- package/esm/seal/src/standard-schema/map-result.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/string.mjs +1 -1
- package/esm/seal/src/string.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/types/date-types.mjs +1 -1
- package/esm/seal/src/types/date-types.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/any-validator.mjs +9 -6
- package/esm/seal/src/validators/any-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/array-validator.mjs +2 -1
- package/esm/seal/src/validators/array-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/base-validator.mjs +49 -16
- package/esm/seal/src/validators/base-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/boolean-validator.mjs +1 -1
- package/esm/seal/src/validators/boolean-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/computed-validator.mjs +3 -1
- package/esm/seal/src/validators/computed-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/date-validator.mjs +3 -3
- package/esm/seal/src/validators/date-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/discriminated-union-validator.mjs +6 -2
- package/esm/seal/src/validators/discriminated-union-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/float-validator.mjs +1 -1
- package/esm/seal/src/validators/float-validator.mjs.map +1 -0
- package/esm/seal/src/validators/index.mjs +28 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/instanceof-validator.mjs +2 -1
- package/esm/seal/src/validators/instanceof-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/int-validator.mjs +1 -1
- package/esm/seal/src/validators/int-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/lazy-validator.mjs +3 -1
- package/esm/seal/src/validators/lazy-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/literal-validator.mjs +2 -1
- package/esm/seal/src/validators/literal-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/managed-validator.mjs +1 -1
- package/esm/seal/src/validators/managed-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/methods/equality-conditional-methods.mjs +1 -1
- package/esm/seal/src/validators/methods/equality-conditional-methods.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/methods/forbidden-methods.mjs +1 -1
- package/esm/seal/src/validators/methods/forbidden-methods.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/methods/present-methods.mjs +1 -1
- package/esm/seal/src/validators/methods/present-methods.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/methods/required-methods.mjs +1 -1
- package/esm/seal/src/validators/methods/required-methods.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/number-validator.mjs +1 -1
- package/esm/seal/src/validators/number-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/numeric-validator.mjs +2 -2
- package/esm/seal/src/validators/numeric-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/object-validator.mjs +8 -7
- package/esm/seal/src/validators/object-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/primitive-validator.mjs +1 -1
- package/esm/seal/src/validators/primitive-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/record-validator.mjs +3 -2
- package/esm/seal/src/validators/record-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/scalar-validator.mjs +1 -1
- package/esm/seal/src/validators/scalar-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/string-validator.mjs +3 -3
- package/esm/seal/src/validators/string-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/tuple-validator.mjs +2 -1
- package/esm/seal/src/validators/tuple-validator.mjs.map +1 -0
- package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/validators/union-validator.mjs +1 -1
- package/esm/seal/src/validators/union-validator.mjs.map +1 -0
- package/package.json +7 -7
- package/cjs/esm-BxeBV3ce.cjs.map +0 -1
- package/cjs/rabbitmq-driver-ii7OCEmF.cjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/communicators/broker-registry.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/communicators/broker-registry.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/communicators/broker.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/communicators/broker.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/communicators/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/contracts/broker-driver.contract.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/contracts/channel.contract.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/decorators/consumable.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/decorators/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/index.mjs +0 -5
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/index.mjs +0 -4
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-channel.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/drivers/rabbitmq/rabbitmq-driver.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/index.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/event-consumer.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/event-message.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/event-message.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/message-managers/prepare-consumer-subscription.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/types/channel.types.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/types/registry.types.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/use-case-broadcast.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.d.mts +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/utils/connect-to-broker.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm/utils/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/config.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/factory/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/factory/validate.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/factory/validators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/get-field-value.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs +0 -10
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/is-empty-value.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/path-helpers.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/index.d.mts +0 -10
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/array-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/boolean-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/date-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/index.mjs +0 -8
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/number-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/object-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs +0 -9
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/scalar-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/mutators/string-mutators.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/object.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/array/array-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/array/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/color/color-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/color/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/enum.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/equals-field-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/index.mjs +0 -8
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/instanceof.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/literal.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/type-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/common/unknown-key.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/forbidden-if-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/index.mjs +0 -12
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/present-if-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/present-unless-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/present-with-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/present-without-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/required-if-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/required-unless-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/required-when-rule.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/required-with-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/conditional/required-without-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/equal.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/forbidden.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/index.mjs +0 -7
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/required.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/union.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/core/when.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-comparison-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-day-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-field-comparison-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-period-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-relative-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date-special-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/date.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/date/index.mjs +0 -9
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/index.mjs +0 -57
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/length/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/length/length-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/number/index.mjs +0 -3
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/number/number-rules.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/scalar/accepted-rule.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/scalar/declined-rule.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/scalar/index.mjs +0 -4
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/alpha.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/credit-card.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/email.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/id-formats.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/index.mjs +0 -13
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/ip.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/matches.mjs +0 -4
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/pattern.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/string-comparison.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/strong-password-rule.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/url.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/rules/string/without-whitespace.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.d.mts +0 -32
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/json-schema.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/map-result.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/types.d.mts +0 -97
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/standard-schema/types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/string.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/conditional-types.d.mts +0 -16
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/conditional-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/context-types.d.mts +0 -43
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/context-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/data-transformer-types.d.mts +0 -30
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/data-transformer-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/date-types.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/mutator-types.d.mts +0 -28
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/mutator-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/result-types.d.mts +0 -17
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/result-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/rule-types.d.mts +0 -53
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/rule-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/schema-types.d.mts +0 -11
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/types/schema-types.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/any-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/array-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/base-validator.d.mts +0 -492
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/base-validator.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/base-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/boolean-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/computed-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/date-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/discriminated-union-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/float-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/index.mjs +0 -28
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/instanceof-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/int-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/lazy-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/literal-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/managed-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.d.mts +0 -91
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/equality-conditional-methods.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.d.mts +0 -59
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/forbidden-methods.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.d.mts +0 -103
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/present-methods.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.d.mts +0 -194
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.d.mts.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/methods/required-methods.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/number-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/numeric-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/object-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/primitive-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/record-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/scalar-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/string-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/tuple-validator.mjs.map +0 -1
- package/esm/node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm/validators/union-validator.mjs.map +0 -1
- /package/esm/{node_modules/.pnpm/@warlock.js_herald@5.18.0_@_cff41be99df8cf0240c0ee463e185280/node_modules/@warlock.js/herald/esm → herald/src}/index.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/bool.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/color.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/date.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/float.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/id.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/int.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/nanoid.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/pick.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/random.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/sample.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/string.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/token.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/uuid.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/Random/weighted.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/async/retry.mjs +0 -0
- /package/esm/node_modules/.pnpm/{@mongez_reinforcements@4.0.1 → @mongez_reinforcements@4.0.2}/node_modules/@mongez/reinforcements/esm/index.mjs +0 -0
- /package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/file/dimensions.mjs +0 -0
- /package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/file/file-size.mjs +0 -0
- /package/esm/{node_modules/.pnpm/@warlock.js_seal@5.18.0/node_modules/@warlock.js/seal/esm → seal/src}/rules/file/index.mjs +0 -0
|
@@ -4,7 +4,7 @@ let node_crypto = require("node:crypto");
|
|
|
4
4
|
let node_events = require("node:events");
|
|
5
5
|
let crypto = require("crypto");
|
|
6
6
|
|
|
7
|
-
//#region ../
|
|
7
|
+
//#region ../herald/src/message-managers/prepare-consumer-subscription.ts
|
|
8
8
|
function prepareConsumerSubscription(Consumer, onError) {
|
|
9
9
|
const callback = async (message, ctx) => {
|
|
10
10
|
const envelope = message.payload;
|
|
@@ -44,7 +44,7 @@ function prepareConsumerSubscription(Consumer, onError) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region ../
|
|
47
|
+
//#region ../seal/src/standard-schema/json-schema.ts
|
|
48
48
|
/**
|
|
49
49
|
* Apply nullable to a JSON Schema object based on the target dialect.
|
|
50
50
|
*
|
|
@@ -123,146 +123,7 @@ function getRuleOptions(rules, ruleName) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
//#endregion
|
|
126
|
-
//#region ../node_modules/.pnpm/@
|
|
127
|
-
/**
|
|
128
|
-
* Global Seal configuration
|
|
129
|
-
*/
|
|
130
|
-
const config = { firstErrorOnly: true };
|
|
131
|
-
/**
|
|
132
|
-
* Get current Seal configuration
|
|
133
|
-
*/
|
|
134
|
-
function getSealConfig() {
|
|
135
|
-
return config;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region ../node_modules/.pnpm/@warlock.js+seal@5.18.0/node_modules/@warlock.js/seal/esm/factory/validate.mjs
|
|
140
|
-
/**
|
|
141
|
-
* Validate data against a schema
|
|
142
|
-
*/
|
|
143
|
-
const validate = async (schema, data, { context: extendedContext, ...configurations } = getSealConfig() || {}) => {
|
|
144
|
-
const context = {
|
|
145
|
-
allValues: data,
|
|
146
|
-
parent: null,
|
|
147
|
-
value: data,
|
|
148
|
-
key: "",
|
|
149
|
-
path: "",
|
|
150
|
-
context: extendedContext,
|
|
151
|
-
rootContext: extendedContext,
|
|
152
|
-
translateRule(ruleTranslation) {
|
|
153
|
-
return configurations.translateRule?.(ruleTranslation) ?? "";
|
|
154
|
-
},
|
|
155
|
-
translateAttribute(attributeTranslation) {
|
|
156
|
-
return configurations.translateAttribute?.(attributeTranslation) ?? "";
|
|
157
|
-
},
|
|
158
|
-
configurations
|
|
159
|
-
};
|
|
160
|
-
const result = await schema.validate(data, context);
|
|
161
|
-
if (!result.isValid) return {
|
|
162
|
-
...result,
|
|
163
|
-
data: void 0
|
|
164
|
-
};
|
|
165
|
-
return result;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region ../node_modules/.pnpm/@warlock.js+seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/validation-helpers.mjs
|
|
170
|
-
const VALID_RULE = { isValid: true };
|
|
171
|
-
/**
|
|
172
|
-
* Resolve a single attribute value through the full translation priority chain:
|
|
173
|
-
* 1. attributesList[key] — developer direct text override (highest priority)
|
|
174
|
-
* 2. translatedAttributes[key] — developer explicit translation key
|
|
175
|
-
* 3. translator(rawValue) — auto-translate the raw value (fallback)
|
|
176
|
-
*
|
|
177
|
-
* Use this in rule bodies when you need per-item translation
|
|
178
|
-
* (e.g. translating each enum value before joining them).
|
|
179
|
-
*
|
|
180
|
-
* @example
|
|
181
|
-
* // Translate each enum value individually then join
|
|
182
|
-
* const enumList = enumValues
|
|
183
|
-
* .map(v => resolveTranslation(String(v), String(v), this, context))
|
|
184
|
-
* .join(", ");
|
|
185
|
-
* this.context.translationParams.enumList = enumList;
|
|
186
|
-
*/
|
|
187
|
-
const resolveTranslation = ({ key, rawValue, rule, context }) => {
|
|
188
|
-
const translator = getSealConfig().translateAttribute;
|
|
189
|
-
const direct = rule.context.attributesList?.[key];
|
|
190
|
-
if (direct && typeof direct === "string") return direct;
|
|
191
|
-
if (!translator) return String(rawValue ?? key);
|
|
192
|
-
const transKey = rule.context.translatedAttributes?.[key];
|
|
193
|
-
if (transKey) return translator({
|
|
194
|
-
attribute: transKey,
|
|
195
|
-
context,
|
|
196
|
-
rule
|
|
197
|
-
});
|
|
198
|
-
return translator({
|
|
199
|
-
attribute: String(rawValue ?? key),
|
|
200
|
-
context,
|
|
201
|
-
rule
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
const resolveAttribute = resolveTranslation;
|
|
205
|
-
const invalidRule = (rule, context) => {
|
|
206
|
-
const translatableWithInput = {
|
|
207
|
-
input: context.key || "schema",
|
|
208
|
-
...rule.context.translatableParams
|
|
209
|
-
};
|
|
210
|
-
const resolvedParams = Object.fromEntries(Object.entries(translatableWithInput).map(([key, rawValue]) => [key, resolveAttribute({
|
|
211
|
-
key,
|
|
212
|
-
rawValue,
|
|
213
|
-
rule,
|
|
214
|
-
context
|
|
215
|
-
})]));
|
|
216
|
-
const input = resolveAttribute({
|
|
217
|
-
key: "input",
|
|
218
|
-
rawValue: translatableWithInput.input ?? "schema",
|
|
219
|
-
rule,
|
|
220
|
-
context
|
|
221
|
-
});
|
|
222
|
-
const attributes = {
|
|
223
|
-
path: context.path,
|
|
224
|
-
key: context.key,
|
|
225
|
-
value: context.configurations?.redactValue ?? context.value,
|
|
226
|
-
...rule.context.translationParams,
|
|
227
|
-
...resolvedParams,
|
|
228
|
-
input
|
|
229
|
-
};
|
|
230
|
-
return {
|
|
231
|
-
isValid: false,
|
|
232
|
-
error: (rule.context.errorMessage || rule.errorMessage || context.translateRule?.({
|
|
233
|
-
rule,
|
|
234
|
-
context,
|
|
235
|
-
attributes
|
|
236
|
-
}) || rule.defaultErrorMessage).replace(/:([a-zA-Z_]+)/g, (match, key) => key in attributes ? String(attributes[key]) : match),
|
|
237
|
-
input: attributes.input,
|
|
238
|
-
path: context.path
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region ../node_modules/.pnpm/@warlock.js+seal@5.18.0/node_modules/@warlock.js/seal/esm/helpers/date-helpers.mjs
|
|
244
|
-
/**
|
|
245
|
-
* Detect if value is a date value or field name
|
|
246
|
-
*
|
|
247
|
-
* Date values:
|
|
248
|
-
* - Date instance
|
|
249
|
-
* - Number (timestamp)
|
|
250
|
-
* - String with date separators (- or /)
|
|
251
|
-
*
|
|
252
|
-
* Field names:
|
|
253
|
-
* - Strings without - or /
|
|
254
|
-
*
|
|
255
|
-
* @param value - Value to check
|
|
256
|
-
* @returns true if it's a date value, false if it's a field name
|
|
257
|
-
*/
|
|
258
|
-
function isDateValue(value) {
|
|
259
|
-
if (value instanceof Date) return true;
|
|
260
|
-
const date = new Date(value);
|
|
261
|
-
return !isNaN(date.getTime());
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
//#endregion
|
|
265
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.1/node_modules/@mongez/reinforcements/esm/object/get.mjs
|
|
126
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs
|
|
266
127
|
function get(object, path, defaultValue) {
|
|
267
128
|
if (object === null || object === void 0) return defaultValue;
|
|
268
129
|
if (path === "") return defaultValue;
|
|
@@ -278,7 +139,7 @@ function get(object, path, defaultValue) {
|
|
|
278
139
|
}
|
|
279
140
|
|
|
280
141
|
//#endregion
|
|
281
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
142
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/mixed/clone/clone.mjs
|
|
282
143
|
/**
|
|
283
144
|
* Deep-clone a value. Supports plain objects, arrays, `Date`, `RegExp`,
|
|
284
145
|
* `Map`, `Set`, `Error`, and typed arrays. Handles circular references
|
|
@@ -358,7 +219,7 @@ function clonePlainObject(value, seen) {
|
|
|
358
219
|
}
|
|
359
220
|
|
|
360
221
|
//#endregion
|
|
361
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
222
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs
|
|
362
223
|
/**
|
|
363
224
|
* Round `value` to the given number of decimal places (banker's-style
|
|
364
225
|
* `Math.round`).
|
|
@@ -373,7 +234,7 @@ function round(value, precision = 2) {
|
|
|
373
234
|
}
|
|
374
235
|
|
|
375
236
|
//#endregion
|
|
376
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
237
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs
|
|
377
238
|
/**
|
|
378
239
|
* Remove one or more dot-notation paths from `object`. Mutates and
|
|
379
240
|
* returns the input.
|
|
@@ -399,7 +260,7 @@ function deletePath(object, path) {
|
|
|
399
260
|
}
|
|
400
261
|
|
|
401
262
|
//#endregion
|
|
402
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
263
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs
|
|
403
264
|
function omit(object, keysOrPredicate) {
|
|
404
265
|
if (!object || typeof object !== "object" || Array.isArray(object)) return object;
|
|
405
266
|
if (typeof keysOrPredicate === "function") return omitByPredicate(object, keysOrPredicate);
|
|
@@ -412,7 +273,7 @@ function omitByPredicate(object, predicate) {
|
|
|
412
273
|
}
|
|
413
274
|
|
|
414
275
|
//#endregion
|
|
415
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
276
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs
|
|
416
277
|
/**
|
|
417
278
|
* @deprecated Use {@link omit} instead. Will be removed in a future major release.
|
|
418
279
|
*/
|
|
@@ -421,11 +282,11 @@ function except(object, keys) {
|
|
|
421
282
|
}
|
|
422
283
|
|
|
423
284
|
//#endregion
|
|
424
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
285
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/Random/_internal.mjs
|
|
425
286
|
const cryptoRef = typeof globalThis !== "undefined" && globalThis.crypto ? globalThis.crypto : {};
|
|
426
287
|
|
|
427
288
|
//#endregion
|
|
428
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
289
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs
|
|
429
290
|
/**
|
|
430
291
|
* Uppercase the first character of `string`.
|
|
431
292
|
*
|
|
@@ -438,7 +299,7 @@ function ucfirst(string) {
|
|
|
438
299
|
}
|
|
439
300
|
|
|
440
301
|
//#endregion
|
|
441
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
302
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs
|
|
442
303
|
const WHITESPACE_RUN$1 = /\s+/;
|
|
443
304
|
const WHITESPACE_GROUP = /(\s+)/;
|
|
444
305
|
/**
|
|
@@ -453,7 +314,7 @@ function capitalize$1(string) {
|
|
|
453
314
|
}
|
|
454
315
|
|
|
455
316
|
//#endregion
|
|
456
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
317
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs
|
|
457
318
|
/**
|
|
458
319
|
* Escape the regex of the given string
|
|
459
320
|
*/
|
|
@@ -462,7 +323,7 @@ function escapeRegex(string) {
|
|
|
462
323
|
}
|
|
463
324
|
|
|
464
325
|
//#endregion
|
|
465
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
326
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs
|
|
466
327
|
/**
|
|
467
328
|
* Remove the given needle from the start and the end of string
|
|
468
329
|
*
|
|
@@ -478,7 +339,7 @@ function trim(string, needle = " ") {
|
|
|
478
339
|
}
|
|
479
340
|
|
|
480
341
|
//#endregion
|
|
481
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
342
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs
|
|
482
343
|
/**
|
|
483
344
|
* Remove the given needle from the start of string
|
|
484
345
|
*
|
|
@@ -492,7 +353,7 @@ function ltrim(string, needle = " ") {
|
|
|
492
353
|
}
|
|
493
354
|
|
|
494
355
|
//#endregion
|
|
495
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
356
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs
|
|
496
357
|
/**
|
|
497
358
|
* Cut string for the given length and append ... if string is larger than the given length
|
|
498
359
|
*
|
|
@@ -504,7 +365,7 @@ function readMoreChars(string, length, readMoreDots = "...") {
|
|
|
504
365
|
}
|
|
505
366
|
|
|
506
367
|
//#endregion
|
|
507
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
368
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs
|
|
508
369
|
/**
|
|
509
370
|
* Remove the given needle from the start of string
|
|
510
371
|
*
|
|
@@ -518,7 +379,7 @@ function rtrim(string, needle = " ") {
|
|
|
518
379
|
}
|
|
519
380
|
|
|
520
381
|
//#endregion
|
|
521
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
382
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs
|
|
522
383
|
const SEPARATOR_PATTERN = /[-_./\\\s]+/g;
|
|
523
384
|
const ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;
|
|
524
385
|
const CAMEL_BOUNDARY = /([a-z\d])([A-Z])/g;
|
|
@@ -541,7 +402,7 @@ function words(input) {
|
|
|
541
402
|
}
|
|
542
403
|
|
|
543
404
|
//#endregion
|
|
544
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
405
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs
|
|
545
406
|
/**
|
|
546
407
|
* Convert a string to camelCase.
|
|
547
408
|
*
|
|
@@ -559,7 +420,7 @@ function toSegment(word, index) {
|
|
|
559
420
|
}
|
|
560
421
|
|
|
561
422
|
//#endregion
|
|
562
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
423
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs
|
|
563
424
|
/**
|
|
564
425
|
* Convert a string to snake_case (or any underscore-style with a
|
|
565
426
|
* custom separator).
|
|
@@ -576,7 +437,7 @@ function toSnakeCase(string, separator = "_", lowerAll = true) {
|
|
|
576
437
|
}
|
|
577
438
|
|
|
578
439
|
//#endregion
|
|
579
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
440
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs
|
|
580
441
|
/**
|
|
581
442
|
* Convert a string to kebab-case.
|
|
582
443
|
*
|
|
@@ -589,7 +450,7 @@ function toKebabCase(string, lowerAll = true) {
|
|
|
589
450
|
}
|
|
590
451
|
|
|
591
452
|
//#endregion
|
|
592
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
453
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs
|
|
593
454
|
/**
|
|
594
455
|
* Convert a string to StudlyCase (PascalCase).
|
|
595
456
|
*
|
|
@@ -606,7 +467,7 @@ function capitalize(word) {
|
|
|
606
467
|
}
|
|
607
468
|
|
|
608
469
|
//#endregion
|
|
609
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
470
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs
|
|
610
471
|
const LAZY = Symbol("lazy");
|
|
611
472
|
/**
|
|
612
473
|
* Wrap a value-producing function as a lazy reference. The producer
|
|
@@ -704,7 +565,7 @@ lazy.from = function lazyFrom(value) {
|
|
|
704
565
|
};
|
|
705
566
|
|
|
706
567
|
//#endregion
|
|
707
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
568
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs
|
|
708
569
|
/**
|
|
709
570
|
* Run `sideEffect` against `value`, then return `value` unchanged.
|
|
710
571
|
* Useful for inserting logging / instrumentation into a pipeline.
|
|
@@ -729,58 +590,124 @@ tap.with = function tapWith(sideEffect) {
|
|
|
729
590
|
};
|
|
730
591
|
|
|
731
592
|
//#endregion
|
|
732
|
-
//#region ../
|
|
593
|
+
//#region ../seal/src/config.ts
|
|
733
594
|
/**
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
* This utility extracts a field value from either the global context or sibling context
|
|
737
|
-
* based on the `scope` option in the rule's context.
|
|
738
|
-
*
|
|
739
|
-
* @param rule - The contextual schema rule containing options with:
|
|
740
|
-
* - `field` (or custom fieldKey): The field name to extract
|
|
741
|
-
* - `scope` (optional): Either "global" (default) or "sibling"
|
|
742
|
-
* @param context - The schema validation context containing allValues and parent
|
|
743
|
-
* @param fieldKey - The key in rule.context.options that contains the field name (defaults to "field")
|
|
744
|
-
*
|
|
745
|
-
* @returns The value of the specified field from the appropriate source
|
|
746
|
-
*
|
|
747
|
-
* @example
|
|
748
|
-
* // In a validation rule with scope support:
|
|
749
|
-
* async validate(value: any, context) {
|
|
750
|
-
* const otherFieldValue = getFieldValue(this, context);
|
|
751
|
-
* // Extracts from context.allValues if scope is "global"
|
|
752
|
-
* // Extracts from context.parent if scope is "sibling"
|
|
753
|
-
* }
|
|
754
|
-
*
|
|
755
|
-
* @example
|
|
756
|
-
* // Using a custom field key:
|
|
757
|
-
* async validate(value: any, context) {
|
|
758
|
-
* const compareValue = getFieldValue(this, context, "compareField");
|
|
759
|
-
* // Looks for rule.context.options.compareField instead of .field
|
|
760
|
-
* }
|
|
761
|
-
*
|
|
762
|
-
* @remarks
|
|
763
|
-
* - **Global scope** (`scope: "global"`): Searches the entire input data (context.allValues)
|
|
764
|
-
* - **Sibling scope** (`scope: "sibling"`): Searches only within the parent object (context.parent)
|
|
765
|
-
* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., "user.email")
|
|
595
|
+
* Global Seal configuration
|
|
766
596
|
*/
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
597
|
+
const config = { firstErrorOnly: true };
|
|
598
|
+
/**
|
|
599
|
+
* Get current Seal configuration
|
|
600
|
+
*/
|
|
601
|
+
function getSealConfig() {
|
|
602
|
+
return config;
|
|
770
603
|
}
|
|
771
604
|
|
|
772
605
|
//#endregion
|
|
773
|
-
//#region ../
|
|
606
|
+
//#region ../seal/src/factory/validate.ts
|
|
774
607
|
/**
|
|
775
|
-
*
|
|
608
|
+
* Validate data against a schema
|
|
776
609
|
*/
|
|
777
|
-
const
|
|
778
|
-
|
|
779
|
-
|
|
610
|
+
const validate = async (schema, data, { context: extendedContext, ...configurations } = getSealConfig() || {}) => {
|
|
611
|
+
const context = {
|
|
612
|
+
allValues: data,
|
|
613
|
+
parent: null,
|
|
614
|
+
value: data,
|
|
615
|
+
key: "",
|
|
616
|
+
path: "",
|
|
617
|
+
context: extendedContext,
|
|
618
|
+
rootContext: extendedContext,
|
|
619
|
+
translateRule(ruleTranslation) {
|
|
620
|
+
return configurations.translateRule?.(ruleTranslation) ?? "";
|
|
621
|
+
},
|
|
622
|
+
translateAttribute(attributeTranslation) {
|
|
623
|
+
return configurations.translateAttribute?.(attributeTranslation) ?? "";
|
|
624
|
+
},
|
|
625
|
+
configurations
|
|
626
|
+
};
|
|
627
|
+
const result = await schema.validate(data, context);
|
|
628
|
+
if (!result.isValid) return {
|
|
629
|
+
...result,
|
|
630
|
+
data: void 0
|
|
631
|
+
};
|
|
632
|
+
return result;
|
|
780
633
|
};
|
|
781
634
|
|
|
782
635
|
//#endregion
|
|
783
|
-
//#region ../
|
|
636
|
+
//#region ../seal/src/helpers/validation-helpers.ts
|
|
637
|
+
const VALID_RULE = { isValid: true };
|
|
638
|
+
/**
|
|
639
|
+
* Resolve a single attribute value through the full translation priority chain:
|
|
640
|
+
* 1. attributesList[key] — developer direct text override (highest priority)
|
|
641
|
+
* 2. translatedAttributes[key] — developer explicit translation key
|
|
642
|
+
* 3. translator(rawValue) — auto-translate the raw value (fallback)
|
|
643
|
+
*
|
|
644
|
+
* Use this in rule bodies when you need per-item translation
|
|
645
|
+
* (e.g. translating each enum value before joining them).
|
|
646
|
+
*
|
|
647
|
+
* @example
|
|
648
|
+
* // Translate each enum value individually then join
|
|
649
|
+
* const enumList = enumValues
|
|
650
|
+
* .map(v => resolveTranslation(String(v), String(v), this, context))
|
|
651
|
+
* .join(", ");
|
|
652
|
+
* this.context.translationParams.enumList = enumList;
|
|
653
|
+
*/
|
|
654
|
+
const resolveTranslation = ({ key, rawValue, rule, context }) => {
|
|
655
|
+
const translator = getSealConfig().translateAttribute;
|
|
656
|
+
const direct = rule.context.attributesList?.[key];
|
|
657
|
+
if (direct && typeof direct === "string") return direct;
|
|
658
|
+
if (!translator) return String(rawValue ?? key);
|
|
659
|
+
const transKey = rule.context.translatedAttributes?.[key];
|
|
660
|
+
if (transKey) return translator({
|
|
661
|
+
attribute: transKey,
|
|
662
|
+
context,
|
|
663
|
+
rule
|
|
664
|
+
});
|
|
665
|
+
return translator({
|
|
666
|
+
attribute: String(rawValue ?? key),
|
|
667
|
+
context,
|
|
668
|
+
rule
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
const resolveAttribute = resolveTranslation;
|
|
672
|
+
const invalidRule = (rule, context) => {
|
|
673
|
+
const translatableWithInput = {
|
|
674
|
+
input: context.key || "schema",
|
|
675
|
+
...rule.context.translatableParams
|
|
676
|
+
};
|
|
677
|
+
const resolvedParams = Object.fromEntries(Object.entries(translatableWithInput).map(([key, rawValue]) => [key, resolveAttribute({
|
|
678
|
+
key,
|
|
679
|
+
rawValue,
|
|
680
|
+
rule,
|
|
681
|
+
context
|
|
682
|
+
})]));
|
|
683
|
+
const input = resolveAttribute({
|
|
684
|
+
key: "input",
|
|
685
|
+
rawValue: translatableWithInput.input ?? "schema",
|
|
686
|
+
rule,
|
|
687
|
+
context
|
|
688
|
+
});
|
|
689
|
+
const attributes = {
|
|
690
|
+
path: context.path,
|
|
691
|
+
key: context.key,
|
|
692
|
+
value: context.configurations?.redactValue ?? context.value,
|
|
693
|
+
...rule.context.translationParams,
|
|
694
|
+
...resolvedParams,
|
|
695
|
+
input
|
|
696
|
+
};
|
|
697
|
+
return {
|
|
698
|
+
isValid: false,
|
|
699
|
+
error: (rule.context.errorMessage || rule.errorMessage || context.translateRule?.({
|
|
700
|
+
rule,
|
|
701
|
+
context,
|
|
702
|
+
attributes
|
|
703
|
+
}) || rule.defaultErrorMessage).replace(/:([a-zA-Z_]+)/g, (match, key) => key in attributes ? String(attributes[key]) : match),
|
|
704
|
+
input: attributes.input,
|
|
705
|
+
path: context.path
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region ../node_modules/.pnpm/@mongez+supportive-is@2.1.5/node_modules/@mongez/supportive-is/esm/index.mjs
|
|
784
711
|
/**
|
|
785
712
|
* Determine whether the given value is a number whatever if its data type is String or Number
|
|
786
713
|
*/
|
|
@@ -1131,13 +1058,86 @@ const Is = {
|
|
|
1131
1058
|
};
|
|
1132
1059
|
|
|
1133
1060
|
//#endregion
|
|
1134
|
-
//#region ../
|
|
1061
|
+
//#region ../seal/src/helpers/is-empty-value.ts
|
|
1135
1062
|
function isEmptyValue(value) {
|
|
1136
1063
|
return isEmpty(value) && !isObject(value);
|
|
1137
1064
|
}
|
|
1138
1065
|
|
|
1139
1066
|
//#endregion
|
|
1140
|
-
//#region ../
|
|
1067
|
+
//#region ../seal/src/helpers/date-helpers.ts
|
|
1068
|
+
/**
|
|
1069
|
+
* Detect if value is a date value or field name
|
|
1070
|
+
*
|
|
1071
|
+
* Date values:
|
|
1072
|
+
* - Date instance
|
|
1073
|
+
* - Number (timestamp)
|
|
1074
|
+
* - String with date separators (- or /)
|
|
1075
|
+
*
|
|
1076
|
+
* Field names:
|
|
1077
|
+
* - Strings without - or /
|
|
1078
|
+
*
|
|
1079
|
+
* @param value - Value to check
|
|
1080
|
+
* @returns true if it's a date value, false if it's a field name
|
|
1081
|
+
*/
|
|
1082
|
+
function isDateValue(value) {
|
|
1083
|
+
if (value instanceof Date) return true;
|
|
1084
|
+
const date = new Date(value);
|
|
1085
|
+
return !isNaN(date.getTime());
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region ../seal/src/helpers/get-field-value.ts
|
|
1090
|
+
/**
|
|
1091
|
+
* Get field value based on scope from rule options
|
|
1092
|
+
*
|
|
1093
|
+
* This utility extracts a field value from either the global context or sibling context
|
|
1094
|
+
* based on the `scope` option in the rule's context.
|
|
1095
|
+
*
|
|
1096
|
+
* @param rule - The contextual schema rule containing options with:
|
|
1097
|
+
* - `field` (or custom fieldKey): The field name to extract
|
|
1098
|
+
* - `scope` (optional): Either "global" (default) or "sibling"
|
|
1099
|
+
* @param context - The schema validation context containing allValues and parent
|
|
1100
|
+
* @param fieldKey - The key in rule.context.options that contains the field name (defaults to "field")
|
|
1101
|
+
*
|
|
1102
|
+
* @returns The value of the specified field from the appropriate source
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* // In a validation rule with scope support:
|
|
1106
|
+
* async validate(value: any, context) {
|
|
1107
|
+
* const otherFieldValue = getFieldValue(this, context);
|
|
1108
|
+
* // Extracts from context.allValues if scope is "global"
|
|
1109
|
+
* // Extracts from context.parent if scope is "sibling"
|
|
1110
|
+
* }
|
|
1111
|
+
*
|
|
1112
|
+
* @example
|
|
1113
|
+
* // Using a custom field key:
|
|
1114
|
+
* async validate(value: any, context) {
|
|
1115
|
+
* const compareValue = getFieldValue(this, context, "compareField");
|
|
1116
|
+
* // Looks for rule.context.options.compareField instead of .field
|
|
1117
|
+
* }
|
|
1118
|
+
*
|
|
1119
|
+
* @remarks
|
|
1120
|
+
* - **Global scope** (`scope: "global"`): Searches the entire input data (context.allValues)
|
|
1121
|
+
* - **Sibling scope** (`scope: "sibling"`): Searches only within the parent object (context.parent)
|
|
1122
|
+
* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., "user.email")
|
|
1123
|
+
*/
|
|
1124
|
+
function getFieldValue(rule, context, fieldKey = "field") {
|
|
1125
|
+
const field = rule.context.options[fieldKey];
|
|
1126
|
+
return get((rule.context.options.scope || "global") === "sibling" ? context.parent : context.allValues, field);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region ../seal/src/helpers/path-helpers.ts
|
|
1131
|
+
/**
|
|
1132
|
+
* Set the key path for nested validation
|
|
1133
|
+
*/
|
|
1134
|
+
const setKeyPath = (path, key) => {
|
|
1135
|
+
if (!path) return key;
|
|
1136
|
+
return `${path}.${key}`;
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
//#endregion
|
|
1140
|
+
//#region ../seal/src/rules/core/required.ts
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Required rule - value must be present and not empty
|
|
1143
1143
|
*/
|
|
@@ -1167,7 +1167,7 @@ const presentRule = {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
|
|
1169
1169
|
//#endregion
|
|
1170
|
-
//#region ../
|
|
1170
|
+
//#region ../seal/src/standard-schema/map-result.ts
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Maps a Seal ValidationResult to a Standard Schema result shape.
|
|
1173
1173
|
*
|
|
@@ -1191,24 +1191,57 @@ function mapToStandardResult(result) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
1193
|
//#endregion
|
|
1194
|
-
//#region ../
|
|
1194
|
+
//#region ../seal/src/validators/base-validator.ts
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Base validator class - foundation for all validators
|
|
1197
1197
|
*/
|
|
1198
1198
|
var BaseValidator = class {
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1199
|
+
rules = [];
|
|
1200
|
+
mutators = [];
|
|
1201
|
+
defaultValue;
|
|
1202
|
+
description;
|
|
1203
|
+
shouldOmit = false;
|
|
1204
|
+
isNullable = false;
|
|
1205
|
+
isMutable = false;
|
|
1206
|
+
/**
|
|
1207
|
+
* Catch state — when `hasCatch` is true and validation fails, `catchValue`
|
|
1208
|
+
* (or its callback result) substitutes for the failed value, and the public
|
|
1209
|
+
* result reports `isValid: true` with no errors.
|
|
1210
|
+
*
|
|
1211
|
+
* See `.catch()` for semantics and the v1 scope (leaf-only).
|
|
1212
|
+
*/
|
|
1213
|
+
catchValue;
|
|
1214
|
+
hasCatch = false;
|
|
1215
|
+
/**
|
|
1216
|
+
* Whether the field is optional.
|
|
1217
|
+
* - false (default): field is required unless a requiredRule governs the condition.
|
|
1218
|
+
* - true: field can be absent or empty — set by calling .optional().
|
|
1219
|
+
*
|
|
1220
|
+
* Also used as a TypeScript literal brand via the optional() return type.
|
|
1221
|
+
*/
|
|
1222
|
+
isOptional = false;
|
|
1223
|
+
/**
|
|
1224
|
+
* The single required-condition rule for this field.
|
|
1225
|
+
* - null: field uses strict default (always required when not optional).
|
|
1226
|
+
* - set: the rule governs when the field is required (e.g., requiredIf).
|
|
1227
|
+
*
|
|
1228
|
+
* Stored separately from rules[] and prepended at validate() time.
|
|
1229
|
+
*/
|
|
1230
|
+
requiredRule = this.createRule(requiredRule);
|
|
1231
|
+
/**
|
|
1232
|
+
* Pipeline to transform the mutated/original data before returning it
|
|
1233
|
+
*/
|
|
1234
|
+
dataTransformers = [];
|
|
1235
|
+
/**
|
|
1236
|
+
* Attributes text to be replaced on translations
|
|
1237
|
+
* If the value is an object, it will be used as the attributes list for the rule
|
|
1238
|
+
* If the value is a string, it will be used as the attributes list for the rule
|
|
1239
|
+
*/
|
|
1240
|
+
attributesText = {};
|
|
1241
|
+
/**
|
|
1242
|
+
* Attributed that will be always using the attribute translator
|
|
1243
|
+
*/
|
|
1244
|
+
translatedAttributes = {};
|
|
1212
1245
|
/**
|
|
1213
1246
|
* Mark the validator as mutable
|
|
1214
1247
|
*/
|
|
@@ -1838,16 +1871,19 @@ var BaseValidator = class {
|
|
|
1838
1871
|
};
|
|
1839
1872
|
|
|
1840
1873
|
//#endregion
|
|
1841
|
-
//#region ../
|
|
1874
|
+
//#region ../seal/src/validators/any-validator.ts
|
|
1842
1875
|
/**
|
|
1843
1876
|
* Any validator - accepts any value
|
|
1844
1877
|
*/
|
|
1845
1878
|
var AnyValidator = class extends BaseValidator {
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1879
|
+
/**
|
|
1880
|
+
* Any validator means any value, so we disable the default required requirement.
|
|
1881
|
+
*/
|
|
1882
|
+
requiredRule = null;
|
|
1883
|
+
/**
|
|
1884
|
+
* Set is optional to be true
|
|
1885
|
+
*/
|
|
1886
|
+
isOptional = true;
|
|
1851
1887
|
/**
|
|
1852
1888
|
* @inheritdoc
|
|
1853
1889
|
*
|
|
@@ -1868,7 +1904,7 @@ var AnyValidator = class extends BaseValidator {
|
|
|
1868
1904
|
};
|
|
1869
1905
|
|
|
1870
1906
|
//#endregion
|
|
1871
|
-
//#region ../
|
|
1907
|
+
//#region ../seal/src/mutators/array-mutators.ts
|
|
1872
1908
|
/** Reverse array order */
|
|
1873
1909
|
const flipArrayMutator = async (value) => {
|
|
1874
1910
|
return value.reverse();
|
|
@@ -1895,7 +1931,7 @@ const uniqueArrayMutator = async (value) => {
|
|
|
1895
1931
|
};
|
|
1896
1932
|
|
|
1897
1933
|
//#endregion
|
|
1898
|
-
//#region ../
|
|
1934
|
+
//#region ../seal/src/rules/scalar/accepted-rule.ts
|
|
1899
1935
|
/**
|
|
1900
1936
|
* The full set of values treated as "accepted" by `acceptedRule` and its
|
|
1901
1937
|
* conditional variants. Shared with `formBooleanMutator` (see
|
|
@@ -2011,7 +2047,7 @@ const acceptedWithoutRule = {
|
|
|
2011
2047
|
};
|
|
2012
2048
|
|
|
2013
2049
|
//#endregion
|
|
2014
|
-
//#region ../
|
|
2050
|
+
//#region ../seal/src/rules/scalar/declined-rule.ts
|
|
2015
2051
|
/**
|
|
2016
2052
|
* The full set of values treated as "declined" by `declinedRule` and its
|
|
2017
2053
|
* conditional variants. Shared with `formBooleanMutator` (see
|
|
@@ -2127,7 +2163,7 @@ const declinedWithoutRule = {
|
|
|
2127
2163
|
};
|
|
2128
2164
|
|
|
2129
2165
|
//#endregion
|
|
2130
|
-
//#region ../
|
|
2166
|
+
//#region ../seal/src/mutators/boolean-mutators.ts
|
|
2131
2167
|
/**
|
|
2132
2168
|
* Coerce a query-string-shaped boolean into a real boolean.
|
|
2133
2169
|
*
|
|
@@ -2461,7 +2497,7 @@ var require_dayjs_min = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
2461
2497
|
}));
|
|
2462
2498
|
|
|
2463
2499
|
//#endregion
|
|
2464
|
-
//#region ../
|
|
2500
|
+
//#region ../seal/src/mutators/date-mutators.ts
|
|
2465
2501
|
var import_dayjs_min = /* @__PURE__ */ require_chunk.__toESM(require_dayjs_min(), 1);
|
|
2466
2502
|
/**
|
|
2467
2503
|
* Convert value to Date object
|
|
@@ -2550,7 +2586,7 @@ const toEndOfYearMutator = async (value) => {
|
|
|
2550
2586
|
};
|
|
2551
2587
|
|
|
2552
2588
|
//#endregion
|
|
2553
|
-
//#region ../
|
|
2589
|
+
//#region ../seal/src/mutators/number-mutators.ts
|
|
2554
2590
|
/** Convert value to number */
|
|
2555
2591
|
const numberMutator = async (value) => {
|
|
2556
2592
|
if (!value) return value;
|
|
@@ -2596,7 +2632,7 @@ const toFixedMutator = async (value, context) => {
|
|
|
2596
2632
|
};
|
|
2597
2633
|
|
|
2598
2634
|
//#endregion
|
|
2599
|
-
//#region ../
|
|
2635
|
+
//#region ../seal/src/mutators/object-mutators.ts
|
|
2600
2636
|
/** Strip unknown keys from object */
|
|
2601
2637
|
const stripUnknownMutator = async (value, context) => {
|
|
2602
2638
|
const allowedKeys = [...context?.ctx.schema ? Object.keys(context.ctx.schema) : [], ...context?.options.allowedKeys ?? []];
|
|
@@ -2620,14 +2656,14 @@ const objectTrimMutator = async (value, context) => {
|
|
|
2620
2656
|
};
|
|
2621
2657
|
|
|
2622
2658
|
//#endregion
|
|
2623
|
-
//#region ../
|
|
2659
|
+
//#region ../seal/src/mutators/scalar-mutators.ts
|
|
2624
2660
|
const stringMutator = async (value) => {
|
|
2625
2661
|
if ([void 0, null].includes(value)) return value;
|
|
2626
2662
|
return String(value);
|
|
2627
2663
|
};
|
|
2628
2664
|
|
|
2629
2665
|
//#endregion
|
|
2630
|
-
//#region ../
|
|
2666
|
+
//#region ../seal/src/mutators/string-mutators.ts
|
|
2631
2667
|
/** Convert string to lowercase */
|
|
2632
2668
|
const lowercaseMutator = async (value) => {
|
|
2633
2669
|
return value?.toString().toLowerCase();
|
|
@@ -2800,7 +2836,7 @@ const removeNumbersMutator = async (value) => {
|
|
|
2800
2836
|
};
|
|
2801
2837
|
|
|
2802
2838
|
//#endregion
|
|
2803
|
-
//#region ../
|
|
2839
|
+
//#region ../seal/src/rules/core/equal.ts
|
|
2804
2840
|
/**
|
|
2805
2841
|
* Equal rule - value must be equal to a specific value
|
|
2806
2842
|
*/
|
|
@@ -2817,7 +2853,7 @@ const equalRule = {
|
|
|
2817
2853
|
};
|
|
2818
2854
|
|
|
2819
2855
|
//#endregion
|
|
2820
|
-
//#region ../
|
|
2856
|
+
//#region ../seal/src/rules/core/forbidden.ts
|
|
2821
2857
|
/**
|
|
2822
2858
|
* Forbidden rule - value must not be present
|
|
2823
2859
|
*/
|
|
@@ -2831,7 +2867,7 @@ const forbiddenRule = {
|
|
|
2831
2867
|
};
|
|
2832
2868
|
|
|
2833
2869
|
//#endregion
|
|
2834
|
-
//#region ../
|
|
2870
|
+
//#region ../seal/src/rules/core/union.ts
|
|
2835
2871
|
/**
|
|
2836
2872
|
* Union rule - value must match at least one of the provided validators
|
|
2837
2873
|
*/
|
|
@@ -2856,7 +2892,7 @@ const unionRule = {
|
|
|
2856
2892
|
};
|
|
2857
2893
|
|
|
2858
2894
|
//#endregion
|
|
2859
|
-
//#region ../
|
|
2895
|
+
//#region ../seal/src/rules/core/when.ts
|
|
2860
2896
|
/**
|
|
2861
2897
|
* When rule - conditional validation based on another field value
|
|
2862
2898
|
*/
|
|
@@ -2886,7 +2922,7 @@ const whenRule = {
|
|
|
2886
2922
|
};
|
|
2887
2923
|
|
|
2888
2924
|
//#endregion
|
|
2889
|
-
//#region ../
|
|
2925
|
+
//#region ../seal/src/rules/string/alpha.ts
|
|
2890
2926
|
/**
|
|
2891
2927
|
* Alpha rule - allows only alphabetic characters
|
|
2892
2928
|
*/
|
|
@@ -2922,7 +2958,7 @@ const isNumericRule = {
|
|
|
2922
2958
|
};
|
|
2923
2959
|
|
|
2924
2960
|
//#endregion
|
|
2925
|
-
//#region ../
|
|
2961
|
+
//#region ../seal/src/rules/string/credit-card.ts
|
|
2926
2962
|
/**
|
|
2927
2963
|
* Credit card rule - validates credit card number
|
|
2928
2964
|
*/
|
|
@@ -2949,7 +2985,7 @@ const isCreditCardRule = {
|
|
|
2949
2985
|
};
|
|
2950
2986
|
|
|
2951
2987
|
//#endregion
|
|
2952
|
-
//#region ../
|
|
2988
|
+
//#region ../seal/src/rules/string/email.ts
|
|
2953
2989
|
/**
|
|
2954
2990
|
* Email rule - validates email format
|
|
2955
2991
|
*/
|
|
@@ -2963,7 +2999,7 @@ const emailRule = {
|
|
|
2963
2999
|
};
|
|
2964
3000
|
|
|
2965
3001
|
//#endregion
|
|
2966
|
-
//#region ../
|
|
3002
|
+
//#region ../seal/src/rules/string/id-formats.ts
|
|
2967
3003
|
/**
|
|
2968
3004
|
* Modern ID format validators — UUID, CUID, ULID, nanoid.
|
|
2969
3005
|
*
|
|
@@ -3062,7 +3098,7 @@ const nanoidRule = {
|
|
|
3062
3098
|
};
|
|
3063
3099
|
|
|
3064
3100
|
//#endregion
|
|
3065
|
-
//#region ../
|
|
3101
|
+
//#region ../seal/src/rules/string/ip.ts
|
|
3066
3102
|
/**
|
|
3067
3103
|
* Pure, dependency-free re-implementation of Node's `net.isIP`/`isIPv4`/`isIPv6`.
|
|
3068
3104
|
* Mirrors the exact regex Node uses internally (lib/internal/net.js) so that
|
|
@@ -3123,7 +3159,7 @@ const ip6Rule = {
|
|
|
3123
3159
|
};
|
|
3124
3160
|
|
|
3125
3161
|
//#endregion
|
|
3126
|
-
//#region ../
|
|
3162
|
+
//#region ../seal/src/rules/string/pattern.ts
|
|
3127
3163
|
/**
|
|
3128
3164
|
* Pattern rule - validates against regex pattern
|
|
3129
3165
|
*/
|
|
@@ -3138,7 +3174,7 @@ const patternRule = {
|
|
|
3138
3174
|
};
|
|
3139
3175
|
|
|
3140
3176
|
//#endregion
|
|
3141
|
-
//#region ../
|
|
3177
|
+
//#region ../seal/src/rules/string/string-comparison.ts
|
|
3142
3178
|
/**
|
|
3143
3179
|
* Starts with rule
|
|
3144
3180
|
*/
|
|
@@ -3189,7 +3225,7 @@ const notContainsRule = {
|
|
|
3189
3225
|
};
|
|
3190
3226
|
|
|
3191
3227
|
//#endregion
|
|
3192
|
-
//#region ../
|
|
3228
|
+
//#region ../seal/src/rules/string/strong-password-rule.ts
|
|
3193
3229
|
/**
|
|
3194
3230
|
* Strong Password rule - validates password strength
|
|
3195
3231
|
* Requirements:
|
|
@@ -3215,7 +3251,7 @@ const strongPasswordRule = {
|
|
|
3215
3251
|
};
|
|
3216
3252
|
|
|
3217
3253
|
//#endregion
|
|
3218
|
-
//#region ../
|
|
3254
|
+
//#region ../seal/src/rules/string/url.ts
|
|
3219
3255
|
/**
|
|
3220
3256
|
* URL rule - validates URL format
|
|
3221
3257
|
*/
|
|
@@ -3233,7 +3269,7 @@ const urlRule = {
|
|
|
3233
3269
|
};
|
|
3234
3270
|
|
|
3235
3271
|
//#endregion
|
|
3236
|
-
//#region ../
|
|
3272
|
+
//#region ../seal/src/rules/string/without-whitespace.ts
|
|
3237
3273
|
/**
|
|
3238
3274
|
* Without whitespace rule - value must not contain whitespace
|
|
3239
3275
|
*/
|
|
@@ -3247,7 +3283,7 @@ const withoutWhitespaceRule = {
|
|
|
3247
3283
|
};
|
|
3248
3284
|
|
|
3249
3285
|
//#endregion
|
|
3250
|
-
//#region ../
|
|
3286
|
+
//#region ../seal/src/rules/number/number-rules.ts
|
|
3251
3287
|
/**
|
|
3252
3288
|
* Min rule - value must be equal or greater than minimum
|
|
3253
3289
|
* Supports field names with sibling scope
|
|
@@ -3437,7 +3473,7 @@ const betweenNumbersRule = {
|
|
|
3437
3473
|
};
|
|
3438
3474
|
|
|
3439
3475
|
//#endregion
|
|
3440
|
-
//#region ../
|
|
3476
|
+
//#region ../seal/src/rules/length/length-rules.ts
|
|
3441
3477
|
/**
|
|
3442
3478
|
* Min length rule - validates minimum length
|
|
3443
3479
|
* Works for any value with a length property (strings, arrays, etc.)
|
|
@@ -3530,7 +3566,7 @@ const wordsRule = {
|
|
|
3530
3566
|
};
|
|
3531
3567
|
|
|
3532
3568
|
//#endregion
|
|
3533
|
-
//#region ../
|
|
3569
|
+
//#region ../seal/src/rules/array/array-rules.ts
|
|
3534
3570
|
/**
|
|
3535
3571
|
* Unique array rule - array must contain unique values
|
|
3536
3572
|
*/
|
|
@@ -3566,7 +3602,7 @@ const sortedArrayRule = {
|
|
|
3566
3602
|
};
|
|
3567
3603
|
|
|
3568
3604
|
//#endregion
|
|
3569
|
-
//#region ../
|
|
3605
|
+
//#region ../seal/src/types/date-types.ts
|
|
3570
3606
|
/**
|
|
3571
3607
|
* Week day numbers mapping
|
|
3572
3608
|
*/
|
|
@@ -3581,7 +3617,7 @@ const WEEK_DAYS = {
|
|
|
3581
3617
|
};
|
|
3582
3618
|
|
|
3583
3619
|
//#endregion
|
|
3584
|
-
//#region ../
|
|
3620
|
+
//#region ../seal/src/rules/date/date.ts
|
|
3585
3621
|
/**
|
|
3586
3622
|
* Date rule - validates date format
|
|
3587
3623
|
*/
|
|
@@ -3807,7 +3843,7 @@ const weekDayRule = {
|
|
|
3807
3843
|
};
|
|
3808
3844
|
|
|
3809
3845
|
//#endregion
|
|
3810
|
-
//#region ../
|
|
3846
|
+
//#region ../seal/src/rules/date/date-comparison-rules.ts
|
|
3811
3847
|
/**
|
|
3812
3848
|
* Between dates rule - date must be between start and end dates
|
|
3813
3849
|
*/
|
|
@@ -3880,7 +3916,7 @@ const afterTodayRule = {
|
|
|
3880
3916
|
};
|
|
3881
3917
|
|
|
3882
3918
|
//#endregion
|
|
3883
|
-
//#region ../
|
|
3919
|
+
//#region ../seal/src/rules/date/date-day-rules.ts
|
|
3884
3920
|
/**
|
|
3885
3921
|
* Weekend rule - date must be Saturday or Sunday
|
|
3886
3922
|
*/
|
|
@@ -3923,7 +3959,7 @@ const businessDayRule = {
|
|
|
3923
3959
|
};
|
|
3924
3960
|
|
|
3925
3961
|
//#endregion
|
|
3926
|
-
//#region ../
|
|
3962
|
+
//#region ../seal/src/rules/date/date-field-comparison-rules.ts
|
|
3927
3963
|
/**
|
|
3928
3964
|
* Before field rule - date must be < given date or field
|
|
3929
3965
|
* Smart detection: date value or field name
|
|
@@ -3997,7 +4033,7 @@ const sameAsFieldDateRule = {
|
|
|
3997
4033
|
};
|
|
3998
4034
|
|
|
3999
4035
|
//#endregion
|
|
4000
|
-
//#region ../
|
|
4036
|
+
//#region ../seal/src/rules/date/date-period-rules.ts
|
|
4001
4037
|
const MONTHS = {
|
|
4002
4038
|
1: "january",
|
|
4003
4039
|
2: "february",
|
|
@@ -4391,7 +4427,7 @@ const maxDayRule = {
|
|
|
4391
4427
|
};
|
|
4392
4428
|
|
|
4393
4429
|
//#endregion
|
|
4394
|
-
//#region ../
|
|
4430
|
+
//#region ../seal/src/rules/date/date-relative-rules.ts
|
|
4395
4431
|
/**
|
|
4396
4432
|
* Within days rule - date must be within X days from now (past or future)
|
|
4397
4433
|
*/
|
|
@@ -4441,7 +4477,7 @@ const withinFutureDaysRule = {
|
|
|
4441
4477
|
};
|
|
4442
4478
|
|
|
4443
4479
|
//#endregion
|
|
4444
|
-
//#region ../
|
|
4480
|
+
//#region ../seal/src/rules/date/date-special-rules.ts
|
|
4445
4481
|
/**
|
|
4446
4482
|
* Birthday rule - valid birthday (not in future, reasonable age)
|
|
4447
4483
|
*/
|
|
@@ -4494,7 +4530,7 @@ const leapYearRule = {
|
|
|
4494
4530
|
};
|
|
4495
4531
|
|
|
4496
4532
|
//#endregion
|
|
4497
|
-
//#region ../
|
|
4533
|
+
//#region ../seal/src/rules/color/color-rules.ts
|
|
4498
4534
|
/**
|
|
4499
4535
|
* Color validation regex patterns
|
|
4500
4536
|
*/
|
|
@@ -4593,7 +4629,7 @@ const darkColorRule = {
|
|
|
4593
4629
|
};
|
|
4594
4630
|
|
|
4595
4631
|
//#endregion
|
|
4596
|
-
//#region ../
|
|
4632
|
+
//#region ../seal/src/rules/conditional/required-if-rules.ts
|
|
4597
4633
|
/**
|
|
4598
4634
|
* Required if rule - field is required if another field equals a specific value
|
|
4599
4635
|
* Supports both global and sibling scope
|
|
@@ -4788,7 +4824,7 @@ const requiredIfAnyNotEmptyRule = {
|
|
|
4788
4824
|
};
|
|
4789
4825
|
|
|
4790
4826
|
//#endregion
|
|
4791
|
-
//#region ../
|
|
4827
|
+
//#region ../seal/src/rules/conditional/required-unless-rules.ts
|
|
4792
4828
|
/**
|
|
4793
4829
|
* Required unless rule - field is required unless another field equals a specific value
|
|
4794
4830
|
* Supports both global and sibling scope
|
|
@@ -4812,7 +4848,7 @@ const requiredUnlessRule = {
|
|
|
4812
4848
|
};
|
|
4813
4849
|
|
|
4814
4850
|
//#endregion
|
|
4815
|
-
//#region ../
|
|
4851
|
+
//#region ../seal/src/rules/conditional/required-when-rule.ts
|
|
4816
4852
|
/**
|
|
4817
4853
|
* Required when callback returns true.
|
|
4818
4854
|
*
|
|
@@ -4838,7 +4874,7 @@ const requiredWhenRule = {
|
|
|
4838
4874
|
};
|
|
4839
4875
|
|
|
4840
4876
|
//#endregion
|
|
4841
|
-
//#region ../
|
|
4877
|
+
//#region ../seal/src/rules/conditional/required-with-rules.ts
|
|
4842
4878
|
/**
|
|
4843
4879
|
* Required with rule - field is required if another field is present
|
|
4844
4880
|
* Supports both global and sibling scope
|
|
@@ -4896,7 +4932,7 @@ const requiredWithAnyRule = {
|
|
|
4896
4932
|
};
|
|
4897
4933
|
|
|
4898
4934
|
//#endregion
|
|
4899
|
-
//#region ../
|
|
4935
|
+
//#region ../seal/src/rules/conditional/required-without-rules.ts
|
|
4900
4936
|
/**
|
|
4901
4937
|
* Required without rule - field is required if another field is missing
|
|
4902
4938
|
* Supports both global and sibling scope
|
|
@@ -4954,7 +4990,7 @@ const requiredWithoutAnyRule = {
|
|
|
4954
4990
|
};
|
|
4955
4991
|
|
|
4956
4992
|
//#endregion
|
|
4957
|
-
//#region ../
|
|
4993
|
+
//#region ../seal/src/rules/conditional/present-if-rules.ts
|
|
4958
4994
|
/**
|
|
4959
4995
|
* Present if rule - field must be present if another field equals a specific value
|
|
4960
4996
|
* Supports both global and sibling scope
|
|
@@ -5044,7 +5080,7 @@ const presentIfNotInRule = {
|
|
|
5044
5080
|
};
|
|
5045
5081
|
|
|
5046
5082
|
//#endregion
|
|
5047
|
-
//#region ../
|
|
5083
|
+
//#region ../seal/src/rules/conditional/present-unless-rules.ts
|
|
5048
5084
|
/**
|
|
5049
5085
|
* Present unless rule - field must be present unless another field equals a specific value
|
|
5050
5086
|
* Supports both global and sibling scope
|
|
@@ -5068,7 +5104,7 @@ const presentUnlessRule = {
|
|
|
5068
5104
|
};
|
|
5069
5105
|
|
|
5070
5106
|
//#endregion
|
|
5071
|
-
//#region ../
|
|
5107
|
+
//#region ../seal/src/rules/conditional/present-with-rules.ts
|
|
5072
5108
|
/**
|
|
5073
5109
|
* Present with rule - field must be present if another field is present
|
|
5074
5110
|
* Supports both global and sibling scope
|
|
@@ -5136,7 +5172,7 @@ const presentWithAnyRule = {
|
|
|
5136
5172
|
};
|
|
5137
5173
|
|
|
5138
5174
|
//#endregion
|
|
5139
|
-
//#region ../
|
|
5175
|
+
//#region ../seal/src/rules/conditional/present-without-rules.ts
|
|
5140
5176
|
/**
|
|
5141
5177
|
* Present without rule - field must be present if another field is missing
|
|
5142
5178
|
* Supports both global and sibling scope
|
|
@@ -5204,7 +5240,7 @@ const presentWithoutAnyRule = {
|
|
|
5204
5240
|
};
|
|
5205
5241
|
|
|
5206
5242
|
//#endregion
|
|
5207
|
-
//#region ../
|
|
5243
|
+
//#region ../seal/src/rules/conditional/forbidden-if-rules.ts
|
|
5208
5244
|
/**
|
|
5209
5245
|
* Forbidden if rule - field is forbidden if another field equals a specific value
|
|
5210
5246
|
* Supports both global and sibling scope
|
|
@@ -5313,7 +5349,7 @@ const forbiddenIfNotInRule = {
|
|
|
5313
5349
|
};
|
|
5314
5350
|
|
|
5315
5351
|
//#endregion
|
|
5316
|
-
//#region ../
|
|
5352
|
+
//#region ../seal/src/rules/common/enum.ts
|
|
5317
5353
|
/**
|
|
5318
5354
|
* Enum rule - value must be one of the enum values
|
|
5319
5355
|
*/
|
|
@@ -5385,7 +5421,7 @@ const notAllowedValuesRule = {
|
|
|
5385
5421
|
};
|
|
5386
5422
|
|
|
5387
5423
|
//#endregion
|
|
5388
|
-
//#region ../
|
|
5424
|
+
//#region ../seal/src/rules/common/equals-field-rules.ts
|
|
5389
5425
|
/**
|
|
5390
5426
|
* Equals field rule - value must equal another field's value
|
|
5391
5427
|
* Supports both global and sibling scope
|
|
@@ -5421,7 +5457,7 @@ const notEqualsFieldRule = {
|
|
|
5421
5457
|
};
|
|
5422
5458
|
|
|
5423
5459
|
//#endregion
|
|
5424
|
-
//#region ../
|
|
5460
|
+
//#region ../seal/src/rules/common/instanceof.ts
|
|
5425
5461
|
/**
|
|
5426
5462
|
* InstanceOf rule - value must be an instance of the given constructor.
|
|
5427
5463
|
*
|
|
@@ -5439,7 +5475,7 @@ const instanceofRule = {
|
|
|
5439
5475
|
};
|
|
5440
5476
|
|
|
5441
5477
|
//#endregion
|
|
5442
|
-
//#region ../
|
|
5478
|
+
//#region ../seal/src/rules/common/literal.ts
|
|
5443
5479
|
/**
|
|
5444
5480
|
* Literal rule - value must be strictly equal to one of the literal values.
|
|
5445
5481
|
*
|
|
@@ -5465,7 +5501,7 @@ const literalRule = {
|
|
|
5465
5501
|
};
|
|
5466
5502
|
|
|
5467
5503
|
//#endregion
|
|
5468
|
-
//#region ../
|
|
5504
|
+
//#region ../seal/src/rules/common/type-rules.ts
|
|
5469
5505
|
/**
|
|
5470
5506
|
* String rule - validates string type
|
|
5471
5507
|
*/
|
|
@@ -5556,7 +5592,7 @@ const arrayRule = {
|
|
|
5556
5592
|
};
|
|
5557
5593
|
|
|
5558
5594
|
//#endregion
|
|
5559
|
-
//#region ../
|
|
5595
|
+
//#region ../seal/src/rules/common/unknown-key.ts
|
|
5560
5596
|
/**
|
|
5561
5597
|
* Unknown key rule - validates that object doesn't have unknown keys
|
|
5562
5598
|
*/
|
|
@@ -5576,11 +5612,12 @@ const unknownKeyRule = {
|
|
|
5576
5612
|
};
|
|
5577
5613
|
|
|
5578
5614
|
//#endregion
|
|
5579
|
-
//#region ../
|
|
5615
|
+
//#region ../seal/src/validators/array-validator.ts
|
|
5580
5616
|
/**
|
|
5581
5617
|
* Array validator class
|
|
5582
5618
|
*/
|
|
5583
5619
|
var ArrayValidator = class extends BaseValidator {
|
|
5620
|
+
validator;
|
|
5584
5621
|
constructor(validator, errorMessage) {
|
|
5585
5622
|
super();
|
|
5586
5623
|
this.validator = validator;
|
|
@@ -5739,7 +5776,7 @@ var ArrayValidator = class extends BaseValidator {
|
|
|
5739
5776
|
};
|
|
5740
5777
|
|
|
5741
5778
|
//#endregion
|
|
5742
|
-
//#region ../
|
|
5779
|
+
//#region ../seal/src/validators/methods/equality-conditional-methods.ts
|
|
5743
5780
|
/**
|
|
5744
5781
|
* Value must be equal to the given value
|
|
5745
5782
|
*/
|
|
@@ -5860,7 +5897,7 @@ BaseValidator.prototype.whenSibling = function(siblingField, options) {
|
|
|
5860
5897
|
};
|
|
5861
5898
|
|
|
5862
5899
|
//#endregion
|
|
5863
|
-
//#region ../
|
|
5900
|
+
//#region ../seal/src/validators/methods/forbidden-methods.ts
|
|
5864
5901
|
/**
|
|
5865
5902
|
* Value is forbidden to be present
|
|
5866
5903
|
*/
|
|
@@ -5985,7 +6022,7 @@ BaseValidator.prototype.forbiddenIfNotInSibling = function(field, values, errorM
|
|
|
5985
6022
|
};
|
|
5986
6023
|
|
|
5987
6024
|
//#endregion
|
|
5988
|
-
//#region ../
|
|
6025
|
+
//#region ../seal/src/validators/methods/present-methods.ts
|
|
5989
6026
|
/**
|
|
5990
6027
|
* Field must be present if another field exists
|
|
5991
6028
|
*/
|
|
@@ -6212,7 +6249,7 @@ BaseValidator.prototype.presentWithoutAnySiblings = function(fields, errorMessag
|
|
|
6212
6249
|
};
|
|
6213
6250
|
|
|
6214
6251
|
//#endregion
|
|
6215
|
-
//#region ../
|
|
6252
|
+
//#region ../seal/src/validators/methods/required-methods.ts
|
|
6216
6253
|
/**
|
|
6217
6254
|
* This value must be present and has a value
|
|
6218
6255
|
*/
|
|
@@ -6549,7 +6586,7 @@ BaseValidator.prototype.requiredWhen = function(callback, errorMessage) {
|
|
|
6549
6586
|
};
|
|
6550
6587
|
|
|
6551
6588
|
//#endregion
|
|
6552
|
-
//#region ../
|
|
6589
|
+
//#region ../seal/src/validators/primitive-validator.ts
|
|
6553
6590
|
/**
|
|
6554
6591
|
* Abstract base validator for primitive-typed fields (string, number, boolean).
|
|
6555
6592
|
*
|
|
@@ -6632,7 +6669,7 @@ var PrimitiveValidator = class extends BaseValidator {
|
|
|
6632
6669
|
};
|
|
6633
6670
|
|
|
6634
6671
|
//#endregion
|
|
6635
|
-
//#region ../
|
|
6672
|
+
//#region ../seal/src/validators/boolean-validator.ts
|
|
6636
6673
|
/**
|
|
6637
6674
|
* Boolean validator class
|
|
6638
6675
|
*
|
|
@@ -6795,7 +6832,7 @@ var BooleanValidator = class extends PrimitiveValidator {
|
|
|
6795
6832
|
};
|
|
6796
6833
|
|
|
6797
6834
|
//#endregion
|
|
6798
|
-
//#region ../
|
|
6835
|
+
//#region ../seal/src/validators/computed-validator.ts
|
|
6799
6836
|
/**
|
|
6800
6837
|
* Computed field validator
|
|
6801
6838
|
*
|
|
@@ -6829,6 +6866,8 @@ var BooleanValidator = class extends PrimitiveValidator {
|
|
|
6829
6866
|
* ```
|
|
6830
6867
|
*/
|
|
6831
6868
|
var ComputedValidator = class extends BaseValidator {
|
|
6869
|
+
callback;
|
|
6870
|
+
resultValidator;
|
|
6832
6871
|
/**
|
|
6833
6872
|
* Create a new computed field validator
|
|
6834
6873
|
*
|
|
@@ -6907,7 +6946,7 @@ var ComputedValidator = class extends BaseValidator {
|
|
|
6907
6946
|
};
|
|
6908
6947
|
|
|
6909
6948
|
//#endregion
|
|
6910
|
-
//#region ../
|
|
6949
|
+
//#region ../seal/src/validators/date-validator.ts
|
|
6911
6950
|
/**
|
|
6912
6951
|
* Date validator class
|
|
6913
6952
|
*/
|
|
@@ -7527,7 +7566,7 @@ var DateValidator = class extends BaseValidator {
|
|
|
7527
7566
|
};
|
|
7528
7567
|
|
|
7529
7568
|
//#endregion
|
|
7530
|
-
//#region ../
|
|
7569
|
+
//#region ../seal/src/validators/literal-validator.ts
|
|
7531
7570
|
/**
|
|
7532
7571
|
* Literal validator class
|
|
7533
7572
|
*
|
|
@@ -7543,6 +7582,7 @@ var DateValidator = class extends BaseValidator {
|
|
|
7543
7582
|
* v.literal(true) // type: true
|
|
7544
7583
|
*/
|
|
7545
7584
|
var LiteralValidator = class extends BaseValidator {
|
|
7585
|
+
values;
|
|
7546
7586
|
constructor(values, errorMessage) {
|
|
7547
7587
|
super();
|
|
7548
7588
|
this.values = values;
|
|
@@ -7589,7 +7629,7 @@ var LiteralValidator = class extends BaseValidator {
|
|
|
7589
7629
|
};
|
|
7590
7630
|
|
|
7591
7631
|
//#endregion
|
|
7592
|
-
//#region ../
|
|
7632
|
+
//#region ../seal/src/validators/discriminated-union-validator.ts
|
|
7593
7633
|
/**
|
|
7594
7634
|
* Discriminated union validator — routes payloads by a shared discriminator field.
|
|
7595
7635
|
*
|
|
@@ -7622,6 +7662,10 @@ var LiteralValidator = class extends BaseValidator {
|
|
|
7622
7662
|
* @see `domains/seal/plans/2026-05-12-discriminated-union.md`
|
|
7623
7663
|
*/
|
|
7624
7664
|
var DiscriminatedUnionValidator = class DiscriminatedUnionValidator extends BaseValidator {
|
|
7665
|
+
discriminator;
|
|
7666
|
+
validators;
|
|
7667
|
+
/** Map from discriminator literal value → matching branch validator. */
|
|
7668
|
+
branches;
|
|
7625
7669
|
constructor(discriminator, validators) {
|
|
7626
7670
|
super();
|
|
7627
7671
|
this.discriminator = discriminator;
|
|
@@ -7707,7 +7751,7 @@ var DiscriminatedUnionValidator = class DiscriminatedUnionValidator extends Base
|
|
|
7707
7751
|
};
|
|
7708
7752
|
|
|
7709
7753
|
//#endregion
|
|
7710
|
-
//#region ../
|
|
7754
|
+
//#region ../seal/src/validators/number-validator.ts
|
|
7711
7755
|
/**
|
|
7712
7756
|
* Number validator class - base for Int and Float validators
|
|
7713
7757
|
*/
|
|
@@ -8026,7 +8070,7 @@ var NumberValidator = class extends PrimitiveValidator {
|
|
|
8026
8070
|
};
|
|
8027
8071
|
|
|
8028
8072
|
//#endregion
|
|
8029
|
-
//#region ../
|
|
8073
|
+
//#region ../seal/src/validators/float-validator.ts
|
|
8030
8074
|
/**
|
|
8031
8075
|
* Float validator class
|
|
8032
8076
|
*/
|
|
@@ -8038,7 +8082,7 @@ var FloatValidator = class extends NumberValidator {
|
|
|
8038
8082
|
};
|
|
8039
8083
|
|
|
8040
8084
|
//#endregion
|
|
8041
|
-
//#region ../
|
|
8085
|
+
//#region ../seal/src/validators/instanceof-validator.ts
|
|
8042
8086
|
/**
|
|
8043
8087
|
* InstanceOf validator class
|
|
8044
8088
|
*
|
|
@@ -8056,6 +8100,7 @@ var FloatValidator = class extends NumberValidator {
|
|
|
8056
8100
|
* v.instanceof(MyClass) // type: MyClass
|
|
8057
8101
|
*/
|
|
8058
8102
|
var InstanceOfValidator = class extends BaseValidator {
|
|
8103
|
+
ctor;
|
|
8059
8104
|
constructor(ctor, errorMessage) {
|
|
8060
8105
|
super();
|
|
8061
8106
|
this.ctor = ctor;
|
|
@@ -8096,7 +8141,7 @@ var InstanceOfValidator = class extends BaseValidator {
|
|
|
8096
8141
|
};
|
|
8097
8142
|
|
|
8098
8143
|
//#endregion
|
|
8099
|
-
//#region ../
|
|
8144
|
+
//#region ../seal/src/validators/int-validator.ts
|
|
8100
8145
|
/**
|
|
8101
8146
|
* Integer validator class
|
|
8102
8147
|
*/
|
|
@@ -8120,7 +8165,7 @@ var IntValidator = class extends NumberValidator {
|
|
|
8120
8165
|
};
|
|
8121
8166
|
|
|
8122
8167
|
//#endregion
|
|
8123
|
-
//#region ../
|
|
8168
|
+
//#region ../seal/src/validators/lazy-validator.ts
|
|
8124
8169
|
/**
|
|
8125
8170
|
* Lazy validator — defers resolution of the inner validator until validate-time.
|
|
8126
8171
|
*
|
|
@@ -8162,6 +8207,8 @@ var IntValidator = class extends NumberValidator {
|
|
|
8162
8207
|
* @see `domains/seal/plans/2026-05-12-lazy-validator.md`
|
|
8163
8208
|
*/
|
|
8164
8209
|
var LazyValidator = class extends BaseValidator {
|
|
8210
|
+
thunk;
|
|
8211
|
+
resolvedValidator;
|
|
8165
8212
|
constructor(thunk) {
|
|
8166
8213
|
super();
|
|
8167
8214
|
this.thunk = thunk;
|
|
@@ -8201,7 +8248,7 @@ var LazyValidator = class extends BaseValidator {
|
|
|
8201
8248
|
};
|
|
8202
8249
|
|
|
8203
8250
|
//#endregion
|
|
8204
|
-
//#region ../
|
|
8251
|
+
//#region ../seal/src/validators/managed-validator.ts
|
|
8205
8252
|
/**
|
|
8206
8253
|
* Managed field validator
|
|
8207
8254
|
*
|
|
@@ -8236,7 +8283,7 @@ var ManagedValidator = class extends ComputedValidator {
|
|
|
8236
8283
|
};
|
|
8237
8284
|
|
|
8238
8285
|
//#endregion
|
|
8239
|
-
//#region ../
|
|
8286
|
+
//#region ../seal/src/validators/numeric-validator.ts
|
|
8240
8287
|
/**
|
|
8241
8288
|
* Numeric validator class - base for Int and Float validators either as number or string
|
|
8242
8289
|
*/
|
|
@@ -8257,7 +8304,7 @@ var NumericValidator = class extends NumberValidator {
|
|
|
8257
8304
|
};
|
|
8258
8305
|
|
|
8259
8306
|
//#endregion
|
|
8260
|
-
//#region ../
|
|
8307
|
+
//#region ../seal/src/validators/object-validator.ts
|
|
8261
8308
|
/**
|
|
8262
8309
|
* Object validator class with generic schema type for proper type inference.
|
|
8263
8310
|
*
|
|
@@ -8275,12 +8322,13 @@ var NumericValidator = class extends NumberValidator {
|
|
|
8275
8322
|
* brand-aware widening tries to inspect the class type.
|
|
8276
8323
|
*/
|
|
8277
8324
|
var ObjectValidator = class ObjectValidator extends BaseValidator {
|
|
8325
|
+
schema;
|
|
8326
|
+
shouldAllowUnknown = false;
|
|
8327
|
+
allowedKeys = [];
|
|
8328
|
+
hasUnknownKeyRule = false;
|
|
8278
8329
|
constructor(schema, errorMessage) {
|
|
8279
8330
|
super();
|
|
8280
8331
|
this.schema = schema;
|
|
8281
|
-
this.shouldAllowUnknown = false;
|
|
8282
|
-
this.allowedKeys = [];
|
|
8283
|
-
this.hasUnknownKeyRule = false;
|
|
8284
8332
|
this.addMutableRule(objectRule, errorMessage);
|
|
8285
8333
|
}
|
|
8286
8334
|
/**
|
|
@@ -8680,7 +8728,7 @@ function removeUndefinedValues(obj, visited = /* @__PURE__ */ new WeakMap()) {
|
|
|
8680
8728
|
}
|
|
8681
8729
|
|
|
8682
8730
|
//#endregion
|
|
8683
|
-
//#region ../
|
|
8731
|
+
//#region ../seal/src/validators/record-validator.ts
|
|
8684
8732
|
/**
|
|
8685
8733
|
* Record validator class - validates objects with dynamic keys and consistent value types
|
|
8686
8734
|
*
|
|
@@ -8696,6 +8744,7 @@ function removeUndefinedValues(obj, visited = /* @__PURE__ */ new WeakMap()) {
|
|
|
8696
8744
|
* ```
|
|
8697
8745
|
*/
|
|
8698
8746
|
var RecordValidator = class extends BaseValidator {
|
|
8747
|
+
valueValidator;
|
|
8699
8748
|
constructor(valueValidator, errorMessage) {
|
|
8700
8749
|
super();
|
|
8701
8750
|
this.valueValidator = valueValidator;
|
|
@@ -8781,7 +8830,7 @@ var RecordValidator = class extends BaseValidator {
|
|
|
8781
8830
|
};
|
|
8782
8831
|
|
|
8783
8832
|
//#endregion
|
|
8784
|
-
//#region ../
|
|
8833
|
+
//#region ../seal/src/validators/scalar-validator.ts
|
|
8785
8834
|
/**
|
|
8786
8835
|
* Scalar validator class
|
|
8787
8836
|
*
|
|
@@ -8940,7 +8989,7 @@ var ScalarValidator = class extends PrimitiveValidator {
|
|
|
8940
8989
|
};
|
|
8941
8990
|
|
|
8942
8991
|
//#endregion
|
|
8943
|
-
//#region ../
|
|
8992
|
+
//#region ../seal/src/validators/string-validator.ts
|
|
8944
8993
|
/**
|
|
8945
8994
|
* String validator class
|
|
8946
8995
|
*/
|
|
@@ -9378,7 +9427,7 @@ var StringValidator = class extends PrimitiveValidator {
|
|
|
9378
9427
|
};
|
|
9379
9428
|
|
|
9380
9429
|
//#endregion
|
|
9381
|
-
//#region ../
|
|
9430
|
+
//#region ../seal/src/validators/tuple-validator.ts
|
|
9382
9431
|
/**
|
|
9383
9432
|
* Tuple validator class - validates fixed-length arrays with position-specific types
|
|
9384
9433
|
*
|
|
@@ -9395,6 +9444,7 @@ var StringValidator = class extends PrimitiveValidator {
|
|
|
9395
9444
|
* ```
|
|
9396
9445
|
*/
|
|
9397
9446
|
var TupleValidator = class extends BaseValidator {
|
|
9447
|
+
validators;
|
|
9398
9448
|
constructor(validators, errorMessage) {
|
|
9399
9449
|
super();
|
|
9400
9450
|
this.validators = validators;
|
|
@@ -9502,7 +9552,7 @@ var TupleValidator = class extends BaseValidator {
|
|
|
9502
9552
|
};
|
|
9503
9553
|
|
|
9504
9554
|
//#endregion
|
|
9505
|
-
//#region ../
|
|
9555
|
+
//#region ../seal/src/validators/union-validator.ts
|
|
9506
9556
|
/**
|
|
9507
9557
|
* Union validator class - validates value against multiple validator types
|
|
9508
9558
|
*
|
|
@@ -9561,17 +9611,17 @@ var UnionValidator = class extends BaseValidator {
|
|
|
9561
9611
|
};
|
|
9562
9612
|
|
|
9563
9613
|
//#endregion
|
|
9564
|
-
//#region ../
|
|
9614
|
+
//#region ../seal/src/object.ts
|
|
9565
9615
|
/** Create an object schema without importing the complete `v` factory. */
|
|
9566
9616
|
const object = (schema, errorMessage) => new ObjectValidator(schema, errorMessage);
|
|
9567
9617
|
|
|
9568
9618
|
//#endregion
|
|
9569
|
-
//#region ../
|
|
9619
|
+
//#region ../seal/src/string.ts
|
|
9570
9620
|
/** Create a string schema without importing the complete `v` factory. */
|
|
9571
9621
|
const string = (errorMessage) => new StringValidator(errorMessage);
|
|
9572
9622
|
|
|
9573
9623
|
//#endregion
|
|
9574
|
-
//#region ../
|
|
9624
|
+
//#region ../seal/src/factory/validators.ts
|
|
9575
9625
|
/**
|
|
9576
9626
|
* Seal factory object - creates instances of validators
|
|
9577
9627
|
*
|
|
@@ -9675,7 +9725,7 @@ const v = {
|
|
|
9675
9725
|
};
|
|
9676
9726
|
|
|
9677
9727
|
//#endregion
|
|
9678
|
-
//#region ../
|
|
9728
|
+
//#region ../herald/src/drivers/rabbitmq/rabbitmq-channel.ts
|
|
9679
9729
|
/**
|
|
9680
9730
|
* RabbitMQ Channel Implementation
|
|
9681
9731
|
*
|
|
@@ -9684,12 +9734,15 @@ const v = {
|
|
|
9684
9734
|
* @template TPayload - The typed payload
|
|
9685
9735
|
*/
|
|
9686
9736
|
var RabbitMQChannel = class {
|
|
9737
|
+
name;
|
|
9738
|
+
options;
|
|
9739
|
+
amqpChannel;
|
|
9740
|
+
subscriptions = /* @__PURE__ */ new Map();
|
|
9741
|
+
asserted = false;
|
|
9687
9742
|
/**
|
|
9688
9743
|
* Create a new RabbitMQ channel
|
|
9689
9744
|
*/
|
|
9690
9745
|
constructor(name, amqpChannel, options) {
|
|
9691
|
-
this.subscriptions = /* @__PURE__ */ new Map();
|
|
9692
|
-
this.asserted = false;
|
|
9693
9746
|
this.name = name;
|
|
9694
9747
|
this.amqpChannel = amqpChannel;
|
|
9695
9748
|
this.options = options ?? {};
|
|
@@ -10040,8 +10093,12 @@ var RabbitMQChannel = class {
|
|
|
10040
10093
|
* RabbitMQ Subscription Implementation
|
|
10041
10094
|
*/
|
|
10042
10095
|
var RabbitMQSubscription = class {
|
|
10096
|
+
id;
|
|
10097
|
+
channel;
|
|
10098
|
+
consumerTag;
|
|
10099
|
+
amqpChannel;
|
|
10100
|
+
_isActive = true;
|
|
10043
10101
|
constructor(id, channel, consumerTag, amqpChannel) {
|
|
10044
|
-
this._isActive = true;
|
|
10045
10102
|
this.id = id;
|
|
10046
10103
|
this.channel = channel;
|
|
10047
10104
|
this.consumerTag = consumerTag;
|
|
@@ -10064,7 +10121,7 @@ var RabbitMQSubscription = class {
|
|
|
10064
10121
|
};
|
|
10065
10122
|
|
|
10066
10123
|
//#endregion
|
|
10067
|
-
//#region ../
|
|
10124
|
+
//#region ../herald/src/drivers/rabbitmq/rabbitmq-driver.ts
|
|
10068
10125
|
/**
|
|
10069
10126
|
* The single amqplib load, shared by every caller.
|
|
10070
10127
|
*
|
|
@@ -10135,19 +10192,20 @@ function loadAmqplibModule() {
|
|
|
10135
10192
|
* ```
|
|
10136
10193
|
*/
|
|
10137
10194
|
var RabbitMQDriver = class {
|
|
10195
|
+
name = "rabbitmq";
|
|
10196
|
+
consumers = [];
|
|
10197
|
+
options;
|
|
10198
|
+
events = new node_events.EventEmitter();
|
|
10199
|
+
channels = /* @__PURE__ */ new Map();
|
|
10200
|
+
connection = null;
|
|
10201
|
+
amqpChannel = null;
|
|
10202
|
+
_isConnected = false;
|
|
10138
10203
|
/**
|
|
10139
10204
|
* Create a new RabbitMQ driver
|
|
10140
10205
|
*
|
|
10141
10206
|
* @param options - RabbitMQ connection options
|
|
10142
10207
|
*/
|
|
10143
10208
|
constructor(options) {
|
|
10144
|
-
this.name = "rabbitmq";
|
|
10145
|
-
this.consumers = [];
|
|
10146
|
-
this.events = new node_events.EventEmitter();
|
|
10147
|
-
this.channels = /* @__PURE__ */ new Map();
|
|
10148
|
-
this.connection = null;
|
|
10149
|
-
this.amqpChannel = null;
|
|
10150
|
-
this._isConnected = false;
|
|
10151
10209
|
this.options = options;
|
|
10152
10210
|
}
|
|
10153
10211
|
/**
|
|
@@ -10359,7 +10417,7 @@ var RabbitMQDriver = class {
|
|
|
10359
10417
|
};
|
|
10360
10418
|
|
|
10361
10419
|
//#endregion
|
|
10362
|
-
//#region ../
|
|
10420
|
+
//#region ../herald/src/communicators/broker.ts
|
|
10363
10421
|
/**
|
|
10364
10422
|
* Broker - wrapper around a driver with metadata
|
|
10365
10423
|
*
|
|
@@ -10378,6 +10436,12 @@ var RabbitMQDriver = class {
|
|
|
10378
10436
|
* ```
|
|
10379
10437
|
*/
|
|
10380
10438
|
var Broker = class {
|
|
10439
|
+
/** Unique name identifying this broker */
|
|
10440
|
+
name;
|
|
10441
|
+
/** The underlying driver */
|
|
10442
|
+
driver;
|
|
10443
|
+
/** Whether this is the default broker */
|
|
10444
|
+
isDefault;
|
|
10381
10445
|
/**
|
|
10382
10446
|
* Create a new Broker
|
|
10383
10447
|
*
|
|
@@ -10461,11 +10525,12 @@ var Broker = class {
|
|
|
10461
10525
|
};
|
|
10462
10526
|
|
|
10463
10527
|
//#endregion
|
|
10464
|
-
//#region ../
|
|
10528
|
+
//#region ../herald/src/communicators/broker-registry.ts
|
|
10465
10529
|
/**
|
|
10466
10530
|
* Error thrown when a broker is not found
|
|
10467
10531
|
*/
|
|
10468
10532
|
var MissingBrokerError = class extends Error {
|
|
10533
|
+
brokerName;
|
|
10469
10534
|
constructor(message, brokerName) {
|
|
10470
10535
|
super(message);
|
|
10471
10536
|
this.name = "MissingBrokerError";
|
|
@@ -10500,10 +10565,9 @@ var MissingBrokerError = class extends Error {
|
|
|
10500
10565
|
* ```
|
|
10501
10566
|
*/
|
|
10502
10567
|
var BrokerRegistry = class {
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
}
|
|
10568
|
+
sources = /* @__PURE__ */ new Map();
|
|
10569
|
+
defaultSource;
|
|
10570
|
+
events = new node_events.EventEmitter();
|
|
10507
10571
|
/**
|
|
10508
10572
|
* Register a new broker
|
|
10509
10573
|
*
|
|
@@ -10660,7 +10724,7 @@ var BrokerRegistry = class {
|
|
|
10660
10724
|
const brokerRegistry = new BrokerRegistry();
|
|
10661
10725
|
|
|
10662
10726
|
//#endregion
|
|
10663
|
-
//#region ../
|
|
10727
|
+
//#region ../herald/src/utils/connect-to-broker.ts
|
|
10664
10728
|
/**
|
|
10665
10729
|
* Connect to a message broker and register it.
|
|
10666
10730
|
*
|
|
@@ -10722,7 +10786,7 @@ async function connectToBroker(options) {
|
|
|
10722
10786
|
switch (driverType) {
|
|
10723
10787
|
case "rabbitmq": {
|
|
10724
10788
|
const rabbitOptions = options;
|
|
10725
|
-
const { RabbitMQDriver } = await Promise.resolve().then(() => require("./rabbitmq-driver-
|
|
10789
|
+
const { RabbitMQDriver } = await Promise.resolve().then(() => require("./rabbitmq-driver-DsJYFQr3.cjs"));
|
|
10726
10790
|
driver = new RabbitMQDriver(rabbitOptions);
|
|
10727
10791
|
break;
|
|
10728
10792
|
}
|
|
@@ -10823,7 +10887,7 @@ async function subscribeConsumer(Consumer) {
|
|
|
10823
10887
|
}
|
|
10824
10888
|
|
|
10825
10889
|
//#endregion
|
|
10826
|
-
//#region ../
|
|
10890
|
+
//#region ../herald/src/decorators/consumable.ts
|
|
10827
10891
|
const pendingSubscribers = /* @__PURE__ */ new Set();
|
|
10828
10892
|
/**
|
|
10829
10893
|
* Register the consumer to the broker
|
|
@@ -10854,7 +10918,7 @@ brokerRegistry.on("connected", (broker) => {
|
|
|
10854
10918
|
});
|
|
10855
10919
|
|
|
10856
10920
|
//#endregion
|
|
10857
|
-
//#region ../
|
|
10921
|
+
//#region ../herald/src/message-managers/event-consumer.ts
|
|
10858
10922
|
/**
|
|
10859
10923
|
* This class is used to be part of the Herald Event Consumer Manager.
|
|
10860
10924
|
* It should be used to consume events from Either RabbitMQ or Kafka through Herald
|
|
@@ -10862,6 +10926,11 @@ brokerRegistry.on("connected", (broker) => {
|
|
|
10862
10926
|
* It's highly recommended using it instead of declaring manual channel namd and subscribing to event
|
|
10863
10927
|
*/
|
|
10864
10928
|
var EventConsumer = class {
|
|
10929
|
+
/**
|
|
10930
|
+
* Event name
|
|
10931
|
+
*/
|
|
10932
|
+
static eventName;
|
|
10933
|
+
static _consumerId;
|
|
10865
10934
|
static get consumerId() {
|
|
10866
10935
|
if (!this._consumerId) this._consumerId = (0, crypto.randomUUID)();
|
|
10867
10936
|
return this._consumerId;
|
|
@@ -10870,6 +10939,18 @@ var EventConsumer = class {
|
|
|
10870
10939
|
return this.constructor.eventName;
|
|
10871
10940
|
}
|
|
10872
10941
|
/**
|
|
10942
|
+
* Min version accepted to be consumed by this class
|
|
10943
|
+
*/
|
|
10944
|
+
static minVersion;
|
|
10945
|
+
/**
|
|
10946
|
+
* Max version accepted to be consumed by this class
|
|
10947
|
+
*/
|
|
10948
|
+
static maxVersion;
|
|
10949
|
+
/**
|
|
10950
|
+
* Payload validation to auto reject the received event before accessing it in the handle method
|
|
10951
|
+
*/
|
|
10952
|
+
schema;
|
|
10953
|
+
/**
|
|
10873
10954
|
* Determine whether this is accepted version to be used by this consumer
|
|
10874
10955
|
*/
|
|
10875
10956
|
static isAcceptedVersion(version) {
|
|
@@ -10890,13 +10971,8 @@ var EventConsumer = class {
|
|
|
10890
10971
|
*/
|
|
10891
10972
|
function defineConsumer(eventName, options) {
|
|
10892
10973
|
const Class = class AnnouncedConsumer extends EventConsumer {
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
this.schema = options.schema;
|
|
10896
|
-
}
|
|
10897
|
-
static {
|
|
10898
|
-
this.eventName = eventName;
|
|
10899
|
-
}
|
|
10974
|
+
static eventName = eventName;
|
|
10975
|
+
schema = options.schema;
|
|
10900
10976
|
async handle(payload, event) {
|
|
10901
10977
|
if (options.validate) {
|
|
10902
10978
|
const result = await options.validate(payload);
|
|
@@ -10910,8 +10986,25 @@ function defineConsumer(eventName, options) {
|
|
|
10910
10986
|
}
|
|
10911
10987
|
|
|
10912
10988
|
//#endregion
|
|
10913
|
-
//#region ../
|
|
10989
|
+
//#region ../herald/src/message-managers/event-message.ts
|
|
10914
10990
|
var EventMessage = class {
|
|
10991
|
+
data;
|
|
10992
|
+
/**
|
|
10993
|
+
* Event version
|
|
10994
|
+
*/
|
|
10995
|
+
version;
|
|
10996
|
+
/**
|
|
10997
|
+
* Additional metadata (if any)
|
|
10998
|
+
*/
|
|
10999
|
+
metadata;
|
|
11000
|
+
/**
|
|
11001
|
+
* Event Message id
|
|
11002
|
+
*/
|
|
11003
|
+
messageId;
|
|
11004
|
+
/**
|
|
11005
|
+
* Schema of payload that will be used to determine whether this event should be published
|
|
11006
|
+
*/
|
|
11007
|
+
schema;
|
|
10915
11008
|
/**
|
|
10916
11009
|
* Data that will be sent with the event (Payload)
|
|
10917
11010
|
*/
|
|
@@ -10961,10 +11054,10 @@ var EventMessage = class {
|
|
|
10961
11054
|
*/
|
|
10962
11055
|
function defineEvent(eventName, options = {}) {
|
|
10963
11056
|
return class AnnouncedEvent extends EventMessage {
|
|
11057
|
+
eventName = eventName;
|
|
11058
|
+
schema = options.schema;
|
|
10964
11059
|
constructor(data) {
|
|
10965
11060
|
super(data);
|
|
10966
|
-
this.eventName = eventName;
|
|
10967
|
-
this.schema = options.schema;
|
|
10968
11061
|
}
|
|
10969
11062
|
toJSON() {
|
|
10970
11063
|
if (!options.toJSON) return this.data;
|
|
@@ -10974,7 +11067,7 @@ function defineEvent(eventName, options = {}) {
|
|
|
10974
11067
|
}
|
|
10975
11068
|
|
|
10976
11069
|
//#endregion
|
|
10977
|
-
//#region ../
|
|
11070
|
+
//#region ../herald/src/use-case-broadcast.ts
|
|
10978
11071
|
/**
|
|
10979
11072
|
* Channel adapter that publishes use-case broadcast events onto a herald broker.
|
|
10980
11073
|
*
|
|
@@ -11007,7 +11100,6 @@ exports.EventMessage = EventMessage;
|
|
|
11007
11100
|
exports.MissingBrokerError = MissingBrokerError;
|
|
11008
11101
|
exports.RabbitMQChannel = RabbitMQChannel;
|
|
11009
11102
|
exports.RabbitMQDriver = RabbitMQDriver;
|
|
11010
|
-
exports.RabbitMQDriver$1 = RabbitMQDriver;
|
|
11011
11103
|
exports.brokerRegistry = brokerRegistry;
|
|
11012
11104
|
exports.connectToBroker = connectToBroker;
|
|
11013
11105
|
exports.defineConsumer = defineConsumer;
|
|
@@ -11018,4 +11110,4 @@ exports.heraldChannel = heraldChannel;
|
|
|
11018
11110
|
exports.pendingSubscribers = pendingSubscribers;
|
|
11019
11111
|
exports.publishEvent = publishEvent;
|
|
11020
11112
|
exports.subscribeConsumer = subscribeConsumer;
|
|
11021
|
-
//# sourceMappingURL=
|
|
11113
|
+
//# sourceMappingURL=src-DDFfLj-d.cjs.map
|