Browse Source

upgraded to lodash@4.1.x

fixed #296
master
tmont 9 years ago
parent
commit
e734df273c
  1. 2
      lib/dialect/postgres.js
  2. 2
      lib/table.js
  3. 2
      package.json

2
lib/dialect/postgres.js

@ -56,7 +56,7 @@ Postgres.prototype._getParameterValue = function(value, quoteChar) {
value = '\'{' + value.join(',') + '}\''; value = '\'{' + value.join(',') + '}\'';
} }
} else { } else {
value = _.map(value, this._getParameterValue, this); value = _.map(value, this._getParameterValue.bind(this));
value = '(' + value.join(', ') + ')'; value = '(' + value.join(', ') + ')';
} }
} else if (_.isFunction(value.toISOString)) { } else if (_.isFunction(value.toISOString)) {

2
lib/table.js

@ -78,7 +78,7 @@ Table.prototype.createColumn = function(col) {
name: subfield name: subfield
})]; })];
}, this)) }, this))
.object() .fromPairs()
.value(); .value();
} }
} }

2
package.json

@ -20,7 +20,7 @@
}, },
"dependencies": { "dependencies": {
"sliced": "0.0.x", "sliced": "0.0.x",
"lodash": "1.3.x" "lodash": "4.1.x"
}, },
"devDependencies": { "devDependencies": {
"jshint": "*", "jshint": "*",

Loading…
Cancel
Save