@angular-devkit/build-angular 19.2.20 → 19.2.21

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "19.2.20",
3
+ "version": "19.2.21",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "2.3.0",
10
- "@angular-devkit/architect": "0.1902.20",
11
- "@angular-devkit/build-webpack": "0.1902.20",
12
- "@angular-devkit/core": "19.2.20",
13
- "@angular/build": "19.2.20",
10
+ "@angular-devkit/architect": "0.1902.21",
11
+ "@angular-devkit/build-webpack": "0.1902.21",
12
+ "@angular-devkit/core": "19.2.21",
13
+ "@angular/build": "19.2.21",
14
14
  "@babel/core": "7.26.10",
15
15
  "@babel/generator": "7.26.10",
16
16
  "@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.26.9",
22
22
  "@babel/runtime": "7.26.10",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "19.2.20",
24
+ "@ngtools/webpack": "19.2.21",
25
25
  "@vitejs/plugin-basic-ssl": "1.2.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
70
70
  "@angular/localize": "^19.0.0 || ^19.2.0-next.0",
71
71
  "@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
72
72
  "@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
73
- "@angular/ssr": "^19.2.20",
73
+ "@angular/ssr": "^19.2.21",
74
74
  "@web/test-runner": "^0.20.0",
75
75
  "browser-sync": "^3.0.2",
76
76
  "jest": "^29.5.0",
@@ -99,7 +99,7 @@ function execute(options, context) {
99
99
  if (!s.success || !b.success) {
100
100
  return (0, rxjs_1.of)([b, s]);
101
101
  }
102
- return startNodeServer(s, nodeServerPort, context.logger, !!options.inspect).pipe((0, rxjs_1.map)(() => [b, s]), (0, rxjs_1.catchError)((err) => {
102
+ return startNodeServer(s, nodeServerPort, options.host, context.logger, !!options.inspect).pipe((0, rxjs_1.map)(() => [b, s]), (0, rxjs_1.catchError)((err) => {
103
103
  context.logger.error(`A server error has occurred.\n${mapErrorToMessage(err)}`);
104
104
  return rxjs_1.EMPTY;
105
105
  }));
@@ -164,10 +164,10 @@ function log({ stderr, stdout }, logger) {
164
164
  logger.info(stdout.replace(/\n?$/, ''));
165
165
  }
166
166
  }
167
- function startNodeServer(serverOutput, port, logger, inspectMode = false) {
167
+ function startNodeServer(serverOutput, port, host, logger, inspectMode = false) {
168
168
  const outputPath = serverOutput.outputPath;
169
169
  const path = (0, node_path_1.join)(outputPath, 'main.js');
170
- const env = { ...process.env, PORT: '' + port };
170
+ const env = { ...process.env, PORT: '' + port, NG_ALLOWED_HOSTS: host ?? 'localhost' };
171
171
  const args = ['--enable-source-maps', `"${path}"`];
172
172
  if (inspectMode) {
173
173
  args.unshift('--inspect-brk');
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = normalizeCacheOptions;
11
11
  const node_path_1 = require("node:path");
12
12
  /** Version placeholder is replaced during the build process with actual package version */
13
- const VERSION = '19.2.20';
13
+ const VERSION = '19.2.21';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&