@google-cloud/language
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -0,9 +1,9 @@ | ||
import * as v1beta2 from './v1beta2'; | ||
import * as v1 from './v1'; | ||
import * as v1beta2 from './v1beta2'; | ||
declare const LanguageServiceClient: typeof v1.LanguageServiceClient; | ||
declare type LanguageServiceClient = v1.LanguageServiceClient; | ||
export { v1, v1beta2, LanguageServiceClient }; | ||
export { v1beta2, v1, LanguageServiceClient }; | ||
declare const _default: { | ||
v1beta2: typeof v1beta2; | ||
v1: typeof v1; | ||
v1beta2: typeof v1beta2; | ||
LanguageServiceClient: typeof v1.LanguageServiceClient; | ||
@@ -10,0 +10,0 @@ }; |
@@ -20,12 +20,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.protos = exports.LanguageServiceClient = exports.v1beta2 = exports.v1 = void 0; | ||
exports.protos = exports.LanguageServiceClient = exports.v1 = exports.v1beta2 = void 0; | ||
const v1beta2 = require("./v1beta2"); | ||
exports.v1beta2 = v1beta2; | ||
const v1 = require("./v1"); | ||
exports.v1 = v1; | ||
const v1beta2 = require("./v1beta2"); | ||
exports.v1beta2 = v1beta2; | ||
const LanguageServiceClient = v1.LanguageServiceClient; | ||
exports.LanguageServiceClient = LanguageServiceClient; | ||
exports.default = { v1, v1beta2, LanguageServiceClient }; | ||
exports.default = { v1beta2, v1, LanguageServiceClient }; | ||
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); | ||
// Put together the default options sent with requests. | ||
@@ -129,0 +123,0 @@ this._defaults = this._gaxGrpc.constructSettings('google.cloud.language.v1.LanguageService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); |
@@ -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); | ||
// Put together the default options sent with requests. | ||
@@ -129,0 +123,0 @@ this._defaults = this._gaxGrpc.constructSettings('google.cloud.language.v1beta2.LanguageService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); |
@@ -7,2 +7,10 @@ # Changelog | ||
### [4.2.3](https://www.github.com/googleapis/nodejs-language/compare/v4.2.2...v4.2.3) (2021-05-12) | ||
### Bug Fixes | ||
* **deps:** require google-gax v2.12.0 ([#569](https://www.github.com/googleapis/nodejs-language/issues/569)) ([70b3883](https://www.github.com/googleapis/nodejs-language/commit/70b3883797cc61f6ef314f19e75930f0c0193dff)) | ||
* use require() to load JSON protos ([#572](https://www.github.com/googleapis/nodejs-language/issues/572)) ([e3efed9](https://www.github.com/googleapis/nodejs-language/commit/e3efed93fb7dab7236b9ba4effdcda915327fd1d)) | ||
### [4.2.2](https://www.github.com/googleapis/nodejs-language/compare/v4.2.1...v4.2.2) (2021-03-07) | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "@google-cloud/language", | ||
"description": "Google Cloud Natural Language API client for Node.js", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"license": "Apache-2.0", | ||
@@ -51,3 +51,3 @@ "author": "Google Inc", | ||
"dependencies": { | ||
"google-gax": "^2.9.2" | ||
"google-gax": "^2.12.0" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
"@types/node": "^12.0.0", | ||
"@types/sinon": "^9.0.0", | ||
"@types/sinon": "^10.0.0", | ||
"c8": "^7.0.0", | ||
@@ -69,4 +69,4 @@ "codecov": "^3.0.2", | ||
"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", | ||
@@ -73,0 +73,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
2214406
35446
Updatedgoogle-gax@^2.12.0