fast-xml-parser
Advanced tools
Comparing version 4.0.9 to 4.0.10
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. | ||
**4.0.10 / 2022-09-14** | ||
* fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx)) | ||
* fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale)) | ||
* Add jsdocs for tagValueProcessor | ||
**4.0.9 / 2022-07-10** | ||
@@ -4,0 +10,0 @@ * fix #470: stop-tag can have self-closing tag with same name |
{ | ||
"name": "fast-xml-parser", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", | ||
@@ -56,3 +56,3 @@ "main": "./src/fxp.js", | ||
"prettier": "^1.19.1", | ||
"publish-please": "^5.5.2", | ||
"publish-please": "^2.4.1", | ||
"webpack": "^5.64.4", | ||
@@ -59,0 +59,0 @@ "webpack-cli": "^4.9.1" |
@@ -37,3 +37,2 @@ # [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser) | ||
<a href="https://github.com/aws" title="AWS SDK" > <img src="https://avatars.githubusercontent.com/u/2232217" width="60px" ></a> | ||
<a href="#" title="NHS Connect" > <img src="https://avatars3.githubusercontent.com/u/20316669" width="60px" ></a> | ||
<a href="http://www.fda.gov/" title="Food and Drug Administration " > <img src="https://avatars2.githubusercontent.com/u/6471964" width="60px" ></a> | ||
@@ -54,3 +53,3 @@ <a href="http://www.magento.com/" title="Magento" > <img src="https://avatars2.githubusercontent.com/u/168457" width="60px" ></a> | ||
* Works with node packages, in browser, and in CLI (press try me button above for demo) | ||
* Faster than any pure JS implementation. | ||
* Faster than any other pure JS implementation. | ||
* It can handle big files (tested up to 100mb). | ||
@@ -126,3 +125,3 @@ * Controlled parsing using various options | ||
4. [XML Validator](./docs/v4/4.XMLValidator.md) | ||
5. [Entites](./docs/v4/5.Entities.md) | ||
5. [Entities](./docs/v4/5.Entities.md) | ||
6. [HTML Document Parsing](./docs/v4/6.HTMLParsing.md) | ||
@@ -197,2 +196,2 @@ 7. [PI Tag processing](./docs/v4/7.PITags.md) | ||
![Donate $5](static/img/donation_quote.png) | ||
![Donate $5](static/img/donation_quote.png) |
@@ -14,3 +14,11 @@ type X2jOptions = { | ||
commentPropName: false | string; | ||
tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => string; | ||
/** | ||
Control how tag value should be parsed. Called only if tag value is not empty | ||
@returns {undefined|null} `undefined` or `null` to set original value. | ||
@returns {unknown} | ||
1. Different value or value with different data type to set new value. <br> | ||
2. Same value to set parsed value if `parseTagValue: true`. | ||
*/ | ||
tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => unknown; | ||
attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) => string; | ||
@@ -17,0 +25,0 @@ numberParseOptions: strnumOptions; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98393
1860