source: trip-planner-front/node_modules/@angular/cdk/schematics/ng-update/index.mjs@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 9.3 KB
Line 
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 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.updateToV13 = exports.updateToV12 = exports.updateToV11 = exports.updateToV10 = exports.updateToV9 = exports.updateToV8 = exports.updateToV7 = exports.updateToV6 = void 0;
11const target_version_1 = require("../update-tool/target-version");
12const upgrade_data_1 = require("./upgrade-data");
13const devkit_migration_rule_1 = require("./devkit-migration-rule");
14/** Entry point for the migration schematics with target of Angular CDK 6.0.0 */
15function updateToV6() {
16 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V6, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
17}
18exports.updateToV6 = updateToV6;
19/** Entry point for the migration schematics with target of Angular CDK 7.0.0 */
20function updateToV7() {
21 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V7, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
22}
23exports.updateToV7 = updateToV7;
24/** Entry point for the migration schematics with target of Angular CDK 8.0.0 */
25function updateToV8() {
26 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V8, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
27}
28exports.updateToV8 = updateToV8;
29/** Entry point for the migration schematics with target of Angular CDK 9.0.0 */
30function updateToV9() {
31 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V9, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
32}
33exports.updateToV9 = updateToV9;
34/** Entry point for the migration schematics with target of Angular CDK 10.0.0 */
35function updateToV10() {
36 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V10, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
37}
38exports.updateToV10 = updateToV10;
39/** Entry point for the migration schematics with target of Angular CDK 11.0.0 */
40function updateToV11() {
41 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V11, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
42}
43exports.updateToV11 = updateToV11;
44/** Entry point for the migration schematics with target of Angular CDK 12.0.0 */
45function updateToV12() {
46 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V12, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
47}
48exports.updateToV12 = updateToV12;
49/** Entry point for the migration schematics with target of Angular CDK 13.0.0 */
50function updateToV13() {
51 return devkit_migration_rule_1.createMigrationSchematicRule(target_version_1.TargetVersion.V13, [], upgrade_data_1.cdkUpgradeData, onMigrationComplete);
52}
53exports.updateToV13 = updateToV13;
54/** Function that will be called when the migration completed. */
55function onMigrationComplete(context, targetVersion, hasFailures) {
56 context.logger.info('');
57 context.logger.info(` ✓ Updated Angular CDK to ${targetVersion}`);
58 context.logger.info('');
59 if (hasFailures) {
60 context.logger.warn(' ⚠ Some issues were detected but could not be fixed automatically. Please check the ' +
61 'output above and fix these issues manually.');
62 }
63}
64//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvbmctdXBkYXRlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7O0dBTUc7OztBQUdILGtFQUE0RDtBQUM1RCxpREFBOEM7QUFDOUMsbUVBQXFFO0FBRXJFLGdGQUFnRjtBQUNoRixTQUFnQixVQUFVO0lBQ3hCLE9BQU8sb0RBQTRCLENBQUMsOEJBQWEsQ0FBQyxFQUFFLEVBQUUsRUF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mFpbHVyZXMpIHtcbiAgICBjb250ZXh0LmxvZ2dlci53YXJuKFxuICAgICAgICAnICDimqAgIFNvbWUgaXNzdWVzIHdlcmUgZGV0ZWN0ZWQgYnV0IGNvdWxkIG5vdCBiZSBmaXhlZCBhdXRvbWF0aWNhbGx5LiBQbGVhc2UgY2hlY2sgdGhlICcgK1xuICAgICAgICAnb3V0cHV0IGFib3ZlIGFuZCBmaXggdGhlc2UgaXNzdWVzIG1hbnVhbGx5LicpO1xuICB9XG59XG4iXX0=
Note: See TracBrowser for help on using the repository browser.