protobufjs 7.2.3 → 7.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobufjs",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "versionScheme": "~",
5
5
  "description": "Protocol Buffers for JavaScript (& TypeScript).",
6
6
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
package/src/util.js CHANGED
@@ -176,7 +176,7 @@ util.decorateEnum = function decorateEnum(object) {
176
176
  util.setProperty = function setProperty(dst, path, value) {
177
177
  function setProp(dst, path, value) {
178
178
  var part = path.shift();
179
- if (part === "__proto__") {
179
+ if (part === "__proto__" || part === "prototype") {
180
180
  return dst;
181
181
  }
182
182
  if (path.length > 0) {