target-version.js 966 B

1234567891011121314151617181920212223242526
  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. /** Possible versions that can be automatically migrated by `ng update`. */
  11. var TargetVersion;
  12. (function (TargetVersion) {
  13. TargetVersion["V6"] = "version 6";
  14. TargetVersion["V7"] = "version 7";
  15. TargetVersion["V8"] = "version 8";
  16. })(TargetVersion = exports.TargetVersion || (exports.TargetVersion = {}));
  17. /**
  18. * Returns all versions that are supported by "ng update". The versions are determined
  19. * based on the "TargetVersion" enum.
  20. */
  21. function getAllVersionNames() {
  22. return Object.keys(TargetVersion)
  23. .filter(enumValue => typeof TargetVersion[enumValue] === 'number');
  24. }
  25. exports.getAllVersionNames = getAllVersionNames;
  26. //# sourceMappingURL=target-version.js.map