Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/functions

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/functions - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

107

build/src/v1/cloud_functions_service_client.js

@@ -23,3 +23,3 @@ "use strict";

const gax = require("google-gax");
const path = require("path");
const jsonProtos = require("../../protos/protos.json");
/**

@@ -121,9 +121,3 @@ * Client JSON configuration object, loaded from

// Load the applicable protos.
// For Node.js, pass the path to JSON proto file.
// For browsers, pass the JSON content.
const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json');
this._protos = this._gaxGrpc.loadProto(opts.fallback
? // eslint-disable-next-line @typescript-eslint/no-var-requires
require('../../protos/protos.json')
: nodejsProtoPath);
this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
// This API contains "path templates"; forward-slash-separated

@@ -142,10 +136,6 @@ // identifiers to uniquely identify resources within the API.

};
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
// This API contains "long-running operations", which return a
// an Operation object that allows for tracking of the operation,
// rather than holding a request open.
const protoFilesRoot = opts.fallback
? this._gaxModule.protobuf.Root.fromJSON(
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('../../protos/protos.json'))
: this._gaxModule.protobuf.loadSync(nodejsProtoPath);
this.operationsClient = this._gaxModule

@@ -301,5 +291,6 @@ .lro({

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();

@@ -343,5 +334,6 @@ return this.innerApiCalls.getFunction(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();

@@ -405,5 +397,6 @@ return this.innerApiCalls.callFunction(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
this.initialize();

@@ -450,5 +443,6 @@ return this.innerApiCalls.generateUploadUrl(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();

@@ -494,5 +488,6 @@ return this.innerApiCalls.generateDownloadUrl(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
resource: request.resource || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
resource: request.resource || '',
});
this.initialize();

@@ -537,5 +532,6 @@ return this.innerApiCalls.setIamPolicy(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
resource: request.resource || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
resource: request.resource || '',
});
this.initialize();

@@ -583,5 +579,6 @@ return this.innerApiCalls.getIamPolicy(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
resource: request.resource || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
resource: request.resource || '',
});
this.initialize();

@@ -628,5 +625,6 @@ return this.innerApiCalls.testIamPermissions(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
location: request.location || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
location: request.location || '',
});
this.initialize();

@@ -691,5 +689,6 @@ return this.innerApiCalls.createFunction(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
'function.name': request.function.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
'function.name': request.function.name || '',
});
this.initialize();

@@ -754,5 +753,6 @@ return this.innerApiCalls.updateFunction(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();

@@ -827,5 +827,6 @@ return this.innerApiCalls.deleteFunction(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
this.initialize();

@@ -869,5 +870,6 @@ return this.innerApiCalls.listFunctions(request, options, callback);

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
const callSettings = new gax.CallSettings(options);

@@ -918,5 +920,6 @@ this.initialize();

options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
options = options || {};

@@ -923,0 +926,0 @@ const callSettings = new gax.CallSettings(options);

# Changelog
### [1.1.4](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.3...v1.1.4) (2021-05-12)
### Bug Fixes
* **deps:** require google-gax v2.12.0 ([#70](https://www.github.com/googleapis/nodejs-functions/issues/70)) ([0369f0c](https://www.github.com/googleapis/nodejs-functions/commit/0369f0cdf8424a531861b3ad65b10215d293b74d))
* use require() to load JSON protos ([#73](https://www.github.com/googleapis/nodejs-functions/issues/73)) ([b3da62e](https://www.github.com/googleapis/nodejs-functions/commit/b3da62e5a46628f91615854fc8fa61f315ab1ff9))
### [1.1.3](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.2...v1.1.3) (2021-03-15)

@@ -4,0 +12,0 @@

{
"name": "@google-cloud/functions",
"version": "1.1.3",
"version": "1.1.4",
"description": "Functions client for Node.js",

@@ -42,3 +42,3 @@ "repository": "googleapis/nodejs-functions",

"dependencies": {
"google-gax": "^2.9.2"
"google-gax": "^2.12.0"
},

@@ -48,3 +48,3 @@ "devDependencies": {

"@types/node": "^14.0.24",
"@types/sinon": "^9.0.4",
"@types/sinon": "^10.0.0",
"c8": "^7.2.1",

@@ -59,4 +59,4 @@ "gts": "^2.0.2",

"pack-n-play": "^1.0.0-2",
"sinon": "^9.0.2",
"ts-loader": "^8.0.1",
"sinon": "^10.0.0",
"ts-loader": "^9.0.0",
"typescript": "^3.9.7",

@@ -63,0 +63,0 @@ "webpack": "^5.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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