@angular/platform-server 19.2.23 → 19.2.25
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/fesm2022/init.mjs +77 -31
- package/fesm2022/init.mjs.map +1 -1
- package/fesm2022/platform-server.mjs +4 -4
- package/fesm2022/platform-server.mjs.map +1 -1
- package/fesm2022/{server-Bnqydiu0.mjs → server-D0hkX0bF.mjs} +179 -72
- package/fesm2022/server-D0hkX0bF.mjs.map +1 -0
- package/fesm2022/testing.mjs +6 -6
- package/index.d.ts +1 -1
- package/init/index.d.ts +1 -1
- package/package.json +5 -5
- package/testing/index.d.ts +1 -1
- package/fesm2022/server-Bnqydiu0.mjs.map +0 -1
package/fesm2022/init.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.25
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -549,6 +549,7 @@ var require_NodeUtils = __commonJS({
|
|
|
549
549
|
XMP: true,
|
|
550
550
|
IFRAME: true,
|
|
551
551
|
NOEMBED: true,
|
|
552
|
+
NOSCRIPT: true,
|
|
552
553
|
NOFRAMES: true,
|
|
553
554
|
PLAINTEXT: true
|
|
554
555
|
};
|
|
@@ -632,12 +633,10 @@ var require_NodeUtils = __commonJS({
|
|
|
632
633
|
if (!rawText.toLowerCase().includes(parentClosingTag)) {
|
|
633
634
|
return rawText;
|
|
634
635
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
-
return result.join("");
|
|
636
|
+
return rawText.replace(
|
|
637
|
+
new RegExp(parentClosingTag, "ig"),
|
|
638
|
+
(m) => "<" + m.slice(1)
|
|
639
|
+
);
|
|
641
640
|
}
|
|
642
641
|
var CLOSING_COMMENT_REGEXP = /--!?>/;
|
|
643
642
|
function escapeClosingCommentTag(rawContent) {
|
|
@@ -666,7 +665,8 @@ var require_NodeUtils = __commonJS({
|
|
|
666
665
|
s += ">";
|
|
667
666
|
if (!(html && emptyElements[tagname])) {
|
|
668
667
|
var ss = kid.serialize();
|
|
669
|
-
|
|
668
|
+
var upperTag = tagname.toUpperCase();
|
|
669
|
+
if (hasRawContent[upperTag]) {
|
|
670
670
|
ss = escapeMatchingClosingTag(ss, tagname);
|
|
671
671
|
}
|
|
672
672
|
if (html && extraNewLine[tagname] && ss.charAt(0) === "\n")
|
|
@@ -682,7 +682,7 @@ var require_NodeUtils = __commonJS({
|
|
|
682
682
|
parenttag = parent.tagName;
|
|
683
683
|
else
|
|
684
684
|
parenttag = "";
|
|
685
|
-
if (hasRawContent[parenttag]
|
|
685
|
+
if (hasRawContent[parenttag]) {
|
|
686
686
|
s += kid.data;
|
|
687
687
|
} else {
|
|
688
688
|
s += escape(kid.data);
|
|
@@ -2737,9 +2737,9 @@ var require_Element = __commonJS({
|
|
|
2737
2737
|
ContainerNode.call(this);
|
|
2738
2738
|
this.nodeType = Node.ELEMENT_NODE;
|
|
2739
2739
|
this.ownerDocument = doc;
|
|
2740
|
-
this.
|
|
2740
|
+
this._localName = localName;
|
|
2741
2741
|
this.namespaceURI = namespaceURI;
|
|
2742
|
-
this.
|
|
2742
|
+
this._prefix = prefix;
|
|
2743
2743
|
this._tagName = void 0;
|
|
2744
2744
|
this._attrsByQName = /* @__PURE__ */ Object.create(null);
|
|
2745
2745
|
this._attrsByLName = /* @__PURE__ */ Object.create(null);
|
|
@@ -2754,28 +2754,46 @@ var require_Element = __commonJS({
|
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
2756
2756
|
Element.prototype = Object.create(ContainerNode.prototype, {
|
|
2757
|
+
localName: {
|
|
2758
|
+
get: function() {
|
|
2759
|
+
return this._localName;
|
|
2760
|
+
},
|
|
2761
|
+
set: function() {
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
prefix: {
|
|
2765
|
+
get: function() {
|
|
2766
|
+
return this._prefix;
|
|
2767
|
+
},
|
|
2768
|
+
set: function() {
|
|
2769
|
+
}
|
|
2770
|
+
},
|
|
2757
2771
|
isHTML: { get: function isHTML() {
|
|
2758
2772
|
return this.namespaceURI === NAMESPACE.HTML && this.ownerDocument.isHTML;
|
|
2759
2773
|
} },
|
|
2760
|
-
tagName: {
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2774
|
+
tagName: {
|
|
2775
|
+
get: function tagName() {
|
|
2776
|
+
if (this._tagName === void 0) {
|
|
2777
|
+
var tn;
|
|
2778
|
+
if (this.prefix === null) {
|
|
2779
|
+
tn = this.localName;
|
|
2780
|
+
} else {
|
|
2781
|
+
tn = this.prefix + ":" + this.localName;
|
|
2782
|
+
}
|
|
2783
|
+
if (this.isHTML) {
|
|
2784
|
+
var up = uppercaseCache[tn];
|
|
2785
|
+
if (!up) {
|
|
2786
|
+
uppercaseCache[tn] = up = utils.toASCIIUpperCase(tn);
|
|
2787
|
+
}
|
|
2788
|
+
tn = up;
|
|
2772
2789
|
}
|
|
2773
|
-
|
|
2790
|
+
this._tagName = tn;
|
|
2774
2791
|
}
|
|
2775
|
-
this._tagName
|
|
2792
|
+
return this._tagName;
|
|
2793
|
+
},
|
|
2794
|
+
set: function() {
|
|
2776
2795
|
}
|
|
2777
|
-
|
|
2778
|
-
} },
|
|
2796
|
+
},
|
|
2779
2797
|
nodeName: { get: function() {
|
|
2780
2798
|
return this.tagName;
|
|
2781
2799
|
} },
|
|
@@ -3432,13 +3450,27 @@ var require_Element = __commonJS({
|
|
|
3432
3450
|
}
|
|
3433
3451
|
);
|
|
3434
3452
|
function Attr(elt, lname, prefix, namespace, value) {
|
|
3435
|
-
this.
|
|
3436
|
-
this.
|
|
3453
|
+
this._localName = lname;
|
|
3454
|
+
this._prefix = prefix === null || prefix === "" ? null : "" + prefix;
|
|
3437
3455
|
this.namespaceURI = namespace === null || namespace === "" ? null : "" + namespace;
|
|
3438
3456
|
this.data = value;
|
|
3439
3457
|
this._setOwnerElement(elt);
|
|
3440
3458
|
}
|
|
3441
3459
|
Attr.prototype = Object.create(Object.prototype, {
|
|
3460
|
+
localName: {
|
|
3461
|
+
get: function() {
|
|
3462
|
+
return this._localName;
|
|
3463
|
+
},
|
|
3464
|
+
set: function() {
|
|
3465
|
+
}
|
|
3466
|
+
},
|
|
3467
|
+
prefix: {
|
|
3468
|
+
get: function() {
|
|
3469
|
+
return this._prefix;
|
|
3470
|
+
},
|
|
3471
|
+
set: function() {
|
|
3472
|
+
}
|
|
3473
|
+
},
|
|
3442
3474
|
ownerElement: {
|
|
3443
3475
|
get: function() {
|
|
3444
3476
|
return this._ownerElement;
|
|
@@ -3935,7 +3967,7 @@ var require_ProcessingInstruction = __commonJS({
|
|
|
3935
3967
|
CharacterData.call(this);
|
|
3936
3968
|
this.nodeType = Node.PROCESSING_INSTRUCTION_NODE;
|
|
3937
3969
|
this.ownerDocument = doc;
|
|
3938
|
-
this.
|
|
3970
|
+
this._target = target;
|
|
3939
3971
|
this._data = data;
|
|
3940
3972
|
}
|
|
3941
3973
|
var nodeValue = {
|
|
@@ -3954,6 +3986,13 @@ var require_ProcessingInstruction = __commonJS({
|
|
|
3954
3986
|
}
|
|
3955
3987
|
};
|
|
3956
3988
|
ProcessingInstruction.prototype = Object.create(CharacterData.prototype, {
|
|
3989
|
+
target: {
|
|
3990
|
+
get: function() {
|
|
3991
|
+
return this._target;
|
|
3992
|
+
},
|
|
3993
|
+
set: function() {
|
|
3994
|
+
}
|
|
3995
|
+
},
|
|
3957
3996
|
nodeName: { get: function() {
|
|
3958
3997
|
return this.target;
|
|
3959
3998
|
} },
|
|
@@ -7547,11 +7586,18 @@ var require_DocumentType = __commonJS({
|
|
|
7547
7586
|
Leaf.call(this);
|
|
7548
7587
|
this.nodeType = Node.DOCUMENT_TYPE_NODE;
|
|
7549
7588
|
this.ownerDocument = ownerDocument || null;
|
|
7550
|
-
this.
|
|
7589
|
+
this._name = name;
|
|
7551
7590
|
this.publicId = publicId || "";
|
|
7552
7591
|
this.systemId = systemId || "";
|
|
7553
7592
|
}
|
|
7554
7593
|
DocumentType.prototype = Object.create(Leaf.prototype, {
|
|
7594
|
+
name: {
|
|
7595
|
+
get: function() {
|
|
7596
|
+
return this._name;
|
|
7597
|
+
},
|
|
7598
|
+
set: function() {
|
|
7599
|
+
}
|
|
7600
|
+
},
|
|
7555
7601
|
nodeName: { get: function() {
|
|
7556
7602
|
return this.name;
|
|
7557
7603
|
} },
|