protobufjs 8.0.0 → 8.0.1

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 v8.0.0 (c) 2016, daniel wirtz
3
- * compiled tue, 16 dec 2025 22:00:06 utc
2
+ * protobuf.js v8.0.1 (c) 2016, daniel wirtz
3
+ * compiled sat, 04 apr 2026 19:23:15 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v8.0.0 (c) 2016, daniel wirtz
3
- * compiled tue, 16 dec 2025 22:00:06 utc
2
+ * protobuf.js v8.0.1 (c) 2016, daniel wirtz
3
+ * compiled sat, 04 apr 2026 19:23:15 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
package/dist/protobuf.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v8.0.0 (c) 2016, daniel wirtz
3
- * compiled tue, 16 dec 2025 22:00:06 utc
2
+ * protobuf.js v8.0.1 (c) 2016, daniel wirtz
3
+ * compiled sat, 04 apr 2026 19:23:15 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -3025,8 +3025,12 @@ var util = require(39);
3025
3025
  function Message(properties) {
3026
3026
  // not used internally
3027
3027
  if (properties)
3028
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3029
- this[keys[i]] = properties[keys[i]];
3028
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) {
3029
+ var key = keys[i];
3030
+ if (key === "__proto__")
3031
+ continue;
3032
+ this[key] = properties[key];
3033
+ }
3030
3034
  }
3031
3035
 
3032
3036
  /**
@@ -3149,6 +3153,7 @@ Message.prototype.toJSON = function toJSON() {
3149
3153
  };
3150
3154
 
3151
3155
  /*eslint-enable valid-jsdoc*/
3156
+
3152
3157
  },{"39":39}],22:[function(require,module,exports){
3153
3158
  "use strict";
3154
3159
  module.exports = Method;
@@ -7201,6 +7206,7 @@ var Enum = require(15),
7201
7206
  * @param {Object.<string,*>} [options] Declared options
7202
7207
  */
7203
7208
  function Type(name, options) {
7209
+ name = name.replace(/\W/g, "");
7204
7210
  Namespace.call(this, name, options);
7205
7211
 
7206
7212
  /**