diff --git a/package.json b/package.json index 08cabc03..87b5ce11 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", "evergreen-ui": "^6.4.0", - "fast-xml-parser": "^3.17.4", + "fast-xml-parser": "^4.0.3", "framer-motion": "1", "hammerjs": "^2.0.8", "i18next-scanner": "^3.0.0", diff --git a/src/edlFormats.js b/src/edlFormats.js index c5bf9db2..7c6e6624 100644 --- a/src/edlFormats.js +++ b/src/edlFormats.js @@ -1,4 +1,4 @@ -import fastXmlParser from 'fast-xml-parser'; +import { XMLParser } from 'fast-xml-parser'; import i18n from 'i18next'; import csvParse from 'csv-parse/lib/browser'; @@ -123,7 +123,7 @@ export function parsePbf(text) { // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/FinalCutPro_XML/VersionsoftheInterchangeFormat/VersionsoftheInterchangeFormat.html export function parseXmeml(xmlStr) { - const xml = fastXmlParser.parse(xmlStr); + const xml = new XMLParser().parse(xmlStr); // TODO maybe support media.audio also? const { xmeml } = xml; diff --git a/yarn.lock b/yarn.lock index a75b1186..0db291c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5218,12 +5218,12 @@ fast-shallow-equal@^1.0.0: resolved "https://registry.yarnpkg.com/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz#d4dcaf6472440dcefa6f88b98e3251e27f25628b" integrity sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw== -fast-xml-parser@^3.17.4: - version "3.21.1" - resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz#152a1d51d445380f7046b304672dd55d15c9e736" - integrity sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg== +fast-xml-parser@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.0.3.tgz#ad1ebfa53a447369634454073f7952f171ed4aba" + integrity sha512-xhQbg3a/EYNHwK0cxIG1nZmVkHX/0tWihamn5pU4Mhd9KEVE2ga8ZJiqEUgB2sApElvAATOdMTLjgqIpvYDUkQ== dependencies: - strnum "^1.0.4" + strnum "^1.0.5" fastest-stable-stringify@^2.0.2: version "2.0.2" @@ -10717,7 +10717,7 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= -strnum@^1.0.4: +strnum@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==