Socket
Socket
Sign inDemoInstall

google-auth-library

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-auth-library - npm Package Compare versions

Comparing version 9.11.0 to 9.12.0

1

build/src/auth/authclient.d.ts

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -3,0 +2,0 @@ import { Gaxios, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';

6

build/src/auth/baseexternalclient.d.ts

@@ -137,2 +137,8 @@ import { Gaxios, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';

accessToken: string;
/**
* ISO format used for expiration time.
*
* @example
* '2014-10-02T15:01:23.045123456Z'
*/
expireTime: string;

@@ -139,0 +145,0 @@ }

@@ -16,3 +16,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getEnv = exports.clear = exports.GCPEnv = void 0;
exports.GCPEnv = void 0;
exports.clear = clear;
exports.getEnv = getEnv;
const gcpMetadata = require("gcp-metadata");

@@ -32,3 +34,2 @@ var GCPEnv;

}
exports.clear = clear;
async function getEnv() {

@@ -41,3 +42,2 @@ if (envPromise) {

}
exports.getEnv = getEnv;
async function getEnvMemoized() {

@@ -44,0 +44,0 @@ let env = GCPEnv.NONE;

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { GaxiosOptions, GaxiosResponse } from 'gaxios';

@@ -311,5 +310,5 @@ import * as stream from 'stream';

}): Promise<{
url?: string | undefined;
uri?: string | undefined;
headers?: Headers | undefined;
url?: string;
uri?: string;
headers?: Headers;
}>;

@@ -316,0 +315,0 @@ /**

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as stream from 'stream';

@@ -3,0 +2,0 @@ import { JWTInput } from './credentials';

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { GoogleToken } from 'gtoken';

@@ -3,0 +2,0 @@ import * as stream from 'stream';

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { GaxiosError, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';

@@ -3,0 +2,0 @@ import * as querystring from 'querystring';

@@ -16,3 +16,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorFromOAuthErrorResponse = exports.OAuthClientAuthHandler = void 0;
exports.OAuthClientAuthHandler = void 0;
exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse;
const querystring = require("querystring");

@@ -193,2 +194,1 @@ const crypto_1 = require("../crypto/crypto");

}
exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse;

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as stream from 'stream';

@@ -3,0 +2,0 @@ import { JWTInput } from './credentials';

@@ -35,3 +35,2 @@ "use strict";

// need to convert an input string to an ArrayBuffer:
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const inputBuffer = new TextEncoder().encode(str);

@@ -59,3 +58,2 @@ // Result is ArrayBuffer as well.

};
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const dataArray = new TextEncoder().encode(data);

@@ -74,3 +72,2 @@ const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature));

};
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const dataArray = new TextEncoder().encode(data);

@@ -85,3 +82,2 @@ const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']);

const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64));
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const result = new TextDecoder().decode(uint8array);

@@ -91,3 +87,2 @@ return result;

encodeBase64StringUtf8(text) {
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const uint8array = new TextEncoder().encode(text);

@@ -108,3 +103,2 @@ const result = base64js.fromByteArray(uint8array);

// need to convert an input string to an ArrayBuffer:
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const inputBuffer = new TextEncoder().encode(str);

@@ -128,3 +122,2 @@ // Result is ArrayBuffer as well.

: String.fromCharCode(...new Uint16Array(key));
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const enc = new TextEncoder();

@@ -131,0 +124,0 @@ const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), {

@@ -1,2 +0,1 @@

/// <reference types="node" />
export interface JwkCertificate {

@@ -3,0 +2,0 @@ kty: string;

@@ -17,3 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.fromArrayBufferToHex = exports.hasBrowserCrypto = exports.createCrypto = void 0;
exports.createCrypto = createCrypto;
exports.hasBrowserCrypto = hasBrowserCrypto;
exports.fromArrayBufferToHex = fromArrayBufferToHex;
const crypto_1 = require("./browser/crypto");

@@ -27,3 +29,2 @@ const crypto_2 = require("./node/crypto");

}
exports.createCrypto = createCrypto;
function hasBrowserCrypto() {

@@ -34,3 +35,2 @@ return (typeof window !== 'undefined' &&

}
exports.hasBrowserCrypto = hasBrowserCrypto;
/**

@@ -51,2 +51,1 @@ * Converts an ArrayBuffer to a hexadecimal string.

}
exports.fromArrayBufferToHex = fromArrayBufferToHex;

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Crypto } from '../crypto';

@@ -3,0 +2,0 @@ export declare class NodeCrypto implements Crypto {

@@ -17,8 +17,9 @@ import { GoogleAuth } from './auth/googleauth';

export { UserRefreshClient, UserRefreshClientOptions, } from './auth/refreshclient';
export { AwsClient, AwsClientOptions } from './auth/awsclient';
export { IdentityPoolClient, IdentityPoolClientOptions, } from './auth/identitypoolclient';
export { AwsClient, AwsClientOptions, AwsSecurityCredentialsSupplier, } from './auth/awsclient';
export { AwsSecurityCredentials, AwsRequestSigner, } from './auth/awsrequestsigner';
export { IdentityPoolClient, IdentityPoolClientOptions, SubjectTokenSupplier, } from './auth/identitypoolclient';
export { ExternalAccountClient, ExternalAccountClientOptions, } from './auth/externalclient';
export { BaseExternalAccountClient, BaseExternalAccountClientOptions, } from './auth/baseexternalclient';
export { BaseExternalAccountClient, BaseExternalAccountClientOptions, SharedExternalAccountClientOptions, ExternalAccountSupplierContext, IamGenerateAccessTokenResponse, } from './auth/baseexternalclient';
export { CredentialAccessBoundary, DownscopedClient, } from './auth/downscopedclient';
export { PluggableAuthClient, PluggableAuthClientOptions, } from './auth/pluggable-auth-client';
export { PluggableAuthClient, PluggableAuthClientOptions, ExecutableError, } from './auth/pluggable-auth-client';
export { PassThroughClient } from './auth/passthrough';

@@ -25,0 +26,0 @@ export { DefaultTransporter } from './transporters';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PassThroughClient = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = void 0;
exports.GoogleAuth = exports.auth = exports.DefaultTransporter = exports.PassThroughClient = exports.ExecutableError = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsRequestSigner = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = void 0;
// Copyright 2017 Google LLC

@@ -50,2 +50,4 @@ //

Object.defineProperty(exports, "AwsClient", { enumerable: true, get: function () { return awsclient_1.AwsClient; } });
var awsrequestsigner_1 = require("./auth/awsrequestsigner");
Object.defineProperty(exports, "AwsRequestSigner", { enumerable: true, get: function () { return awsrequestsigner_1.AwsRequestSigner; } });
var identitypoolclient_1 = require("./auth/identitypoolclient");

@@ -61,2 +63,3 @@ Object.defineProperty(exports, "IdentityPoolClient", { enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } });

Object.defineProperty(exports, "PluggableAuthClient", { enumerable: true, get: function () { return pluggable_auth_client_1.PluggableAuthClient; } });
Object.defineProperty(exports, "ExecutableError", { enumerable: true, get: function () { return pluggable_auth_client_1.ExecutableError; } });
var passthrough_1 = require("./auth/passthrough");

@@ -63,0 +66,0 @@ Object.defineProperty(exports, "PassThroughClient", { enumerable: true, get: function () { return passthrough_1.PassThroughClient; } });

@@ -16,3 +16,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.warn = exports.WarningTypes = void 0;
exports.WarningTypes = void 0;
exports.warn = warn;
var WarningTypes;

@@ -40,2 +41,1 @@ (function (WarningTypes) {

}
exports.warn = warn;

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.validate = void 0;
exports.validate = validate;
// Accepts an options object passed from the user to the API. In the

@@ -36,2 +36,1 @@ // previous version of the API, it referred to a `Request` options object.

}
exports.validate = validate;

@@ -22,3 +22,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.LRUCache = exports.originalOrCamelOptions = exports.snakeToCamel = void 0;
exports.LRUCache = void 0;
exports.snakeToCamel = snakeToCamel;
exports.originalOrCamelOptions = originalOrCamelOptions;
/**

@@ -40,3 +42,2 @@ * Returns the camel case of a provided string.

}
exports.snakeToCamel = snakeToCamel;
/**

@@ -62,3 +63,2 @@ * Get the value of `obj[key]` or `obj[camelCaseKey]`, with a preference

}
exports.originalOrCamelOptions = originalOrCamelOptions;
/**

@@ -65,0 +65,0 @@ * A simple LRU cache utility.

{
"name": "google-auth-library",
"version": "9.11.0",
"version": "9.12.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc