google-gax
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -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", |
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
142434
3766