Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export AuthPlus #70

Merged
merged 2 commits into from Jan 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ build
package-lock.json
.vscode
yarn.lock
.coverage
.nyc_output
2 changes: 1 addition & 1 deletion 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",
Expand Down
23 changes: 23 additions & 0 deletions 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;
}
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -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';