@angular/compiler-cli 18.1.4 → 18.1.5
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/bundles/{chunk-MRMHUPL3.js → chunk-724GY53E.js} +2 -2
- package/bundles/{chunk-UMJUTVY5.js → chunk-DIIOELYC.js} +2 -2
- package/bundles/{chunk-E2YXMPLM.js → chunk-GD2SCRZ6.js} +2 -2
- package/bundles/{chunk-6E7WYCEU.js → chunk-Q72OGISC.js} +9 -9
- package/bundles/{chunk-6E7WYCEU.js.map → chunk-Q72OGISC.js.map} +1 -1
- package/bundles/chunk-TNEE4FUS.js +1 -1
- package/bundles/index.js +4 -4
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +3 -3
- package/bundles/src/bin/ngc.js +3 -3
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/typecheck/src/expression.d.ts +12 -1
- /package/bundles/{chunk-MRMHUPL3.js.map → chunk-724GY53E.js.map} +0 -0
- /package/bundles/{chunk-UMJUTVY5.js.map → chunk-DIIOELYC.js.map} +0 -0
- /package/bundles/{chunk-E2YXMPLM.js.map → chunk-GD2SCRZ6.js.map} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DIIOELYC.js";
|
|
16
16
|
|
|
17
17
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
18
18
|
import ts2 from "typescript";
|
|
@@ -363,4 +363,4 @@ export {
|
|
|
363
363
|
* Use of this source code is governed by an MIT-style license that can be
|
|
364
364
|
* found in the LICENSE file at https://angular.io/license
|
|
365
365
|
*/
|
|
366
|
-
//# sourceMappingURL=chunk-
|
|
366
|
+
//# sourceMappingURL=chunk-724GY53E.js.map
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
retagAllTsFiles,
|
|
48
48
|
tryParseInitializerApi,
|
|
49
49
|
untagAllTsFiles
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-Q72OGISC.js";
|
|
51
51
|
import {
|
|
52
52
|
AbsoluteModuleStrategy,
|
|
53
53
|
AliasStrategy,
|
|
@@ -4677,4 +4677,4 @@ export {
|
|
|
4677
4677
|
* Use of this source code is governed by an MIT-style license that can be
|
|
4678
4678
|
* found in the LICENSE file at https://angular.io/license
|
|
4679
4679
|
*/
|
|
4680
|
-
//# sourceMappingURL=chunk-
|
|
4680
|
+
//# sourceMappingURL=chunk-DIIOELYC.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
tryParseSignalInputMapping,
|
|
11
11
|
tryParseSignalModelMapping,
|
|
12
12
|
tryParseSignalQueryFromInitializer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Q72OGISC.js";
|
|
14
14
|
import {
|
|
15
15
|
ImportManager,
|
|
16
16
|
ImportedSymbolsTracker,
|
|
@@ -551,4 +551,4 @@ export {
|
|
|
551
551
|
* Use of this source code is governed by an MIT-style license that can be
|
|
552
552
|
* found in the LICENSE file at https://angular.io/license
|
|
553
553
|
*/
|
|
554
|
-
//# sourceMappingURL=chunk-
|
|
554
|
+
//# sourceMappingURL=chunk-GD2SCRZ6.js.map
|
|
@@ -9655,7 +9655,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
9655
9655
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
9656
9656
|
import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
9657
9657
|
import ts40 from "typescript";
|
|
9658
|
-
var
|
|
9658
|
+
var ANY_EXPRESSION = ts40.factory.createAsExpression(ts40.factory.createNumericLiteral("0"), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
|
|
9659
9659
|
var UNDEFINED = ts40.factory.createIdentifier("undefined");
|
|
9660
9660
|
var UNARY_OPS = /* @__PURE__ */ new Map([
|
|
9661
9661
|
["+", ts40.SyntaxKind.PlusToken],
|
|
@@ -9839,7 +9839,7 @@ var AstTranslator = class {
|
|
|
9839
9839
|
if (this.config.strictSafeNavigationTypes) {
|
|
9840
9840
|
const expr = ts40.factory.createPropertyAccessExpression(ts40.factory.createNonNullExpression(receiver), ast.name);
|
|
9841
9841
|
addParseSpanInfo(expr, ast.nameSpan);
|
|
9842
|
-
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9842
|
+
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
9843
9843
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9844
9844
|
node = ts40.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
|
|
9845
9845
|
} else {
|
|
@@ -9857,7 +9857,7 @@ var AstTranslator = class {
|
|
|
9857
9857
|
if (this.config.strictSafeNavigationTypes) {
|
|
9858
9858
|
const expr = ts40.factory.createElementAccessExpression(ts40.factory.createNonNullExpression(receiver), key);
|
|
9859
9859
|
addParseSpanInfo(expr, ast.sourceSpan);
|
|
9860
|
-
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9860
|
+
node = ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
9861
9861
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9862
9862
|
node = ts40.factory.createElementAccessExpression(tsCastToAny(receiver), key);
|
|
9863
9863
|
} else {
|
|
@@ -9903,7 +9903,7 @@ var AstTranslator = class {
|
|
|
9903
9903
|
convertToSafeCall(ast, expr, args) {
|
|
9904
9904
|
if (this.config.strictSafeNavigationTypes) {
|
|
9905
9905
|
const call = ts40.factory.createCallExpression(ts40.factory.createNonNullExpression(expr), void 0, args);
|
|
9906
|
-
return ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(
|
|
9906
|
+
return ts40.factory.createParenthesizedExpression(ts40.factory.createConditionalExpression(ANY_EXPRESSION, void 0, call, void 0, UNDEFINED));
|
|
9907
9907
|
}
|
|
9908
9908
|
if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
9909
9909
|
return ts40.factory.createCallExpression(tsCastToAny(expr), void 0, args);
|
|
@@ -10289,7 +10289,7 @@ var TcbInvalidReferenceOp = class extends TcbOp {
|
|
|
10289
10289
|
}
|
|
10290
10290
|
execute() {
|
|
10291
10291
|
const id = this.tcb.allocateId();
|
|
10292
|
-
this.scope.addStatement(tsCreateVariable(id,
|
|
10292
|
+
this.scope.addStatement(tsCreateVariable(id, ANY_EXPRESSION));
|
|
10293
10293
|
return id;
|
|
10294
10294
|
}
|
|
10295
10295
|
};
|
|
@@ -11353,10 +11353,10 @@ var TcbExpressionTranslator = class {
|
|
|
11353
11353
|
let pipe;
|
|
11354
11354
|
if (pipeMeta === null) {
|
|
11355
11355
|
this.tcb.oobRecorder.missingPipe(this.tcb.id, ast);
|
|
11356
|
-
pipe =
|
|
11356
|
+
pipe = ANY_EXPRESSION;
|
|
11357
11357
|
} else if (pipeMeta.isExplicitlyDeferred && this.tcb.boundTarget.getEagerlyUsedPipes().includes(ast.name)) {
|
|
11358
11358
|
this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id, ast);
|
|
11359
|
-
pipe =
|
|
11359
|
+
pipe = ANY_EXPRESSION;
|
|
11360
11360
|
} else {
|
|
11361
11361
|
pipe = this.tcb.env.pipeInst(pipeMeta.ref);
|
|
11362
11362
|
}
|
|
@@ -11421,7 +11421,7 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
11421
11421
|
addParseSpanInfo(assignment, input.sourceSpan);
|
|
11422
11422
|
return assignment;
|
|
11423
11423
|
} else {
|
|
11424
|
-
return ts41.factory.createPropertyAssignment(propertyName,
|
|
11424
|
+
return ts41.factory.createPropertyAssignment(propertyName, ANY_EXPRESSION);
|
|
11425
11425
|
}
|
|
11426
11426
|
});
|
|
11427
11427
|
return ts41.factory.createCallExpression(
|
|
@@ -14730,4 +14730,4 @@ export {
|
|
|
14730
14730
|
* Use of this source code is governed by an MIT-style license that can be
|
|
14731
14731
|
* found in the LICENSE file at https://angular.io/license
|
|
14732
14732
|
*/
|
|
14733
|
-
//# sourceMappingURL=chunk-
|
|
14733
|
+
//# sourceMappingURL=chunk-Q72OGISC.js.map
|