diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-24 13:53:19 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-24 13:55:47 +0100 |
commit | 2d28b0c21dc066105677374419acd7ba8e919e8d (patch) | |
tree | 8cadfd42ee1a5dcbe871ec240b4947ebc9d8489c | |
parent | 4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296 (diff) | |
download | PeerTube-2d28b0c21dc066105677374419acd7ba8e919e8d.tar.gz PeerTube-2d28b0c21dc066105677374419acd7ba8e919e8d.tar.zst PeerTube-2d28b0c21dc066105677374419acd7ba8e919e8d.zip |
Upgrade fast xml parser dep
-rw-r--r-- | package.json | 4 | ||||
-rw-r--r-- | server/tests/feeds/feeds.ts | 7 | ||||
-rw-r--r-- | yarn.lock | 20 |
3 files changed, 16 insertions, 15 deletions
diff --git a/package.json b/package.json index 5c133e186..f5f2de33d 100644 --- a/package.json +++ b/package.json | |||
@@ -199,8 +199,8 @@ | |||
199 | "eslint-config-standard-with-typescript": "^21.0.1", | 199 | "eslint-config-standard-with-typescript": "^21.0.1", |
200 | "eslint-plugin-import": "^2.20.1", | 200 | "eslint-plugin-import": "^2.20.1", |
201 | "eslint-plugin-node": "^11.0.0", | 201 | "eslint-plugin-node": "^11.0.0", |
202 | "eslint-plugin-promise": "^5.1.0", | 202 | "eslint-plugin-promise": "^6.0.0", |
203 | "fast-xml-parser": "^3.19.0", | 203 | "fast-xml-parser": "^4.0.0-beta.8", |
204 | "mocha": "^9.0.0", | 204 | "mocha": "^9.0.0", |
205 | "nodemon": "^2.0.1", | 205 | "nodemon": "^2.0.1", |
206 | "proxy": "^1.0.2", | 206 | "proxy": "^1.0.2", |
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts index bf030162e..24a518342 100644 --- a/server/tests/feeds/feeds.ts +++ b/server/tests/feeds/feeds.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { parse, validate } from 'fast-xml-parser' | 5 | import { XMLParser, XMLValidator } from 'fast-xml-parser' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | createMultipleServers, | 8 | createMultipleServers, |
@@ -149,9 +149,10 @@ describe('Test syndication feeds', () => { | |||
149 | it('Should contain a valid enclosure (covers RSS 2.0 endpoint)', async function () { | 149 | it('Should contain a valid enclosure (covers RSS 2.0 endpoint)', async function () { |
150 | for (const server of servers) { | 150 | for (const server of servers) { |
151 | const rss = await server.feed.getXML({ feed: 'videos' }) | 151 | const rss = await server.feed.getXML({ feed: 'videos' }) |
152 | expect(validate(rss)).to.be.true | 152 | expect(XMLValidator.validate(rss)).to.be.true |
153 | 153 | ||
154 | const xmlDoc = parse(rss, { parseAttributeValue: true, ignoreAttributes: false }) | 154 | const parser = new XMLParser({ parseAttributeValue: true, ignoreAttributes: false }) |
155 | const xmlDoc = parser.parse(rss) | ||
155 | 156 | ||
156 | const enclosure = xmlDoc.rss.channel.item[0].enclosure | 157 | const enclosure = xmlDoc.rss.channel.item[0].enclosure |
157 | expect(enclosure).to.exist | 158 | expect(enclosure).to.exist |
@@ -3949,10 +3949,10 @@ eslint-plugin-node@^11.0.0: | |||
3949 | resolve "^1.10.1" | 3949 | resolve "^1.10.1" |
3950 | semver "^6.1.0" | 3950 | semver "^6.1.0" |
3951 | 3951 | ||
3952 | eslint-plugin-promise@^5.1.0: | 3952 | eslint-plugin-promise@^6.0.0: |
3953 | version "5.2.0" | 3953 | version "6.0.0" |
3954 | resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-5.2.0.tgz#a596acc32981627eb36d9d75f9666ac1a4564971" | 3954 | resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.0.0.tgz#017652c07c9816413a41e11c30adc42c3d55ff18" |
3955 | integrity sha512-SftLb1pUG01QYq2A/hGAWfDRXqYD82zE7j7TopDOyNdU+7SvvoXREls/+PRTY17vUXzXnZA/zfnyKgRH6x4JJw== | 3955 | integrity sha512-7GPezalm5Bfi/E22PnQxDWH2iW9GTvAlUNTztemeHb6c1BniSyoeTrM87JkC0wYdi6aQrZX9p2qEiAno8aTcbw== |
3956 | 3956 | ||
3957 | eslint-scope@^5.1.1: | 3957 | eslint-scope@^5.1.1: |
3958 | version "5.1.1" | 3958 | version "5.1.1" |
@@ -4251,12 +4251,12 @@ fast-xml-parser@3.19.0: | |||
4251 | resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.19.0.tgz#cb637ec3f3999f51406dd8ff0e6fc4d83e520d01" | 4251 | resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.19.0.tgz#cb637ec3f3999f51406dd8ff0e6fc4d83e520d01" |
4252 | integrity sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg== | 4252 | integrity sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg== |
4253 | 4253 | ||
4254 | fast-xml-parser@^3.19.0: | 4254 | fast-xml-parser@^4.0.0-beta.8: |
4255 | version "3.21.1" | 4255 | version "4.0.0-beta.8" |
4256 | resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz#152a1d51d445380f7046b304672dd55d15c9e736" | 4256 | resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.0.0-beta.8.tgz#f0004e29f0eb105e45fbf3f69f2d206a6bfdc587" |
4257 | integrity sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg== | 4257 | integrity sha512-2QEZ/WRt6mfrguLsluhvpTWNxdKYgvdZx3dA+Tnx0pUmlEA4ZWt32qSmA1sR1jXscFozHIKqZrikUeiCYSe3ow== |
4258 | dependencies: | 4258 | dependencies: |
4259 | strnum "^1.0.4" | 4259 | strnum "^1.0.5" |
4260 | 4260 | ||
4261 | fastq@^1.6.0: | 4261 | fastq@^1.6.0: |
4262 | version "1.13.0" | 4262 | version "1.13.0" |
@@ -8143,7 +8143,7 @@ strip-json-comments@~2.0.1: | |||
8143 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" | 8143 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" |
8144 | integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= | 8144 | integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= |
8145 | 8145 | ||
8146 | strnum@^1.0.4: | 8146 | strnum@^1.0.5: |
8147 | version "1.0.5" | 8147 | version "1.0.5" |
8148 | resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" | 8148 | resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" |
8149 | integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== | 8149 | integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== |