Skip to content

Commit 5003694

Browse files
renovate[bot]JustinBeckwith
authored andcommitted
fix(deps): update dependency @google-cloud/common to ^0.27.0 (#176)
1 parent c5f7806 commit 5003694

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

packages/google-cloud-dns/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"pretest": "npm run compile"
4545
},
4646
"dependencies": {
47-
"@google-cloud/common": "^0.26.0",
47+
"@google-cloud/common": "^0.27.0",
4848
"@google-cloud/paginator": "^0.1.0",
4949
"@google-cloud/promisify": "^0.3.0",
5050
"arrify": "^1.0.1",

packages/google-cloud-dns/src/zone.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {Change, CreateChangeCallback, CreateChangeRequest} from './change';
2828
import {Record, RecordMetadata, RecordObject} from './record';
2929
import {DNS} from '.';
3030
import * as r from 'request';
31+
import {Readable} from 'stream';
3132

3233
/**
3334
* Config to set for the change.
@@ -164,6 +165,9 @@ export interface ZoneExportCallback {
164165
* const zone = dns.zone('zone-id');
165166
*/
166167
class Zone extends ServiceObject {
168+
name: string;
169+
getRecordsStream: (query?: GetRecordsRequest|string|string[]) => Readable;
170+
getChangesStream: (query?: GetChangesRequest) => Readable;
167171
constructor(dns: DNS, name: string) {
168172
const methods = {
169173
/**
@@ -336,6 +340,8 @@ class Zone extends ServiceObject {
336340
* @type {string}
337341
*/
338342
this.name = name;
343+
this.getRecordsStream = paginator.streamify('getRecords');
344+
this.getChangesStream = paginator.streamify('getChanges');
339345
}
340346

341347
/**
@@ -1169,7 +1175,6 @@ import(localPath: string, callback?: CreateChangeCallback): void|Promise<CreateC
11691175
* this.end();
11701176
* });
11711177
*/
1172-
Zone.prototype.getChangesStream = paginator.streamify('getChanges');
11731178

11741179
/**
11751180
* Get the list of {module:dns/record} objects for this zone as a readable
@@ -1203,7 +1208,6 @@ Zone.prototype.getChangesStream = paginator.streamify('getChanges');
12031208
* this.end();
12041209
* });
12051210
*/
1206-
Zone.prototype.getRecordsStream = paginator.streamify('getRecords');
12071211

12081212
/*! Developer Documentation
12091213
*

packages/google-cloud-dns/system-test/.eslintrc.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/google-cloud-dns/test/.eslintrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)