How to use the @google-cloud/common.util.replaceProjectIdToken function in @google-cloud/common

To help you get started, we’ve selected a few @google-cloud/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github firebase / user-privacy / functions / node_modules / @google-cloud / common-grpc / src / service.js View on Github external
GrpcService.prototype.decorateRequest_ = function(reqOpts) {
  reqOpts = extend({}, reqOpts);

  delete reqOpts.autoPaginate;
  delete reqOpts.autoPaginateVal;
  delete reqOpts.objectMode;

  return util.replaceProjectIdToken(reqOpts, this.projectId);
};
github googleapis / google-cloud-node / packages / common-grpc / src / service.js View on Github external
GrpcService.prototype.decorateRequest_ = function(reqOpts) {
  reqOpts = extend({}, reqOpts);

  delete reqOpts.autoPaginate;
  delete reqOpts.autoPaginateVal;
  delete reqOpts.objectMode;

  return util.replaceProjectIdToken(reqOpts, this.projectId);
};