Comparing version 4.1.3 to 4.1.4
{ | ||
"name": "xliff", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "xliff2js and js2xliff converter xliff utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ const convert = require('xml-js'); | ||
const xliffRoot = xmlObj.elements[0]; | ||
const xliffRoot = xmlObj.elements.find((ele) => ele.name === 'xliff'); | ||
@@ -34,3 +34,3 @@ const srcLang = xliffRoot.elements[0].attributes['source-language']; | ||
const body = file.elements[0]; | ||
const body = file.elements.find((e) => e.name === 'body'); | ||
const transUnits = body.elements; | ||
@@ -37,0 +37,0 @@ |
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
91795