chore: update version of the fast-xml-parser

This commit is contained in:
IvanZosimov 2023-07-07 15:04:28 +02:00
parent a6be55a915
commit d7443b4c62
3 changed files with 15 additions and 17 deletions

View File

@ -1,6 +1,6 @@
--- ---
name: fast-xml-parser name: fast-xml-parser
version: 4.2.4 version: 4.2.5
type: npm type: npm
summary: Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback. summary: Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.
homepage: https://github.com/NaturalIntelligence/fast-xml-parser#readme homepage: https://github.com/NaturalIntelligence/fast-xml-parser#readme

18
dist/setup/index.js vendored
View File

@ -51211,7 +51211,9 @@ module.exports = toXml;
/***/ }), /***/ }),
/***/ 6072: /***/ 6072:
/***/ ((module) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
const util = __nccwpck_require__(8280);
//TODO: handle comments //TODO: handle comments
function readDocType(xmlData, i){ function readDocType(xmlData, i){
@ -51355,20 +51357,16 @@ function isNotation(xmlData, i){
return false return false
} }
//an entity name should not contains special characters that may be used in regex
//Eg !?\\\/[]$%{}^&*()<>
const specialChar = "!?\\\/[]$%{}^&*()<>|+";
function validateEntityName(name){ function validateEntityName(name){
for (let i = 0; i < specialChar.length; i++) { if (util.isName(name))
const ch = specialChar[i]; return name;
if(name.indexOf(ch) !== -1) throw new Error(`Invalid character ${ch} in entity name`); else
} throw new Error(`Invalid entity name ${name}`);
return name;
} }
module.exports = readDocType; module.exports = readDocType;
/***/ }), /***/ }),
/***/ 6993: /***/ 6993:

12
package-lock.json generated
View File

@ -3309,9 +3309,9 @@
"dev": true "dev": true
}, },
"node_modules/fast-xml-parser": { "node_modules/fast-xml-parser": {
"version": "4.2.4", "version": "4.2.5",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.4.tgz", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz",
"integrity": "sha512-fbfMDvgBNIdDJLdLOwacjFAPYt67tr31H9ZhWSm45CDAxvd0I6WTlSOUo7K2P/K5sA5JgMKG64PI3DMcaFdWpQ==", "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==",
"funding": [ "funding": [
{ {
"type": "paypal", "type": "paypal",
@ -9010,9 +9010,9 @@
"dev": true "dev": true
}, },
"fast-xml-parser": { "fast-xml-parser": {
"version": "4.2.4", "version": "4.2.5",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.4.tgz", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz",
"integrity": "sha512-fbfMDvgBNIdDJLdLOwacjFAPYt67tr31H9ZhWSm45CDAxvd0I6WTlSOUo7K2P/K5sA5JgMKG64PI3DMcaFdWpQ==", "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==",
"requires": { "requires": {
"strnum": "^1.0.5" "strnum": "^1.0.5"
} }