Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

level-packager

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-packager - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

8

CHANGELOG.md
# 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 @@

1

CONTRIBUTORS.md

@@ -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) |

2

level-packager.js

@@ -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",

@@ -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 () {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc