UNPKG

patch-pulse

Version:

Check for outdated npm dependencies

21 lines 1.02 kB
import { VersionInfo } from '../types'; /** * Parses a version string and returns a VersionInfo object * @param version - The version string to parse * @returns A VersionInfo object containing the major, minor, and patch versions */ export declare function parseVersion(version: string): VersionInfo; /** * Preserves the wildcard prefix from the current version when updating to the latest version * @param currentVersion - The current version string (e.g., "^3.3.1", "~2.1.0") * @param latestVersion - The latest version string (e.g., "3.3.2") * @returns The latest version with the original wildcard prefix preserved */ export declare function preserveWildcardPrefix(currentVersion: string, latestVersion: string): string; /** * Checks if a version string has wildcard prefixes * @param version - The version string to check * @returns True if the version has wildcard prefixes, false otherwise */ export declare function hasWildcardPrefix(version: string): boolean; //# sourceMappingURL=parseVersion.d.ts.map