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

@google-cloud/web-risk

Package Overview
Dependencies
Maintainers
4
Versions
44
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 1.7.0 to 2.0.0

6

build/protos/protos.json

@@ -17,3 +17,4 @@ {

"objc_class_prefix": "GCWR",
"php_namespace": "Google\\Cloud\\WebRisk\\V1"
"php_namespace": "Google\\Cloud\\WebRisk\\V1",
"ruby_package": "Google::Cloud::WebRisk::V1"
},

@@ -359,3 +360,4 @@ "nested": {

"objc_class_prefix": "GCWR",
"php_namespace": "Google\\Cloud\\WebRisk\\V1beta1"
"php_namespace": "Google\\Cloud\\WebRisk\\V1beta1",
"ruby_package": "Google::Cloud::WebRisk::V1beta1"
},

@@ -362,0 +364,0 @@ "nested": {

@@ -0,10 +1,8 @@

import * as v1 from './v1';
import * as v1beta1 from './v1beta1';
import * as v1 from './v1';
declare const WebRiskServiceV1Beta1Client: typeof v1beta1.WebRiskServiceV1Beta1Client;
declare const WebRiskServiceClient: typeof v1.WebRiskServiceClient;
export { v1, v1beta1, WebRiskServiceV1Beta1Client, WebRiskServiceClient };
export { v1, v1beta1, WebRiskServiceClient };
declare const _default: {
v1: typeof v1;
v1beta1: typeof v1beta1;
WebRiskServiceV1Beta1Client: typeof v1beta1.WebRiskServiceV1Beta1Client;
WebRiskServiceClient: typeof v1.WebRiskServiceClient;

@@ -11,0 +9,0 @@ };

"use strict";
// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

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

//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** This file is automatically generated by synthtool. **
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **
Object.defineProperty(exports, "__esModule", { value: true });
exports.protos = exports.WebRiskServiceClient = exports.v1beta1 = exports.v1 = void 0;
const v1 = require("./v1");
exports.v1 = v1;
const v1beta1 = require("./v1beta1");
exports.v1beta1 = v1beta1;
const v1 = require("./v1");
exports.v1 = v1;
const WebRiskServiceV1Beta1Client = v1beta1.WebRiskServiceV1Beta1Client;
exports.WebRiskServiceV1Beta1Client = WebRiskServiceV1Beta1Client;
const WebRiskServiceClient = v1.WebRiskServiceClient;
exports.WebRiskServiceClient = WebRiskServiceClient;
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
exports.default = { v1, v1beta1, WebRiskServiceV1Beta1Client, WebRiskServiceClient };
exports.default = { v1, v1beta1, WebRiskServiceClient };
const protos = require("../protos/protos");
exports.protos = protos;
//# sourceMappingURL=index.js.map

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

var web_risk_service_client_1 = require("./web_risk_service_client");
exports.WebRiskServiceClient = web_risk_service_client_1.WebRiskServiceClient;
Object.defineProperty(exports, "WebRiskServiceClient", { enumerable: true, get: function () { return web_risk_service_client_1.WebRiskServiceClient; } });
//# sourceMappingURL=index.js.map
import * as gax from 'google-gax';
import { Callback, ClientOptions } from 'google-gax';
import * as protosTypes from '../../protos/protos';
import { Callback, Descriptors, ClientOptions } from 'google-gax';
import * as protos from '../../protos/protos';
/**

@@ -11,4 +11,2 @@ * Web Risk API defines an interface to detect malicious URLs on your

export declare class WebRiskServiceClient {
private _descriptors;
private _innerApiCalls;
private _terminated;

@@ -21,2 +19,6 @@ private _opts;

auth: gax.GoogleAuth;
descriptors: Descriptors;
innerApiCalls: {
[name: string]: Function;
};
webRiskServiceStub?: Promise<{

@@ -85,10 +87,14 @@ [name: string]: Function;

getProjectId(callback: Callback<string, undefined, undefined>): void;
computeThreatListDiff(request: protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffResponse, (protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffRequest | undefined), {} | undefined]>;
computeThreatListDiff(request: protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffResponse, protosTypes.google.cloud.webrisk.v1.IComputeThreatListDiffRequest | undefined, {} | undefined>): void;
searchUris(request: protosTypes.google.cloud.webrisk.v1.ISearchUrisRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1.ISearchUrisResponse, protosTypes.google.cloud.webrisk.v1.ISearchUrisRequest | undefined, {} | undefined]>;
searchUris(request: protosTypes.google.cloud.webrisk.v1.ISearchUrisRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1.ISearchUrisResponse, protosTypes.google.cloud.webrisk.v1.ISearchUrisRequest | undefined, {} | undefined>): void;
searchHashes(request: protosTypes.google.cloud.webrisk.v1.ISearchHashesRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1.ISearchHashesResponse, protosTypes.google.cloud.webrisk.v1.ISearchHashesRequest | undefined, {} | undefined]>;
searchHashes(request: protosTypes.google.cloud.webrisk.v1.ISearchHashesRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1.ISearchHashesResponse, protosTypes.google.cloud.webrisk.v1.ISearchHashesRequest | undefined, {} | undefined>): void;
createSubmission(request: protosTypes.google.cloud.webrisk.v1.ICreateSubmissionRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1.ISubmission, protosTypes.google.cloud.webrisk.v1.ICreateSubmissionRequest | undefined, {} | undefined]>;
createSubmission(request: protosTypes.google.cloud.webrisk.v1.ICreateSubmissionRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1.ISubmission, protosTypes.google.cloud.webrisk.v1.ICreateSubmissionRequest | undefined, {} | undefined>): void;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1.IComputeThreatListDiffResponse, protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest | undefined, {} | undefined]>;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1.IComputeThreatListDiffResponse, protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest | null | undefined, {} | null | undefined>): void;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest, callback: Callback<protos.google.cloud.webrisk.v1.IComputeThreatListDiffResponse, protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest | null | undefined, {} | null | undefined>): void;
searchUris(request: protos.google.cloud.webrisk.v1.ISearchUrisRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1.ISearchUrisResponse, protos.google.cloud.webrisk.v1.ISearchUrisRequest | undefined, {} | undefined]>;
searchUris(request: protos.google.cloud.webrisk.v1.ISearchUrisRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1.ISearchUrisResponse, protos.google.cloud.webrisk.v1.ISearchUrisRequest | null | undefined, {} | null | undefined>): void;
searchUris(request: protos.google.cloud.webrisk.v1.ISearchUrisRequest, callback: Callback<protos.google.cloud.webrisk.v1.ISearchUrisResponse, protos.google.cloud.webrisk.v1.ISearchUrisRequest | null | undefined, {} | null | undefined>): void;
searchHashes(request: protos.google.cloud.webrisk.v1.ISearchHashesRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1.ISearchHashesResponse, protos.google.cloud.webrisk.v1.ISearchHashesRequest | undefined, {} | undefined]>;
searchHashes(request: protos.google.cloud.webrisk.v1.ISearchHashesRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1.ISearchHashesResponse, protos.google.cloud.webrisk.v1.ISearchHashesRequest | null | undefined, {} | null | undefined>): void;
searchHashes(request: protos.google.cloud.webrisk.v1.ISearchHashesRequest, callback: Callback<protos.google.cloud.webrisk.v1.ISearchHashesResponse, protos.google.cloud.webrisk.v1.ISearchHashesRequest | null | undefined, {} | null | undefined>): void;
createSubmission(request: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1.ISubmission, protos.google.cloud.webrisk.v1.ICreateSubmissionRequest | undefined, {} | undefined]>;
createSubmission(request: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1.ISubmission, protos.google.cloud.webrisk.v1.ICreateSubmissionRequest | null | undefined, {} | null | undefined>): void;
createSubmission(request: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest, callback: Callback<protos.google.cloud.webrisk.v1.ISubmission, protos.google.cloud.webrisk.v1.ICreateSubmissionRequest | null | undefined, {} | null | undefined>): void;
/**

@@ -95,0 +101,0 @@ * Terminate the GRPC channel and close the client.

@@ -20,2 +20,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.WebRiskServiceClient = void 0;
const gax = require("google-gax");

@@ -58,3 +59,4 @@ const path = require("path");

constructor(opts) {
this._descriptors = {
this._terminated = false;
this.descriptors = {
page: {},

@@ -65,3 +67,2 @@ stream: {},

};
this._terminated = false;
// Ensure that options include the service address and port.

@@ -115,3 +116,6 @@ const staticMembers = this.constructor;

const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json');
this._protos = this._gaxGrpc.loadProto(opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath);
this._protos = this._gaxGrpc.loadProto(opts.fallback
? // eslint-disable-next-line @typescript-eslint/no-var-requires
require('../../protos/protos.json')
: nodejsProtoPath);
// Put together the default options sent with requests.

@@ -122,3 +126,3 @@ this._defaults = this._gaxGrpc.constructSettings('google.cloud.webrisk.v1.WebRiskService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });

// merely providing the destination and request information.
this._innerApiCalls = {};
this.innerApiCalls = {};
}

@@ -145,3 +149,3 @@ /**

? this._protos.lookupService('google.cloud.webrisk.v1.WebRiskService')
: // tslint:disable-next-line no-any
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
this._protos.google.cloud.webrisk.v1.WebRiskService, this._opts);

@@ -157,3 +161,3 @@ // Iterate over each of the methods that the service provides

for (const methodName of webRiskServiceStubMethods) {
const innerCallPromise = this.webRiskServiceStub.then(stub => (...args) => {
const callPromise = this.webRiskServiceStub.then(stub => (...args) => {
if (this._terminated) {

@@ -167,8 +171,6 @@ return Promise.reject('The client has already been closed.');

});
const apiCall = this._gaxModule.createApiCall(innerCallPromise, this._defaults[methodName], this._descriptors.page[methodName] ||
this._descriptors.stream[methodName] ||
this._descriptors.longrunning[methodName]);
this._innerApiCalls[methodName] = (argument, callOptions, callback) => {
return apiCall(argument, callOptions, callback);
};
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]);
this.innerApiCalls[methodName] = apiCall;
}

@@ -253,3 +255,3 @@ return this.webRiskServiceStub;

this.initialize();
return this._innerApiCalls.computeThreatListDiff(request, options, callback);
return this.innerApiCalls.computeThreatListDiff(request, options, callback);
}

@@ -287,3 +289,3 @@ /**

this.initialize();
return this._innerApiCalls.searchUris(request, options, callback);
return this.innerApiCalls.searchUris(request, options, callback);
}

@@ -322,3 +324,3 @@ /**

this.initialize();
return this._innerApiCalls.searchHashes(request, options, callback);
return this.innerApiCalls.searchHashes(request, options, callback);
}

@@ -363,3 +365,3 @@ /**

this.initialize();
return this._innerApiCalls.createSubmission(request, options, callback);
return this.innerApiCalls.createSubmission(request, options, callback);
}

@@ -366,0 +368,0 @@ /**

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

var web_risk_service_v1_beta1_client_1 = require("./web_risk_service_v1_beta1_client");
exports.WebRiskServiceV1Beta1Client = web_risk_service_v1_beta1_client_1.WebRiskServiceV1Beta1Client;
Object.defineProperty(exports, "WebRiskServiceV1Beta1Client", { enumerable: true, get: function () { return web_risk_service_v1_beta1_client_1.WebRiskServiceV1Beta1Client; } });
//# sourceMappingURL=index.js.map
import * as gax from 'google-gax';
import { Callback, ClientOptions } from 'google-gax';
import * as protosTypes from '../../protos/protos';
import { Callback, Descriptors, ClientOptions } from 'google-gax';
import * as protos from '../../protos/protos';
/**

@@ -11,4 +11,2 @@ * Web Risk v1beta1 API defines an interface to detect malicious URLs on your

export declare class WebRiskServiceV1Beta1Client {
private _descriptors;
private _innerApiCalls;
private _terminated;

@@ -21,2 +19,6 @@ private _opts;

auth: gax.GoogleAuth;
descriptors: Descriptors;
innerApiCalls: {
[name: string]: Function;
};
webRiskServiceV1Beta1Stub?: Promise<{

@@ -85,8 +87,11 @@ [name: string]: Function;

getProjectId(callback: Callback<string, undefined, undefined>): void;
computeThreatListDiff(request: protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffResponse, (protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest | undefined), {} | undefined]>;
computeThreatListDiff(request: protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffResponse, protosTypes.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest | undefined, {} | undefined>): void;
searchUris(request: protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisResponse, protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisRequest | undefined, {} | undefined]>;
searchUris(request: protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisResponse, protosTypes.google.cloud.webrisk.v1beta1.ISearchUrisRequest | undefined, {} | undefined>): void;
searchHashes(request: protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesRequest, options?: gax.CallOptions): Promise<[protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesResponse, protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesRequest | undefined, {} | undefined]>;
searchHashes(request: protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesRequest, options: gax.CallOptions, callback: Callback<protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesResponse, protosTypes.google.cloud.webrisk.v1beta1.ISearchHashesRequest | undefined, {} | undefined>): void;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffResponse, (protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest | undefined), {} | undefined]>;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffResponse, protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest | null | undefined, {} | null | undefined>): void;
computeThreatListDiff(request: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest, callback: Callback<protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffResponse, protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest | null | undefined, {} | null | undefined>): void;
searchUris(request: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1beta1.ISearchUrisResponse, protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest | undefined, {} | undefined]>;
searchUris(request: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1beta1.ISearchUrisResponse, protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest | null | undefined, {} | null | undefined>): void;
searchUris(request: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest, callback: Callback<protos.google.cloud.webrisk.v1beta1.ISearchUrisResponse, protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest | null | undefined, {} | null | undefined>): void;
searchHashes(request: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.webrisk.v1beta1.ISearchHashesResponse, protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest | undefined, {} | undefined]>;
searchHashes(request: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.webrisk.v1beta1.ISearchHashesResponse, protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest | null | undefined, {} | null | undefined>): void;
searchHashes(request: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest, callback: Callback<protos.google.cloud.webrisk.v1beta1.ISearchHashesResponse, protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest | null | undefined, {} | null | undefined>): void;
/**

@@ -93,0 +98,0 @@ * Terminate the GRPC channel and close the client.

@@ -20,2 +20,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.WebRiskServiceV1Beta1Client = void 0;
const gax = require("google-gax");

@@ -58,3 +59,4 @@ const path = require("path");

constructor(opts) {
this._descriptors = {
this._terminated = false;
this.descriptors = {
page: {},

@@ -65,3 +67,2 @@ stream: {},

};
this._terminated = false;
// Ensure that options include the service address and port.

@@ -117,3 +118,6 @@ const staticMembers = this

const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json');
this._protos = this._gaxGrpc.loadProto(opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath);
this._protos = this._gaxGrpc.loadProto(opts.fallback
? // eslint-disable-next-line @typescript-eslint/no-var-requires
require('../../protos/protos.json')
: nodejsProtoPath);
// Put together the default options sent with requests.

@@ -124,3 +128,3 @@ this._defaults = this._gaxGrpc.constructSettings('google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });

// merely providing the destination and request information.
this._innerApiCalls = {};
this.innerApiCalls = {};
}

@@ -147,3 +151,3 @@ /**

? this._protos.lookupService('google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1')
: // tslint:disable-next-line no-any
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
this._protos.google.cloud.webrisk.v1beta1

@@ -159,3 +163,3 @@ .WebRiskServiceV1Beta1, this._opts);

for (const methodName of webRiskServiceV1Beta1StubMethods) {
const innerCallPromise = this.webRiskServiceV1Beta1Stub.then(stub => (...args) => {
const callPromise = this.webRiskServiceV1Beta1Stub.then(stub => (...args) => {
if (this._terminated) {

@@ -169,8 +173,6 @@ return Promise.reject('The client has already been closed.');

});
const apiCall = this._gaxModule.createApiCall(innerCallPromise, this._defaults[methodName], this._descriptors.page[methodName] ||
this._descriptors.stream[methodName] ||
this._descriptors.longrunning[methodName]);
this._innerApiCalls[methodName] = (argument, callOptions, callback) => {
return apiCall(argument, callOptions, callback);
};
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]);
this.innerApiCalls[methodName] = apiCall;
}

@@ -247,3 +249,3 @@ return this.webRiskServiceV1Beta1Stub;

this.initialize();
return this._innerApiCalls.computeThreatListDiff(request, options, callback);
return this.innerApiCalls.computeThreatListDiff(request, options, callback);
}

@@ -277,3 +279,3 @@ /**

this.initialize();
return this._innerApiCalls.searchUris(request, options, callback);
return this.innerApiCalls.searchUris(request, options, callback);
}

@@ -312,3 +314,3 @@ /**

this.initialize();
return this._innerApiCalls.searchHashes(request, options, callback);
return this.innerApiCalls.searchHashes(request, options, callback);
}

@@ -315,0 +317,0 @@ /**

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

## [2.0.0](https://www.github.com/googleapis/nodejs-web-risk/compare/v1.7.0...v2.0.0) (2020-05-12)
### ⚠ BREAKING CHANGES
* synth.py clean up for multiple version (#160)
* The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.
### Features
* drop node8 support ([#139](https://www.github.com/googleapis/nodejs-web-risk/issues/139)) ([f6fa067](https://www.github.com/googleapis/nodejs-web-risk/commit/f6fa067f6f45c12b58986511bb8dcba0aa1c56cb))
### Bug Fixes
* export explicit version from protos.js ([#144](https://www.github.com/googleapis/nodejs-web-risk/issues/144)) ([c6d1391](https://www.github.com/googleapis/nodejs-web-risk/commit/c6d13916395a28e0304ad3bb06cc1d597cb55a55))
* regen protos and tests, formatting ([#157](https://www.github.com/googleapis/nodejs-web-risk/issues/157)) ([d53c859](https://www.github.com/googleapis/nodejs-web-risk/commit/d53c85997cbe5aa1d354c487614480e6a516eefa))
* remove eslint, update gax, fix generated protos, run the generator ([#148](https://www.github.com/googleapis/nodejs-web-risk/issues/148)) ([f23b8fd](https://www.github.com/googleapis/nodejs-web-risk/commit/f23b8fd6f2952fe36c4398585eeefa78ee11360b))
* remove unused files ([#151](https://www.github.com/googleapis/nodejs-web-risk/issues/151)) ([72134c3](https://www.github.com/googleapis/nodejs-web-risk/commit/72134c312f78bb141c9244cf9f49f23eb828252d))
* synth.py clean up for multiple version ([#160](https://www.github.com/googleapis/nodejs-web-risk/issues/160)) ([c1d0bb7](https://www.github.com/googleapis/nodejs-web-risk/commit/c1d0bb781ff10e959217f3630eaa0872fa0d9694))
## [1.7.0](https://www.github.com/googleapis/nodejs-web-risk/compare/v1.6.0...v1.7.0) (2020-03-24)

@@ -9,0 +30,0 @@

{
"repository": "googleapis/nodejs-web-risk",
"name": "@google-cloud/web-risk",
"version": "1.7.0",
"version": "2.0.0",
"author": "Google LLC",

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

"build/protos",
"build/src",
"AUTHORS",
"COPYING"
"build/src"
],

@@ -29,3 +27,3 @@ "keywords": [

"dependencies": {
"google-gax": "^1.9.0"
"google-gax": "^2.1.0"
},

@@ -36,9 +34,6 @@ "devDependencies": {

"@types/node": "^12.0.0",
"@types/sinon": "^9.0.0",
"c8": "^7.0.0",
"chai": "^4.2.0",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.0.1",
"gts": "^1.0.0",
"gts": "^2.0.0",
"http2spy": "^1.0.0",

@@ -50,7 +45,7 @@ "jsdoc": "^3.5.5",

"mocha": "^7.0.0",
"null-loader": "^3.0.0",
"null-loader": "^4.0.0",
"pack-n-play": "^1.0.0-2",
"prettier": "^1.17.0",
"ts-loader": "^6.2.1",
"typescript": "^3.7.0",
"sinon": "^9.0.1",
"ts-loader": "^7.0.0",
"typescript": "^3.8.3",
"webpack": "^4.41.2",

@@ -62,3 +57,3 @@ "webpack-cli": "^3.3.10"

"fix": "gts fix",
"lint": "gts fix && eslint --fix samples/*.js",
"lint": "gts check",
"test": "c8 mocha build/test",

@@ -74,8 +69,9 @@ "predocs-test": "npm run docs",

"pretest": "npm run compile",
"prelint": "cd samples; npm link ../; npm i"
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean"
},
"license": "Apache-2.0",
"engines": {
"node": ">=8.10.0"
"node": ">=10"
}
}

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

// Create the WebRisk client library.
const {WebRiskServiceV1Beta1Client} = require('@google-cloud/web-risk');
const client = new WebRiskServiceV1Beta1Client();
const {WebRiskServiceClient} = require('@google-cloud/web-risk');
const client = new WebRiskServiceClient();

@@ -68,0 +68,0 @@ // Create an API request to check for malware, social engineering,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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