1 | "use strict";
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.getAllVersionNames = exports.TargetVersion = void 0;
|
---|
11 | /** Possible versions that can be automatically migrated by `ng update`. */
|
---|
12 | // Used in an `Object.keys` call below so it can't be `const enum`.
|
---|
13 | // tslint:disable-next-line:prefer-const-enum
|
---|
14 | var TargetVersion;
|
---|
15 | (function (TargetVersion) {
|
---|
16 | TargetVersion["V6"] = "version 6";
|
---|
17 | TargetVersion["V7"] = "version 7";
|
---|
18 | TargetVersion["V8"] = "version 8";
|
---|
19 | TargetVersion["V9"] = "version 9";
|
---|
20 | TargetVersion["V10"] = "version 10";
|
---|
21 | TargetVersion["V11"] = "version 11";
|
---|
22 | TargetVersion["V12"] = "version 12";
|
---|
23 | TargetVersion["V13"] = "version 13";
|
---|
24 | })(TargetVersion = exports.TargetVersion || (exports.TargetVersion = {}));
|
---|
25 | /**
|
---|
26 | * Returns all versions that are supported by "ng update". The versions are determined
|
---|
27 | * based on the "TargetVersion" enum.
|
---|
28 | */
|
---|
29 | function getAllVersionNames() {
|
---|
30 | return Object.keys(TargetVersion).filter(enumValue => {
|
---|
31 | return typeof TargetVersion[enumValue] === 'string';
|
---|
32 | });
|
---|
33 | }
|
---|
34 | exports.getAllVersionNames = getAllVersionNames;
|
---|
35 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFyZ2V0LXZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvdXBkYXRlLXRvb2wvdGFyZ2V0LXZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBw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