hypercore-storage 1.9.3 → 1.9.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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -879,13 +879,16 @@ function createColumnFamily (db, opts = {}) {
879
879
 
880
880
  // TODO: remove in like 3-6 mo
881
881
  function tmpFixStorage (p) {
882
+ // if CORESTORE file is written, new format
883
+ if (fs.existsSync(path.join(p, 'CORESTORE'))) return
884
+
882
885
  let files = []
883
886
 
884
887
  try {
885
888
  files = fs.readdirSync(p)
886
889
  } catch {}
887
890
 
888
- const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db', 'notifications'])
891
+ const notRocks = new Set(['CORESTORE', 'primary-key', 'cores', 'app-preferences', 'cache', 'preferences.json', 'db', 'clone', 'core', 'notifications'])
889
892
 
890
893
  for (const f of files) {
891
894
  if (notRocks.has(f)) continue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",