mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Remove unused webdriver-manager dependency to eliminate vulnerable form-data ~2.3.2 (#11060)
* Initial plan * Remove webdriver-manager to eliminate form-data ~2.3.2 dependency Co-authored-by: eromano <1030050+eromano@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: eromano <1030050+eromano@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +1,39 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
'use strict';
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
exports.MDNav = void 0;
|
||||
var MDNav = /** @class */ (function () {
|
||||
function MDNav(root, pos) {
|
||||
if (pos === void 0) { pos = 0; }
|
||||
if (pos === void 0) {
|
||||
pos = 0;
|
||||
}
|
||||
this.root = root;
|
||||
this.pos = pos;
|
||||
}
|
||||
MDNav.prototype.find = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
if (!this.root || !this.root.children) {
|
||||
return new MDNav(null);
|
||||
}
|
||||
@@ -19,8 +43,7 @@ var MDNav = /** @class */ (function () {
|
||||
if (test(child)) {
|
||||
if (currIndex === index) {
|
||||
return new MDNav(this.root, i);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
currIndex++;
|
||||
}
|
||||
}
|
||||
@@ -28,8 +51,14 @@ var MDNav = /** @class */ (function () {
|
||||
return new MDNav(this.root, this.root.children.length);
|
||||
};
|
||||
MDNav.prototype.findAll = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
if (!this.root || !this.root.children) {
|
||||
return [];
|
||||
}
|
||||
@@ -40,8 +69,7 @@ var MDNav = /** @class */ (function () {
|
||||
if (test(child)) {
|
||||
if (currIndex === index) {
|
||||
result.push(new MDNav(this.root, i));
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
currIndex++;
|
||||
}
|
||||
}
|
||||
@@ -49,166 +77,247 @@ var MDNav = /** @class */ (function () {
|
||||
return result;
|
||||
};
|
||||
MDNav.prototype.emph = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'emphasis' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.heading = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'heading' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.headings = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.findAll(function (h) {
|
||||
return h.type === 'heading' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.html = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'html' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.link = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'link' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.links = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.findAll(function (h) {
|
||||
return h.type === 'link' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.list = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'list' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.listItem = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'listItem' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.listItems = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.findAll(function (h) {
|
||||
return h.type === 'listItem' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.paragraph = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'paragraph' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.strong = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'strong' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.table = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'table' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.tableRow = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'tableRow' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.tableCell = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'tableCell' && test(h);
|
||||
}, index);
|
||||
};
|
||||
MDNav.prototype.text = function (test, index) {
|
||||
if (test === void 0) { test = function () { return true; }; }
|
||||
if (index === void 0) { index = 0; }
|
||||
if (test === void 0) {
|
||||
test = function () {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
if (index === void 0) {
|
||||
index = 0;
|
||||
}
|
||||
return this.find(function (h) {
|
||||
return h.type === 'text' && test(h);
|
||||
}, index);
|
||||
};
|
||||
Object.defineProperty(MDNav.prototype, "item", {
|
||||
Object.defineProperty(MDNav.prototype, 'item', {
|
||||
get: function () {
|
||||
if (!this.root || !this.root.children) {
|
||||
return undefined;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return this.root.children[this.pos];
|
||||
}
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MDNav.prototype, "empty", {
|
||||
Object.defineProperty(MDNav.prototype, 'empty', {
|
||||
get: function () {
|
||||
return !this.root ||
|
||||
!this.root.children ||
|
||||
(this.pos >= this.root.children.length);
|
||||
return !this.root || !this.root.children || this.pos >= this.root.children.length;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MDNav.prototype, "childNav", {
|
||||
Object.defineProperty(MDNav.prototype, 'childNav', {
|
||||
get: function () {
|
||||
return new MDNav(this.item);
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MDNav.prototype, "value", {
|
||||
Object.defineProperty(MDNav.prototype, 'value', {
|
||||
get: function () {
|
||||
if (this.item && this.item['value']) {
|
||||
return this.item.value;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(MDNav.prototype, "textValue", {
|
||||
Object.defineProperty(MDNav.prototype, 'textValue', {
|
||||
get: function () {
|
||||
if (this.item) {
|
||||
if (this.item['value']) {
|
||||
return this.item.value;
|
||||
}
|
||||
else if (this.item.children &&
|
||||
(this.item.children.length > 0) &&
|
||||
(this.item.children[0].type === 'text')) {
|
||||
} else if (this.item.children && this.item.children.length > 0 && this.item.children[0].type === 'text') {
|
||||
return this.item.children[0].value;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
},
|
||||
@@ -216,5 +325,5 @@ var MDNav = /** @class */ (function () {
|
||||
configurable: true
|
||||
});
|
||||
return MDNav;
|
||||
}());
|
||||
})();
|
||||
exports.MDNav = MDNav;
|
||||
|
Reference in New Issue
Block a user