orbit-db-storage-adapter
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "orbit-db-storage-adapter", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "OrbitDB adapter for any abstract-leveldown compliant storage", | ||
@@ -40,3 +40,6 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"level": "^7.0.0", | ||
"level": "^8.0.0", | ||
"level-js": "^6.1.0", | ||
"leveldown": "^6.1.1", | ||
"levelup": "^5.1.1", | ||
"mkdirp": "^1.0.4" | ||
@@ -43,0 +46,0 @@ }, |
'use strict' | ||
const levelup = require('levelup') | ||
const level = require('level') | ||
const { Level } = require('level') | ||
const fs = (typeof window === 'object' || typeof self === 'object') ? null : eval('require("fs")') // eslint-disable-line | ||
@@ -60,6 +60,6 @@ | ||
const db = level(directory, options) | ||
const db = new Level(directory, options) | ||
await db.open() | ||
return db | ||
return levelup(db) | ||
} | ||
@@ -66,0 +66,0 @@ } |
@@ -27,3 +27,3 @@ const assert = require('assert') | ||
assert.strictEqual(store.db.status, 'open') | ||
assert.strictEqual(store.db.db.location, './orbitdb') | ||
assert.strictEqual(store.db.location, './orbitdb') | ||
}) | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
822166
950
5
+ Addedlevel-js@^6.1.0
+ Addedleveldown@^6.1.1
+ Addedlevelup@^5.1.1
+ Addedabstract-level@1.0.4(transitive)
+ Addedbrowser-level@1.0.1(transitive)
+ Addedclassic-level@1.4.1(transitive)
+ Addedlevel@8.0.1(transitive)
+ Addedlevel-supports@4.0.1(transitive)
+ Addedlevel-transcoder@1.0.1(transitive)
+ Addedmodule-error@1.0.2(transitive)
+ Addednapi-macros@2.2.2(transitive)
- Removedencoding-down@7.1.0(transitive)
- Removedlevel@7.0.1(transitive)
- Removedlevel-codec@10.0.0(transitive)
- Removedlevel-packager@6.0.1(transitive)
Updatedlevel@^8.0.0