Skip to content

Commit

Permalink
update to lodash 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mtorp committed Mar 16, 2020
1 parent d570d18 commit 5c16780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Object.assign(config.storage, {

var pubsubConnection = pubsub.create();

new RpcServer(socket, _.extend({}, databaseMethods, queueMethods, pubsubConnection.methods));
new RpcServer(socket, _.extend({}, databaseMethods, queueMethods.bind(pubsubConnection.methods)));

socket.on('close', () => {
pubsubConnection.close();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/screeps/storage.git"
},
"dependencies": {
"lodash": "^3.10.1",
"lodash": "^4.0.0",
"lokijs": "^1.5.6",
"q": "^1.4.1"
}
Expand Down

0 comments on commit 5c16780

Please sign in to comment.