@google-cloud/common
Advanced tools
Comparing version 2.2.6 to 2.3.0
@@ -137,3 +137,3 @@ "use strict"; | ||
if (!metadata) { | ||
setTimeout(this.startPolling_.bind(this), 500); | ||
setTimeout(this.startPolling_.bind(this), this.pollIntervalMs || 500); | ||
return; | ||
@@ -140,0 +140,0 @@ } |
@@ -60,2 +60,7 @@ /*! | ||
parent: ServiceObjectParent; | ||
/** | ||
* For long running operations, how often should the client poll | ||
* for completion. | ||
*/ | ||
pollIntervalMs?: number; | ||
} | ||
@@ -109,2 +114,3 @@ export interface Methods { | ||
id?: string; | ||
pollIntervalMs?: number; | ||
private createMethod?; | ||
@@ -111,0 +117,0 @@ protected methods: Methods; |
@@ -66,2 +66,3 @@ "use strict"; | ||
this.interceptors = []; | ||
this.pollIntervalMs = config.pollIntervalMs; | ||
this.Promise = this.parent ? this.parent.Promise : undefined; | ||
@@ -68,0 +69,0 @@ if (config.methods) { |
@@ -7,2 +7,9 @@ # Changelog | ||
## [2.3.0](https://www.github.com/googleapis/nodejs-common/compare/v2.2.6...v2.3.0) (2020-01-23) | ||
### Features | ||
* allow poll interval to be configured ([#520](https://www.github.com/googleapis/nodejs-common/issues/520)) ([abfbd18](https://www.github.com/googleapis/nodejs-common/commit/abfbd189b5769c8dccd482e3c7369711c27b9895)) | ||
### [2.2.6](https://www.github.com/googleapis/nodejs-common/compare/v2.2.5...v2.2.6) (2020-01-17) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/common", | ||
"description": "Common components for Cloud APIs Node.js Client Libraries", | ||
"version": "2.2.6", | ||
"version": "2.3.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111823
1847