@xriss/weerss 0.0.5 → 0.0.7

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.
Files changed (3) hide show
  1. package/db.js +6 -0
  2. package/package.json +1 -1
  3. package/weerss.js +8 -4
package/db.js CHANGED
@@ -144,6 +144,12 @@ db.clear=async function(table)
144
144
  DELETE FROM ${table};
145
145
 
146
146
  `,{})
147
+
148
+ await db.handle.run(`
149
+
150
+ VACUUM;
151
+
152
+ `,{})
147
153
  }
148
154
 
149
155
  db.delete=async function(table,key)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xriss/weerss",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "source": "weerss.js",
5
5
  "type": "module",
6
6
  "repository": {
package/weerss.js CHANGED
@@ -167,6 +167,10 @@ weerss.fetch=async function()
167
167
  await db.setup()
168
168
  // db.clear("hoard") // delete cache on startup
169
169
 
170
+ // clear cached data
171
+ db.clear("torrents")
172
+ db.clear("hoard")
173
+
170
174
  for(let feed of await db.list("feeds") )
171
175
  {
172
176
  let keep=false
@@ -350,10 +354,10 @@ weerss.save_rss=async function(args)
350
354
  "/rss/channel/language" : "en-us" ,
351
355
  "/rss/channel/lastBuildDate" : dates ,
352
356
  "/rss/channel/pubDate" : dates ,
353
- "/rss/channel/description" : "RERSS" ,
354
- "/rss/channel/generator" : "RERSS" ,
355
- "/rss/channel/link" : "RERSS" ,
356
- "/rss/channel/title" : "RERSS" ,
357
+ "/rss/channel/description" : "WEERSS" ,
358
+ "/rss/channel/generator" : "WEERSS" ,
359
+ "/rss/channel/link" : "WEERSS" ,
360
+ "/rss/channel/title" : "WEERSS" ,
357
361
  "/rss/channel/item" : rss_items ,
358
362
  }
359
363