protobufjs 7.5.1 → 7.5.3

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/src/type.js CHANGED
@@ -303,6 +303,8 @@ Type.prototype.toJSON = function toJSON(toJSONOptions) {
303
303
  * @override
304
304
  */
305
305
  Type.prototype.resolveAll = function resolveAll() {
306
+ if (!this._needsRecursiveResolve) return this;
307
+
306
308
  Namespace.prototype.resolveAll.call(this);
307
309
  var oneofs = this.oneofsArray; i = 0;
308
310
  while (i < oneofs.length)