Skip to content

Commit

Permalink
Merge pull request #240 from ToothlessGear/v1-smaller-lodash-dep
Browse files Browse the repository at this point in the history
V1: Depend only on lodash.defaultsdeep (instead of all lodash)
  • Loading branch information
eladnava committed May 30, 2016
2 parents 201f37b + 3784ce4 commit b4eae56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sender.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Constants = require('./constants');
var _ = require('lodash');
var defaultsDeep = require('lodash.defaultsdeep');
var request = require('request');
var debug = require('debug')('node-gcm');
var messageOptions = require("./message-options");
Expand Down Expand Up @@ -136,7 +136,7 @@ Sender.prototype.sendNoRetry = function(message, recipient, callback) {
}

//Build request options, allowing some to be overridden
var request_options = _.defaultsDeep({
var request_options = defaultsDeep({
method: 'POST',
headers: {
'Authorization': 'key=' + this.key
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"dependencies": {
"debug": "^0.8.1",
"lodash": "^3.10.1",
"lodash.defaultsdeep": "^4.4.0",
"request": "^2.27.0"
},
"devDependencies": {
Expand Down

0 comments on commit b4eae56

Please sign in to comment.