@angular/compiler-cli 18.1.1 → 18.1.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.
@@ -10,7 +10,7 @@ import {
10
10
  tryParseSignalInputMapping,
11
11
  tryParseSignalModelMapping,
12
12
  tryParseSignalQueryFromInitializer
13
- } from "./chunk-7SQLBOCA.js";
13
+ } from "./chunk-E7DMD7OM.js";
14
14
  import {
15
15
  ImportManager,
16
16
  ImportedSymbolsTracker,
@@ -554,4 +554,4 @@ export {
554
554
  * Use of this source code is governed by an MIT-style license that can be
555
555
  * found in the LICENSE file at https://angular.io/license
556
556
  */
557
- //# sourceMappingURL=chunk-DPZNOSOS.js.map
557
+ //# sourceMappingURL=chunk-BVJL3UL2.js.map
@@ -8402,10 +8402,12 @@ var MagicString = class {
8402
8402
  update(start, end, content, options) {
8403
8403
  if (typeof content !== "string")
8404
8404
  throw new TypeError("replacement content must be a string");
8405
- while (start < 0)
8406
- start += this.original.length;
8407
- while (end < 0)
8408
- end += this.original.length;
8405
+ if (this.original.length !== 0) {
8406
+ while (start < 0)
8407
+ start += this.original.length;
8408
+ while (end < 0)
8409
+ end += this.original.length;
8410
+ }
8409
8411
  if (end > this.original.length)
8410
8412
  throw new Error("end is out of bounds");
8411
8413
  if (start === end)
@@ -8483,10 +8485,12 @@ var MagicString = class {
8483
8485
  return this;
8484
8486
  }
8485
8487
  remove(start, end) {
8486
- while (start < 0)
8487
- start += this.original.length;
8488
- while (end < 0)
8489
- end += this.original.length;
8488
+ if (this.original.length !== 0) {
8489
+ while (start < 0)
8490
+ start += this.original.length;
8491
+ while (end < 0)
8492
+ end += this.original.length;
8493
+ }
8490
8494
  if (start === end)
8491
8495
  return this;
8492
8496
  if (start < 0 || end > this.original.length)
@@ -8505,10 +8509,12 @@ var MagicString = class {
8505
8509
  return this;
8506
8510
  }
8507
8511
  reset(start, end) {
8508
- while (start < 0)
8509
- start += this.original.length;
8510
- while (end < 0)
8511
- end += this.original.length;
8512
+ if (this.original.length !== 0) {
8513
+ while (start < 0)
8514
+ start += this.original.length;
8515
+ while (end < 0)
8516
+ end += this.original.length;
8517
+ }
8512
8518
  if (start === end)
8513
8519
  return this;
8514
8520
  if (start < 0 || end > this.original.length)
@@ -8572,10 +8578,12 @@ var MagicString = class {
8572
8578
  return this.intro + lineStr;
8573
8579
  }
8574
8580
  slice(start = 0, end = this.original.length) {
8575
- while (start < 0)
8576
- start += this.original.length;
8577
- while (end < 0)
8578
- end += this.original.length;
8581
+ if (this.original.length !== 0) {
8582
+ while (start < 0)
8583
+ start += this.original.length;
8584
+ while (end < 0)
8585
+ end += this.original.length;
8586
+ }
8579
8587
  let result = "";
8580
8588
  let chunk = this.firstChunk;
8581
8589
  while (chunk && (chunk.start > start || chunk.end <= start)) {
@@ -14722,4 +14730,4 @@ export {
14722
14730
  * Use of this source code is governed by an MIT-style license that can be
14723
14731
  * found in the LICENSE file at https://angular.io/license
14724
14732
  */
14725
- //# sourceMappingURL=chunk-7SQLBOCA.js.map
14733
+ //# sourceMappingURL=chunk-E7DMD7OM.js.map