@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Round `value` to the given number of decimal places (banker's-style
|
|
4
4
|
* `Math.round`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"round.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"round.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/number/round.mjs"],"sourcesContent":["//#region ../reinforcements/src/number/round.ts\n/**\n* Round `value` to the given number of decimal places (banker's-style\n* `Math.round`).\n*\n* @example\n* round(1.235, 2); // 1.24\n* round(1.5); // 2\n*/\nfunction round(value, precision = 2) {\n\tconst multiplier = Math.pow(10, precision || 0);\n\treturn Math.round(value * multiplier) / multiplier;\n}\n\n//#endregion\nexport { round as default };\n//# sourceMappingURL=round.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,MAAM,OAAO,YAAY,GAAG;CACpC,MAAM,aAAa,KAAK,IAAI,IAAI,aAAa,CAAC;CAC9C,OAAO,KAAK,MAAM,QAAQ,UAAU,IAAI;AACzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { omit } from "./omit.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use {@link omit} instead. Will be removed in a future major release.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"except.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"except.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/except.mjs"],"sourcesContent":["import omit from \"./omit.mjs\";\n\n//#region ../reinforcements/src/object/except.ts\n/**\n* @deprecated Use {@link omit} instead. Will be removed in a future major release.\n*/\nfunction except(object, keys) {\n\treturn omit(object, keys);\n}\n\n//#endregion\nexport { except as default };\n//# sourceMappingURL=except.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AAMA,SAAS,OAAO,QAAQ,MAAM;CAC7B,OAAO,KAAK,QAAQ,IAAI;AACzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs
|
|
2
2
|
function get(object, path, defaultValue) {
|
|
3
3
|
if (object === null || object === void 0) return defaultValue;
|
|
4
4
|
if (path === "") return defaultValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"get.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/get.mjs"],"sourcesContent":["//#region ../reinforcements/src/object/get.ts\nfunction get(object, path, defaultValue) {\n\tif (object === null || object === void 0) return defaultValue;\n\tif (path === \"\") return defaultValue;\n\tconst segments = path.split(\".\");\n\tlet current = object;\n\tfor (const key of segments) {\n\t\tif (current === null || current === void 0) return defaultValue;\n\t\tif (typeof current !== \"object\") return defaultValue;\n\t\tif (!Object.prototype.hasOwnProperty.call(current, key)) return defaultValue;\n\t\tcurrent = current[key];\n\t}\n\treturn current === void 0 ? defaultValue : current;\n}\n\n//#endregion\nexport { get as default };\n//# sourceMappingURL=get.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,SAAS,IAAI,QAAQ,MAAM,cAAc;CACxC,IAAI,WAAW,QAAQ,WAAW,KAAK,GAAG,OAAO;CACjD,IAAI,SAAS,IAAI,OAAO;CACxB,MAAM,WAAW,KAAK,MAAM,GAAG;CAC/B,IAAI,UAAU;CACd,KAAK,MAAM,OAAO,UAAU;EAC3B,IAAI,YAAY,QAAQ,YAAY,KAAK,GAAG,OAAO;EACnD,IAAI,OAAO,YAAY,UAAU,OAAO;EACxC,IAAI,CAAC,OAAO,UAAU,eAAe,KAAK,SAAS,GAAG,GAAG,OAAO;EAChE,UAAU,QAAQ;CACnB;CACA,OAAO,YAAY,KAAK,IAAI,eAAe;AAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { unset } from "./unset.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs
|
|
4
4
|
function omit(object, keysOrPredicate) {
|
|
5
5
|
if (!object || typeof object !== "object" || Array.isArray(object)) return object;
|
|
6
6
|
if (typeof keysOrPredicate === "function") return omitByPredicate(object, keysOrPredicate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omit.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"omit.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/omit.mjs"],"sourcesContent":["import unset from \"./unset.mjs\";\n\n//#region ../reinforcements/src/object/omit.ts\nfunction omit(object, keysOrPredicate) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tif (typeof keysOrPredicate === \"function\") return omitByPredicate(object, keysOrPredicate);\n\treturn unset({ ...object }, keysOrPredicate);\n}\nfunction omitByPredicate(object, predicate) {\n\tconst result = {};\n\tfor (const key of Object.keys(object)) if (!predicate(object[key], key)) result[key] = object[key];\n\treturn result;\n}\n\n//#endregion\nexport { omit as default };\n//# sourceMappingURL=omit.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,KAAK,QAAQ,iBAAiB;CACtC,IAAI,CAAC,UAAU,OAAO,WAAW,YAAY,MAAM,QAAQ,MAAM,GAAG,OAAO;CAC3E,IAAI,OAAO,oBAAoB,YAAY,OAAO,gBAAgB,QAAQ,eAAe;CACzF,OAAO,MAAM,EAAE,GAAG,OAAO,GAAG,eAAe;AAC5C;AACA,SAAS,gBAAgB,QAAQ,WAAW;CAC3C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,OAAO,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC,UAAU,OAAO,MAAM,GAAG,GAAG,OAAO,OAAO,OAAO;CAC9F,OAAO;AACR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { get } from "./get.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Remove one or more dot-notation paths from `object`. Mutates and
|
|
6
6
|
* returns the input.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unset.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"unset.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/object/unset.mjs"],"sourcesContent":["import get from \"./get.mjs\";\n\n//#region ../reinforcements/src/object/unset.ts\n/**\n* Remove one or more dot-notation paths from `object`. Mutates and\n* returns the input.\n*\n* @example\n* unset({ a: 1, b: 2 }, [\"a\"]); // { b: 2 }\n* unset({ a: { b: 1, c: 2 } }, [\"a.b\"]); // { a: { c: 2 } }\n*/\nfunction unset(object, keys) {\n\tif (!object || typeof object !== \"object\" || Array.isArray(object)) return object;\n\tfor (const key of keys) deletePath(object, key);\n\treturn object;\n}\nfunction deletePath(object, path) {\n\tconst segments = path.split(\".\");\n\tif (segments.length === 1) {\n\t\tdelete object[path];\n\t\treturn;\n\t}\n\tconst lastKey = segments.pop();\n\tconst parent = get(object, segments.join(\".\"));\n\tif (parent && typeof parent === \"object\") delete parent[lastKey];\n}\n\n//#endregion\nexport { unset as default };\n//# sourceMappingURL=unset.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAWA,SAAS,MAAM,QAAQ,MAAM;CAC5B,IAAI,CAAC,UAAU,OAAO,WAAW,YAAY,MAAM,QAAQ,MAAM,GAAG,OAAO;CAC3E,KAAK,MAAM,OAAO,MAAM,WAAW,QAAQ,GAAG;CAC9C,OAAO;AACR;AACA,SAAS,WAAW,QAAQ,MAAM;CACjC,MAAM,WAAW,KAAK,MAAM,GAAG;CAC/B,IAAI,SAAS,WAAW,GAAG;EAC1B,OAAO,OAAO;EACd;CACD;CACA,MAAM,UAAU,SAAS,IAAI;CAC7B,MAAM,SAAS,IAAI,QAAQ,SAAS,KAAK,GAAG,CAAC;CAC7C,IAAI,UAAU,OAAO,WAAW,UAAU,OAAO,OAAO;AACzD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ucfirst } from "./ucfirst.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs
|
|
4
4
|
const WHITESPACE_RUN = /\s+/;
|
|
5
5
|
const WHITESPACE_GROUP = /(\s+)/;
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capitalize.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"capitalize.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/capitalize.mjs"],"sourcesContent":["import ucfirst from \"./ucfirst.mjs\";\n\n//#region ../reinforcements/src/string/capitalize.ts\nconst WHITESPACE_RUN = /\\s+/;\nconst WHITESPACE_GROUP = /(\\s+)/;\n/**\n* Capitalize the first letter of each whitespace-separated word.\n*\n* @example\n* capitalize(\"hello world\"); // \"Hello World\"\n*/\nfunction capitalize(string) {\n\tif (!string) return \"\";\n\treturn string.split(WHITESPACE_GROUP).map((part) => WHITESPACE_RUN.test(part) ? part : ucfirst(part)).join(\"\");\n}\n\n//#endregion\nexport { capitalize as default };\n//# sourceMappingURL=capitalize.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;AAGA,MAAM,iBAAiB;AACvB,MAAM,mBAAmB;;;;;;;AAOzB,SAAS,WAAW,QAAQ;CAC3B,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,OAAO,MAAM,gBAAgB,CAAC,CAAC,KAAK,SAAS,eAAe,KAAK,IAAI,IAAI,OAAO,QAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE;AAC9G"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { escapeRegex } from "../utils/escapeRegex.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Remove the given needle from the start of string
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ltrim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"ltrim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ltrim.mjs"],"sourcesContent":["import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/ltrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction ltrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = \"^\" + escapeRegex(needle) + \"+\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { ltrim as default };\n//# sourceMappingURL=ltrim.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,MAAM,QAAQ,SAAS,KAAK;CACpC,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,UAAU,MAAM,YAAY,MAAM,IAAI,KAAK,QAAQ,IAAI,OAAO,SAAS,GAAG;CAChF,OAAO,OAAO,QAAQ,OAAO,EAAE;AAChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Cut string for the given length and append ... if string is larger than the given length
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readMoreChars.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"readMoreChars.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/readMoreChars.mjs"],"sourcesContent":["//#region ../reinforcements/src/string/readMoreChars.ts\n/**\n* Cut string for the given length and append ... if string is larger than the given length\n*\n*/\nfunction readMoreChars(string, length, readMoreDots = \"...\") {\n\tif (!string) return \"\";\n\tif (string.length <= length) return string;\n\treturn string.substring(0, length) + readMoreDots;\n}\n\n//#endregion\nexport { readMoreChars as default };\n//# sourceMappingURL=readMoreChars.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,SAAS,cAAc,QAAQ,QAAQ,eAAe,OAAO;CAC5D,IAAI,CAAC,QAAQ,OAAO;CACpB,IAAI,OAAO,UAAU,QAAQ,OAAO;CACpC,OAAO,OAAO,UAAU,GAAG,MAAM,IAAI;AACtC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { escapeRegex } from "../utils/escapeRegex.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Remove the given needle from the start of string
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rtrim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"rtrim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/rtrim.mjs"],"sourcesContent":["import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/rtrim.ts\n/**\n* Remove the given needle from the start of string\n*\n* @param string needle\n* @return string\n*/\nfunction rtrim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tconst pattern = escapeRegex(needle) + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { rtrim as default };\n//# sourceMappingURL=rtrim.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,MAAM,QAAQ,SAAS,KAAK;CACpC,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,UAAU,YAAY,MAAM,IAAI,MAAM,QAAQ,IAAI,OAAO,SAAS,GAAG;CAC3E,OAAO,OAAO,QAAQ,OAAO,EAAE;AAChC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { words } from "./words.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string to camelCase.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toCamelCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"toCamelCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toCamelCase.mjs"],"sourcesContent":["import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toCamelCase.ts\n/**\n* Convert a string to camelCase.\n*\n* @example\n* toCamelCase(\"hello-world\"); // \"helloWorld\"\n* toCamelCase(\"XMLHttpRequest\"); // \"xmlHttpRequest\"\n*/\nfunction toCamelCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(toSegment).join(\"\");\n}\nfunction toSegment(word, index) {\n\tif (index === 0) return word.toLowerCase();\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toCamelCase as default };\n//# sourceMappingURL=toCamelCase.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,SAAS,YAAY,QAAQ;CAC5B,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,MAAM,MAAM,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,KAAK,EAAE;AAC5C;AACA,SAAS,UAAU,MAAM,OAAO;CAC/B,IAAI,UAAU,GAAG,OAAO,KAAK,YAAY;CACzC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY;AACjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toSnakeCase } from "./toSnakeCase.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string to kebab-case.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toKebabCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"toKebabCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toKebabCase.mjs"],"sourcesContent":["import toSnakeCase from \"./toSnakeCase.mjs\";\n\n//#region ../reinforcements/src/string/toKebabCase.ts\n/**\n* Convert a string to kebab-case.\n*\n* @example\n* toKebabCase(\"HelloWorld\"); // \"hello-world\"\n* toKebabCase(\"AIAgent\"); // \"ai-agent\"\n*/\nfunction toKebabCase(string, lowerAll = true) {\n\treturn toSnakeCase(string, \"-\", lowerAll);\n}\n\n//#endregion\nexport { toKebabCase as default };\n//# sourceMappingURL=toKebabCase.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,SAAS,YAAY,QAAQ,WAAW,MAAM;CAC7C,OAAO,YAAY,QAAQ,KAAK,QAAQ;AACzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { words } from "./words.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string to snake_case (or any underscore-style with a
|
|
6
6
|
* custom separator).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSnakeCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"toSnakeCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toSnakeCase.mjs"],"sourcesContent":["import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toSnakeCase.ts\n/**\n* Convert a string to snake_case (or any underscore-style with a\n* custom separator).\n*\n* @example\n* toSnakeCase(\"HelloWorld\"); // \"hello_world\"\n* toSnakeCase(\"AIAgent\"); // \"ai_agent\"\n*/\nfunction toSnakeCase(string, separator = \"_\", lowerAll = true) {\n\tif (!string) return \"\";\n\tconst tokens = words(string);\n\tif (!lowerAll) return tokens.join(separator);\n\treturn tokens.map((word) => word.toLowerCase()).join(separator);\n}\n\n//#endregion\nexport { toSnakeCase as default };\n//# sourceMappingURL=toSnakeCase.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAWA,SAAS,YAAY,QAAQ,YAAY,KAAK,WAAW,MAAM;CAC9D,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,SAAS,MAAM,MAAM;CAC3B,IAAI,CAAC,UAAU,OAAO,OAAO,KAAK,SAAS;CAC3C,OAAO,OAAO,KAAK,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,SAAS;AAC/D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { words } from "./words.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string to StudlyCase (PascalCase).
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toStudlyCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"toStudlyCase.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/toStudlyCase.mjs"],"sourcesContent":["import words from \"./words.mjs\";\n\n//#region ../reinforcements/src/string/toStudlyCase.ts\n/**\n* Convert a string to StudlyCase (PascalCase).\n*\n* @example\n* toStudlyCase(\"hello-world\"); // \"HelloWorld\"\n* toStudlyCase(\"ai_agent\"); // \"AiAgent\"\n*/\nfunction toStudlyCase(string) {\n\tif (!string) return \"\";\n\treturn words(string).map(capitalize).join(\"\");\n}\nfunction capitalize(word) {\n\treturn word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n}\n\n//#endregion\nexport { toStudlyCase as default };\n//# sourceMappingURL=toStudlyCase.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,SAAS,aAAa,QAAQ;CAC7B,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,MAAM,MAAM,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,KAAK,EAAE;AAC7C;AACA,SAAS,WAAW,MAAM;CACzB,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY;AACjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { escapeRegex } from "../utils/escapeRegex.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
3
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Remove the given needle from the start and the end of string
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"trim.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/trim.mjs"],"sourcesContent":["import escapeRegex from \"../utils/escapeRegex.mjs\";\n\n//#region ../reinforcements/src/string/trim.ts\n/**\n* Remove the given needle from the start and the end of string\n*\n* @param string $needle\n* @return string\n*/\nfunction trim(string, needle = \" \") {\n\tif (!string) return \"\";\n\tif (needle === \" \") return string.replace(/^\\s+|\\s+$/g, \"\");\n\tneedle = escapeRegex(needle);\n\tconst pattern = \"^\" + needle + \"+|\" + needle + \"+$\", regex = new RegExp(pattern, \"g\");\n\treturn string.replace(regex, \"\");\n}\n\n//#endregion\nexport { trim as default };\n//# sourceMappingURL=trim.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,KAAK,QAAQ,SAAS,KAAK;CACnC,IAAI,CAAC,QAAQ,OAAO;CACpB,IAAI,WAAW,KAAK,OAAO,OAAO,QAAQ,cAAc,EAAE;CAC1D,SAAS,YAAY,MAAM;CAC3B,MAAM,UAAU,MAAM,SAAS,OAAO,SAAS,MAAM,QAAQ,IAAI,OAAO,SAAS,GAAG;CACpF,OAAO,OAAO,QAAQ,OAAO,EAAE;AAChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Uppercase the first character of `string`.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ucfirst.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"ucfirst.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/ucfirst.mjs"],"sourcesContent":["//#region ../reinforcements/src/string/ucfirst.ts\n/**\n* Uppercase the first character of `string`.\n*\n* @example\n* ucfirst(\"hello\"); // \"Hello\"\n*/\nfunction ucfirst(string) {\n\tif (!string) return \"\";\n\treturn string.charAt(0).toUpperCase() + string.slice(1);\n}\n\n//#endregion\nexport { ucfirst as default };\n//# sourceMappingURL=ucfirst.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,SAAS,QAAQ,QAAQ;CACxB,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,OAAO,MAAM,CAAC;AACvD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs
|
|
2
2
|
const SEPARATOR_PATTERN = /[-_./\\\s]+/g;
|
|
3
3
|
const ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;
|
|
4
4
|
const CAMEL_BOUNDARY = /([a-z\d])([A-Z])/g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"words.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"words.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/string/words.mjs"],"sourcesContent":["//#region ../reinforcements/src/string/words.ts\nconst SEPARATOR_PATTERN = /[-_./\\\\\\s]+/g;\nconst ACRONYM_BOUNDARY = /([A-Z]+)([A-Z][a-z])/g;\nconst CAMEL_BOUNDARY = /([a-z\\d])([A-Z])/g;\nconst WHITESPACE_RUN = /\\s+/;\n/**\n* Split a string into its semantic word tokens. Handles camelCase,\n* PascalCase, snake_case, kebab-case, dot.case, slash/separated and\n* whitespace, and correctly preserves acronym runs.\n*\n* @example\n* words(\"XMLHttpRequest\"); // [\"XML\", \"Http\", \"Request\"]\n* words(\"hello_world\"); // [\"hello\", \"world\"]\n* words(\"AIAgent\"); // [\"AI\", \"Agent\"]\n*/\nfunction words(input) {\n\tif (!input) return [];\n\tconst normalised = input.replace(SEPARATOR_PATTERN, \" \").replace(ACRONYM_BOUNDARY, \"$1 $2\").replace(CAMEL_BOUNDARY, \"$1 $2\").trim();\n\tif (!normalised) return [];\n\treturn normalised.split(WHITESPACE_RUN).filter(Boolean);\n}\n\n//#endregion\nexport { words as default };\n//# sourceMappingURL=words.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;;;;;;;;;;;AAWvB,SAAS,MAAM,OAAO;CACrB,IAAI,CAAC,OAAO,OAAO,CAAC;CACpB,MAAM,aAAa,MAAM,QAAQ,mBAAmB,GAAG,CAAC,CAAC,QAAQ,kBAAkB,OAAO,CAAC,CAAC,QAAQ,gBAAgB,OAAO,CAAC,CAAC,KAAK;CAClI,IAAI,CAAC,YAAY,OAAO,CAAC;CACzB,OAAO,WAAW,MAAM,cAAc,CAAC,CAAC,OAAO,OAAO;AACvD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Escape the regex of the given string
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escapeRegex.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"escapeRegex.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/escapeRegex.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/escapeRegex.ts\n/**\n* Escape the regex of the given string\n*/\nfunction escapeRegex(string) {\n\treturn string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n//#endregion\nexport { escapeRegex as default };\n//# sourceMappingURL=escapeRegex.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,YAAY,QAAQ;CAC5B,OAAO,OAAO,QAAQ,uBAAuB,MAAM;AACpD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs
|
|
2
2
|
const LAZY = Symbol("lazy");
|
|
3
3
|
/**
|
|
4
4
|
* Wrap a value-producing function as a lazy reference. The producer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"lazy.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/lazy.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/lazy.ts\nconst LAZY = Symbol(\"lazy\");\n/**\n* Wrap a value-producing function as a lazy reference. The producer\n* isn't invoked until `resolve()` is called; subsequent calls return the\n* same cached value.\n*\n* Useful for deferring expensive computations and for breaking circular\n* module dependencies — JavaScript closures capture variable bindings,\n* not values, so a `lazy(() => x)` callsite remains valid even when `x`\n* isn't yet defined at the moment the wrapper is created, as long as\n* it's defined by the time `.resolve()` runs.\n*\n* @example\n* const greeting = lazy(() => expensiveComputation());\n*\n* greeting.resolve(); // computes, caches, returns\n* greeting.resolve(); // returns cached value, no recomputation\n*/\nfunction lazy(producer) {\n\tlet isResolved = false;\n\tlet value;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!isResolved) {\n\t\t\t\tvalue = producer();\n\t\t\t\tisResolved = true;\n\t\t\t}\n\t\t\treturn value;\n\t\t},\n\t\treset() {\n\t\t\tisResolved = false;\n\t\t\tvalue = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn isResolved;\n\t\t},\n\t\tpeek() {\n\t\t\treturn isResolved ? value : void 0;\n\t\t}\n\t};\n}\n/**\n* Async variant of {@link lazy}: the producer returns a `Promise<T>`\n* which is cached after first invocation.\n*\n* @example\n* const user = lazy.async(() => fetchUser());\n*\n* await user.resolve(); // fetches\n* await user.resolve(); // returns same promise, no refetch\n*/\nlazy.async = function lazyAsync(producer) {\n\tlet started = false;\n\tlet promise;\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve() {\n\t\t\tif (!started) {\n\t\t\t\tpromise = producer();\n\t\t\t\tstarted = true;\n\t\t\t}\n\t\t\treturn promise;\n\t\t},\n\t\treset() {\n\t\t\tstarted = false;\n\t\t\tpromise = void 0;\n\t\t},\n\t\tisResolved() {\n\t\t\treturn started;\n\t\t},\n\t\tpeek() {\n\t\t\treturn started ? promise : void 0;\n\t\t}\n\t};\n};\n/**\n* Build a pre-resolved lazy reference. Useful for tests and for API\n* symmetry where a `Lazy<T>` is expected.\n*\n* @example\n* const ref = lazy.from(42);\n*\n* ref.resolve(); // 42\n* ref.isResolved(); // true\n*/\nlazy.from = function lazyFrom(value) {\n\treturn {\n\t\t[LAZY]: true,\n\t\tresolve: () => value,\n\t\treset() {},\n\t\tisResolved: () => true,\n\t\tpeek: () => value\n\t};\n};\n/**\n* Type guard that returns `true` when `value` is a `Lazy<T>` or\n* `LazyAsync<T>` produced by `lazy()` / `lazy.async()`.\n*\n* @example\n* if (isLazy(value)) {\n* value.resolve();\n* }\n*/\nfunction isLazy(value) {\n\treturn value?.[LAZY] === true;\n}\n\n//#endregion\nexport { lazy as default, isLazy };\n//# sourceMappingURL=lazy.mjs.map"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,OAAO,OAAO,MAAM;;;;;;;;;;;;;;;;;;AAkB1B,SAAS,KAAK,UAAU;CACvB,IAAI,aAAa;CACjB,IAAI;CACJ,OAAO;GACL,OAAO;EACR,UAAU;GACT,IAAI,CAAC,YAAY;IAChB,QAAQ,SAAS;IACjB,aAAa;GACd;GACA,OAAO;EACR;EACA,QAAQ;GACP,aAAa;GACb,QAAQ,KAAK;EACd;EACA,aAAa;GACZ,OAAO;EACR;EACA,OAAO;GACN,OAAO,aAAa,QAAQ,KAAK;EAClC;CACD;AACD;;;;;;;;;;;AAWA,KAAK,QAAQ,SAAS,UAAU,UAAU;CACzC,IAAI,UAAU;CACd,IAAI;CACJ,OAAO;GACL,OAAO;EACR,UAAU;GACT,IAAI,CAAC,SAAS;IACb,UAAU,SAAS;IACnB,UAAU;GACX;GACA,OAAO;EACR;EACA,QAAQ;GACP,UAAU;GACV,UAAU,KAAK;EAChB;EACA,aAAa;GACZ,OAAO;EACR;EACA,OAAO;GACN,OAAO,UAAU,UAAU,KAAK;EACjC;CACD;AACD;;;;;;;;;;;AAWA,KAAK,OAAO,SAAS,SAAS,OAAO;CACpC,OAAO;GACL,OAAO;EACR,eAAe;EACf,QAAQ,CAAC;EACT,kBAAkB;EAClB,YAAY;CACb;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Run `sideEffect` against `value`, then return `value` unchanged.
|
|
4
4
|
* Useful for inserting logging / instrumentation into a pipeline.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tap.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.
|
|
1
|
+
{"version":3,"file":"tap.mjs","names":[],"sources":["../../../../../../../../../../../../../../node_modules/.pnpm/@mongez+reinforcements@4.0.2/node_modules/@mongez/reinforcements/esm/utils/tap.mjs"],"sourcesContent":["//#region ../reinforcements/src/utils/tap.ts\n/**\n* Run `sideEffect` against `value`, then return `value` unchanged.\n* Useful for inserting logging / instrumentation into a pipeline.\n*\n* @example\n* pipe(2, n => n + 1, tap.with(console.log), n => n * 10);\n* // logs 3, returns 30\n*/\nfunction tap(value, sideEffect) {\n\tsideEffect(value);\n\treturn value;\n}\n/**\n* Curried form: `tap.with(fn)` returns a pipeline-friendly\n* `(value) => value` that runs the side effect.\n*/\ntap.with = function tapWith(sideEffect) {\n\treturn (value) => {\n\t\tsideEffect(value);\n\t\treturn value;\n\t};\n};\n\n//#endregion\nexport { tap as default };\n//# sourceMappingURL=tap.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,IAAI,OAAO,YAAY;CAC/B,WAAW,KAAK;CAChB,OAAO;AACR;;;;;AAKA,IAAI,OAAO,SAAS,QAAQ,YAAY;CACvC,QAAQ,UAAU;EACjB,WAAW,KAAK;EAChB,OAAO;CACR;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../node_modules/.pnpm/@mongez+supportive-is@2.1.
|
|
1
|
+
//#region ../node_modules/.pnpm/@mongez+supportive-is@2.1.5/node_modules/@mongez/supportive-is/esm/index.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Determine whether the given value is a number whatever if its data type is String or Number
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/@mongez+supportive-is@2.1.4/node_modules/@mongez/supportive-is/esm/index.mjs"],"sourcesContent":["//#region ../supportive-is/src/index.ts\n/**\n* Determine whether the given value is a number whatever if its data type is String or Number\n*/\nfunction isNumeric(value) {\n\treturn /^[+-]?\\d+(\\.\\d+)?([Ee][+-]?\\d+)?$/.test(String(value));\n}\n/**\n* Check if the given value is int\n*/\nconst isInt = (value) => typeof value === \"number\" && Number.isInteger(value);\n/**\n* Check if the given value is float\n*/\nconst isFloat = (value) => typeof value === \"number\" && Number.isFinite(value) && /^-?\\d+\\.\\d+$/.test(String(value));\n/**\n* Check if the given value is a regex\n*/\nconst isRegex = (value) => Boolean(value) && value.constructor?.name === \"RegExp\";\n/**\n* Check if the given value is an object\n*/\nconst isObject = (value) => Boolean(value) && typeof value === \"object\";\n/**\n* Check if the given value is a plain object\n*/\nconst isPlainObject = (value) => {\n\tif (!value || typeof value !== \"object\") return false;\n\tif (Object.getPrototypeOf(value) === null) return true;\n\treturn value.constructor?.name === \"Object\";\n};\n/**\n* Check if the given value is validId\n*/\nconst isValidId = (value) => Boolean(value && /^[A-Za-z][\\w\\-:.]*$/.test(String(value)));\n/**\n* Check if the given value is a form element\n*/\nconst isFormElement = (value) => typeof HTMLFormElement === \"undefined\" ? false : value instanceof HTMLFormElement;\n/**\n* Check if the given value is a form data\n*/\nconst isFormData = (value) => value instanceof FormData;\n/**\n* Check if the given value is iterable\n*/\nconst isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === \"function\";\n/**\n* Check if the given value is a scalar value\n*/\nconst isScalar = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"symbol\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a string\n*/\nconst isString = (value) => typeof value === \"string\";\n/**\n* Check if the given value is a pr value\n*/\nconst isPrimitive = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a promise\n*/\nconst isPromise = (value) => Boolean(value) && value instanceof Promise;\n/**\n* Check if the given value is a date\n*/\nconst isDate = (value) => Boolean(value) && typeof value === \"object\" && value instanceof Date;\n/**\n* Check if the given value is a generator\n*/\nconst isGenerator = (value) => Boolean(value) && typeof value === \"object\" && typeof value.next === \"function\" && typeof value[Symbol.iterator] === \"function\" && value[Symbol.iterator]() === value;\n/**\n* Check if the given value is empty\n* Zero does not considered empty\n* Empty object is considered empty\n* Empty array is considered empty\n*/\nconst isEmpty = (value) => {\n\tif ([\n\t\t0,\n\t\ttrue,\n\t\tfalse\n\t].includes(value)) return false;\n\tif ([\n\t\t\"\",\n\t\tnull,\n\t\tvoid 0\n\t].includes(value)) return true;\n\tif (typeof value === \"number\" && Number.isNaN(value)) return false;\n\tif (value instanceof Date) return false;\n\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\tif (typeof value === \"object\" && !Array.isArray(value) && typeof value[Symbol.iterator] !== \"function\") return Object.keys(value).length === 0;\n\tif (isIterable(value)) return value.length === 0;\n\tif (isNumeric(value)) return false;\n\treturn true;\n};\n/**\n* Check if the given value is a valid json\n*/\nconst isJson = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\tif (![\"[\", \"{\"].includes(value?.[0])) return false;\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is valid url\n*/\nconst isUrl = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\ttry {\n\t\tconst url = new URL(value);\n\t\tif (![\"http:\", \"https:\"].includes(url.protocol)) return false;\n\t\tconst hostname = url.hostname;\n\t\tif (!hostname.includes(\".\")) return false;\n\t\tif (hostname.split(\".\").some((label) => label.length === 0)) return false;\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is a valid email\n*/\nconst isEmail = (value) => typeof value === \"string\" && /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(value);\n/**\n* Check if current user is opening from mobile\n*/\nconst isMobile = {\n\t/**\n\t* Determine whether the current visitor is opening from an Android device\n\t*/\n\tandroid: () => navigator.userAgent.match(/Android/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ios device\n\t*/\n\tios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an Iphone\n\t*/\n\tiphone: () => navigator.userAgent.match(/iPhone/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipad\n\t*/\n\tipad: () => navigator.userAgent.match(/iPad/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipod\n\t*/\n\tipod: () => navigator.userAgent.match(/iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an windows mobile\n\t*/\n\twindows: () => navigator.userAgent.match(/IEMobile/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from mobile whatever its type\n\t*/\n\tany: () => isMobile.android() || isMobile.ios() || isMobile.windows()\n};\n/**\n* Determine if current user is opening from macOS\n*/\nconst isMac = () => navigator.userAgent.match(/mac/i) !== null;\n/**\n* Check if current browser is the given name\n*/\nconst isBrowser = (browser) => {\n\treturn {\n\t\tchrome: isChrome(),\n\t\tfirefox: isFirefox(),\n\t\topera: isOpera(),\n\t\tedge: isEdge(),\n\t\tie: isIE(),\n\t\tsafari: isSafari()\n\t}[browser.toLowerCase()] === true;\n};\n/**\n* Check if current browser is chrome browser\n*/\nconst isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n/**\n* Check if current browser is firefox\n*/\nconst isFirefox = () => typeof window.InstallTrigger !== \"undefined\";\n/**\n* Check if current browser is safari\n*/\nconst isSafari = () => {\n\tif (typeof navigator === \"undefined\") return false;\n\tconst ua = navigator.userAgent || \"\";\n\treturn /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);\n};\n/**\n* Check if current browser is opera\n*/\nconst isOpera = () => {\n\tif (typeof window === \"undefined\") return false;\n\tconst w = window;\n\treturn !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== \"undefined\" && navigator.userAgent.indexOf(\" OPR/\") >= 0;\n};\n/**\n* Check if current browser is internet explorer\n*/\nconst isIE = () => !!document.documentMode;\n/**\n* Check if current browser is edge\n*/\nconst isEdge = () => {\n\treturn !!!document.documentMode && !!window.StyleMedia;\n};\n/**\n* Determine whether the current visitor is opening from desktop\n*/\nconst isDesktop = () => !isMobile.any();\n/**\n* A simple lightweight library to validate values against certain types of data\n* For full documentation on github\n* Repo: https://github.com/hassanzohdy/supportive-is\n*\n* First released 01/12/2017\n* Licensed under MIT (http://opensource.org/licenses/MIT)\n*/\nconst Is = {\n\t/**\n\t* Determine whether the given value is a number whatever if its data type is String or Number\n\t*/\n\tnumeric: isNumeric,\n\t/**\n\t* Determine whether the given value is an integer and its data type is number\n\t* As Number.isInteger considers 1.0 to be valid integer, regex will be used instead\n\t*/\n\tint: isInt,\n\t/**\n\t* Determine whether the given value is a float number and its data type is number\n\t*/\n\tfloat: isFloat,\n\t/**\n\t* Determine whether the given value is a regular expression\n\t*/\n\tregex: isRegex,\n\t/**\n\t* Determine whether the given value is an object\n\t*/\n\tobject: isObject,\n\t/**\n\t* Determine whether the given value is a plain object\n\t*/\n\tplainObject: isPlainObject,\n\t/**\n\t* Determine whether the given value is an array\n\t*/\n\tarray: Array.isArray,\n\t/**\n\t* Determine whether the given value is valid html attribute `id`\n\t*/\n\tvalidHtmlId: isValidId,\n\t/**\n\t* determine if the given value is an instance of form element\n\t*/\n\tformElement: isFormElement,\n\t/**\n\t* @alias formElement\n\t*/\n\tform: isFormElement,\n\t/**\n\t* determine if the given value is an instance of form data\n\t*/\n\tformData: isFormData,\n\t/**\n\t* Determine whether the given value is iterable\n\t*/\n\titerable: isIterable,\n\t/**\n\t* Determine whether the given value is a scalar\n\t* Scalar types are strings, booleans, integers and\n\t*/\n\tscalar: isScalar,\n\t/**\n\t* Determine if the given value is a primitive value\n\t*/\n\tprimitive: isPrimitive,\n\t/**\n\t* Determine whether the given value is a promise\n\t*/\n\tpromise: isPromise,\n\t/**\n\t* Determine whether the given value is a date\n\t*/\n\tdate: isDate,\n\t/**\n\t* Determine whether the given value is a generator\n\t*/\n\tgenerator: isGenerator,\n\t/**\n\t* Determine whether the given value if an empty\n\t* This can be validated against any type of values\n\t* undefined or nullable values will be considered empty\n\t* Objects that doesn't have any properties will be considered empty\n\t* Arrays and Strings will be empty based on its length\n\t* The 0 'Zero\" number will not be considered empty\n\t*/\n\tempty: isEmpty,\n\t/**\n\t* Determine whether the given value is a valid json string\n\t*/\n\tjson: isJson,\n\t/**\n\t* Determine whether the given value is a valid url\n\t*/\n\turl: isUrl,\n\t/**\n\t* Determine whether the given value is a valid email\n\t*/\n\temail: isEmail,\n\t/**\n\t* Determine the current visitor is opening from mobile\n\t* Please Note this method depends on the user agent\n\t*/\n\tmobile: isMobile,\n\t/**\n\t* Determine if current user is opening from macOS\n\t*/\n\tmac: isMac,\n\t/**\n\t* Determine whether the current visitor is opening from desktop\n\t*/\n\tdesktop: isDesktop,\n\t/**\n\t* Check if the current browser is the given name\n\t* To detect browser version as well, pass the version number as the second argument\n\t*/\n\tbrowser: isBrowser,\n\tchrome: isChrome,\n\tfirefox: isFirefox,\n\tsafari: isSafari,\n\topera: isOpera,\n\tie: isIE,\n\tedge: isEdge\n};\n\n//#endregion\nexport { Is, Is as default, isBrowser, isChrome, isDate, isDesktop, isEdge, isEmail, isEmpty, isFirefox, isFloat, isFormData, isFormElement, isGenerator, isIE, isInt, isIterable, isJson, isMac, isMobile, isNumeric, isObject, isOpera, isPlainObject, isPrimitive, isPromise, isRegex, isSafari, isScalar, isString, isUrl, isValidId };\n//# sourceMappingURL=index.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,SAAS,UAAU,OAAO;CACzB,OAAO,oCAAoC,KAAK,OAAO,KAAK,CAAC;AAC9D;;;;AAIA,MAAM,SAAS,UAAU,OAAO,UAAU,YAAY,OAAO,UAAU,KAAK;;;;AAI5E,MAAM,WAAW,UAAU,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,KAAK,eAAe,KAAK,OAAO,KAAK,CAAC;;;;AAInH,MAAM,WAAW,UAAU,QAAQ,KAAK,KAAK,MAAM,aAAa,SAAS;;;;AAIzE,MAAM,YAAY,UAAU,QAAQ,KAAK,KAAK,OAAO,UAAU;;;;AAI/D,MAAM,iBAAiB,UAAU;CAChC,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,IAAI,OAAO,eAAe,KAAK,MAAM,MAAM,OAAO;CAClD,OAAO,MAAM,aAAa,SAAS;AACpC;;;;AAIA,MAAM,aAAa,UAAU,QAAQ,SAAS,sBAAsB,KAAK,OAAO,KAAK,CAAC,CAAC;;;;AAIvF,MAAM,iBAAiB,UAAU,OAAO,oBAAoB,cAAc,QAAQ,iBAAiB;;;;AAInG,MAAM,cAAc,UAAU,iBAAiB;;;;AAI/C,MAAM,cAAc,UAAU,UAAU,QAAQ,UAAU,KAAK,KAAK,OAAO,MAAM,OAAO,cAAc;;;;AAItG,MAAM,YAAY,UAAU;CAC3B;CACA;CACA;CACA;CACA;AACD,CAAC,CAAC,SAAS,OAAO,KAAK;;;;AAQvB,MAAM,eAAe,UAAU;CAC9B;CACA;CACA;CACA;AACD,CAAC,CAAC,SAAS,OAAO,KAAK;;;;AAIvB,MAAM,aAAa,UAAU,QAAQ,KAAK,KAAK,iBAAiB;;;;AAIhE,MAAM,UAAU,UAAU,QAAQ,KAAK,KAAK,OAAO,UAAU,YAAY,iBAAiB;;;;AAI1F,MAAM,eAAe,UAAU,QAAQ,KAAK,KAAK,OAAO,UAAU,YAAY,OAAO,MAAM,SAAS,cAAc,OAAO,MAAM,OAAO,cAAc,cAAc,MAAM,OAAO,SAAS,CAAC,MAAM;;;;;;;AAO/L,MAAM,WAAW,UAAU;CAC1B,IAAI;EACH;EACA;EACA;CACD,CAAC,CAAC,SAAS,KAAK,GAAG,OAAO;CAC1B,IAAI;EACH;EACA;EACA,KAAK;CACN,CAAC,CAAC,SAAS,KAAK,GAAG,OAAO;CAC1B,IAAI,OAAO,UAAU,YAAY,OAAO,MAAM,KAAK,GAAG,OAAO;CAC7D,IAAI,iBAAiB,MAAM,OAAO;CAClC,IAAI,iBAAiB,OAAO,iBAAiB,KAAK,OAAO,MAAM,SAAS;CACxE,IAAI,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,KAAK,OAAO,MAAM,OAAO,cAAc,YAAY,OAAO,OAAO,KAAK,KAAK,CAAC,CAAC,WAAW;CAC7I,IAAI,WAAW,KAAK,GAAG,OAAO,MAAM,WAAW;CAC/C,IAAI,UAAU,KAAK,GAAG,OAAO;CAC7B,OAAO;AACR;;;;AAIA,MAAM,UAAU,UAAU;CACzB,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,SAAS,QAAQ,EAAE,GAAG,OAAO;CAC7C,IAAI;EACH,KAAK,MAAM,KAAK;EAChB,OAAO;CACR,SAAS,GAAG;EACX,OAAO;CACR;AACD;;;;AAIA,MAAM,SAAS,UAAU;CACxB,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,IAAI;EACH,MAAM,MAAM,IAAI,IAAI,KAAK;EACzB,IAAI,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,IAAI,QAAQ,GAAG,OAAO;EACxD,MAAM,WAAW,IAAI;EACrB,IAAI,CAAC,SAAS,SAAS,GAAG,GAAG,OAAO;EACpC,IAAI,SAAS,MAAM,GAAG,CAAC,CAAC,MAAM,UAAU,MAAM,WAAW,CAAC,GAAG,OAAO;EACpE,OAAO;CACR,SAAS,GAAG;EACX,OAAO;CACR;AACD;;;;AAIA,MAAM,WAAW,UAAU,OAAO,UAAU,YAAY,yJAAyJ,KAAK,KAAK;;;;AAI3N,MAAM,WAAW;;;;CAIhB,eAAe,UAAU,UAAU,MAAM,UAAU,MAAM;;;;CAIzD,WAAW,UAAU,UAAU,MAAM,mBAAmB,MAAM;;;;CAI9D,cAAc,UAAU,UAAU,MAAM,SAAS,MAAM;;;;CAIvD,YAAY,UAAU,UAAU,MAAM,OAAO,MAAM;;;;CAInD,YAAY,UAAU,UAAU,MAAM,OAAO,MAAM;;;;CAInD,eAAe,UAAU,UAAU,MAAM,WAAW,MAAM;;;;CAI1D,WAAW,SAAS,QAAQ,KAAK,SAAS,IAAI,KAAK,SAAS,QAAQ;AACrE;;;;AAIA,MAAM,cAAc,UAAU,UAAU,MAAM,MAAM,MAAM;;;;AAI1D,MAAM,aAAa,YAAY;CAC9B,OAAO;EACN,QAAQ,SAAS;EACjB,SAAS,UAAU;EACnB,OAAO,QAAQ;EACf,MAAM,OAAO;EACb,IAAI,KAAK;EACT,QAAQ,SAAS;CAClB,EAAE,QAAQ,YAAY,OAAO;AAC9B;;;;AAIA,MAAM,iBAAiB,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,OAAO,OAAO,YAAY,CAAC,CAAC,OAAO,OAAO;;;;AAIvF,MAAM,kBAAkB,OAAO,OAAO,mBAAmB;;;;AAIzD,MAAM,iBAAiB;CACtB,IAAI,OAAO,cAAc,aAAa,OAAO;CAC7C,MAAM,KAAK,UAAU,aAAa;CAClC,OAAO,UAAU,KAAK,EAAE,KAAK,CAAC,mCAAmC,KAAK,EAAE;AACzE;;;;AAIA,MAAM,gBAAgB;CACrB,IAAI,OAAO,WAAW,aAAa,OAAO;CAC1C,MAAM,IAAI;CACV,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,IAAI,UAAU,CAAC,CAAC,EAAE,SAAS,OAAO,cAAc,eAAe,UAAU,UAAU,QAAQ,OAAO,KAAK;AAC9H;;;;AAIA,MAAM,aAAa,CAAC,CAAC,SAAS;;;;AAI9B,MAAM,eAAe;CACpB,OAAO,CAAC,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,OAAO;AAC7C;;;;AAIA,MAAM,kBAAkB,CAAC,SAAS,IAAI;;;;;;;;;AAStC,MAAM,KAAK;;;;CAIV,SAAS;;;;;CAKT,KAAK;;;;CAIL,OAAO;;;;CAIP,OAAO;;;;CAIP,QAAQ;;;;CAIR,aAAa;;;;CAIb,OAAO,MAAM;;;;CAIb,aAAa;;;;CAIb,aAAa;;;;CAIb,MAAM;;;;CAIN,UAAU;;;;CAIV,UAAU;;;;;CAKV,QAAQ;;;;CAIR,WAAW;;;;CAIX,SAAS;;;;CAIT,MAAM;;;;CAIN,WAAW;;;;;;;;;CASX,OAAO;;;;CAIP,MAAM;;;;CAIN,KAAK;;;;CAIL,OAAO;;;;;CAKP,QAAQ;;;;CAIR,KAAK;;;;CAIL,SAAS;;;;;CAKT,SAAS;CACT,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,OAAO;CACP,IAAI;CACJ,MAAM;AACP"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/@mongez+supportive-is@2.1.5/node_modules/@mongez/supportive-is/esm/index.mjs"],"sourcesContent":["//#region ../supportive-is/src/index.ts\n/**\n* Determine whether the given value is a number whatever if its data type is String or Number\n*/\nfunction isNumeric(value) {\n\treturn /^[+-]?\\d+(\\.\\d+)?([Ee][+-]?\\d+)?$/.test(String(value));\n}\n/**\n* Check if the given value is int\n*/\nconst isInt = (value) => typeof value === \"number\" && Number.isInteger(value);\n/**\n* Check if the given value is float\n*/\nconst isFloat = (value) => typeof value === \"number\" && Number.isFinite(value) && /^-?\\d+\\.\\d+$/.test(String(value));\n/**\n* Check if the given value is a regex\n*/\nconst isRegex = (value) => Boolean(value) && value.constructor?.name === \"RegExp\";\n/**\n* Check if the given value is an object\n*/\nconst isObject = (value) => Boolean(value) && typeof value === \"object\";\n/**\n* Check if the given value is a plain object\n*/\nconst isPlainObject = (value) => {\n\tif (!value || typeof value !== \"object\") return false;\n\tif (Object.getPrototypeOf(value) === null) return true;\n\treturn value.constructor?.name === \"Object\";\n};\n/**\n* Check if the given value is validId\n*/\nconst isValidId = (value) => Boolean(value && /^[A-Za-z][\\w\\-:.]*$/.test(String(value)));\n/**\n* Check if the given value is a form element\n*/\nconst isFormElement = (value) => typeof HTMLFormElement === \"undefined\" ? false : value instanceof HTMLFormElement;\n/**\n* Check if the given value is a form data\n*/\nconst isFormData = (value) => value instanceof FormData;\n/**\n* Check if the given value is iterable\n*/\nconst isIterable = (value) => value !== null && value !== void 0 && typeof value[Symbol.iterator] === \"function\";\n/**\n* Check if the given value is a scalar value\n*/\nconst isScalar = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"symbol\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a string\n*/\nconst isString = (value) => typeof value === \"string\";\n/**\n* Check if the given value is a pr value\n*/\nconst isPrimitive = (value) => [\n\t\"string\",\n\t\"boolean\",\n\t\"number\",\n\t\"bigint\"\n].includes(typeof value);\n/**\n* Check if the given value is a promise\n*/\nconst isPromise = (value) => Boolean(value) && value instanceof Promise;\n/**\n* Check if the given value is a date\n*/\nconst isDate = (value) => Boolean(value) && typeof value === \"object\" && value instanceof Date;\n/**\n* Check if the given value is a generator\n*/\nconst isGenerator = (value) => Boolean(value) && typeof value === \"object\" && typeof value.next === \"function\" && typeof value[Symbol.iterator] === \"function\" && value[Symbol.iterator]() === value;\n/**\n* Check if the given value is empty\n* Zero does not considered empty\n* Empty object is considered empty\n* Empty array is considered empty\n*/\nconst isEmpty = (value) => {\n\tif ([\n\t\t0,\n\t\ttrue,\n\t\tfalse\n\t].includes(value)) return false;\n\tif ([\n\t\t\"\",\n\t\tnull,\n\t\tvoid 0\n\t].includes(value)) return true;\n\tif (typeof value === \"number\" && Number.isNaN(value)) return false;\n\tif (value instanceof Date) return false;\n\tif (value instanceof Map || value instanceof Set) return value.size === 0;\n\tif (typeof value === \"object\" && !Array.isArray(value) && typeof value[Symbol.iterator] !== \"function\") return Object.keys(value).length === 0;\n\tif (isIterable(value)) return value.length === 0;\n\tif (isNumeric(value)) return false;\n\treturn true;\n};\n/**\n* Check if the given value is a valid json\n*/\nconst isJson = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\tif (![\"[\", \"{\"].includes(value?.[0])) return false;\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is valid url\n*/\nconst isUrl = (value) => {\n\tif (!value || typeof value !== \"string\") return false;\n\ttry {\n\t\tconst url = new URL(value);\n\t\tif (![\"http:\", \"https:\"].includes(url.protocol)) return false;\n\t\tconst hostname = url.hostname;\n\t\tif (!hostname.includes(\".\")) return false;\n\t\tif (hostname.split(\".\").some((label) => label.length === 0)) return false;\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n/**\n* Check if the given value is a valid email\n*/\nconst isEmail = (value) => typeof value === \"string\" && /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(value);\n/**\n* Check if current user is opening from mobile\n*/\nconst isMobile = {\n\t/**\n\t* Determine whether the current visitor is opening from an Android device\n\t*/\n\tandroid: () => navigator.userAgent.match(/Android/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ios device\n\t*/\n\tios: () => navigator.userAgent.match(/iPhone|iPad|iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an Iphone\n\t*/\n\tiphone: () => navigator.userAgent.match(/iPhone/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipad\n\t*/\n\tipad: () => navigator.userAgent.match(/iPad/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an ipod\n\t*/\n\tipod: () => navigator.userAgent.match(/iPod/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from an windows mobile\n\t*/\n\twindows: () => navigator.userAgent.match(/IEMobile/i) !== null,\n\t/**\n\t* Determine whether the current visitor is opening from mobile whatever its type\n\t*/\n\tany: () => isMobile.android() || isMobile.ios() || isMobile.windows()\n};\n/**\n* Determine if current user is opening from macOS\n*/\nconst isMac = () => navigator.userAgent.match(/mac/i) !== null;\n/**\n* Check if current browser is the given name\n*/\nconst isBrowser = (browser) => {\n\treturn {\n\t\tchrome: isChrome(),\n\t\tfirefox: isFirefox(),\n\t\topera: isOpera(),\n\t\tedge: isEdge(),\n\t\tie: isIE(),\n\t\tsafari: isSafari()\n\t}[browser.toLowerCase()] === true;\n};\n/**\n* Check if current browser is chrome browser\n*/\nconst isChrome = () => !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);\n/**\n* Check if current browser is firefox\n*/\nconst isFirefox = () => typeof window.InstallTrigger !== \"undefined\";\n/**\n* Check if current browser is safari\n*/\nconst isSafari = () => {\n\tif (typeof navigator === \"undefined\") return false;\n\tconst ua = navigator.userAgent || \"\";\n\treturn /Safari/i.test(ua) && !/Chrome|Chromium|Edg|OPR|Android/i.test(ua);\n};\n/**\n* Check if current browser is opera\n*/\nconst isOpera = () => {\n\tif (typeof window === \"undefined\") return false;\n\tconst w = window;\n\treturn !!w.opr && !!w.opr.addons || !!w.opera || typeof navigator !== \"undefined\" && navigator.userAgent.indexOf(\" OPR/\") >= 0;\n};\n/**\n* Check if current browser is internet explorer\n*/\nconst isIE = () => !!document.documentMode;\n/**\n* Check if current browser is edge\n*/\nconst isEdge = () => {\n\treturn !!!document.documentMode && !!window.StyleMedia;\n};\n/**\n* Determine whether the current visitor is opening from desktop\n*/\nconst isDesktop = () => !isMobile.any();\n/**\n* A simple lightweight library to validate values against certain types of data\n* For full documentation on github\n* Repo: https://github.com/hassanzohdy/supportive-is\n*\n* First released 01/12/2017\n* Licensed under MIT (http://opensource.org/licenses/MIT)\n*/\nconst Is = {\n\t/**\n\t* Determine whether the given value is a number whatever if its data type is String or Number\n\t*/\n\tnumeric: isNumeric,\n\t/**\n\t* Determine whether the given value is an integer and its data type is number\n\t* As Number.isInteger considers 1.0 to be valid integer, regex will be used instead\n\t*/\n\tint: isInt,\n\t/**\n\t* Determine whether the given value is a float number and its data type is number\n\t*/\n\tfloat: isFloat,\n\t/**\n\t* Determine whether the given value is a regular expression\n\t*/\n\tregex: isRegex,\n\t/**\n\t* Determine whether the given value is an object\n\t*/\n\tobject: isObject,\n\t/**\n\t* Determine whether the given value is a plain object\n\t*/\n\tplainObject: isPlainObject,\n\t/**\n\t* Determine whether the given value is an array\n\t*/\n\tarray: Array.isArray,\n\t/**\n\t* Determine whether the given value is valid html attribute `id`\n\t*/\n\tvalidHtmlId: isValidId,\n\t/**\n\t* determine if the given value is an instance of form element\n\t*/\n\tformElement: isFormElement,\n\t/**\n\t* @alias formElement\n\t*/\n\tform: isFormElement,\n\t/**\n\t* determine if the given value is an instance of form data\n\t*/\n\tformData: isFormData,\n\t/**\n\t* Determine whether the given value is iterable\n\t*/\n\titerable: isIterable,\n\t/**\n\t* Determine whether the given value is a scalar\n\t* Scalar types are strings, booleans, integers and\n\t*/\n\tscalar: isScalar,\n\t/**\n\t* Determine if the given value is a primitive value\n\t*/\n\tprimitive: isPrimitive,\n\t/**\n\t* Determine whether the given value is a promise\n\t*/\n\tpromise: isPromise,\n\t/**\n\t* Determine whether the given value is a date\n\t*/\n\tdate: isDate,\n\t/**\n\t* Determine whether the given value is a generator\n\t*/\n\tgenerator: isGenerator,\n\t/**\n\t* Determine whether the given value if an empty\n\t* This can be validated against any type of values\n\t* undefined or nullable values will be considered empty\n\t* Objects that doesn't have any properties will be considered empty\n\t* Arrays and Strings will be empty based on its length\n\t* The 0 'Zero\" number will not be considered empty\n\t*/\n\tempty: isEmpty,\n\t/**\n\t* Determine whether the given value is a valid json string\n\t*/\n\tjson: isJson,\n\t/**\n\t* Determine whether the given value is a valid url\n\t*/\n\turl: isUrl,\n\t/**\n\t* Determine whether the given value is a valid email\n\t*/\n\temail: isEmail,\n\t/**\n\t* Determine the current visitor is opening from mobile\n\t* Please Note this method depends on the user agent\n\t*/\n\tmobile: isMobile,\n\t/**\n\t* Determine if current user is opening from macOS\n\t*/\n\tmac: isMac,\n\t/**\n\t* Determine whether the current visitor is opening from desktop\n\t*/\n\tdesktop: isDesktop,\n\t/**\n\t* Check if the current browser is the given name\n\t* To detect browser version as well, pass the version number as the second argument\n\t*/\n\tbrowser: isBrowser,\n\tchrome: isChrome,\n\tfirefox: isFirefox,\n\tsafari: isSafari,\n\topera: isOpera,\n\tie: isIE,\n\tedge: isEdge\n};\n\n//#endregion\nexport { Is, Is as default, isBrowser, isChrome, isDate, isDesktop, isEdge, isEmail, isEmpty, isFirefox, isFloat, isFormData, isFormElement, isGenerator, isIE, isInt, isIterable, isJson, isMac, isMobile, isNumeric, isObject, isOpera, isPlainObject, isPrimitive, isPromise, isRegex, isSafari, isScalar, isString, isUrl, isValidId };\n//# sourceMappingURL=index.mjs.map"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-herald.d.mts","names":[],"sources":["../../../../../../../notifications/src/queue/load-herald.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"load-herald.d.mts","names":[],"sources":["../../../../../../../notifications/src/queue/load-herald.ts"],"mappings":";AAmCA;AAAA,cAAa,qBAAA"}
|
|
@@ -21,7 +21,7 @@ Or with your preferred package manager:
|
|
|
21
21
|
async function loadHerald() {
|
|
22
22
|
if (heraldModule) return heraldModule;
|
|
23
23
|
try {
|
|
24
|
-
heraldModule = await import("../
|
|
24
|
+
heraldModule = await import("../herald/src/index.mjs");
|
|
25
25
|
return heraldModule;
|
|
26
26
|
} catch {
|
|
27
27
|
throw new Error(INSTALL_INSTRUCTIONS);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.mjs","names":[],"sources":["../../../../../../../../seal/src/config.ts"],"sourcesContent":["/**\r\n * Seal Configuration\r\n *\r\n * Global configuration for the Seal validation library\r\n */\r\n\r\nimport type { AttributeTranslation, RuleTranslation } from \"./types\";\r\n\r\nexport type TranslateRuleCallback = (\r\n ruleTranslation: RuleTranslation,\r\n) => string;\r\n\r\nexport type TranslateAttributeCallback = (\r\n attributeTranslation: AttributeTranslation,\r\n) => string;\r\n\r\nexport type SealConfig = {\r\n /**\r\n * Translation function for error messages\r\n * Default: returns the key with attributes replaced\r\n */\r\n translateRule?: TranslateRuleCallback;\r\n /**\r\n * Translation function for attribute messages\r\n */\r\n translateAttribute?: TranslateAttributeCallback;\r\n\r\n /**\r\n * Default to first error only in validation\r\n * Default: true\r\n */\r\n firstErrorOnly?: boolean;\r\n};\r\n\r\n/**\r\n * Global Seal configuration\r\n */\r\nconst config: SealConfig = {\r\n firstErrorOnly: true,\r\n};\r\n\r\n/**\r\n * Configure Seal globally\r\n *\r\n * @example\r\n * ```ts\r\n * import { configureSeal } from \"@warlock.js/seal\";\r\n * import { trans } from \"@mongez/localization\";\r\n *\r\n * configureSeal({\r\n * translateRule: (ruleTranslation) => trans(`validation.${ruleTranslation.rule.name}`, ruleTranslation.attributes),\r\n * translateAttribute: (attributeTranslation) => trans(`validation.attributes.${attributeTranslation.rule.name}.${attributeTranslation.attribute}`, attributeTranslation.context.allValues),\r\n * });\r\n * ```\r\n */\r\nexport function configureSeal(options: Partial<SealConfig>): void {\r\n Object.assign(config, options);\r\n}\r\n\r\n/**\r\n * Get current Seal configuration\r\n */\r\nexport function getSealConfig(): SealConfig {\r\n return config;\r\n}\r\n\r\n/**\r\n * Reset configuration to defaults\r\n */\r\nexport function resetSealConfig(): void {\r\n delete config.translateRule;\r\n delete config.translateAttribute;\r\n\r\n config.firstErrorOnly = true;\r\n}\r\n"],"mappings":";;;;AAqCA,MAAM,SAAqB,EACzB,gBAAgB,KAClB;;;;AAuBA,SAAgB,gBAA4B;CAC1C,OAAO;AACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.mjs","names":[],"sources":["../../../../../../../../../seal/src/factory/validate.ts"],"sourcesContent":["import { getSealConfig } from \"../config\";\r\nimport type { SchemaContext, ValidationResult } from \"../types\";\r\nimport type { BaseValidator } from \"../validators\";\r\nimport type { ValidateOptions } from \"./validators\";\r\n\r\n/**\r\n * Validate data against a schema\r\n */\r\nexport const validate = async <T extends BaseValidator>(\r\n schema: T,\r\n data: any, // Temporarily use any - will fix type inference\r\n { context: extendedContext, ...configurations }: ValidateOptions = getSealConfig() || {},\r\n): Promise<ValidationResult> => {\r\n const context: SchemaContext = {\r\n allValues: data,\r\n parent: null,\r\n value: data,\r\n key: \"\",\r\n path: \"\",\r\n context: extendedContext,\r\n rootContext: extendedContext,\r\n translateRule(ruleTranslation) {\r\n return configurations.translateRule?.(ruleTranslation) ?? \"\";\r\n },\r\n translateAttribute(attributeTranslation) {\r\n return configurations.translateAttribute?.(attributeTranslation) ?? \"\";\r\n },\r\n configurations,\r\n };\r\n\r\n const result = await schema.validate(data, context);\r\n\r\n // A failed validation never hands back the input it just rejected.\r\n //\r\n // `object` used to return the raw input on failure while `discriminatedUnion`\r\n // returned `undefined` — the same call shape with two different contracts.\r\n // The object behaviour was the dangerous one: validating an outbound DTO\r\n // specifically to keep internal fields out of a response, then doing the\r\n // natural `const { data } = await v.validate(dto, record); reply.send(data)`,\r\n // shipped every field the schema existed to exclude. A guard that returns the\r\n // unsafe value on failure reads as safe and isn't.\r\n if (!result.isValid) {\r\n return { ...result, data: undefined };\r\n }\r\n\r\n return result;\r\n};\r\n"],"mappings":";;;;;;AAQA,MAAa,WAAW,OACtB,QACA,MACA,EAAE,SAAS,iBAAiB,GAAG,mBAAoC,cAAc,KAAK,CAAC,MACzD;CAC9B,MAAM,UAAyB;EAC7B,WAAW;EACX,QAAQ;EACR,OAAO;EACP,KAAK;EACL,MAAM;EACN,SAAS;EACT,aAAa;EACb,cAAc,iBAAiB;GAC7B,OAAO,eAAe,gBAAgB,eAAe,KAAK;EAC5D;EACA,mBAAmB,sBAAsB;GACvC,OAAO,eAAe,qBAAqB,oBAAoB,KAAK;EACtE;EACA;CACF;CAEA,MAAM,SAAS,MAAM,OAAO,SAAS,MAAM,OAAO;CAWlD,IAAI,CAAC,OAAO,SACV,OAAO;EAAE,GAAG;EAAQ,MAAM;CAAU;CAGtC,OAAO;AACT"}
|
|
@@ -25,7 +25,7 @@ import { UnionValidator } from "../validators/union-validator.mjs";
|
|
|
25
25
|
import { object } from "../object.mjs";
|
|
26
26
|
import { string } from "../string.mjs";
|
|
27
27
|
|
|
28
|
-
//#region ../
|
|
28
|
+
//#region ../seal/src/factory/validators.ts
|
|
29
29
|
/**
|
|
30
30
|
* Seal factory object - creates instances of validators
|
|
31
31
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.mjs","names":["validateFunction"],"sources":["../../../../../../../../../seal/src/factory/validators.ts"],"sourcesContent":["import type { SealConfig } from \"../config\";\r\nimport { object } from \"../object\";\r\nimport { string } from \"../string\";\r\nimport type { StandardSchemaV1 } from \"../standard-schema/types\";\r\nimport type { Schema, SchemaContext, ValidationResult } from \"../types\";\r\nimport type { Infer } from \"../types/inference-types\";\r\nimport { AnyValidator } from \"../validators/any-validator\";\r\nimport { ArrayValidator } from \"../validators/array-validator\";\r\nimport type { BaseValidator } from \"../validators/base-validator\";\r\nimport { BooleanValidator } from \"../validators/boolean-validator\";\r\nimport { ComputedValidator } from \"../validators/computed-validator\";\r\nimport { DateValidator } from \"../validators/date-validator\";\r\nimport { DiscriminatedUnionValidator } from \"../validators/discriminated-union-validator\";\r\nimport { FloatValidator } from \"../validators/float-validator\";\r\nimport { InstanceOfValidator } from \"../validators/instanceof-validator\";\r\nimport { IntValidator } from \"../validators/int-validator\";\r\nimport { LazyValidator } from \"../validators/lazy-validator\";\r\nimport { LiteralValidator } from \"../validators/literal-validator\";\r\nimport { ManagedValidator } from \"../validators/managed-validator\";\r\nimport { NumberValidator } from \"../validators/number-validator\";\r\nimport { NumericValidator } from \"../validators/numeric-validator\";\r\nimport { ObjectValidator } from \"../validators/object-validator\";\r\nimport { RecordValidator } from \"../validators/record-validator\";\r\nimport { ScalarValidator } from \"../validators/scalar-validator\";\r\nimport { StringValidator } from \"../validators/string-validator\";\r\nimport { TupleValidator } from \"../validators/tuple-validator\";\r\nimport { UnionValidator } from \"../validators/union-validator\";\r\n// BaseValidator prototype augmentations — side-effect imports so the `v`\r\n// factory always exposes the chain methods (.required, .requiredIf, .sameAs,\r\n// .present, .forbidden, .when, …) regardless of which entry path loaded it.\r\n// The package barrel (src/index.ts) loads these via the validators barrel, but\r\n// importing the factory leaf directly would otherwise yield a half-built `v`.\r\nimport \"../validators/methods/equality-conditional-methods\";\r\nimport \"../validators/methods/forbidden-methods\";\r\nimport \"../validators/methods/present-methods\";\r\nimport \"../validators/methods/required-methods\";\r\nimport { validate as validateFunction } from \"./validate\";\r\n\r\n/**\r\n * Seal factory object - creates instances of validators\r\n *\r\n * Use 'v' to create validation schemas (seals) for your data\r\n */\r\nexport const v: ValidatorV = {\r\n /** Create an object validator */\r\n object,\r\n\r\n /** Create an any validator */\r\n any: () => new AnyValidator() as AnyValidator & StandardSchemaV1<any>,\r\n\r\n /** Create an array validator */\r\n array: <T extends BaseValidator>(validator: T, errorMessage?: string) =>\r\n new ArrayValidator(validator, errorMessage) as ArrayValidator & {\r\n validator: T;\r\n } & StandardSchemaV1<Array<Infer<T>>>,\r\n\r\n /** Create a record validator - object with dynamic keys and consistent value types */\r\n record: <T extends BaseValidator>(validator?: T, errorMessage?: string) =>\r\n new RecordValidator(validator || v.any(), errorMessage) as RecordValidator & {\r\n valueValidator: T;\r\n } & StandardSchemaV1<Record<string, Infer<T>>>,\r\n\r\n /** Create a tuple validator - fixed-length array with position-specific types */\r\n tuple: <T extends BaseValidator[]>(validators: T, errorMessage?: string) =>\r\n new TupleValidator(validators, errorMessage) as TupleValidator & {\r\n validators: T;\r\n } & StandardSchemaV1<{ [K in keyof T]: Infer<T[K]> }>,\r\n\r\n /** Create a date validator */\r\n date: (errorMessage?: string) =>\r\n new DateValidator(errorMessage) as DateValidator & StandardSchemaV1<Date>,\r\n\r\n /**\r\n * Create a literal validator — narrows to the union of given literal values\r\n *\r\n * @example\r\n * v.literal(\"items\") // type: \"items\"\r\n * v.literal(\"draft\", \"published\") // type: \"draft\" | \"published\"\r\n * v.literal(1, 2, 3) // type: 1 | 2 | 3\r\n */\r\n literal: <T extends readonly [string | number | boolean, ...(string | number | boolean)[]]>(\r\n ...values: T\r\n ) => new LiteralValidator<T>(values) as LiteralValidator<T> & StandardSchemaV1<T[number]>,\r\n\r\n /**\r\n * Create an instanceof validator — value must be `instanceof` the constructor\r\n *\r\n * @example\r\n * v.instanceof(File) // type: File\r\n * v.instanceof(Buffer) // type: Buffer\r\n * v.instanceof(MyClass) // type: MyClass\r\n */\r\n instanceof: <T>(ctor: new (...args: any[]) => T, errorMessage?: string) =>\r\n new InstanceOfValidator<T>(ctor, errorMessage) as InstanceOfValidator<T> & StandardSchemaV1<T>,\r\n\r\n /**\r\n * Create a lazy validator — defers resolution of the inner validator until\r\n * validate-time. Use for recursive or forward-referenced schemas.\r\n *\r\n * @example\r\n * type Category = { name: string; children: Category[] };\r\n *\r\n * const category: ObjectValidator<...> = v.object({\r\n * name: v.string(),\r\n * children: v.array(v.lazy(() => category)),\r\n * });\r\n */\r\n lazy: <T extends BaseValidator>(thunk: () => T) =>\r\n new LazyValidator(thunk) as LazyValidator<T> & StandardSchemaV1<Infer<T>>,\r\n\r\n /** Create a string validator */\r\n string,\r\n\r\n /** Create an email validator */\r\n email: (emailErrorMessage?: string, errorMessage?: string) =>\r\n new StringValidator(errorMessage).email(emailErrorMessage) as StringValidator &\r\n StandardSchemaV1<string>,\r\n\r\n /**\r\n * Create an enum validator — preserves the literal union of accepted\r\n * values in the inferred Standard Schema output.\r\n *\r\n * Two input shapes:\r\n * - Tuple of literals: `v.enum([\"draft\", \"published\"])` →\r\n * `StandardSchemaV1<\"draft\" | \"published\">`\r\n * - TypeScript enum object: `v.enum(Status)` →\r\n * `StandardSchemaV1<Status[keyof Status]>`\r\n *\r\n * Implementation is loosely typed; the public `ValidatorV.enum`\r\n * surface declares the precise overloads.\r\n */\r\n enum: ((values: any, errorMessage?: string) =>\r\n Array.isArray(values)\r\n ? new StringValidator().oneOf(values, errorMessage)\r\n : new ScalarValidator().enum(values, errorMessage)) as ValidatorV[\"enum\"],\r\n\r\n /** Create a number validator */\r\n number: (errorMessage?: string) =>\r\n new NumberValidator(errorMessage) as NumberValidator & StandardSchemaV1<number>,\r\n\r\n /** Create a numeric validator */\r\n numeric: (errorMessage?: string) =>\r\n new NumericValidator(errorMessage) as NumericValidator & StandardSchemaV1<number>,\r\n\r\n /** Create an integer validator */\r\n int: (errorMessage?: string) =>\r\n new IntValidator(errorMessage) as IntValidator & StandardSchemaV1<number>,\r\n\r\n /** Create a float validator */\r\n float: (errorMessage?: string) =>\r\n new FloatValidator(errorMessage) as FloatValidator & StandardSchemaV1<number>,\r\n\r\n /** Create a boolean validator */\r\n boolean: (errorMessage?: string) =>\r\n new BooleanValidator(errorMessage) as BooleanValidator & StandardSchemaV1<boolean>,\r\n\r\n /** Create a scalar validator */\r\n scalar: (errorMessage?: string) =>\r\n new ScalarValidator(errorMessage) as ScalarValidator &\r\n StandardSchemaV1<string | number | boolean>,\r\n\r\n /** Create a union validator - validates against multiple types */\r\n union: <T extends BaseValidator[]>(validators: T, errorMessage?: string) =>\r\n new UnionValidator().union(validators, errorMessage) as UnionValidator &\r\n StandardSchemaV1<Infer<T[number]>>,\r\n\r\n /**\r\n * Create a discriminated union — routes payloads by a shared literal\r\n * discriminator field. Each branch must be a `v.object(...)` with the\r\n * discriminator typed as `v.literal(...)`.\r\n *\r\n * @example\r\n * const email = v.object({ type: v.literal(\"email\"), email: v.string().email() });\r\n * const sms = v.object({ type: v.literal(\"sms\"), phone: v.string() });\r\n * const notif = v.discriminatedUnion(\"type\", [email, sms]);\r\n * // type T = Infer<typeof notif>;\r\n * // → { type: \"email\", email: string } | { type: \"sms\", phone: string }\r\n */\r\n discriminatedUnion: <K extends string, Branches extends ReadonlyArray<ObjectValidator<any>>>(\r\n discriminator: K,\r\n validators: Branches,\r\n ) =>\r\n new DiscriminatedUnionValidator(discriminator, validators) as DiscriminatedUnionValidator<\r\n K,\r\n Branches\r\n > &\r\n StandardSchemaV1<Infer<Branches[number]>>,\r\n\r\n /** Create a computed field validator - derives value from other validated fields */\r\n computed: <TResult = any>(\r\n callback: (data: any, context: SchemaContext) => TResult | Promise<TResult>,\r\n resultValidator?: BaseValidator,\r\n ) =>\r\n new ComputedValidator<TResult>(callback, resultValidator) as ComputedValidator<TResult> &\r\n StandardSchemaV1<TResult>,\r\n\r\n /** Create a managed field validator - framework-injected value */\r\n managed: <TResult = any>(\r\n callback: (context: SchemaContext) => TResult | Promise<TResult>,\r\n resultValidator?: BaseValidator,\r\n ) =>\r\n new ManagedValidator<TResult>(callback, resultValidator) as ManagedValidator<TResult> &\r\n StandardSchemaV1<TResult>,\r\n\r\n /** Validate data against a schema */\r\n validate: validateFunction,\r\n} as unknown as ValidatorV;\r\n\r\nexport type ValidateOptions = {\r\n context?: Record<string, any>;\r\n /**\r\n * Rendered as `:value` in every error message — translated or custom —\r\n * instead of the submitted input. Unset keeps the raw value.\r\n */\r\n redactValue?: string;\r\n} & SealConfig;\r\n\r\nexport interface ValidatorV {\r\n object: <T extends Schema>(\r\n schema: T,\r\n errorMessage?: string,\r\n ) => ObjectValidator<T> & StandardSchemaV1<Infer<ObjectValidator<T>>>;\r\n any: () => AnyValidator & StandardSchemaV1<any>;\r\n array: <T extends BaseValidator>(\r\n validator: T,\r\n errorMessage?: string,\r\n ) => ArrayValidator & {\r\n validator: T;\r\n } & StandardSchemaV1<Array<Infer<T>>>;\r\n record: <T extends BaseValidator>(\r\n validator?: T,\r\n errorMessage?: string,\r\n ) => RecordValidator & {\r\n valueValidator: T;\r\n } & StandardSchemaV1<Record<string, Infer<T>>>;\r\n tuple: <T extends BaseValidator[]>(\r\n validators: T,\r\n errorMessage?: string,\r\n ) => TupleValidator & {\r\n validators: T;\r\n } & StandardSchemaV1<{ [K in keyof T]: Infer<T[K]> }>;\r\n date: (errorMessage?: string) => DateValidator & StandardSchemaV1<Date>;\r\n literal: <T extends readonly [string | number | boolean, ...(string | number | boolean)[]]>(\r\n ...values: T\r\n ) => LiteralValidator<T> & StandardSchemaV1<T[number]>;\r\n instanceof: <T>(\r\n ctor: new (...args: any[]) => T,\r\n errorMessage?: string,\r\n ) => InstanceOfValidator<T> & StandardSchemaV1<T>;\r\n lazy: <T extends BaseValidator>(thunk: () => T) => LazyValidator<T> & StandardSchemaV1<Infer<T>>;\r\n string: (errorMessage?: string) => StringValidator & StandardSchemaV1<string>;\r\n email: (errorMessage?: string) => StringValidator & StandardSchemaV1<string>;\r\n enum: {\r\n <const T extends readonly (string | number | boolean)[]>(\r\n values: T,\r\n errorMessage?: string,\r\n ): ScalarValidator & StandardSchemaV1<T[number]>;\r\n <const T extends Record<string, string | number>>(\r\n values: T,\r\n errorMessage?: string,\r\n ): ScalarValidator & StandardSchemaV1<T[keyof T]>;\r\n };\r\n number: (errorMessage?: string) => NumberValidator & StandardSchemaV1<number>;\r\n numeric: (errorMessage?: string) => NumericValidator & StandardSchemaV1<number>;\r\n int: (errorMessage?: string) => IntValidator & StandardSchemaV1<number>;\r\n float: (errorMessage?: string) => FloatValidator & StandardSchemaV1<number>;\r\n boolean: (errorMessage?: string) => BooleanValidator & StandardSchemaV1<boolean>;\r\n scalar: (errorMessage?: string) => ScalarValidator & StandardSchemaV1<string | number | boolean>;\r\n union: <T extends BaseValidator[]>(\r\n validators: T,\r\n errorMessage?: string,\r\n ) => UnionValidator & StandardSchemaV1<Infer<T[number]>>;\r\n discriminatedUnion: <K extends string, Branches extends ReadonlyArray<ObjectValidator<any>>>(\r\n discriminator: K,\r\n validators: Branches,\r\n ) => DiscriminatedUnionValidator<K, Branches> & StandardSchemaV1<Infer<Branches[number]>>;\r\n computed: <TResult = any>(\r\n callback: (data: any, context: SchemaContext) => TResult | Promise<TResult>,\r\n resultValidator?: BaseValidator,\r\n ) => ComputedValidator<TResult> & StandardSchemaV1<TResult>;\r\n managed: <TResult = any>(\r\n callback?: (context: SchemaContext) => TResult | Promise<TResult>,\r\n resultValidator?: BaseValidator,\r\n ) => ManagedValidator<TResult> & StandardSchemaV1<TResult>;\r\n validate: <T extends BaseValidator>(\r\n schema: T,\r\n data: any,\r\n options?: ValidateOptions,\r\n ) => Promise<ValidationResult>;\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,IAAgB;;CAE3B;;CAGA,WAAW,IAAI,aAAa;;CAG5B,QAAiC,WAAc,iBAC7C,IAAI,eAAe,WAAW,YAAY;;CAK5C,SAAkC,WAAe,iBAC/C,IAAI,gBAAgB,aAAa,EAAE,IAAI,GAAG,YAAY;;CAKxD,QAAmC,YAAe,iBAChD,IAAI,eAAe,YAAY,YAAY;;CAK7C,OAAO,iBACL,IAAI,cAAc,YAAY;;;;;;;;;CAUhC,UACE,GAAG,WACA,IAAI,iBAAoB,MAAM;;;;;;;;;CAUnC,aAAgB,MAAiC,iBAC/C,IAAI,oBAAuB,MAAM,YAAY;;;;;;;;;;;;;CAc/C,OAAgC,UAC9B,IAAI,cAAc,KAAK;;CAGzB;;CAGA,QAAQ,mBAA4B,iBAClC,IAAI,gBAAgB,YAAY,CAAC,CAAC,MAAM,iBAAiB;;;;;;;;;;;;;;CAgB3D,QAAQ,QAAa,iBACnB,MAAM,QAAQ,MAAM,IAChB,IAAI,gBAAgB,CAAC,CAAC,MAAM,QAAQ,YAAY,IAChD,IAAI,gBAAgB,CAAC,CAAC,KAAK,QAAQ,YAAY;;CAGrD,SAAS,iBACP,IAAI,gBAAgB,YAAY;;CAGlC,UAAU,iBACR,IAAI,iBAAiB,YAAY;;CAGnC,MAAM,iBACJ,IAAI,aAAa,YAAY;;CAG/B,QAAQ,iBACN,IAAI,eAAe,YAAY;;CAGjC,UAAU,iBACR,IAAI,iBAAiB,YAAY;;CAGnC,SAAS,iBACP,IAAI,gBAAgB,YAAY;;CAIlC,QAAmC,YAAe,iBAChD,IAAI,eAAe,CAAC,CAAC,MAAM,YAAY,YAAY;;;;;;;;;;;;;CAerD,qBACE,eACA,eAEA,IAAI,4BAA4B,eAAe,UAAU;;CAO3D,WACE,UACA,oBAEA,IAAI,kBAA2B,UAAU,eAAe;;CAI1D,UACE,UACA,oBAEA,IAAI,iBAA0B,UAAU,eAAe;;CAI/CA;AACZ"}
|