Socket
Socket
Sign inDemoInstall

googleapis-common

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googleapis-common - npm Package Compare versions

Comparing version 4.2.1 to 4.3.0

6

build/src/api.d.ts
import { GaxiosOptions, GaxiosResponse } from 'gaxios';
import { OAuth2Client } from 'google-auth-library';
import { OAuth2Client, GoogleAuth } from 'google-auth-library';
import { Endpoint } from './endpoint';

@@ -21,6 +21,6 @@ export interface APIRequestParams<T = any> {

* This interface is a mix of the AxiosRequestConfig options
* and our `auth: OAuth2Client|string` options.
* and our `auth` options.
*/
export interface GlobalOptions extends MethodOptions {
auth?: OAuth2Client | string;
auth?: GoogleAuth | OAuth2Client | string;
}

@@ -27,0 +27,0 @@ export interface MethodOptions extends GaxiosOptions {

@@ -26,4 +26,10 @@ "use strict";

const pkg = require('../../package.json');
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function isReadableStream(obj) {
return obj instanceof stream.Readable && typeof obj._read === 'function';
return (obj !== null &&
typeof obj === 'object' &&
typeof obj.pipe === 'function' &&
obj.readable !== false &&
typeof obj._read === 'function' &&
typeof obj._readableState === 'object');
}

@@ -30,0 +36,0 @@ function getMissingParams(params, required) {

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

export { OAuth2Client, JWT, Compute, UserRefreshClient, DefaultTransporter, } from 'google-auth-library';
export { OAuth2Client, JWT, Compute, UserRefreshClient, DefaultTransporter, GoogleAuth, } from 'google-auth-library';
export { GaxiosPromise } from 'gaxios';

@@ -3,0 +3,0 @@ export { APIEndpoint, APIRequestContext, APIRequestParams, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions, StreamMethodOptions, ServiceOptions, } from './api';

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

Object.defineProperty(exports, "DefaultTransporter", { enumerable: true, get: function () { return google_auth_library_1.DefaultTransporter; } });
Object.defineProperty(exports, "GoogleAuth", { enumerable: true, get: function () { return google_auth_library_1.GoogleAuth; } });
var apiIndex_1 = require("./apiIndex");

@@ -23,0 +24,0 @@ Object.defineProperty(exports, "getAPI", { enumerable: true, get: function () { return apiIndex_1.getAPI; } });

@@ -7,2 +7,14 @@ # Changelog

## [4.3.0](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v4.2.1...v4.3.0) (2020-06-03)
### Features
* allow passing a GoogleAuth instance ([#287](https://www.github.com/googleapis/nodejs-googleapis-common/issues/287)) ([c8e9f3b](https://www.github.com/googleapis/nodejs-googleapis-common/commit/c8e9f3b9636d9b6ce176396cc7b273c107168eec))
### Bug Fixes
* expand definition of a stream ([#289](https://www.github.com/googleapis/nodejs-googleapis-common/issues/289)) ([2010721](https://www.github.com/googleapis/nodejs-googleapis-common/commit/20107219a757cf234be9432def49e0644cbd7a79))
### [4.2.1](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v4.2.0...v4.2.1) (2020-06-02)

@@ -9,0 +21,0 @@

{
"name": "googleapis-common",
"version": "4.2.1",
"version": "4.3.0",
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",

@@ -51,2 +51,3 @@ "repository": "googleapis/nodejs-googleapis-common",

"@types/qs": "^6.5.3",
"@types/sinon": "^9.0.4",
"@types/tmp": "0.2.0",

@@ -75,2 +76,3 @@ "@types/url-template": "^2.0.28",

"puppeteer": "^3.0.0",
"sinon": "^9.0.2",
"tmp": "^0.2.0",

@@ -77,0 +79,0 @@ "ts-loader": "^7.0.0",

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