From a8f156dd04bed469b2f401acef01cd26e3d51434 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 7 Nov 2018 14:49:34 -0800 Subject: [PATCH] chore: remove a few unused dependencies (#358) --- package.json | 4 ---- samples/.eslintrc.yml | 1 + samples/system-test/.eslintrc.yml | 5 ----- samples/system-test/instances.test.js | 4 +++- src/table.js | 8 ++++---- test/.eslintrc.yml | 2 -- 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 272a46140..0ef22d801 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", diff --git a/samples/.eslintrc.yml b/samples/.eslintrc.yml index 282535f55..0aa37ac63 100644 --- a/samples/.eslintrc.yml +++ b/samples/.eslintrc.yml @@ -1,3 +1,4 @@ --- rules: no-console: off + node/no-missing-require: off diff --git a/samples/system-test/.eslintrc.yml b/samples/system-test/.eslintrc.yml index 2b04ca084..cd088a978 100644 --- a/samples/system-test/.eslintrc.yml +++ b/samples/system-test/.eslintrc.yml @@ -1,8 +1,3 @@ --- rules: node/no-unpublished-require: off - node/no-unsupported-features: - - error - - version: 8 - ignores: [] - no-empty: off diff --git a/samples/system-test/instances.test.js b/samples/system-test/instances.test.js index 20c05eca5..b47985efb 100644 --- a/samples/system-test/instances.test.js +++ b/samples/system-test/instances.test.js @@ -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 => { diff --git a/src/table.js b/src/table.js index cd8eadd53..9155be637 100644 --- a/src/table.js +++ b/src/table.js @@ -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'); @@ -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); } diff --git a/test/.eslintrc.yml b/test/.eslintrc.yml index 73f7bbc94..6db2a46c5 100644 --- a/test/.eslintrc.yml +++ b/test/.eslintrc.yml @@ -1,5 +1,3 @@ --- env: mocha: true -rules: - node/no-unpublished-require: off