subleveldown
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -7,2 +7,14 @@ # Changelog | ||
## [4.1.1] - 2019-08-18 | ||
### Changed | ||
- Upgrade `memdown` devDependency from `^4.0.0` to `^5.0.0` ([#70](https://github.com/level/subleveldown/issues/70)) ([**@vweevers**](https://github.com/vweevers)) | ||
- Upgrade `hallmark` devDependency from `^0.1.0` to `^1.0.0` ([#68](https://github.com/level/subleveldown/issues/68)) ([**@vweevers**](https://github.com/vweevers)) | ||
- Upgrade `standard` devDependency from `^12.0.1` to `^13.0.1` ([#67](https://github.com/level/subleveldown/issues/67)) ([**@vweevers**](https://github.com/vweevers)) | ||
### Fixed | ||
- Relax `isAbstract()` check ([`fbbf525`](https://github.com/level/subleveldown/commit/fbbf525)) ([**@vweevers**](https://github.com/vweevers)) | ||
## [4.1.0] - 2019-06-28 | ||
@@ -191,4 +203,6 @@ | ||
[unreleased]: https://github.com/level/subleveldown/compare/v4.1.0...HEAD | ||
[unreleased]: https://github.com/level/subleveldown/compare/v4.1.1...HEAD | ||
[4.1.1]: https://github.com/level/subleveldown/compare/v4.1.0...v4.1.1 | ||
[4.1.0]: https://github.com/level/subleveldown/compare/v4.0.0...v4.1.0 | ||
@@ -195,0 +209,0 @@ |
@@ -157,14 +157,10 @@ var inherits = require('inherits') | ||
if (type && db.type === type) return db | ||
if (isAbstract(db.db)) return down(db.db, type) | ||
if (isAbstract(db._db)) return down(db._db, type) | ||
if (isLooseAbstract(db.db)) return down(db.db, type) | ||
if (isLooseAbstract(db._db)) return down(db._db, type) | ||
return type ? null : db | ||
} | ||
function isAbstract (db) { | ||
function isLooseAbstract (db) { | ||
if (!db || typeof db !== 'object') { return false } | ||
return Object.keys(abstract.AbstractLevelDOWN.prototype).filter(function (name) { | ||
return name[0] !== '_' | ||
}).every(function (name) { | ||
return typeof db[name] === 'function' | ||
}) | ||
return typeof db._batch === 'function' && typeof db._iterator === 'function' | ||
} |
{ | ||
"name": "subleveldown", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Split a levelup database into sublevels with their own keyspace, encoding and events", | ||
@@ -28,7 +28,7 @@ "author": "Mathias Buus (@mafintosh)", | ||
"dependency-check": "^3.3.0", | ||
"hallmark": "^0.1.0", | ||
"hallmark": "^1.0.0", | ||
"level-community": "^3.0.0", | ||
"memdown": "^4.0.0", | ||
"memdown": "^5.0.0", | ||
"nyc": "^14.0.0", | ||
"standard": "^12.0.1", | ||
"standard": "^13.0.1", | ||
"tape": "^4.9.0" | ||
@@ -35,0 +35,0 @@ }, |
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
36016
412