@google-cloud/common
Advanced tools
Comparing version 0.18.2 to 0.18.3
@@ -16,2 +16,3 @@ /*! | ||
*/ | ||
export { GoogleAuthOptions } from 'google-auth-library'; | ||
export { Logger } from './logger'; | ||
@@ -18,0 +19,0 @@ export { logger } from './logger-compat'; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
168319
37
0
14
2857
+ Added@types/duplexify@^3.5.0
+ Added@types/request@^2.47.0
+ Added@types/caseless@0.12.5(transitive)
+ Added@types/duplexify@3.6.4(transitive)
+ Added@types/node@22.9.0(transitive)
+ Added@types/request@2.48.12(transitive)
+ Added@types/tough-cookie@4.0.5(transitive)
+ Addedform-data@2.5.2(transitive)
+ Addedundici-types@6.19.8(transitive)