Skip to content

Commit

Permalink
update to latest level-codec
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 24, 2015
1 parent 60b3095 commit cbc692f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/levelup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var EventEmitter = require('events').EventEmitter
, ReadStream = require('./read-stream')
, util = require('./util')
, Batch = require('./batch')
, Codec = require('level-codec').Codec
, Codec = require('level-codec')

, getOptions = util.getOptions
, defaultOptions = util.defaultOptions
Expand Down
3 changes: 1 addition & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

var extend = require('xtend')
, LevelUPError = require('./errors').LevelUPError
, encodings = require('level-codec').encodings
, defaultOptions = {
createIfMissing : true
, errorIfExists : false
Expand All @@ -19,7 +18,7 @@ var extend = require('xtend')

function getOptions (options) {
if (typeof options == 'string')
options = { valueEncoding: encodings[options] }
options = { valueEncoding: options }
if (typeof options != 'object')
options = {}
return options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"deferred-leveldown": "~0.2.0",
"errno": "~0.1.1",
"level-codec": "^3.0.0",
"level-codec": "^5.0.0",
"prr": "~0.0.0",
"readable-stream": "~1.0.26",
"semver": "~2.3.1",
Expand Down

0 comments on commit cbc692f

Please sign in to comment.