Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {GoogleAuthOptions, Operation,Service, ServiceConfig, ServiceOptions,
DeleteCallback, ExistsCallback, GetConfig, MetadataCallback,
InstanceResponseCallback, Interceptor, Metadata, Methods, ServiceObject,
ServiceObjectConfig, StreamRequestOptions, Abortable, AbortableDuplex,
ApiError, util} from '@google-cloud/common';
util.makeRequest({uri: 'test'}, {}, (err, body, res) => {
console.log(err);
});
makeRequest(
opts: DecorateRequestOptions,
cfg: MakeRequestConfig,
cb: BodyResponseCallback
) {
if (makeRequestOverride) {
return makeRequestOverride(opts, cfg, cb);
}
return util.makeRequest(opts, cfg, cb);
},
});