Socket
Socket
Sign inDemoInstall

google-gax

Package Overview
Dependencies
Maintainers
1
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-gax - npm Package Compare versions

Comparing version 0.12.2 to 0.12.3

27

lib/bundling.js

@@ -63,10 +63,16 @@ /*

var ids = [];
var hasIds = false;
for (var i = 0; i < discriminatorFields.length; ++i) {
var id = _.at(obj, discriminatorFields[i])[0];
if (id === undefined) {
return undefined;
ids.push(null);
} else {
hasIds = true;
ids.push(id);
}
ids.push(id);
}
return ids.join(',');
if (!hasIds) {
return undefined;
}
return JSON.stringify(ids);
}

@@ -95,2 +101,5 @@ exports.computeBundleId = computeBundleId;

}
if (obj === undefined) {
return undefined;
}
if (Array.isArray(obj)) {

@@ -304,3 +313,2 @@ result = [];

apiCall, request, callback) {
var err;
var bundleId = computeBundleId(

@@ -312,8 +320,7 @@ request, this._descriptor.requestDiscriminatorFields);

if (bundleId === undefined) {
err = new Error('request object ' + JSON.stringify(request) +
' is not compatible with discriminator fields');
callback(err);
return {
cancel: noop
};
console.warn(
'The request does not have enough information for request bundling. ' +
'Invoking immediately. Request: ' + JSON.stringify(request) +
' discriminator fields: ' + this._descriptor.requestDiscriminatorFields);
return apiCall(request, callback);
}

@@ -320,0 +327,0 @@

@@ -41,3 +41,3 @@ /*

var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
var CODE_GEN_NAME_VERSION = 'gapic/0.7.1';

@@ -83,4 +83,3 @@ var PAGE_DESCRIPTORS = {

var googleApiClient = [
'gl-node/' + process.versions.node,
CODE_GEN_NAME_VERSION
'gl-node/' + process.versions.node
];

@@ -91,2 +90,3 @@ if (opts.libName && opts.libVersion) {

googleApiClient.push(
CODE_GEN_NAME_VERSION,
'gax/' + gax.version,

@@ -93,0 +93,0 @@ 'grpc/' + gaxGrpc.grpcVersion

{
"name": "google-gax",
"version": "0.12.2",
"version": "0.12.3",
"description": "Google API Extensions",

@@ -5,0 +5,0 @@ "main": "index.js",

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