@angular/cli 17.0.0 → 17.0.2

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": "17.0.0",
3
+ "version": "17.0.2",
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.1700.0",
29
- "@angular-devkit/core": "17.0.0",
30
- "@angular-devkit/schematics": "17.0.0",
31
- "@schematics/angular": "17.0.0",
28
+ "@angular-devkit/architect": "0.1700.2",
29
+ "@angular-devkit/core": "17.0.2",
30
+ "@angular-devkit/schematics": "17.0.2",
31
+ "@schematics/angular": "17.0.2",
32
32
  "@yarnpkg/lockfile": "1.1.0",
33
33
  "ansi-colors": "4.1.3",
34
34
  "ini": "4.1.1",
@@ -47,13 +47,13 @@
47
47
  "ng-update": {
48
48
  "migrations": "@schematics/angular/migrations/migration-collection.json",
49
49
  "packageGroup": {
50
- "@angular/cli": "17.0.0",
51
- "@angular/ssr": "17.0.0",
52
- "@angular-devkit/architect": "0.1700.0",
53
- "@angular-devkit/build-angular": "17.0.0",
54
- "@angular-devkit/build-webpack": "0.1700.0",
55
- "@angular-devkit/core": "17.0.0",
56
- "@angular-devkit/schematics": "17.0.0"
50
+ "@angular/cli": "17.0.2",
51
+ "@angular/ssr": "17.0.2",
52
+ "@angular-devkit/architect": "0.1700.2",
53
+ "@angular-devkit/build-angular": "17.0.2",
54
+ "@angular-devkit/build-webpack": "0.1700.2",
55
+ "@angular-devkit/core": "17.0.2",
56
+ "@angular-devkit/schematics": "17.0.2"
57
57
  }
58
58
  },
59
59
  "engines": {
@@ -195,6 +195,10 @@ async function fetchPackageMetadata(name, logger, options) {
195
195
  ...npmrc,
196
196
  ...(registry ? { registry } : {}),
197
197
  });
198
+ if (!response.versions) {
199
+ // While pacote type declares that versions cannot be undefined this is not the case.
200
+ response.versions = {};
201
+ }
198
202
  // Normalize the response
199
203
  const metadata = {
200
204
  ...response,
@@ -238,6 +242,12 @@ async function getNpmPackageJson(packageName, logger, options = {}) {
238
242
  fullMetadata: true,
239
243
  ...npmrc,
240
244
  ...(registry ? { registry } : {}),
245
+ }).then((response) => {
246
+ // While pacote type declares that versions cannot be undefined this is not the case.
247
+ if (!response.versions) {
248
+ response.versions = {};
249
+ }
250
+ return response;
241
251
  });
242
252
  npmPackageJsonCache.set(packageName, response);
243
253
  return response;
@@ -25,5 +25,5 @@ class Version {
25
25
  }
26
26
  }
27
27
  // TODO(bazel): Convert this to use build-time version stamping after flipping the build script to use bazel
28
- // export const VERSION = new Version('17.0.0');
28
+ // export const VERSION = new Version('17.0.2');
29
29
  exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);