diff --git a/.gitignore b/.gitignore index 330759d..9e292ac 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ build package-lock.json .vscode yarn.lock +.coverage +.nyc_output diff --git a/package.json b/package.json index 0706a38..bafd0ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "googleapis-common", - "version": "0.4.0", + "version": "0.5.0", "description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.", "repository": "googleapis/nodejs-googleapis-common", "main": "build/src/index.js", diff --git a/src/authplus.ts b/src/authplus.ts new file mode 100644 index 0000000..1fb41f1 --- /dev/null +++ b/src/authplus.ts @@ -0,0 +1,23 @@ +// Copyright 2019 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import {Compute, GoogleAuth, JWT, OAuth2Client} from 'google-auth-library'; + +export class AuthPlus extends GoogleAuth { + // tslint:disable-next-line: variable-name + JWT = JWT; + // tslint:disable-next-line: variable-name + Compute = Compute; + // tslint:disable-next-line: variable-name + OAuth2 = OAuth2Client; +} diff --git a/src/index.ts b/src/index.ts index 421a51d..cc95ccd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,7 @@ export {APIEndpoint, APIRequestContext, APIRequestParams, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions, ServiceOptions} from './api'; export {getAPI} from './apiIndex'; export {createAPIRequest} from './apirequest'; +export {AuthPlus} from './authplus'; export {Discovery, DiscoveryOptions, EndpointCreator} from './discovery'; export {Endpoint, Target} from './endpoint'; export {FragmentResponse, HttpMethod, ParameterFormat, Schema, SchemaItem, SchemaItems, SchemaMethod, SchemaMethods, SchemaParameter, SchemaParameters, SchemaResource, SchemaResources, Schemas, SchemaType} from './schema';