@angular/compiler-cli 13.0.0-rc.0 → 13.0.0-rc.1

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.
@@ -3481,25 +3481,31 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
3481
3481
  }
3482
3482
  };
3483
3483
  function parseStatementForUmdModule(statement) {
3484
- const wrapperCall = getUmdWrapperCall(statement);
3485
- if (!wrapperCall)
3484
+ const wrapper = getUmdWrapper(statement);
3485
+ if (wrapper === null)
3486
3486
  return null;
3487
- const wrapperFn = wrapperCall.expression;
3488
- if (!ts14.isFunctionExpression(wrapperFn))
3489
- return null;
3490
- const factoryFnParamIndex = wrapperFn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
3487
+ const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
3491
3488
  if (factoryFnParamIndex === -1)
3492
3489
  return null;
3493
- const factoryFn = stripParentheses(wrapperCall.arguments[factoryFnParamIndex]);
3490
+ const factoryFn = stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
3494
3491
  if (!factoryFn || !ts14.isFunctionExpression(factoryFn))
3495
3492
  return null;
3496
- return { wrapperFn, factoryFn };
3493
+ return { wrapperFn: wrapper.fn, factoryFn };
3497
3494
  }
3498
- function getUmdWrapperCall(statement) {
3499
- if (!ts14.isExpressionStatement(statement) || !ts14.isParenthesizedExpression(statement.expression) || !ts14.isCallExpression(statement.expression.expression) || !ts14.isFunctionExpression(statement.expression.expression.expression)) {
3495
+ function getUmdWrapper(statement) {
3496
+ if (!ts14.isExpressionStatement(statement))
3500
3497
  return null;
3498
+ if (ts14.isParenthesizedExpression(statement.expression) && ts14.isCallExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
3499
+ const call = statement.expression.expression;
3500
+ const fn = statement.expression.expression.expression;
3501
+ return { call, fn };
3502
+ }
3503
+ if (ts14.isCallExpression(statement.expression) && ts14.isParenthesizedExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
3504
+ const call = statement.expression;
3505
+ const fn = statement.expression.expression.expression;
3506
+ return { call, fn };
3501
3507
  }
3502
- return statement.expression.expression;
3508
+ return null;
3503
3509
  }
3504
3510
  function getImportsOfUmdModule(umdModule) {
3505
3511
  const imports = [];
@@ -4451,7 +4457,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
4451
4457
  };
4452
4458
 
4453
4459
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
4454
- var NGCC_VERSION = "13.0.0-rc.0";
4460
+ var NGCC_VERSION = "13.0.0-rc.1";
4455
4461
  function needsCleaning(packageJson) {
4456
4462
  return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
4457
4463
  }
@@ -15363,6 +15369,11 @@ import { ClassStmt as ClassStmt2, StmtModifier as StmtModifier3 } from "@angular
15363
15369
  import ts110 from "typescript";
15364
15370
 
15365
15371
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
15372
+ var VE_DISABLED_MESSAGE = `
15373
+ This compilation is using the View Engine compiler which is no longer supported by the Angular team
15374
+ and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
15375
+ https://angular.io/guide/ivy for more information.
15376
+ `.trim().split("\n").join(" ");
15366
15377
  var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
15367
15378
  var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
15368
15379
  var emptyModules = {