From 1bdf8f39c2a496af891b971641a814cbfaf8a6d1 Mon Sep 17 00:00:00 2001 From: steffnay Date: Fri, 10 Apr 2020 13:00:52 -0700 Subject: [PATCH 1/3] feat(userAgent): allow for optional user agent to be provided --- src/bigquery.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bigquery.ts b/src/bigquery.ts index d1a11e66..ed147aff 100644 --- a/src/bigquery.ts +++ b/src/bigquery.ts @@ -168,6 +168,7 @@ export interface BigQueryOptions extends common.GoogleAuthOptions { autoRetry?: boolean; maxRetries?: number; location?: string; + userAgent?: string; /** * The API endpoint of the service used to make requests. * Defaults to `bigquery.googleapis.com`. @@ -204,6 +205,8 @@ export interface BigQueryOptions extends common.GoogleAuthOptions { * native Promises. * @property {string} [location] The geographic location of all datasets and * jobs referenced and created through the client. + * @property {string} [userAgent] The value to be prepended to the User-Agent + * header in API requests. * @property {string[]} [scopes] Additional OAuth scopes to use in requests. For * example, to access an external data source, you may need the * `https://www.googleapis.com/auth/drive.readonly` scope. From ac7a98e7a89077a95236ad99bdb052cf18875ba1 Mon Sep 17 00:00:00 2001 From: steffnay Date: Fri, 10 Apr 2020 13:36:32 -0700 Subject: [PATCH 2/3] chore: linted --- src/bigquery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bigquery.ts b/src/bigquery.ts index ed147aff..802bde5b 100644 --- a/src/bigquery.ts +++ b/src/bigquery.ts @@ -205,7 +205,7 @@ export interface BigQueryOptions extends common.GoogleAuthOptions { * native Promises. * @property {string} [location] The geographic location of all datasets and * jobs referenced and created through the client. - * @property {string} [userAgent] The value to be prepended to the User-Agent + * @property {string} [userAgent] The value to be prepended to the User-Agent * header in API requests. * @property {string[]} [scopes] Additional OAuth scopes to use in requests. For * example, to access an external data source, you may need the From c31b07c499446eab57134e0248f69a17802b1e7b Mon Sep 17 00:00:00 2001 From: steffnay Date: Tue, 9 Jun 2020 09:48:23 -0700 Subject: [PATCH 3/3] updates @google-cloud/common version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f9da85bb..af21db2d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "prelint": "cd samples; npm link ../; npm i" }, "dependencies": { - "@google-cloud/common": "^3.0.0", + "@google-cloud/common": "^3.1.0", "@google-cloud/paginator": "^3.0.0", "@google-cloud/promisify": "^2.0.0", "arrify": "^2.0.1",