Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: Object.assign is now evil and no longer is behaving as spec says…
Browse files Browse the repository at this point in the history
… when Webpacked
  • Loading branch information
daviddias committed May 24, 2017
1 parent 8330592 commit c3f50ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"interface-datastore": "^0.2.1",
"level-js": "^2.2.4",
"leveldown": "^1.7.0",
"levelup": "^1.3.6",
"levelup": "^1.3.7",
"pull-stream": "^3.6.0"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ class LevelDatastore {
/* :: db: levelup */

constructor (path /* : string */, opts /* : ?LevelOptions */) {
this.db = levelup(path, Object.assign({}, {
compression: false // same default as go
}, opts, {
this.db = levelup(path, Object.assign(opts, {
compression: false, // same default as go
valueEncoding: 'binary'
}))
}
Expand Down

0 comments on commit c3f50ec

Please sign in to comment.