Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
reverted encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgodhani committed Nov 27, 2022
1 parent 01a1b49 commit 3282e8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "raven-reader",
"productName": "Raven Reader",
"version": "1.0.77",
"version": "1.0.78",
"author": "Hello Efficiency Inc. <[email protected]>",
"description": "Simple desktop RSS Reader",
"license": "MIT",
Expand Down Expand Up @@ -37,7 +37,6 @@
"electron-store": "^8.0.0",
"electron-updater": "^5.0.5",
"electron-util": "^0.17.0",
"encoding": "^0.1.13",
"fast-xml-parser": "^4.0.7",
"feather-icons": "^4.29.0",
"form-data": "^4.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/bridge/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
credentials: 'omit',
redirect: 'follow'
})
const data = await content.textConverted()
const data = await content.text()
const validateXml = XMLValidator.validate(data, {
allowBooleanAttributes: true
})
Expand All @@ -45,7 +45,7 @@ export default {
redirect: 'follow'
}
)
const data = await content.textConverted()
const data = await content.text()
return await parser.parseString(data)
},
async findRss (url) {
Expand All @@ -66,7 +66,7 @@ export default {
}
const parse = new XMLParser(options)
const response = await fetch(normalizeUrl(url, { stripWWW: false, removeTrailingSlash: false }))
const responseData = await response.textConverted()
const responseData = await response.text()
return parse(responseData)
}
}
2 changes: 2 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const webpack = require("webpack");

module.exports = {
configureWebpack: {
optimization: {
Expand Down
7 changes: 0 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5584,13 +5584,6 @@ encodeurl@^1.0.2, encodeurl@~1.0.2:
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=

encoding@^0.1.13:
version "0.1.13"
resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9"
integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==
dependencies:
iconv-lite "^0.6.2"

end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1:
version "1.4.4"
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
Expand Down

0 comments on commit 3282e8b

Please sign in to comment.