@ondewo/nlu-client-typescript 7.0.1 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
16
+ var global = globalThis;
23
17
 
24
18
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
25
19
  goog.object.extend(proto, google_api_annotations_pb);
@@ -94,7 +88,7 @@ userId: jspb.Message.getFieldWithDefault(msg, 1, "")
94
88
 
95
89
  /**
96
90
  * Deserializes binary data (in protobuf wire format).
97
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
91
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
98
92
  * @return {!proto.ondewo.nlu.GetUserProjectCountRequest}
99
93
  */
100
94
  proto.ondewo.nlu.GetUserProjectCountRequest.deserializeBinary = function(bytes) {
@@ -119,7 +113,7 @@ proto.ondewo.nlu.GetUserProjectCountRequest.deserializeBinaryFromReader = functi
119
113
  var field = reader.getFieldNumber();
120
114
  switch (field) {
121
115
  case 1:
122
- var value = /** @type {string} */ (reader.readString());
116
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
123
117
  msg.setUserId(value);
124
118
  break;
125
119
  default: