"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllVersionNames = exports.TargetVersion = void 0; /** Possible versions that can be automatically migrated by `ng update`. */ // Used in an `Object.keys` call below so it can't be `const enum`. // tslint:disable-next-line:prefer-const-enum var TargetVersion; (function (TargetVersion) { TargetVersion["V16"] = "version 16"; })(TargetVersion || (exports.TargetVersion = TargetVersion = {})); /** * Returns all versions that are supported by "ng update". The versions are determined * based on the "TargetVersion" enum. */ function getAllVersionNames() { return Object.keys(TargetVersion).filter(enumValue => { return typeof TargetVersion[enumValue] === 'string'; }); } exports.getAllVersionNames = getAllVersionNames; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFyZ2V0LXZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvdXBkYXRlLXRvb2wvdGFyZ2V0LXZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsMkVBQTJFO0FBQzNFLG1FQUFtRTtBQUNuRSw2Q0FBNkM7QUFDN0MsSUFBWSxhQUVYO0FBRkQsV0FBWSxhQUFhO0lBQ3ZCLG1DQUFrQixDQUFBO0FBQ3BCLENBQUMsRUFGVyxhQUFhLDZCQUFiLGFBQWEsUUFFeEI7QUFFRDs7O0dBR0c7QUFDSCxTQUFnQixrQkFBa0I7SUFDaEMsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsRUFBRTtRQUNuRCxPQUFPLE9BQVEsYUFBb0QsQ0FBQyxTQUFTLENBQUMsS0FBSyxRQUFRLENBQUM7SUFDOUYsQ0FBQyxDQ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