@angular/cli 14.2.1 → 14.2.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.3",
|
|
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.
|
|
29
|
-
"@angular-devkit/core": "14.2.
|
|
30
|
-
"@angular-devkit/schematics": "14.2.
|
|
31
|
-
"@schematics/angular": "14.2.
|
|
28
|
+
"@angular-devkit/architect": "0.1402.3",
|
|
29
|
+
"@angular-devkit/core": "14.2.3",
|
|
30
|
+
"@angular-devkit/schematics": "14.2.3",
|
|
31
|
+
"@schematics/angular": "14.2.3",
|
|
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.
|
|
53
|
-
"@angular-devkit/architect": "0.1402.
|
|
54
|
-
"@angular-devkit/build-angular": "14.2.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1402.
|
|
56
|
-
"@angular-devkit/core": "14.2.
|
|
57
|
-
"@angular-devkit/schematics": "14.2.
|
|
52
|
+
"@angular/cli": "14.2.3",
|
|
53
|
+
"@angular-devkit/architect": "0.1402.3",
|
|
54
|
+
"@angular-devkit/build-angular": "14.2.3",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.1402.3",
|
|
56
|
+
"@angular-devkit/core": "14.2.3",
|
|
57
|
+
"@angular-devkit/schematics": "14.2.3"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
@@ -430,9 +430,23 @@ function _buildPackageInfo(tree, packages, allDependencies, npmPackageJson, logg
|
|
|
430
430
|
const content = JSON.parse(packageContent.toString());
|
|
431
431
|
installedVersion = content.version;
|
|
432
432
|
}
|
|
433
|
+
const packageVersionsNonDeprecated = [];
|
|
434
|
+
const packageVersionsDeprecated = [];
|
|
435
|
+
for (const [version, { deprecated }] of Object.entries(npmPackageJson.versions)) {
|
|
436
|
+
if (deprecated) {
|
|
437
|
+
packageVersionsDeprecated.push(version);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
packageVersionsNonDeprecated.push(version);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
const findSatisfyingVersion = (targetVersion) => {
|
|
444
|
+
var _a, _b;
|
|
445
|
+
return (_b = ((_a = semver.maxSatisfying(packageVersionsNonDeprecated, targetVersion)) !== null && _a !== void 0 ? _a : semver.maxSatisfying(packageVersionsDeprecated, targetVersion))) !== null && _b !== void 0 ? _b : undefined;
|
|
446
|
+
};
|
|
433
447
|
if (!installedVersion) {
|
|
434
448
|
// Find the version from NPM that fits the range to max.
|
|
435
|
-
installedVersion =
|
|
449
|
+
installedVersion = findSatisfyingVersion(packageJsonRange);
|
|
436
450
|
}
|
|
437
451
|
if (!installedVersion) {
|
|
438
452
|
throw new schematics_1.SchematicsException(`An unexpected error happened; could not determine version for package ${name}.`);
|
|
@@ -450,7 +464,7 @@ function _buildPackageInfo(tree, packages, allDependencies, npmPackageJson, logg
|
|
|
450
464
|
targetVersion = npmPackageJson['dist-tags']['latest'];
|
|
451
465
|
}
|
|
452
466
|
else {
|
|
453
|
-
targetVersion =
|
|
467
|
+
targetVersion = findSatisfyingVersion(targetVersion);
|
|
454
468
|
}
|
|
455
469
|
}
|
|
456
470
|
if (targetVersion && semver.lte(targetVersion, installedVersion)) {
|
|
@@ -36,6 +36,7 @@ export interface NgPackageManifestProperties {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export interface PackageManifest extends Manifest, NgPackageManifestProperties {
|
|
39
|
+
deprecated?: boolean;
|
|
39
40
|
}
|
|
40
41
|
export declare function fetchPackageMetadata(name: string, logger: logging.LoggerApi, options?: {
|
|
41
42
|
registry?: string;
|