protobufjs 6.10.2 → 6.10.3
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/CHANGELOG.md +8 -0
- package/package-lock.json +2629 -3412
- package/package.json +3 -3
- package/src/util.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protobufjs",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.3",
|
|
4
4
|
"versionScheme": "~",
|
|
5
5
|
"description": "Protocol Buffers for JavaScript (& TypeScript).",
|
|
6
6
|
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"browserify-wrap": "^1.0.2",
|
|
62
62
|
"bundle-collapser": "^1.3.0",
|
|
63
63
|
"chalk": "^4.0.0",
|
|
64
|
-
"escodegen": "^
|
|
65
|
-
"eslint": "^7.0.0",
|
|
64
|
+
"escodegen": "^1.13.0",
|
|
66
65
|
"espree": "^7.0.0",
|
|
66
|
+
"eslint": "^8.15.0",
|
|
67
67
|
"estraverse": "^5.1.0",
|
|
68
68
|
"gh-pages": "^3.0.0",
|
|
69
69
|
"git-raw-commits": "^2.0.3",
|
package/src/util.js
CHANGED
|
@@ -176,6 +176,9 @@ 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__") {
|
|
180
|
+
return dst;
|
|
181
|
+
}
|
|
179
182
|
if (path.length > 0) {
|
|
180
183
|
dst[part] = setProp(dst[part] || {}, path, value);
|
|
181
184
|
} else {
|