Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/common

Package Overview
Dependencies
Maintainers
16
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/common - npm Package Compare versions

Comparing version 0.18.2 to 0.18.3

1

build/src/index.d.ts

@@ -16,2 +16,3 @@ /*!

*/
export { GoogleAuthOptions } from 'google-auth-library';
export { Logger } from './logger';

@@ -18,0 +19,0 @@ export { logger } from './logger-compat';

1

build/src/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
// Logger is new in 0.18.0.
var logger_1 = require("./logger");

@@ -21,0 +20,0 @@ exports.Logger = logger_1.Logger;

@@ -178,2 +178,3 @@ /// <reference types="request" />

request(reqOpts: DecorateRequestOptions): Promise<r.Response>;
request(reqOpts: DecorateRequestOptions, callback: r.RequestCallback): void;
/**

@@ -180,0 +181,0 @@ * Make an authenticated API request.

@@ -283,13 +283,7 @@ "use strict";

};
/**
* Make an authenticated API request.
*
* @private
*
* @param {object} reqOpts - Request options that are passed to `request`.
* @param {string} reqOpts.uri - A URI relative to the baseUrl.
* @param {function} callback - The callback function passed to `request`.
*/
ServiceObject.prototype.request = function (reqOpts) {
return this.request_(reqOpts);
ServiceObject.prototype.request = function (reqOpts, callback) {
if (!callback) {
return this.request_(reqOpts);
}
this.request_(reqOpts).then(function (res) { return callback(null, res, res.body); }, function (err) { return callback(err, null, null); });
};

@@ -296,0 +290,0 @@ /**

@@ -329,3 +329,3 @@ /// <reference types="request" />

*/
extendGlobalConfig(globalConfig: GlobalConfig, overrides: GlobalConfig): GlobalConfig;
extendGlobalConfig(globalConfig: GlobalConfig | null, overrides: GlobalConfig): GlobalConfig;
/**

@@ -339,3 +339,3 @@ * Merge and validate API configurations.

*/
normalizeArguments(globalContext: GlobalContext, localConfig: GlobalConfig): GlobalConfig;
normalizeArguments(globalContext: GlobalContext | null, localConfig: GlobalConfig): GlobalConfig;
/**

@@ -342,0 +342,0 @@ * Limit requests according to a `maxApiCalls` limit.

{
"name": "@google-cloud/common",
"description": "Common components for Cloud APIs Node.js Client Libraries",
"version": "0.18.2",
"version": "0.18.3",
"license": "Apache-2.0",

@@ -66,3 +66,5 @@ "author": "Google Inc.",

"split-array-stream": "^2.0.0",
"stream-events": "^1.0.4"
"stream-events": "^1.0.4",
"@types/duplexify": "^3.5.0",
"@types/request": "^2.47.0"
},

@@ -72,3 +74,2 @@ "devDependencies": {

"@types/arrify": "^1.0.3",
"@types/duplexify": "^3.5.0",
"@types/ent": "^2.2.1",

@@ -82,3 +83,2 @@ "@types/extend": "^3.0.0",

"@types/proxyquire": "^1.3.28",
"@types/request": "^2.47.0",
"@types/shimmer": "^1.0.1",

@@ -106,3 +106,3 @@ "@types/sinon": "^4.3.1",

"shimmer": "^1.2.0",
"sinon": "^4.5.0",
"sinon": "^5.0.2",
"source-map-support": "^0.5.4",

@@ -109,0 +109,0 @@ "through2": "^2.0.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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