Socket
Socket
Sign inDemoInstall

level-packager

Package Overview
Dependencies
Maintainers
4
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 2.1.1 to 3.0.0

UPGRADING.md

22

CHANGELOG.md

@@ -5,2 +5,21 @@ # Changelog

## [3.0.0] - 2018-05-23
### Added
* Add node 10 to Travis (@ralphtheninja)
* Add `UPGRADING.md` (@ralphtheninja)
### Changed
* Update `standard` to `^11.0.0` (@ralphtheninja)
* Update `encoding-down` to `~5.0.0` (@ralphtheninja)
* Update `leveldown` to `^4.0.0` (@ralphtheninja)
* Update `levelup` to `^3.0.0` (@ralphtheninja)
* Change `License & Copyright` to `License` in README (@ralphtheninja)
* Replace `const` with `var` for IE10 support (@ralphtheninja)
### Fixed
### Removed
* Remove node 4 from Travis (@ralphtheninja)
## [2.1.1] - 2018-02-13

@@ -218,3 +237,4 @@

[Unreleased]: https://github.com/level/packager/compare/v2.1.1...HEAD
[Unreleased]: https://github.com/level/packager/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/level/packager/compare/v2.1.1...v3.0.0
[2.1.1]: https://github.com/level/packager/compare/v2.1.0...v2.1.1

@@ -221,0 +241,0 @@ [2.1.0]: https://github.com/level/packager/compare/v2.0.2...v2.1.0

4

level-packager.js

@@ -1,3 +0,3 @@

const levelup = require('levelup')
const encode = require('encoding-down')
var levelup = require('levelup')
var encode = require('encoding-down')

@@ -4,0 +4,0 @@ function packager (leveldown) {

{
"name": "level-packager",
"description": "LevelUP package helper for distributing with a LevelDOWN-compatible back-end",
"version": "2.1.1",
"version": "3.0.0",
"contributors": [

@@ -39,14 +39,14 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)",

"dependencies": {
"encoding-down": "~4.0.0",
"levelup": "^2.0.0"
"encoding-down": "~5.0.0",
"levelup": "^3.0.0"
},
"license": "MIT",
"devDependencies": {
"leveldown": "^3.0.0",
"standard": "^10.0.3",
"leveldown": "^4.0.0",
"standard": "^11.0.0",
"tape": "^4.0.0"
},
"engines": {
"node": ">=4"
"node": ">=6"
}
}

@@ -28,2 +28,4 @@ # level-packager

**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md).
<a name="contributing"></a>

@@ -39,3 +41,3 @@ ## Contributing

<a name="license"></a>
## License &amp; Copyright
## License

@@ -42,0 +44,0 @@ Copyright (c) 2012-2018 `level-packager` [contributors](https://github.com/level/community#contributors).

'use strict'
const fs = require('fs')
const path = require('path')
const location = path.join(__dirname, 'level-test-' + process.pid + '.db')
var fs = require('fs')
var path = require('path')
var location = path.join(__dirname, 'level-test-' + process.pid + '.db')

@@ -47,3 +47,3 @@ module.exports = function (test, level, options) {

test('test db open and use, db=level(location)', function (t) {
const db = level(location)
var db = level(location)
db.put('test3', 'success', function (err) {

@@ -57,4 +57,4 @@ t.notOk(err, 'no error')

let c = 0
const db = level(location)
const setup = options.nonPersistent ? function (callback) {
var db = level(location)
var setup = options.nonPersistent ? function (callback) {
db.batch([

@@ -82,5 +82,5 @@ { type: 'put', key: 'test1', value: 'success' },

test('options.keyEncoding and options.valueEncoding are passed on to encoding-down', function (t) {
const db = level(location, { keyEncoding: 'json', valueEncoding: 'json' })
var db = level(location, { keyEncoding: 'json', valueEncoding: 'json' })
db.on('ready', function () {
const codec = db.db.codec
var codec = db.db.codec
t.equal(codec.opts.keyEncoding, 'json', 'keyEncoding correct')

@@ -93,5 +93,5 @@ t.equal(codec.opts.valueEncoding, 'json', 'valueEncoding correct')

test('encoding options default to utf8', function (t) {
const db = level(location)
var db = level(location)
db.on('ready', function () {
const codec = db.db.codec
var codec = db.db.codec
t.equal(codec.opts.keyEncoding, 'utf8', 'keyEncoding correct')

@@ -126,7 +126,6 @@ t.equal(codec.opts.valueEncoding, 'utf8', 'valueEncoding correct')

if (!module.parent) {
const test = require('tape')
const packager = require('./')
const leveldown = require('leveldown')
var test = require('tape')
var packager = require('./')
var leveldown = require('leveldown')
module.exports(test, packager(leveldown))
}

Sorry, the diff of this file is not supported yet

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