diff --git a/package-lock.json b/package-lock.json index 5915ccf6c..544441e0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11581,11 +11581,6 @@ "resolved": "https://registry.npmjs.org/prop-assign/-/prop-assign-1.0.0.tgz", "integrity": "sha1-l2eh+/1wk5CGR6boRtMbT+qnBFk=" }, - "propprop": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/propprop/-/propprop-0.3.1.tgz", - "integrity": "sha1-oEmjVouJZEAGfRXY7J8zc15XAXg=" - }, "protobufjs": { "version": "6.8.8", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", diff --git a/package.json b/package.json index 4f0c38f49..e93c5c8f9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/transaction.js b/src/transaction.js index 61fb1e369..6d85c56d1 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -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'); @@ -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_(