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 077bbc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
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 077bbc1

Please sign in to comment.