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

Commit 3282e8b

Browse files
committed
reverted encoding
1 parent 01a1b49 commit 3282e8b

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "raven-reader",
33
"productName": "Raven Reader",
4-
"version": "1.0.77",
4+
"version": "1.0.78",
55
"author": "Hello Efficiency Inc. <[email protected]>",
66
"description": "Simple desktop RSS Reader",
77
"license": "MIT",
@@ -37,7 +37,6 @@
3737
"electron-store": "^8.0.0",
3838
"electron-updater": "^5.0.5",
3939
"electron-util": "^0.17.0",
40-
"encoding": "^0.1.13",
4140
"fast-xml-parser": "^4.0.7",
4241
"feather-icons": "^4.29.0",
4342
"form-data": "^4.0.0",

src/bridge/rss.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
credentials: 'omit',
3030
redirect: 'follow'
3131
})
32-
const data = await content.textConverted()
32+
const data = await content.text()
3333
const validateXml = XMLValidator.validate(data, {
3434
allowBooleanAttributes: true
3535
})
@@ -45,7 +45,7 @@ export default {
4545
redirect: 'follow'
4646
}
4747
)
48-
const data = await content.textConverted()
48+
const data = await content.text()
4949
return await parser.parseString(data)
5050
},
5151
async findRss (url) {
@@ -66,7 +66,7 @@ export default {
6666
}
6767
const parse = new XMLParser(options)
6868
const response = await fetch(normalizeUrl(url, { stripWWW: false, removeTrailingSlash: false }))
69-
const responseData = await response.textConverted()
69+
const responseData = await response.text()
7070
return parse(responseData)
7171
}
7272
}

vue.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const webpack = require("webpack");
2+
13
module.exports = {
24
configureWebpack: {
35
optimization: {

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5584,13 +5584,6 @@ encodeurl@^1.0.2, encodeurl@~1.0.2:
55845584
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
55855585
integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=
55865586

5587-
encoding@^0.1.13:
5588-
version "0.1.13"
5589-
resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9"
5590-
integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==
5591-
dependencies:
5592-
iconv-lite "^0.6.2"
5593-
55945587
end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1:
55955588
version "1.4.4"
55965589
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"

0 commit comments

Comments
 (0)