@angular/cli 14.2.6 → 14.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/ng.js CHANGED
@@ -20,6 +20,16 @@ try {
20
20
  process.title = 'ng';
21
21
  }
22
22
 
23
+ const rawCommandName = process.argv[2];
24
+
25
+ if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completion') {
26
+ // Skip Node.js supported checks when running ng completion.
27
+ // A warning at this stage could cause a broken source action (`source <(ng completion script)`) when in the shell init script.
28
+ require('./bootstrap');
29
+
30
+ return;
31
+ }
32
+
23
33
  // This node version check ensures that extremely old versions of node are not used.
24
34
  // These may not support ES2015 features such as const/let/async/await/etc.
25
35
  // These would then crash with a hard to diagnose error message.
@@ -1140,7 +1140,8 @@
1140
1140
  "CanActivate",
1141
1141
  "CanActivateChild",
1142
1142
  "CanDeactivate",
1143
- "CanLoad"
1143
+ "CanLoad",
1144
+ "CanMatch"
1144
1145
  ],
1145
1146
  "type": "string"
1146
1147
  },
@@ -434,7 +434,8 @@ export declare enum Implement {
434
434
  CanActivate = "CanActivate",
435
435
  CanActivateChild = "CanActivateChild",
436
436
  CanDeactivate = "CanDeactivate",
437
- CanLoad = "CanLoad"
437
+ CanLoad = "CanLoad",
438
+ CanMatch = "CanMatch"
438
439
  }
439
440
  /**
440
441
  * Creates a new, generic interceptor definition in the given or default project.
@@ -73,4 +73,5 @@ var Implement;
73
73
  Implement["CanActivateChild"] = "CanActivateChild";
74
74
  Implement["CanDeactivate"] = "CanDeactivate";
75
75
  Implement["CanLoad"] = "CanLoad";
76
+ Implement["CanMatch"] = "CanMatch";
76
77
  })(Implement = exports.Implement || (exports.Implement = {}));
package/lib/init.js CHANGED
@@ -99,7 +99,9 @@ let forceExit = false;
99
99
  console.error('Version mismatch check skipped. Unable to compare local version: ' + error);
100
100
  }
101
101
  // When using the completion command, don't show the warning as otherwise this will break completion.
102
- if (isGlobalGreater && rawCommandName !== 'completion') {
102
+ if (isGlobalGreater &&
103
+ rawCommandName !== '--get-yargs-completions' &&
104
+ rawCommandName !== 'completion') {
103
105
  // If using the update command and the global version is greater, use the newer update command
104
106
  // This allows improvements in update to be used in older versions that do not have bootstrapping
105
107
  if (rawCommandName === 'update' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "14.2.6",
3
+ "version": "14.2.8",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "homepage": "https://github.com/angular/angular-cli",
27
27
  "dependencies": {
28
- "@angular-devkit/architect": "0.1402.6",
29
- "@angular-devkit/core": "14.2.6",
30
- "@angular-devkit/schematics": "14.2.6",
31
- "@schematics/angular": "14.2.6",
28
+ "@angular-devkit/architect": "0.1402.8",
29
+ "@angular-devkit/core": "14.2.8",
30
+ "@angular-devkit/schematics": "14.2.8",
31
+ "@schematics/angular": "14.2.8",
32
32
  "@yarnpkg/lockfile": "1.1.0",
33
33
  "ansi-colors": "4.1.3",
34
34
  "debug": "4.3.4",
@@ -49,12 +49,12 @@
49
49
  "ng-update": {
50
50
  "migrations": "@schematics/angular/migrations/migration-collection.json",
51
51
  "packageGroup": {
52
- "@angular/cli": "14.2.6",
53
- "@angular-devkit/architect": "0.1402.6",
54
- "@angular-devkit/build-angular": "14.2.6",
55
- "@angular-devkit/build-webpack": "0.1402.6",
56
- "@angular-devkit/core": "14.2.6",
57
- "@angular-devkit/schematics": "14.2.6"
52
+ "@angular/cli": "14.2.8",
53
+ "@angular-devkit/architect": "0.1402.8",
54
+ "@angular-devkit/build-angular": "14.2.8",
55
+ "@angular-devkit/build-webpack": "0.1402.8",
56
+ "@angular-devkit/core": "14.2.8",
57
+ "@angular-devkit/schematics": "14.2.8"
58
58
  }
59
59
  },
60
60
  "engines": {