import {$log} from "ts-log-debug";
import {lt} from "semver";

export class AssetFileStatus {
    constructor(public local: AssetVersion, public remote?: AssetVersion) {}

    get updateAvailable(): boolean {
        $log.debug(`local file ${this.local} | remote file ${this.remote}`);
        return lt(this.local.version, this.remote!.version);
    }

}