protobufjs
Advanced tools
Comparing version
/*! | ||
* protobuf.js v8.1.0-experimental (c) 2016, daniel wirtz | ||
* compiled wed, 07 may 2025 17:43:49 utc | ||
* protobuf.js v8.1.1-experimental (c) 2016, daniel wirtz | ||
* compiled wed, 07 may 2025 22:28:18 utc | ||
* licensed under the bsd-3-clause license | ||
@@ -5,0 +5,0 @@ * see: https://github.com/dcodeio/protobuf.js for details |
{ | ||
"name": "protobufjs", | ||
"version": "8.1.0-experimental", | ||
"version": "8.1.1-experimental", | ||
"versionScheme": "~", | ||
@@ -5,0 +5,0 @@ "description": "Protocol Buffers for JavaScript (& TypeScript).", |
@@ -71,2 +71,8 @@ "use strict"; | ||
/** | ||
* Whether or not features have been resolved. | ||
* @type {boolean} | ||
* / | ||
this._featuresResolved = false; | ||
/** | ||
* Parent namespace. | ||
@@ -177,3 +183,2 @@ * @type {Namespace|null} | ||
if (this instanceof Root) { | ||
this._resolveFeaturesRecursive(this._edition); | ||
this.resolved = true; | ||
@@ -199,2 +204,6 @@ } | ||
ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition) { | ||
if (this._featuresResolved) { | ||
return; | ||
} | ||
var defaults = {}; | ||
@@ -223,2 +232,3 @@ | ||
this._features = Object.assign(defaults, protoFeatures || {}); | ||
this._featuresResolved = true; | ||
return; | ||
@@ -245,2 +255,3 @@ } | ||
} | ||
this._featuresResolved = true; | ||
}; | ||
@@ -247,0 +258,0 @@ |
@@ -275,2 +275,3 @@ "use strict"; | ||
}).join(", ")); | ||
this._resolveFeaturesRecursive(this._edition); | ||
return Namespace.prototype.resolveAll.call(this); | ||
@@ -277,0 +278,0 @@ }; |
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 too big to display
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 too big to display
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
Sorry, the diff of this file is too big to display
2883977
0.08%30416
0.1%