UNPKG

arvo-core

Version:

The core Arvo package which provides application tier core primitives and contract system for building production-grade event-driven application. Provides ArvoEvent (CloudEvents-compliant), ArvoContract for type-safe service interfaces, event factories, O

21 lines (20 loc) 890 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isWildCardArvoSematicVersion = exports.WildCardArvoSemanticVersion = void 0; var schema_1 = require("../schema"); /** * Special semantic version used as a wildcard matcher. * Represents version '0.0.0' which is reserved for system use. */ exports.WildCardArvoSemanticVersion = '0.0.0'; /** * Checks if a version is the special wildcard version. * Validates that the input is both a valid semantic version and matches the wildcard value. * * @param version - Semantic version to check * @returns True if version is the wildcard version, false otherwise */ var isWildCardArvoSematicVersion = function (version) { return (0, schema_1.isValidArvoSemanticVersion)(version) && version === exports.WildCardArvoSemanticVersion; }; exports.isWildCardArvoSematicVersion = isWildCardArvoSematicVersion;