Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove propprop #145

Merged
merged 2 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"lodash.flatten": "^4.4.0",
"lodash.merge": "^4.6.1",
"prop-assign": "^1.0.0",
"propprop": "^0.3.1",
"safe-buffer": "^5.1.2",
"split-array-stream": "^2.0.0",
"stream-events": "^1.0.4",
Expand Down
3 changes: 1 addition & 2 deletions src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var arrify = require('arrify');
var common = require('@google-cloud/common');
var flatten = require('lodash.flatten');
var is = require('is');
var prop = require('propprop');
var util = require('util');

var entity = require('./entity.js');
Expand Down Expand Up @@ -200,7 +199,7 @@ Transaction.prototype.commit = function(gaxOptions, callback) {
// Take the `req` array built previously, and merge them into one request to
// send as the final transactional commit.
var reqOpts = {
mutations: flatten(this.requests_.map(prop('mutations'))),
mutations: flatten(this.requests_.map(x => x.mutations)),
};

this.request_(
Expand Down