@xriss/weerss 0.0.7 → 0.0.9

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 +2 -2
  3. package/weerss.js +2 -0
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.7",
3
+ "version": "0.0.9",
4
4
  "source": "weerss.js",
5
5
  "type": "module",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git+https://github.com/xriss/weerss.git"
9
9
  },
10
10
  "bin": {
11
- "weerss": "./cmd.import.js"
11
+ "weerss": "cmd.import.js"
12
12
  },
13
13
  "scripts": {
14
14
  "watch": " webpack watch --config webpack.config.cjs --mode development ",
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