Skip to content

Commit

Permalink
feat: use small HTTP dependency (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored Sep 4, 2018
1 parent e1c3da0 commit 53cc89c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-dns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"lodash.groupby": "^4.6.0",
"methmeth": "^1.1.0",
"propprop": "^0.3.1",
"request": "^2.88.0",
"string-format-obj": "^1.1.1"
"string-format-obj": "^1.1.1",
"teeny-request": "^3.6.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^2.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-dns/src/change.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

'use strict';

const request = require('request');
const teenyRequest = require('teeny-request').teenyRequest;
const {ServiceObject} = require('@google-cloud/common');
const {promisifyAll} = require('@google-cloud/promisify');

Expand Down Expand Up @@ -180,7 +180,7 @@ class Change extends ServiceObject {
*/
id: id,
methods: methods,
requestModule: request,
requestModule: teenyRequest,
});
}
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-dns/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 request = require('request');
const teenyRequest = require('teeny-request').teenyRequest;

const Zone = require('./zone');

Expand Down Expand Up @@ -89,7 +89,7 @@ class DNS extends Service {
'https://www.googleapis.com/auth/cloud-platform',
],
packageJson: require('../package.json'),
requestModule: request,
requestModule: teenyRequest,
};
super(config, options);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-dns/src/zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const fs = require('fs');
const groupBy = require('lodash.groupby');
const is = require('is');
const prop = require('propprop');
const request = require('request');
const teenyRequest = require('teeny-request').teenyRequest;
const zonefile = require('dns-zonefile');

const Change = require('./change');
Expand Down Expand Up @@ -212,7 +212,7 @@ class Zone extends ServiceObject {
id: name,
createMethod: dns.createZone.bind(dns),
methods: methods,
requestModule: request,
requestModule: teenyRequest,
});
/**
* @name Zone#name
Expand Down

0 comments on commit 53cc89c

Please sign in to comment.