@xriss/weerss 0.0.8 → 0.0.10

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 +4 -0
  2. package/package.json +1 -1
  3. package/weerss.js +2 -2
package/db.js CHANGED
@@ -145,6 +145,10 @@ db.clear=async function(table)
145
145
 
146
146
  `,{})
147
147
 
148
+ }
149
+
150
+ db.vacuum=async function()
151
+ {
148
152
  await db.handle.run(`
149
153
 
150
154
  VACUUM;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xriss/weerss",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "source": "weerss.js",
5
5
  "type": "module",
6
6
  "repository": {
package/weerss.js CHANGED
@@ -220,6 +220,8 @@ weerss.fetch=async function()
220
220
  }
221
221
  }
222
222
 
223
+
224
+ // await db.vacuum() // keep db size small?
223
225
  await db.close()
224
226
  }
225
227
 
@@ -417,8 +419,6 @@ weerss.move=async function(args)
417
419
  let from=weerss.get_config_path("download") //args._[2] // optional dest dir
418
420
  let dest=weerss.get_config_path("tv") //args._[2] // optional dest dir
419
421
 
420
- dest=null // do not move
421
-
422
422
  if(dest)
423
423
  {
424
424
  console.log( "Moving file from "+from+" to "+dest )