Comparing version 5.1.0 to 5.2.0
@@ -0,1 +1,5 @@ | ||
### 5.2.0 | ||
- Add support for cdata sections | ||
### 5.1.0 | ||
@@ -2,0 +6,0 @@ |
@@ -38,3 +38,7 @@ "use strict"; | ||
if (valueElement.type === 'cdata') { | ||
return valueElement.cdata; | ||
} | ||
return ''; | ||
} |
@@ -30,3 +30,7 @@ import { tagToElementType } from '../inline-elements/typeToTagMaps.js'; | ||
if (valueElement.type === 'cdata') { | ||
return valueElement.cdata; | ||
} | ||
return ''; | ||
} |
@@ -34,4 +34,9 @@ import { tagToElementType } from '../inline-elements/typeToTagMaps.js' | ||
// CDATA Section https://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2-cd02.html | ||
if (valueElement.type === 'cdata') { | ||
return valueElement.cdata | ||
} | ||
// just ignore anything else | ||
return '' | ||
} |
{ | ||
"name": "xliff", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "xliff2js and js2xliff converter xliff utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
508339
10509