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.
- package/dist/light/protobuf.js +10 -4
- package/dist/light/protobuf.js.map +1 -1
- package/dist/light/protobuf.min.js +3 -3
- package/dist/light/protobuf.min.js.map +1 -1
- package/dist/minimal/protobuf.js +2 -2
- package/dist/minimal/protobuf.min.js +2 -2
- package/dist/protobuf.js +10 -4
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/descriptor/index.js +3 -2
- package/package.json +1 -1
- package/src/message.js +7 -3
- package/src/type.js +1 -0
- package/tsconfig.json +2 -2
package/dist/light/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.0.
|
|
3
|
-
* compiled
|
|
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
|
*/
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -5353,6 +5358,7 @@ var Enum = require(14),
|
|
|
5353
5358
|
* @param {Object.<string,*>} [options] Declared options
|
|
5354
5359
|
*/
|
|
5355
5360
|
function Type(name, options) {
|
|
5361
|
+
name = name.replace(/\W/g, "");
|
|
5356
5362
|
Namespace.call(this, name, options);
|
|
5357
5363
|
|
|
5358
5364
|
/**
|