google-auth-library
Advanced tools
Comparing version 9.4.2 to 9.5.0
@@ -65,2 +65,9 @@ /// <reference types="node" /> | ||
projectId?: string; | ||
/** | ||
* The default service domain for a given Cloud universe. | ||
* | ||
* This is an ergonomic equivalent to {@link clientOptions}'s `universeDomain` | ||
* property and will be set for all generated {@link AuthClient}s. | ||
*/ | ||
universeDomain?: string; | ||
} | ||
@@ -91,3 +98,3 @@ export declare const CLOUD_SDK_CLIENT_ID = "764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com"; | ||
private scopes?; | ||
private clientOptions?; | ||
private clientOptions; | ||
/** | ||
@@ -94,0 +101,0 @@ * Export DefaultTransporter as a static property of the class. |
@@ -15,7 +15,2 @@ "use strict"; | ||
// limitations under the License. | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
@@ -27,2 +22,7 @@ if (kind === "m") throw new TypeError("Private method is not writable"); | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
var _GoogleAuth_instances, _GoogleAuth_universeDomain, _GoogleAuth_getUniverseFromMetadataServer; | ||
@@ -89,2 +89,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
this.cachedCredential = null; | ||
this.clientOptions = {}; | ||
/** | ||
@@ -102,3 +103,7 @@ * The cached universe domain. | ||
this.jsonContent = opts.credentials || null; | ||
this.clientOptions = opts.clientOptions; | ||
this.clientOptions = opts.clientOptions || {}; | ||
if (opts.universeDomain) { | ||
this.clientOptions.universeDomain = opts.universeDomain; | ||
__classPrivateFieldSet(this, _GoogleAuth_universeDomain, opts.universeDomain, "f"); | ||
} | ||
} | ||
@@ -105,0 +110,0 @@ // GAPIC client libraries should always use self-signed JWTs. The following |
import { GoogleAuth } from './auth/googleauth'; | ||
export * as gcpMetadata from 'gcp-metadata'; | ||
export { AuthClient } from './auth/authclient'; | ||
export { AuthClient, DEFAULT_UNIVERSE } from './auth/authclient'; | ||
export { Compute, ComputeOptions } from './auth/computeclient'; | ||
@@ -5,0 +5,0 @@ export { CredentialBody, CredentialRequest, Credentials, JWTInput, } from './auth/credentials'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.AuthClient = exports.gcpMetadata = void 0; | ||
exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gcpMetadata = void 0; | ||
// Copyright 2017 Google LLC | ||
@@ -22,2 +22,3 @@ // | ||
Object.defineProperty(exports, "AuthClient", { enumerable: true, get: function () { return authclient_1.AuthClient; } }); | ||
Object.defineProperty(exports, "DEFAULT_UNIVERSE", { enumerable: true, get: function () { return authclient_1.DEFAULT_UNIVERSE; } }); | ||
var computeclient_1 = require("./auth/computeclient"); | ||
@@ -24,0 +25,0 @@ Object.defineProperty(exports, "Compute", { enumerable: true, get: function () { return computeclient_1.Compute; } }); |
{ | ||
"name": "google-auth-library", | ||
"version": "9.4.2", | ||
"version": "9.5.0", | ||
"author": "Google Inc.", | ||
@@ -5,0 +5,0 @@ "description": "Google APIs Authentication Client Library for Node.js", |
Sorry, the diff of this file is too big to display
545522
9047