level-packager
Advanced tools
Comparing version 5.1.0 to 5.1.1
# Changelog | ||
## [5.1.1] - 2019-11-29 | ||
### Fixed | ||
- Pass options to `abstract-leveldown` store ([#96](https://github.com/Level/packager/issues/96)) ([**@achingbrain**](https://github.com/achingbrain)). In addition to passing options to the `levelup` wrapper. | ||
## [5.1.0] - 2019-10-13 | ||
@@ -374,2 +380,4 @@ | ||
[5.1.1]: https://github.com/Level/packager/compare/v5.1.0...v5.1.1 | ||
[5.1.0]: https://github.com/Level/packager/compare/v5.0.3...v5.1.0 | ||
@@ -376,0 +384,0 @@ |
@@ -9,4 +9,5 @@ # Contributors | ||
| **Rod Vagg** | [**@rvagg**](https://github.com/rvagg) | [**@rvagg@twitter**](https://twitter.com/rvagg) | | ||
| **Alex Potsides** | | | | ||
| **Andrew Kelley** | [**@andrewrk**](https://github.com/andrewrk) | | | ||
| **Deian Stefan** | [**@deian**](https://github.com/deian) | | | ||
| **Matteo Collina** | [**@mcollina**](https://github.com/mcollina) | [**@matteocollina@twitter**](https://twitter.com/matteocollina) | |
@@ -16,3 +16,3 @@ var levelup = require('levelup') | ||
return levelup(encode(leveldown(location), options), options, callback) | ||
return levelup(encode(leveldown(location, options), options), options, callback) | ||
} | ||
@@ -19,0 +19,0 @@ |
{ | ||
"name": "level-packager", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "LevelUP package helper for distributing with a LevelDOWN-compatible back-end", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
22
test.js
@@ -76,2 +76,18 @@ 'use strict' | ||
test('Level constructor with location & options', function (t) { | ||
t.plan(2) | ||
function Down (location, opts) { | ||
t.is(location, 'location', 'location is correct') | ||
t.same(opts, { | ||
prefix: 'foo' | ||
}) | ||
return { | ||
open: function (opts, cb) { | ||
cb() | ||
} | ||
} | ||
} | ||
packager(Down)('location', { prefix: 'foo' }) | ||
}) | ||
test('Level constructor with callback', function (t) { | ||
@@ -120,3 +136,3 @@ t.plan(3) | ||
test('Level constructor with location & options', function (t) { | ||
test('Level constructor with location & options passed to levelup', function (t) { | ||
t.plan(4) | ||
@@ -144,3 +160,3 @@ var Down = function (location) { | ||
test('Level constructor with options', function (t) { | ||
test('Level constructor with options passed to levelup', function (t) { | ||
t.plan(3) | ||
@@ -167,3 +183,3 @@ var Down = function () { | ||
test('Level constructor with options & callback', function (t) { | ||
test('Level constructor with options & callback passed to levelup', function (t) { | ||
t.plan(5) | ||
@@ -170,0 +186,0 @@ var Down = function () { |
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
32802
341