@angular/platform-server 19.2.10 → 19.2.11

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.10
2
+ * @license Angular v19.2.11
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -149,132 +149,6 @@ var require_MouseEvent = __commonJS({
149
149
  }
150
150
  });
151
151
 
152
- // external/npm/node_modules/domino/lib/DOMException.js
153
- var require_DOMException = __commonJS({
154
- "external/npm/node_modules/domino/lib/DOMException.js"(exports, module) {
155
- module.exports = DOMException;
156
- var INDEX_SIZE_ERR = 1;
157
- var HIERARCHY_REQUEST_ERR = 3;
158
- var WRONG_DOCUMENT_ERR = 4;
159
- var INVALID_CHARACTER_ERR = 5;
160
- var NO_MODIFICATION_ALLOWED_ERR = 7;
161
- var NOT_FOUND_ERR = 8;
162
- var NOT_SUPPORTED_ERR = 9;
163
- var INVALID_STATE_ERR = 11;
164
- var SYNTAX_ERR = 12;
165
- var INVALID_MODIFICATION_ERR = 13;
166
- var NAMESPACE_ERR = 14;
167
- var INVALID_ACCESS_ERR = 15;
168
- var TYPE_MISMATCH_ERR = 17;
169
- var SECURITY_ERR = 18;
170
- var NETWORK_ERR = 19;
171
- var ABORT_ERR = 20;
172
- var URL_MISMATCH_ERR = 21;
173
- var QUOTA_EXCEEDED_ERR = 22;
174
- var TIMEOUT_ERR = 23;
175
- var INVALID_NODE_TYPE_ERR = 24;
176
- var DATA_CLONE_ERR = 25;
177
- var names = [
178
- null,
179
- "INDEX_SIZE_ERR",
180
- null,
181
- "HIERARCHY_REQUEST_ERR",
182
- "WRONG_DOCUMENT_ERR",
183
- "INVALID_CHARACTER_ERR",
184
- null,
185
- "NO_MODIFICATION_ALLOWED_ERR",
186
- "NOT_FOUND_ERR",
187
- "NOT_SUPPORTED_ERR",
188
- "INUSE_ATTRIBUTE_ERR",
189
- "INVALID_STATE_ERR",
190
- "SYNTAX_ERR",
191
- "INVALID_MODIFICATION_ERR",
192
- "NAMESPACE_ERR",
193
- "INVALID_ACCESS_ERR",
194
- null,
195
- "TYPE_MISMATCH_ERR",
196
- "SECURITY_ERR",
197
- "NETWORK_ERR",
198
- "ABORT_ERR",
199
- "URL_MISMATCH_ERR",
200
- "QUOTA_EXCEEDED_ERR",
201
- "TIMEOUT_ERR",
202
- "INVALID_NODE_TYPE_ERR",
203
- "DATA_CLONE_ERR"
204
- ];
205
- var messages = [
206
- null,
207
- "INDEX_SIZE_ERR (1): the index is not in the allowed range",
208
- null,
209
- "HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model",
210
- "WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required",
211
- "INVALID_CHARACTER_ERR (5): the string contains invalid characters",
212
- null,
213
- "NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified",
214
- "NOT_FOUND_ERR (8): the object can not be found here",
215
- "NOT_SUPPORTED_ERR (9): this operation is not supported",
216
- "INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute",
217
- "INVALID_STATE_ERR (11): the object is in an invalid state",
218
- "SYNTAX_ERR (12): the string did not match the expected pattern",
219
- "INVALID_MODIFICATION_ERR (13): the object can not be modified in this way",
220
- "NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML",
221
- "INVALID_ACCESS_ERR (15): the object does not support the operation or argument",
222
- null,
223
- "TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type",
224
- "SECURITY_ERR (18): the operation is insecure",
225
- "NETWORK_ERR (19): a network error occurred",
226
- "ABORT_ERR (20): the user aborted an operation",
227
- "URL_MISMATCH_ERR (21): the given URL does not match another URL",
228
- "QUOTA_EXCEEDED_ERR (22): the quota has been exceeded",
229
- "TIMEOUT_ERR (23): a timeout occurred",
230
- "INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation",
231
- "DATA_CLONE_ERR (25): the object can not be cloned."
232
- ];
233
- var constants = {
234
- INDEX_SIZE_ERR,
235
- DOMSTRING_SIZE_ERR: 2,
236
- HIERARCHY_REQUEST_ERR,
237
- WRONG_DOCUMENT_ERR,
238
- INVALID_CHARACTER_ERR,
239
- NO_DATA_ALLOWED_ERR: 6,
240
- NO_MODIFICATION_ALLOWED_ERR,
241
- NOT_FOUND_ERR,
242
- NOT_SUPPORTED_ERR,
243
- INUSE_ATTRIBUTE_ERR: 10,
244
- INVALID_STATE_ERR,
245
- SYNTAX_ERR,
246
- INVALID_MODIFICATION_ERR,
247
- NAMESPACE_ERR,
248
- INVALID_ACCESS_ERR,
249
- VALIDATION_ERR: 16,
250
- TYPE_MISMATCH_ERR,
251
- SECURITY_ERR,
252
- NETWORK_ERR,
253
- ABORT_ERR,
254
- URL_MISMATCH_ERR,
255
- QUOTA_EXCEEDED_ERR,
256
- TIMEOUT_ERR,
257
- INVALID_NODE_TYPE_ERR,
258
- DATA_CLONE_ERR
259
- };
260
- function DOMException(code) {
261
- Error.call(this);
262
- Error.captureStackTrace(this, this.constructor);
263
- this.code = code;
264
- this.message = messages[code];
265
- this.name = names[code];
266
- }
267
- DOMException.prototype.__proto__ = Error.prototype;
268
- for (c in constants) {
269
- v = { value: constants[c] };
270
- Object.defineProperty(DOMException, c, v);
271
- Object.defineProperty(DOMException.prototype, c, v);
272
- }
273
- var v;
274
- var c;
275
- }
276
- });
277
-
278
152
  // external/npm/node_modules/domino/lib/config.js
279
153
  var require_config = __commonJS({
280
154
  "external/npm/node_modules/domino/lib/config.js"(exports) {
@@ -285,8 +159,6 @@ var require_config = __commonJS({
285
159
  // external/npm/node_modules/domino/lib/utils.js
286
160
  var require_utils = __commonJS({
287
161
  "external/npm/node_modules/domino/lib/utils.js"(exports) {
288
- var DOMException = require_DOMException();
289
- var ERR = DOMException;
290
162
  var isApiWritable = require_config().isApiWritable;
291
163
  exports.NAMESPACE = {
292
164
  HTML: "http://www.w3.org/1999/xhtml",
@@ -296,68 +168,77 @@ var require_utils = __commonJS({
296
168
  SVG: "http://www.w3.org/2000/svg",
297
169
  XLINK: "http://www.w3.org/1999/xlink"
298
170
  };
299
- exports.IndexSizeError = function() {
300
- throw new DOMException(ERR.INDEX_SIZE_ERR);
171
+ exports.IndexSizeError = () => {
172
+ throw new DOMException("The index is not in the allowed range", "IndexSizeError");
301
173
  };
302
- exports.HierarchyRequestError = function() {
303
- throw new DOMException(ERR.HIERARCHY_REQUEST_ERR);
174
+ exports.HierarchyRequestError = () => {
175
+ throw new DOMException("The node tree hierarchy is not correct", "HierarchyRequestError");
304
176
  };
305
- exports.WrongDocumentError = function() {
306
- throw new DOMException(ERR.WRONG_DOCUMENT_ERR);
177
+ exports.WrongDocumentError = () => {
178
+ throw new DOMException("The object is in the wrong Document", "WrongDocumentError");
307
179
  };
308
- exports.InvalidCharacterError = function() {
309
- throw new DOMException(ERR.INVALID_CHARACTER_ERR);
180
+ exports.InvalidCharacterError = () => {
181
+ throw new DOMException("The string contains invalid characters", "InvalidCharacterError");
310
182
  };
311
- exports.NoModificationAllowedError = function() {
312
- throw new DOMException(ERR.NO_MODIFICATION_ALLOWED_ERR);
183
+ exports.NoModificationAllowedError = () => {
184
+ throw new DOMException("The object cannot be modified", "NoModificationAllowedError");
313
185
  };
314
- exports.NotFoundError = function() {
315
- throw new DOMException(ERR.NOT_FOUND_ERR);
186
+ exports.NotFoundError = () => {
187
+ throw new DOMException("The object can not be found here", "NotFoundError");
316
188
  };
317
- exports.NotSupportedError = function() {
318
- throw new DOMException(ERR.NOT_SUPPORTED_ERR);
189
+ exports.NotSupportedError = () => {
190
+ throw new DOMException("The operation is not supported", "NotSupportedError");
319
191
  };
320
- exports.InvalidStateError = function() {
321
- throw new DOMException(ERR.INVALID_STATE_ERR);
192
+ exports.InvalidStateError = () => {
193
+ throw new DOMException("The object is in an invalid state", "InvalidStateError");
322
194
  };
323
- exports.SyntaxError = function() {
324
- throw new DOMException(ERR.SYNTAX_ERR);
195
+ exports.SyntaxError = () => {
196
+ throw new DOMException("The string did not match the expected pattern", "SyntaxError");
325
197
  };
326
- exports.InvalidModificationError = function() {
327
- throw new DOMException(ERR.INVALID_MODIFICATION_ERR);
198
+ exports.InvalidModificationError = () => {
199
+ throw new DOMException("The object can not be modified in this way", "InvalidModificationError");
328
200
  };
329
- exports.NamespaceError = function() {
330
- throw new DOMException(ERR.NAMESPACE_ERR);
201
+ exports.NamespaceError = () => {
202
+ throw new DOMException("The operation is not allowed by Namespaces in XML", "NamespaceError");
331
203
  };
332
- exports.InvalidAccessError = function() {
333
- throw new DOMException(ERR.INVALID_ACCESS_ERR);
204
+ exports.InvalidAccessError = () => {
205
+ throw new DOMException(
206
+ "The object does not support the operation or argument",
207
+ "InvalidAccessError"
208
+ );
334
209
  };
335
- exports.TypeMismatchError = function() {
336
- throw new DOMException(ERR.TYPE_MISMATCH_ERR);
210
+ exports.TypeMismatchError = () => {
211
+ throw new DOMException(
212
+ "The type of the object does not match the expected type",
213
+ "TypeMismatchError"
214
+ );
337
215
  };
338
- exports.SecurityError = function() {
339
- throw new DOMException(ERR.SECURITY_ERR);
216
+ exports.SecurityError = () => {
217
+ throw new DOMException("The operation is insecure", "SecurityError");
340
218
  };
341
- exports.NetworkError = function() {
342
- throw new DOMException(ERR.NETWORK_ERR);
219
+ exports.NetworkError = () => {
220
+ throw new DOMException("A network error occurred", "NetworkError");
343
221
  };
344
- exports.AbortError = function() {
345
- throw new DOMException(ERR.ABORT_ERR);
222
+ exports.AbortError = () => {
223
+ throw new DOMException("The operation was aborted", "AbortError");
346
224
  };
347
- exports.UrlMismatchError = function() {
348
- throw new DOMException(ERR.URL_MISMATCH_ERR);
225
+ exports.UrlMismatchError = () => {
226
+ throw new DOMException("The given URL does not match another URL", "URLMismatchError");
349
227
  };
350
- exports.QuotaExceededError = function() {
351
- throw new DOMException(ERR.QUOTA_EXCEEDED_ERR);
228
+ exports.QuotaExceededError = () => {
229
+ throw new DOMException("The quota has been exceeded", "QuotaExceededError");
352
230
  };
353
- exports.TimeoutError = function() {
354
- throw new DOMException(ERR.TIMEOUT_ERR);
231
+ exports.TimeoutError = () => {
232
+ throw new DOMException("The operation timed out", "TimeoutError");
355
233
  };
356
- exports.InvalidNodeTypeError = function() {
357
- throw new DOMException(ERR.INVALID_NODE_TYPE_ERR);
234
+ exports.InvalidNodeTypeError = () => {
235
+ throw new DOMException("The node is of an invalid type", "InvalidNodeTypeError");
358
236
  };
359
- exports.DataCloneError = function() {
360
- throw new DOMException(ERR.DATA_CLONE_ERR);
237
+ exports.DataCloneError = () => {
238
+ throw new DOMException("The object can not be cloned", "DataCloneError");
239
+ };
240
+ exports.InUseAttributeError = () => {
241
+ throw new DOMException("The attribute is already in use", "InUseAttributeError");
361
242
  };
362
243
  exports.nyi = function() {
363
244
  throw new Error("NotYetImplemented");
@@ -372,7 +253,10 @@ var require_utils = __commonJS({
372
253
  };
373
254
  exports.expose = function(src, c) {
374
255
  for (var n in src) {
375
- Object.defineProperty(c.prototype, n, { value: src[n], writable: isApiWritable });
256
+ Object.defineProperty(c.prototype, n, {
257
+ value: src[n],
258
+ writable: isApiWritable
259
+ });
376
260
  }
377
261
  };
378
262
  exports.merge = function(a, b) {
@@ -2842,7 +2726,6 @@ var require_Element = __commonJS({
2842
2726
  var NodeList = require_NodeList();
2843
2727
  var NodeUtils = require_NodeUtils();
2844
2728
  var FilteredElementList = require_FilteredElementList();
2845
- var DOMException = require_DOMException();
2846
2729
  var DOMTokenList = require_DOMTokenList();
2847
2730
  var select = require_select();
2848
2731
  var ContainerNode = require_ContainerNode();
@@ -3295,7 +3178,7 @@ var require_Element = __commonJS({
3295
3178
  } },
3296
3179
  setAttributeNode: { value: function setAttributeNode(attr) {
3297
3180
  if (attr.ownerElement !== null && attr.ownerElement !== this) {
3298
- throw new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);
3181
+ utils.InUseAttributeError();
3299
3182
  }
3300
3183
  var result = null;
3301
3184
  var oldAttrs = this._attrsByQName[attr.name];
@@ -3308,7 +3191,7 @@ var require_Element = __commonJS({
3308
3191
  })) {
3309
3192
  return attr;
3310
3193
  } else if (attr.ownerElement !== null) {
3311
- throw new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);
3194
+ utils.InUseAttributeError();
3312
3195
  }
3313
3196
  oldAttrs.forEach(function(a) {
3314
3197
  this.removeAttributeNode(a);
@@ -3320,7 +3203,7 @@ var require_Element = __commonJS({
3320
3203
  } },
3321
3204
  setAttributeNodeNS: { value: function setAttributeNodeNS(attr) {
3322
3205
  if (attr.ownerElement !== null) {
3323
- throw new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);
3206
+ utils.InUseAttributeError();
3324
3207
  }
3325
3208
  var ns = attr.namespaceURI;
3326
3209
  var key = (ns === null ? "" : ns) + "|" + attr.localName;
@@ -15884,7 +15767,6 @@ var require_impl = __commonJS({
15884
15767
  CSSStyleDeclaration: require_CSSStyleDeclaration(),
15885
15768
  CharacterData: require_CharacterData(),
15886
15769
  Comment: require_Comment(),
15887
- DOMException: require_DOMException(),
15888
15770
  DOMImplementation: require_DOMImplementation(),
15889
15771
  DOMTokenList: require_DOMTokenList(),
15890
15772
  Document: require_Document(),