use defaults again

deep is no longer necessary with the `headers` change
This commit is contained in:
Matthew Taylor 2016-08-11 14:55:20 -04:00
parent fa2c326955
commit 4dc85b1bc4

View file

@ -1,5 +1,4 @@
var defaults = require('lodash.defaults');
var defaultsDeep = require('lodash.defaultsdeep');
var xhr = require('xhr');
var jar = require('./jar');
@ -16,7 +15,7 @@ var urlParams = require('./url-params');
*/
module.exports = function (opts, callback) {
defaultsDeep(opts, {
defaults(opts, {
host: process.env.API_HOST,
headers: {},
responseType: 'json',