@wavemaker/angular-app 11.14.1-27.647700 → 11.14.1-28.647720
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/dependencies/custom-widgets-bundle.cjs.js +14 -37
- package/dependencies/pipe-provider.cjs.js +316 -36
- package/dependencies/transpilation-web.cjs.js +158 -18
- package/dependency-report.html +1 -1
- package/npm-shrinkwrap.json +866 -686
- package/package-lock.json +866 -686
- package/package.json +5 -5
|
@@ -37945,6 +37945,13 @@ function requireDom () {
|
|
|
37945
37945
|
* used for attributes or DocumentType entities
|
|
37946
37946
|
*/
|
|
37947
37947
|
function NamedNodeMap() {
|
|
37948
|
+
// nodeName -> Attr membership index; lets the parse-time de-duplication in
|
|
37949
|
+
// setNamedItem resolve an existing attribute in O(1) instead of scanning the
|
|
37950
|
+
// list, so building an element with M attributes costs O(M) rather than O(M^2).
|
|
37951
|
+
// The numbered entries and length remain the sole authority for attribute order.
|
|
37952
|
+
// Object.create(null) so an attribute named __proto__ or constructor is an
|
|
37953
|
+
// ordinary key.
|
|
37954
|
+
this._nameIndex = Object.create(null);
|
|
37948
37955
|
}
|
|
37949
37956
|
function _findNodeIndex(list,node){
|
|
37950
37957
|
var i = list.length;
|
|
@@ -37953,12 +37960,27 @@ function requireDom () {
|
|
|
37953
37960
|
}
|
|
37954
37961
|
}
|
|
37955
37962
|
|
|
37963
|
+
function _nnmIndexAdd(list, attr) {
|
|
37964
|
+
list._nameIndex[attr.nodeName] = attr;
|
|
37965
|
+
}
|
|
37966
|
+
function _nnmIndexRemove(list, attr) {
|
|
37967
|
+
// Only drop the entry if it still points at this attribute; a replacement with
|
|
37968
|
+
// a different nodeName may already have re-keyed it.
|
|
37969
|
+
if (list._nameIndex[attr.nodeName] === attr) {
|
|
37970
|
+
delete list._nameIndex[attr.nodeName];
|
|
37971
|
+
}
|
|
37972
|
+
}
|
|
37973
|
+
|
|
37956
37974
|
function _addNamedNode(el,list,newAttr,oldAttr){
|
|
37957
37975
|
if(oldAttr){
|
|
37958
37976
|
list[_findNodeIndex(list,oldAttr)] = newAttr;
|
|
37977
|
+
// oldAttr leaves the list; drop its index entry (its nodeName may differ
|
|
37978
|
+
// from newAttr's when the replacement came via setNamedItemNS).
|
|
37979
|
+
_nnmIndexRemove(list, oldAttr);
|
|
37959
37980
|
}else {
|
|
37960
37981
|
list[list.length++] = newAttr;
|
|
37961
37982
|
}
|
|
37983
|
+
_nnmIndexAdd(list, newAttr);
|
|
37962
37984
|
if(el){
|
|
37963
37985
|
newAttr.ownerElement = el;
|
|
37964
37986
|
var doc = el.ownerDocument;
|
|
@@ -37977,6 +37999,7 @@ function requireDom () {
|
|
|
37977
37999
|
list[i] = list[++i];
|
|
37978
38000
|
}
|
|
37979
38001
|
list.length = lastIndex;
|
|
38002
|
+
_nnmIndexRemove(list, attr);
|
|
37980
38003
|
if(el){
|
|
37981
38004
|
var doc = el.ownerDocument;
|
|
37982
38005
|
if(doc){
|
|
@@ -38010,7 +38033,11 @@ function requireDom () {
|
|
|
38010
38033
|
if(el && el!=this._ownerElement){
|
|
38011
38034
|
throw new DOMException(INUSE_ATTRIBUTE_ERR);
|
|
38012
38035
|
}
|
|
38013
|
-
|
|
38036
|
+
// Resolve any existing attribute with the same nodeName through the O(1)
|
|
38037
|
+
// membership index rather than an O(M) scan — this is the parse-dedup hot
|
|
38038
|
+
// path (setAttributeNode per attribute during parse). Absent -> undefined,
|
|
38039
|
+
// matching getNamedItem's contract.
|
|
38040
|
+
var oldAttr = this._nameIndex[attr.nodeName];
|
|
38014
38041
|
_addNamedNode(this._ownerElement,this,attr,oldAttr);
|
|
38015
38042
|
return oldAttr;
|
|
38016
38043
|
},
|
|
@@ -38243,9 +38270,38 @@ function requireDom () {
|
|
|
38243
38270
|
while (child) {
|
|
38244
38271
|
var next = child.nextSibling;
|
|
38245
38272
|
if (next !== null && next.nodeType === TEXT_NODE && child.nodeType === TEXT_NODE) {
|
|
38246
|
-
|
|
38247
|
-
|
|
38248
|
-
//
|
|
38273
|
+
// Merge the whole run of adjacent text nodes at once: gather the
|
|
38274
|
+
// following text siblings' data, unlink them in a single pass, and
|
|
38275
|
+
// re-index the child list a single time. Per-sibling `removeChild`
|
|
38276
|
+
// (each an O(K) re-index) plus per-sibling `appendData` (each an O(K)
|
|
38277
|
+
// string rebuild) is O(K^2) over a long run of single-character text
|
|
38278
|
+
// nodes; this keeps it O(K). The first text node of the run survives
|
|
38279
|
+
// and carries the concatenated data, preserving node identity and
|
|
38280
|
+
// locator semantics.
|
|
38281
|
+
var tail = [];
|
|
38282
|
+
var sibling = next;
|
|
38283
|
+
while (sibling !== null && sibling.nodeType === TEXT_NODE) {
|
|
38284
|
+
tail.push(sibling.data);
|
|
38285
|
+
sibling = sibling.nextSibling;
|
|
38286
|
+
}
|
|
38287
|
+
// `sibling` is now the first non-text node after the run, or null.
|
|
38288
|
+
var removed = child.nextSibling;
|
|
38289
|
+
while (removed !== sibling) {
|
|
38290
|
+
var following = removed.nextSibling;
|
|
38291
|
+
removed.parentNode = null;
|
|
38292
|
+
removed.previousSibling = null;
|
|
38293
|
+
removed.nextSibling = null;
|
|
38294
|
+
removed = following;
|
|
38295
|
+
}
|
|
38296
|
+
child.nextSibling = sibling;
|
|
38297
|
+
if (sibling !== null) {
|
|
38298
|
+
sibling.previousSibling = child;
|
|
38299
|
+
} else {
|
|
38300
|
+
node.lastChild = child;
|
|
38301
|
+
}
|
|
38302
|
+
child.appendData(tail.join('')); // single O(K) string rebuild
|
|
38303
|
+
_onUpdateChild(node.ownerDocument, node); // single O(K) re-index
|
|
38304
|
+
child = sibling;
|
|
38249
38305
|
} else {
|
|
38250
38306
|
child = next;
|
|
38251
38307
|
}
|
|
@@ -39056,8 +39112,10 @@ function requireDom () {
|
|
|
39056
39112
|
* - it does not do any input validation on the arguments and doesn't throw "InvalidCharacterError".
|
|
39057
39113
|
*
|
|
39058
39114
|
* Note: When the resulting document is serialized with `requireWellFormed: true`, the
|
|
39059
|
-
* serializer throws with code `INVALID_STATE_ERR` if `.
|
|
39060
|
-
*
|
|
39115
|
+
* serializer throws with code `INVALID_STATE_ERR` if `.target` is not a valid XML `NCName`
|
|
39116
|
+
* (a `Name` with no colon) or is an ASCII case-insensitive match for `"xml"`, or if `.data`
|
|
39117
|
+
* contains `?>` (W3C DOM Parsing §3.2.1.7). Without that option the target and data are
|
|
39118
|
+
* emitted verbatim.
|
|
39061
39119
|
*
|
|
39062
39120
|
* @param {string} target
|
|
39063
39121
|
* @param {string} data
|
|
@@ -39082,7 +39140,27 @@ function requireDom () {
|
|
|
39082
39140
|
node.specified = true;
|
|
39083
39141
|
return node;
|
|
39084
39142
|
},
|
|
39143
|
+
/**
|
|
39144
|
+
* Creates an EntityReference object, serialized as `&name;`.
|
|
39145
|
+
*
|
|
39146
|
+
* The `name` is validated against the XML `Name` production at creation time; an invalid name
|
|
39147
|
+
* throws a `DOMException` with code `INVALID_CHARACTER_ERR`. When the resulting node is
|
|
39148
|
+
* serialized with `requireWellFormed: true`, the serializer re-validates `nodeName` and throws
|
|
39149
|
+
* a `DOMException` with code `INVALID_STATE_ERR` if a later `nodeName` mutation made it invalid;
|
|
39150
|
+
* without that option the name is emitted verbatim.
|
|
39151
|
+
*
|
|
39152
|
+
* Note: xmldom does not expand entities — the parser resolves entity references inline and never
|
|
39153
|
+
* constructs `EntityReference` nodes, so this method is the only producer.
|
|
39154
|
+
*
|
|
39155
|
+
* @param {string} name The name of the entity to reference.
|
|
39156
|
+
* @returns {EntityReference}
|
|
39157
|
+
* @throws {DOMException} With code `INVALID_CHARACTER_ERR` when `name` is not a valid XML `Name`.
|
|
39158
|
+
* @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-392B75AE
|
|
39159
|
+
*/
|
|
39085
39160
|
createEntityReference : function(name){
|
|
39161
|
+
if (!tagNamePattern.test(name)) {
|
|
39162
|
+
throw new DOMException(INVALID_CHARACTER_ERR, 'not a valid xml name "' + name + '"');
|
|
39163
|
+
}
|
|
39086
39164
|
var node = new EntityReference();
|
|
39087
39165
|
node.ownerDocument = this;
|
|
39088
39166
|
node.nodeName = name;
|
|
@@ -39294,15 +39372,16 @@ function requireDom () {
|
|
|
39294
39372
|
/**
|
|
39295
39373
|
* Represents a DocumentType node (the `<!DOCTYPE ...>` declaration).
|
|
39296
39374
|
*
|
|
39297
|
-
* `publicId`, `systemId`, and `internalSubset` are plain own-property assignments.
|
|
39375
|
+
* `name`, `publicId`, `systemId`, and `internalSubset` are plain own-property assignments.
|
|
39298
39376
|
* xmldom does not enforce the `readonly` constraint declared by the WHATWG DOM spec —
|
|
39299
39377
|
* direct property writes succeed silently. Values are serialized verbatim when
|
|
39300
39378
|
* `requireWellFormed` is false (the default). When the serializer is invoked with
|
|
39301
39379
|
* `requireWellFormed: true` (via the 4th-parameter options object), it validates each
|
|
39302
|
-
* field
|
|
39380
|
+
* field — including `name`, which is checked against the XML `Name` production — and throws
|
|
39381
|
+
* `DOMException` with code `INVALID_STATE_ERR` on invalid values.
|
|
39303
39382
|
*
|
|
39304
39383
|
* @class
|
|
39305
|
-
* @see https://developer.mozilla.org/
|
|
39384
|
+
* @see https://developer.mozilla.org/docs/Web/API/DocumentType MDN
|
|
39306
39385
|
*/
|
|
39307
39386
|
function DocumentType() {
|
|
39308
39387
|
} DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
|
|
@@ -39316,6 +39395,20 @@ function requireDom () {
|
|
|
39316
39395
|
} Entity.prototype.nodeType = ENTITY_NODE;
|
|
39317
39396
|
_extends(Entity,Node);
|
|
39318
39397
|
|
|
39398
|
+
/**
|
|
39399
|
+
* Represents an EntityReference node, serialized as `&nodeName;`.
|
|
39400
|
+
*
|
|
39401
|
+
* `nodeName` is the referenced entity's name, stored verbatim. When serialized with
|
|
39402
|
+
* `requireWellFormed: true`, the serializer validates `nodeName` against the XML `Name` production
|
|
39403
|
+
* and throws a `DOMException` with code `INVALID_STATE_ERR` if it does not match; without that
|
|
39404
|
+
* option the name is emitted verbatim between `&` and `;`.
|
|
39405
|
+
*
|
|
39406
|
+
* Note: xmldom does not expand entities — the parser resolves entity references inline and never
|
|
39407
|
+
* constructs `EntityReference` nodes, so the only producer is `Document.createEntityReference`.
|
|
39408
|
+
*
|
|
39409
|
+
* @class
|
|
39410
|
+
* @see https://www.w3.org/TR/xml/#NT-Name
|
|
39411
|
+
*/
|
|
39319
39412
|
function EntityReference() {
|
|
39320
39413
|
} EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
|
|
39321
39414
|
_extends(EntityReference,Node);
|
|
@@ -39358,12 +39451,15 @@ function requireDom () {
|
|
|
39358
39451
|
* not a valid XML QName,
|
|
39359
39452
|
* - a CDATASection node's data contains `"]]>"`,
|
|
39360
39453
|
* - a Comment node's data contains `"-->"` (bare `"--"` does not throw on this branch),
|
|
39361
|
-
* - a ProcessingInstruction's
|
|
39454
|
+
* - a ProcessingInstruction's target is not a valid XML `NCName` (a `Name` with no colon) or is
|
|
39455
|
+
* an ASCII case-insensitive match for `"xml"`, or its data contains `"?>"`,
|
|
39456
|
+
* - a DocumentType's `name` is not a valid XML `Name` (XML 1.0 production [5]),
|
|
39362
39457
|
* - a DocumentType's `publicId` is non-empty and does not match the XML `PubidLiteral`
|
|
39363
39458
|
* production,
|
|
39364
39459
|
* - a DocumentType's `systemId` is non-empty and does not match the XML `SystemLiteral`
|
|
39365
|
-
* production,
|
|
39366
|
-
* - a DocumentType's `internalSubset` contains `"]>"
|
|
39460
|
+
* production,
|
|
39461
|
+
* - a DocumentType's `internalSubset` contains `"]>"`, or
|
|
39462
|
+
* - an EntityReference's `nodeName` is not a valid XML `Name` (XML 1.0 production [5]).
|
|
39367
39463
|
* Note: xmldom does not enforce `readonly` on DocumentType fields — direct property
|
|
39368
39464
|
* writes succeed and are covered by the serializer-level checks above.
|
|
39369
39465
|
* @see https://html.spec.whatwg.org/#dom-xmlserializer-serializetostring
|
|
@@ -39618,6 +39714,9 @@ function requireDom () {
|
|
|
39618
39714
|
|
|
39619
39715
|
case DOCUMENT_TYPE_NODE:
|
|
39620
39716
|
if (requireWellFormed) {
|
|
39717
|
+
if (!tagNamePattern.test(n.name)) {
|
|
39718
|
+
throw new DOMException(INVALID_STATE_ERR, 'The doctype name "' + n.name + '" is not a valid XML Name');
|
|
39719
|
+
}
|
|
39621
39720
|
if (n.publicId && !/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(n.publicId)) {
|
|
39622
39721
|
throw new DOMException(INVALID_STATE_ERR, 'DocumentType publicId is not a valid PubidLiteral');
|
|
39623
39722
|
}
|
|
@@ -39649,13 +39748,27 @@ function requireDom () {
|
|
|
39649
39748
|
return null;
|
|
39650
39749
|
|
|
39651
39750
|
case PROCESSING_INSTRUCTION_NODE:
|
|
39652
|
-
if (requireWellFormed
|
|
39653
|
-
|
|
39751
|
+
if (requireWellFormed) {
|
|
39752
|
+
if (!tagNamePattern.test(n.target) || n.target.indexOf(':') !== -1 || n.target.toLowerCase() === 'xml') {
|
|
39753
|
+
throw new DOMException(
|
|
39754
|
+
INVALID_STATE_ERR,
|
|
39755
|
+
'The processing instruction target "' + n.target + '" is not a valid XML NCName or is reserved'
|
|
39756
|
+
);
|
|
39757
|
+
}
|
|
39758
|
+
if (n.data.indexOf('?>') !== -1) {
|
|
39759
|
+
throw new DOMException(INVALID_STATE_ERR, 'The ProcessingInstruction data contains "?>"');
|
|
39760
|
+
}
|
|
39654
39761
|
}
|
|
39655
39762
|
buf.push('<?', n.target, ' ', n.data, '?>');
|
|
39656
39763
|
return null;
|
|
39657
39764
|
|
|
39658
39765
|
case ENTITY_REFERENCE_NODE:
|
|
39766
|
+
if (requireWellFormed && !tagNamePattern.test(n.nodeName)) {
|
|
39767
|
+
throw new DOMException(
|
|
39768
|
+
INVALID_STATE_ERR,
|
|
39769
|
+
'The entity reference name "' + n.nodeName + '" is not a valid XML Name'
|
|
39770
|
+
);
|
|
39771
|
+
}
|
|
39659
39772
|
buf.push('&', n.nodeName, ';');
|
|
39660
39773
|
return null;
|
|
39661
39774
|
|
|
@@ -42148,7 +42261,13 @@ function requireSax () {
|
|
|
42148
42261
|
switch(source.charAt(tagStart+1)){
|
|
42149
42262
|
case '/':
|
|
42150
42263
|
var end = source.indexOf('>',tagStart+3);
|
|
42151
|
-
|
|
42264
|
+
// Anchored trailing-whitespace trim. The former `/[ \t\n\r]+$/g` backtracked
|
|
42265
|
+
// quadratically on a name shaped `whitespace-run + non-whitespace char`
|
|
42266
|
+
// (an end tag `</ … x>`): from every start position it extended `[ws]+`
|
|
42267
|
+
// to the end and then failed the `$` anchor. This anchored form matches the
|
|
42268
|
+
// whole string once and captures everything up to the last non-whitespace
|
|
42269
|
+
// character, so it trims in linear time with byte-identical output.
|
|
42270
|
+
var tagName = source.substring(tagStart + 2, end).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/, '$1');
|
|
42152
42271
|
var config = parseStack.pop();
|
|
42153
42272
|
if(end<0){
|
|
42154
42273
|
|
|
@@ -42159,6 +42278,14 @@ function requireSax () {
|
|
|
42159
42278
|
tagName = tagName.replace(/[\s<].*/,'');
|
|
42160
42279
|
errorHandler.error("end tag name: "+tagName+' maybe not complete');
|
|
42161
42280
|
end = tagStart+1+tagName.length;
|
|
42281
|
+
}else if(/[ \t\n\r]/.test(tagName) && tagNamePattern.test(tagName.split(/[ \t\n\r]/)[0])){
|
|
42282
|
+
// The XML `ETag` production is `'</' Name S? '>'`: only optional whitespace may follow
|
|
42283
|
+
// the `Name`. A valid `Name` followed by whitespace and non-whitespace residue (e.g.
|
|
42284
|
+
// `</a\nbogus>` or `</a bogus>`) is not well-formed, but historically it was silently
|
|
42285
|
+
// accepted (the malformed end tag ignored, the residue dropped, the element left on the
|
|
42286
|
+
// stack). Report it as a recoverable `error` (which a custom errorHandler may escalate to
|
|
42287
|
+
// fatal) while keeping the existing recovery so the parsed DOM stays byte-identical.
|
|
42288
|
+
errorHandler.error('end tag name is followed by whitespace and trailing content: "'+tagName+'"');
|
|
42162
42289
|
}
|
|
42163
42290
|
var localNSMap = config.localNSMap;
|
|
42164
42291
|
var endMatch = config.tagName == tagName;
|
|
@@ -42282,6 +42409,15 @@ function requireSax () {
|
|
|
42282
42409
|
var s = S_TAG;//status
|
|
42283
42410
|
while(true){
|
|
42284
42411
|
var c = source.charAt(p);
|
|
42412
|
+
if (s === S_TAG && c === '<') {
|
|
42413
|
+
// A `<` can never occur inside a tag name. Without this guard the scan runs
|
|
42414
|
+
// on to the next `>` (or EOF) before the tag name is rejected, so a document
|
|
42415
|
+
// with many `<` inside a malformed tag makes each one-character recovery step
|
|
42416
|
+
// re-scan to the distant `>` — O(n^2). Stopping at the `<` keeps each recovery
|
|
42417
|
+
// step bounded. The candidate scanned so far is reported raw, consistent with
|
|
42418
|
+
// the sibling invalid-tag-name throw below.
|
|
42419
|
+
throw new Error('unexpected < in tag name: ' + source.slice(start, p));
|
|
42420
|
+
}
|
|
42285
42421
|
switch(c){
|
|
42286
42422
|
case '=':
|
|
42287
42423
|
if(s === S_ATTR){//attrName
|
|
@@ -42474,9 +42610,13 @@ function requireSax () {
|
|
|
42474
42610
|
if(nsPrefix !== false){//hack!!
|
|
42475
42611
|
if(localNSMap == null){
|
|
42476
42612
|
localNSMap = {};
|
|
42477
|
-
//
|
|
42478
|
-
|
|
42479
|
-
//
|
|
42613
|
+
// Derive the child scope's namespace map by prototype-chain inheritance
|
|
42614
|
+
// instead of a flat copy: lookups inherit ancestor prefixes transparently,
|
|
42615
|
+
// so a document nesting N scopes retains O(N) map entries rather than
|
|
42616
|
+
// sum(1..N) = O(N^2). localNSMap stays a flat own-only record of the
|
|
42617
|
+
// prefixes declared at THIS element, so own-property enumeration
|
|
42618
|
+
// (endPrefixMapping below) still reports only local declarations.
|
|
42619
|
+
currentNSMap = Object.create(currentNSMap);
|
|
42480
42620
|
}
|
|
42481
42621
|
currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;
|
|
42482
42622
|
a.uri = NAMESPACE.XMLNS;
|
package/dependency-report.html
CHANGED