target-version.js 976 B

123456789101112131415161718192021222324252627
  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.dev/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. exports.TargetVersion = void 0;
  11. exports.getAllVersionNames = getAllVersionNames;
  12. /** Possible versions that can be automatically migrated by `ng update`. */
  13. // tslint:disable-next-line:prefer-const-enum
  14. var TargetVersion;
  15. (function (TargetVersion) {
  16. TargetVersion["V19"] = "version 19";
  17. })(TargetVersion || (exports.TargetVersion = TargetVersion = {}));
  18. /**
  19. * Returns all versions that are supported by "ng update". The versions are determined
  20. * based on the "TargetVersion" enum.
  21. */
  22. function getAllVersionNames() {
  23. return Object.keys(TargetVersion).filter(enumValue => {
  24. return typeof TargetVersion[enumValue] === 'string';
  25. });
  26. }
  27. //# sourceMappingURL=target-version.js.map