protobufjs 7.5.4 → 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.
- 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/package.json +1 -1
- package/src/message.js +7 -3
- package/src/type.js +1 -0
package/package.json
CHANGED
package/src/message.js
CHANGED
|
@@ -13,8 +13,12 @@ var util = require("./util/minimal");
|
|
|
13
13
|
function Message(properties) {
|
|
14
14
|
// not used internally
|
|
15
15
|
if (properties)
|
|
16
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17
|
-
|
|
16
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) {
|
|
17
|
+
var key = keys[i];
|
|
18
|
+
if (key === "__proto__")
|
|
19
|
+
continue;
|
|
20
|
+
this[key] = properties[key];
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
/**
|
|
@@ -136,4 +140,4 @@ Message.prototype.toJSON = function toJSON() {
|
|
|
136
140
|
return this.$type.toObject(this, util.toJSONOptions);
|
|
137
141
|
};
|
|
138
142
|
|
|
139
|
-
/*eslint-enable valid-jsdoc*/
|
|
143
|
+
/*eslint-enable valid-jsdoc*/
|