feedkeeper 0.28.4 → 0.28.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feedkeeper",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.5",
|
|
4
4
|
"description": "A lightweight, self-hosted RSS reader and remote MCP server for your news, blogs, and AI workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rss",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"better-sqlite3": "^13.0.3",
|
|
43
43
|
"cookie-session": "^2.1.1",
|
|
44
44
|
"cors": "^2.8.6",
|
|
45
|
-
"dotenv": "^18.0.
|
|
45
|
+
"dotenv": "^18.0.8",
|
|
46
46
|
"express": "^5.2.1",
|
|
47
47
|
"express-rate-limit": "^8.7.1",
|
|
48
48
|
"fast-xml-parser": "^5.11.2",
|
|
49
49
|
"helmet": "^8.3.0",
|
|
50
50
|
"ipaddr.js": "^2.5.0",
|
|
51
|
-
"jsdom": "^30.1.
|
|
51
|
+
"jsdom": "^30.1.3",
|
|
52
52
|
"node-cron": "^4.6.0",
|
|
53
53
|
"otpauth": "^9.5.2",
|
|
54
54
|
"rss-parser": "^3.13.0",
|
|
55
|
-
"undici": "^8.
|
|
55
|
+
"undici": "^8.12.2",
|
|
56
56
|
"web-push": "^3.6.7",
|
|
57
57
|
"zod": "^4.6.5"
|
|
58
58
|
}
|
|
@@ -101,6 +101,7 @@ function extractOutlines(node, items = [], currentFolder) {
|
|
|
101
101
|
}
|
|
102
102
|
return items;
|
|
103
103
|
}
|
|
104
|
+
export const MAX_OPML_FEEDS = 2000;
|
|
104
105
|
/**
|
|
105
106
|
* Parses an OPML document string and returns a list of feed URLs and their labels.
|
|
106
107
|
*/
|
|
@@ -114,7 +115,11 @@ export function parseOpml(xmlContent) {
|
|
|
114
115
|
if (!parsed || !parsed.opml || !parsed.opml.body) {
|
|
115
116
|
throw new Error("invalid_opml_format");
|
|
116
117
|
}
|
|
117
|
-
|
|
118
|
+
const feeds = extractOutlines(parsed.opml.body.outline);
|
|
119
|
+
if (feeds.length > MAX_OPML_FEEDS) {
|
|
120
|
+
throw new Error("too_many_opml_feeds");
|
|
121
|
+
}
|
|
122
|
+
return feeds;
|
|
118
123
|
}
|
|
119
124
|
const urlSchema = z.string().url();
|
|
120
125
|
/**
|