From e1c3da030bab7e957c0261bdeb38cc122a0d9d56 Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Tue, 4 Sep 2018 17:47:12 -0400 Subject: [PATCH] chore(deps): update dependency @google-cloud/common to ^0.23.0 (#92) Supersedes https://github.com/googleapis/nodejs-dns/pull/91 --- packages/google-cloud-dns/package.json | 3 ++- packages/google-cloud-dns/src/change.js | 2 ++ packages/google-cloud-dns/src/index.js | 5 ++--- packages/google-cloud-dns/src/zone.js | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-dns/package.json b/packages/google-cloud-dns/package.json index 36b6399d275..996da7e37b3 100644 --- a/packages/google-cloud-dns/package.json +++ b/packages/google-cloud-dns/package.json @@ -53,7 +53,7 @@ "system-test": "mocha system-test/*.js --timeout 600000" }, "dependencies": { - "@google-cloud/common": "^0.22.0", + "@google-cloud/common": "^0.23.0", "@google-cloud/paginator": "^0.1.0", "@google-cloud/promisify": "^0.3.0", "arrify": "^1.0.1", @@ -64,6 +64,7 @@ "lodash.groupby": "^4.6.0", "methmeth": "^1.1.0", "propprop": "^0.3.1", + "request": "^2.88.0", "string-format-obj": "^1.1.1" }, "devDependencies": { diff --git a/packages/google-cloud-dns/src/change.js b/packages/google-cloud-dns/src/change.js index 7c320651d58..81f3e66cc70 100644 --- a/packages/google-cloud-dns/src/change.js +++ b/packages/google-cloud-dns/src/change.js @@ -16,6 +16,7 @@ 'use strict'; +const request = require('request'); const {ServiceObject} = require('@google-cloud/common'); const {promisifyAll} = require('@google-cloud/promisify'); @@ -179,6 +180,7 @@ class Change extends ServiceObject { */ id: id, methods: methods, + requestModule: request, }); } /** diff --git a/packages/google-cloud-dns/src/index.js b/packages/google-cloud-dns/src/index.js index cffab2b0871..a91a7c41002 100644 --- a/packages/google-cloud-dns/src/index.js +++ b/packages/google-cloud-dns/src/index.js @@ -22,7 +22,7 @@ const {paginator} = require('@google-cloud/paginator'); const {promisifyAll} = require('@google-cloud/promisify'); const extend = require('extend'); const is = require('is'); -const util = require('util'); +const request = require('request'); const Zone = require('./zone'); @@ -89,6 +89,7 @@ class DNS extends Service { 'https://www.googleapis.com/auth/cloud-platform', ], packageJson: require('../package.json'), + requestModule: request, }; super(config, options); } @@ -275,8 +276,6 @@ class DNS extends Service { } } -util.inherits(DNS, Service); - /** * Get {@link Zone} objects for all of the zones in your project as * a readable object stream. diff --git a/packages/google-cloud-dns/src/zone.js b/packages/google-cloud-dns/src/zone.js index 2e0d453a33a..78f26fe9aa6 100644 --- a/packages/google-cloud-dns/src/zone.js +++ b/packages/google-cloud-dns/src/zone.js @@ -27,6 +27,7 @@ const fs = require('fs'); const groupBy = require('lodash.groupby'); const is = require('is'); const prop = require('propprop'); +const request = require('request'); const zonefile = require('dns-zonefile'); const Change = require('./change'); @@ -211,6 +212,7 @@ class Zone extends ServiceObject { id: name, createMethod: dns.createZone.bind(dns), methods: methods, + requestModule: request, }); /** * @name Zone#name