Skip to content

Commit

Permalink
chore: remove a few unused dependencies (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Nov 7, 2018
1 parent 7fe9d7f commit a8f156d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,11 @@
"lodash.flatten": "^4.2.0",
"lodash.merge": "^4.6.0",
"lodash.snakecase": "^4.1.1",
"lodash.union": "^4.6.0",
"long": "^4.0.0",
"prop-assign": "^1.0.0",
"protobufjs": "^6.8.0",
"pumpify": "^1.3.3",
"retry-request": "^4.0.0",
"stream-events": "^1.0.2",
"string-format-obj": "^1.0.0",
"through2": "^3.0.0"
},
"devDependencies": {
Expand All @@ -91,7 +88,6 @@
"eslint-config-prettier": "^3.0.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"glob": "^7.1.2",
"ink-docstrap": "^1.3.0",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
Expand Down
1 change: 1 addition & 0 deletions samples/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
rules:
no-console: off
node/no-missing-require: off
5 changes: 0 additions & 5 deletions samples/system-test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
---
rules:
node/no-unpublished-require: off
node/no-unsupported-features:
- error
- version: 8
ignores: []
no-empty: off
4 changes: 3 additions & 1 deletion samples/system-test/instances.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ test.before(async () => {
test.after.always(async () => {
try {
await instance.delete();
} catch (err) {} // ignore error
} catch (err) {
// ignore error
}
});

test(`should list zones`, async t => {
Expand Down
8 changes: 4 additions & 4 deletions src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const {promisifyAll} = require('@google-cloud/promisify');
const concat = require('concat-stream');
const flatten = require('lodash.flatten');
const is = require('is');
const propAssign = require('prop-assign');
const pumpify = require('pumpify');
const through = require('through2');

Expand Down Expand Up @@ -813,9 +812,10 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`
gaxOptions = {};
}

entries = arrify(entries).map(
propAssign('method', Mutation.methods.INSERT)
);
entries = arrify(entries).map(entry => {
entry.method = Mutation.methods.INSERT;
return entry;
});

return this.mutate(entries, {gaxOptions}, callback);
}
Expand Down
2 changes: 0 additions & 2 deletions test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
env:
mocha: true
rules:
node/no-unpublished-require: off

0 comments on commit a8f156d

Please sign in to comment.