protobufjs 8.6.5 → 8.6.6
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.
- package/dist/light/protobuf.js +4 -4
- package/dist/light/protobuf.js.map +1 -1
- package/dist/light/protobuf.min.js +3 -3
- package/dist/light/protobuf.min.js.map +1 -1
- package/dist/minimal/protobuf.js +2 -2
- package/dist/minimal/protobuf.min.js +2 -2
- package/dist/protobuf.js +7 -4
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/package.json +1 -1
- package/src/parse.js +3 -0
- package/src/wrappers.js +2 -2
package/package.json
CHANGED
package/src/parse.js
CHANGED
package/src/wrappers.js
CHANGED
|
@@ -45,7 +45,7 @@ wrappers[".google.protobuf.Any"] = {
|
|
|
45
45
|
if (object && object["@type"]) {
|
|
46
46
|
// Only use fully qualified type name after the last '/'
|
|
47
47
|
var name = object["@type"].substring(object["@type"].lastIndexOf("/") + 1);
|
|
48
|
-
var type = this.lookup(name);
|
|
48
|
+
var type = this.lookup(name, [ this.constructor ]);
|
|
49
49
|
/* istanbul ignore else */
|
|
50
50
|
if (type) {
|
|
51
51
|
// type_url does not accept leading "."
|
|
@@ -81,7 +81,7 @@ wrappers[".google.protobuf.Any"] = {
|
|
|
81
81
|
name = message.type_url.substring(message.type_url.lastIndexOf("/") + 1);
|
|
82
82
|
// Separate the prefix used
|
|
83
83
|
prefix = message.type_url.substring(0, message.type_url.lastIndexOf("/") + 1);
|
|
84
|
-
var type = this.lookup(name);
|
|
84
|
+
var type = this.lookup(name, [ this.constructor ]);
|
|
85
85
|
/* istanbul ignore else */
|
|
86
86
|
if (type)
|
|
87
87
|
message = type.decode(message.value, undefined, undefined, depth + 1);
|