@google-cloud/pubsub
Advanced tools
Comparing version 2.11.0 to 2.11.1-pre
@@ -24,3 +24,3 @@ "use strict"; | ||
const google_gax_1 = require("google-gax"); | ||
const path = require("path"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
/** | ||
@@ -122,9 +122,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 | ||
@@ -151,7 +145,3 @@ // identifiers to uniquely identify resources within the API. | ||
// 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); | ||
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); | ||
// Some methods on this API support automatically batching | ||
@@ -158,0 +148,0 @@ // requests; denote this. |
{ | ||
"name": "@google-cloud/pubsub", | ||
"description": "Cloud Pub/Sub Client Library for Node.js", | ||
"version": "2.11.0", | ||
"version": "2.11.1-pre", | ||
"license": "Apache-2.0", | ||
@@ -63,3 +63,3 @@ "author": "Google Inc.", | ||
"google-auth-library": "^7.0.0", | ||
"google-gax": "^2.9.2", | ||
"google-gax": "load-proto-json", | ||
"is-stream-ended": "^0.1.4", | ||
@@ -101,3 +101,3 @@ "lodash.snakecase": "^4.1.1", | ||
"tmp": "^0.2.0", | ||
"ts-loader": "^8.0.0", | ||
"ts-loader": "^9.0.0", | ||
"typescript": "^3.8.3", | ||
@@ -104,0 +104,0 @@ "uuid": "^8.0.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2854945
47917
2
+ Added@grpc/grpc-js@1.2.12(transitive)
+ Addedgoogle-auth-library@6.1.6(transitive)
+ Addedgoogle-gax@2.12.0-pre.1(transitive)
+ Addedobject-hash@2.2.0(transitive)
+ Addedprotobufjs@6.11.4(transitive)
+ Addedsemver@6.3.1(transitive)
- Removed@grpc/grpc-js@1.6.12(transitive)
- Removed@grpc/proto-loader@0.7.13(transitive)
- Removedcliui@8.0.1(transitive)
- Removedgoogle-gax@2.30.5(transitive)
- Removedlong@5.2.4(transitive)
- Removedobject-hash@3.0.0(transitive)
- Removedproto3-json-serializer@0.1.9(transitive)
- Removedprotobufjs@6.11.37.4.0(transitive)
- Removedyargs@17.7.2(transitive)
- Removedyargs-parser@21.1.1(transitive)
Updatedgoogle-gax@load-proto-json