@google-cloud/web-risk
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -855,3 +855,4 @@ { | ||
"INPUT_ONLY": 4, | ||
"IMMUTABLE": 5 | ||
"IMMUTABLE": 5, | ||
"UNORDERED_LIST": 6 | ||
} | ||
@@ -858,0 +859,0 @@ }, |
@@ -0,9 +1,9 @@ | ||
import * as v1beta1 from './v1beta1'; | ||
import * as v1 from './v1'; | ||
import * as v1beta1 from './v1beta1'; | ||
declare const WebRiskServiceClient: typeof v1.WebRiskServiceClient; | ||
declare type WebRiskServiceClient = v1.WebRiskServiceClient; | ||
export { v1, v1beta1, WebRiskServiceClient }; | ||
export { v1beta1, v1, WebRiskServiceClient }; | ||
declare const _default: { | ||
v1beta1: typeof v1beta1; | ||
v1: typeof v1; | ||
v1beta1: typeof v1beta1; | ||
WebRiskServiceClient: typeof v1.WebRiskServiceClient; | ||
@@ -10,0 +10,0 @@ }; |
@@ -20,12 +20,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.protos = exports.WebRiskServiceClient = exports.v1beta1 = exports.v1 = void 0; | ||
exports.protos = exports.WebRiskServiceClient = exports.v1 = exports.v1beta1 = void 0; | ||
const v1beta1 = require("./v1beta1"); | ||
exports.v1beta1 = v1beta1; | ||
const v1 = require("./v1"); | ||
exports.v1 = v1; | ||
const v1beta1 = require("./v1beta1"); | ||
exports.v1beta1 = v1beta1; | ||
const WebRiskServiceClient = v1.WebRiskServiceClient; | ||
exports.WebRiskServiceClient = WebRiskServiceClient; | ||
exports.default = { v1, v1beta1, WebRiskServiceClient }; | ||
exports.default = { v1beta1, v1, WebRiskServiceClient }; | ||
const protos = require("../protos/protos"); | ||
exports.protos = protos; | ||
//# sourceMappingURL=index.js.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
const gax = require("google-gax"); | ||
const path = require("path"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
/** | ||
@@ -120,9 +120,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 | ||
@@ -385,5 +379,6 @@ // identifiers to uniquely identify resources within the API. | ||
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(); | ||
@@ -390,0 +385,0 @@ return this.innerApiCalls.createSubmission(request, options, callback); |
@@ -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); | ||
// Put together the default options sent with requests. | ||
@@ -130,0 +124,0 @@ this._defaults = this._gaxGrpc.constructSettings('google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); |
@@ -7,2 +7,10 @@ # Changelog | ||
### [2.1.1](https://www.github.com/googleapis/nodejs-web-risk/compare/v2.1.0...v2.1.1) (2021-05-12) | ||
### Bug Fixes | ||
* **deps:** require google-gax v2.12.0 ([#239](https://www.github.com/googleapis/nodejs-web-risk/issues/239)) ([de691fa](https://www.github.com/googleapis/nodejs-web-risk/commit/de691fa4caddb128964b8ba7e10b49d82cb804e6)) | ||
* use require() to load JSON protos ([#242](https://www.github.com/googleapis/nodejs-web-risk/issues/242)) ([15817b1](https://www.github.com/googleapis/nodejs-web-risk/commit/15817b1e7c5d310a8d189f0c94fcd3e6054f3d12)) | ||
## [2.1.0](https://www.github.com/googleapis/nodejs-web-risk/compare/v2.0.3...v2.1.0) (2021-01-09) | ||
@@ -9,0 +17,0 @@ |
{ | ||
"repository": "googleapis/nodejs-web-risk", | ||
"name": "@google-cloud/web-risk", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Google LLC", | ||
@@ -26,3 +26,3 @@ "description": "Web Risk API client for Node.js", | ||
"dependencies": { | ||
"google-gax": "^2.1.0" | ||
"google-gax": "^2.12.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "devDependencies": { | ||
"@types/node": "^12.0.0", | ||
"@types/sinon": "^9.0.0", | ||
"@types/sinon": "^10.0.0", | ||
"c8": "^7.0.0", | ||
@@ -46,4 +46,4 @@ "chai": "^4.2.0", | ||
"pack-n-play": "^1.0.0-2", | ||
"sinon": "^9.0.1", | ||
"ts-loader": "^8.0.0", | ||
"sinon": "^10.0.0", | ||
"ts-loader": "^9.0.0", | ||
"typescript": "^3.8.3", | ||
@@ -50,0 +50,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1673479
26755
Updatedgoogle-gax@^2.12.0