🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@google-cloud/web-risk

Package Overview
Dependencies
Maintainers
0
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/web-risk - npm Package Compare versions

Comparing version

to
4.3.1

2

build/src/index.js
"use strict";
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

"use strict";
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -334,3 +334,3 @@ import type * as gax from 'google-gax';

*/
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
/**

@@ -398,3 +398,3 @@ * Lists operations that match the specified filter in the request. If the

*/
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
/**

@@ -425,3 +425,3 @@ * Deletes a long-running operation. This method indicates that the client is

*/
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
/**

@@ -428,0 +428,0 @@ * Return a fully-qualified project resource name string.

"use strict";
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//

@@ -445,3 +445,19 @@ // Licensed under the Apache License, Version 2.0 (the "License");

*/
getOperation(request, options, callback) {
getOperation(request, optionsOrCallback, callback) {
var _a;
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
});
return this.operationsClient.getOperation(request, options, callback);

@@ -480,2 +496,10 @@ }

listOperationsAsync(request, options) {
var _a;
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
});
return this.operationsClient.listOperationsAsync(request, options);

@@ -514,3 +538,19 @@ }

*/
cancelOperation(request, options, callback) {
cancelOperation(request, optionsOrCallback, callback) {
var _a;
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
});
return this.operationsClient.cancelOperation(request, options, callback);

@@ -543,3 +583,19 @@ }

*/
deleteOperation(request, options, callback) {
deleteOperation(request, optionsOrCallback, callback) {
var _a;
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
});
return this.operationsClient.deleteOperation(request, options, callback);

@@ -546,0 +602,0 @@ }

"use strict";
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

"use strict";
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -7,2 +7,9 @@ # Changelog

## [4.3.1](https://github.com/googleapis/google-cloud-node/compare/web-risk-v4.3.0...web-risk-v4.3.1) (2025-02-12)
### Bug Fixes
* [Many APIs] finalize fixing typings for headers in generator ([#6019](https://github.com/googleapis/google-cloud-node/issues/6019)) ([734397c](https://github.com/googleapis/google-cloud-node/commit/734397c6b98d0aafe8832544da3f483b1eade1b2))
## [4.3.0](https://github.com/googleapis/google-cloud-node/compare/web-risk-v4.2.0...web-risk-v4.3.0) (2024-05-21)

@@ -9,0 +16,0 @@

@@ -8,3 +8,3 @@ {

"name": "@google-cloud/web-risk",
"version": "4.3.0",
"version": "4.3.1",
"author": "Google LLC",

@@ -37,3 +37,3 @@ "description": "Web Risk API client for Node.js",

"@types/mocha": "^9.0.0",
"@types/node": "^20.4.5",
"@types/node": "^22.0.0",
"@types/sinon": "^17.0.0",

@@ -52,3 +52,3 @@ "c8": "^9.0.0",

"pack-n-play": "^2.0.0",
"sinon": "^17.0.0",
"sinon": "^18.0.0",
"typescript": "^5.1.6"

@@ -55,0 +55,0 @@ },

@@ -47,3 +47,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

1. [Enable the Web Risk API API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
1. [Set up authentication][auth] so you can access the
API from your local workstation.

@@ -178,2 +178,2 @@

[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=webrisk.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local

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 too big to display