protobufjs 7.5.3 → 7.5.5

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v7.5.3 (c) 2016, daniel wirtz
3
- * compiled wed, 28 may 2025 22:23:47 utc
2
+ * protobuf.js v7.5.5 (c) 2016, daniel wirtz
3
+ * compiled wed, 15 apr 2026 04:40:15 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -2610,8 +2610,12 @@ var util = require(35);
2610
2610
  function Message(properties) {
2611
2611
  // not used internally
2612
2612
  if (properties)
2613
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2614
- this[keys[i]] = properties[keys[i]];
2613
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) {
2614
+ var key = keys[i];
2615
+ if (key === "__proto__")
2616
+ continue;
2617
+ this[key] = properties[key];
2618
+ }
2615
2619
  }
2616
2620
 
2617
2621
  /**
@@ -2734,6 +2738,7 @@ Message.prototype.toJSON = function toJSON() {
2734
2738
  };
2735
2739
 
2736
2740
  /*eslint-enable valid-jsdoc*/
2741
+
2737
2742
  },{"35":35}],20:[function(require,module,exports){
2738
2743
  "use strict";
2739
2744
  module.exports = Method;
@@ -5350,6 +5355,7 @@ var Enum = require(14),
5350
5355
  * @param {Object.<string,*>} [options] Declared options
5351
5356
  */
5352
5357
  function Type(name, options) {
5358
+ name = name.replace(/\W/g, "");
5353
5359
  Namespace.call(this, name, options);
5354
5360
 
5355
5361
  /**