protobufjs 6.11.3 → 6.11.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/cli/bin/pbjs +0 -0
- package/cli/bin/pbts +0 -0
- package/cli/package.json +3 -1
- package/dist/light/protobuf.js +11 -7
- 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 +3 -3
- package/dist/minimal/protobuf.min.js.map +1 -1
- package/dist/protobuf.js +11 -7
- 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 +3 -3
- package/src/util.js +1 -1
- package/CHANGELOG.md +0 -1027
- package/package-lock.json +0 -7870
- package/scripts/changelog.js +0 -150
package/cli/bin/pbjs
CHANGED
|
File without changes
|
package/cli/bin/pbts
CHANGED
|
File without changes
|
package/cli/package.json
CHANGED
package/dist/light/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v6.11.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v6.11.5 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 14 apr 2026 07:11:28 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1899,13 +1899,13 @@ function Field(name, id, type, rule, extend, options, comment) {
|
|
|
1899
1899
|
if (extend !== undefined && !util.isString(extend))
|
|
1900
1900
|
throw TypeError("extend must be a string");
|
|
1901
1901
|
|
|
1902
|
+
if (rule === "proto3_optional") {
|
|
1903
|
+
rule = "optional";
|
|
1904
|
+
}
|
|
1902
1905
|
/**
|
|
1903
1906
|
* Field rule, if any.
|
|
1904
1907
|
* @type {string|undefined}
|
|
1905
1908
|
*/
|
|
1906
|
-
if (rule === "proto3_optional") {
|
|
1907
|
-
rule = "optional";
|
|
1908
|
-
}
|
|
1909
1909
|
this.rule = rule && rule !== "optional" ? rule : undefined; // toJSON
|
|
1910
1910
|
|
|
1911
1911
|
/**
|
|
@@ -2777,6 +2777,7 @@ var ReflectionObject = require(22);
|
|
|
2777
2777
|
((Namespace.prototype = Object.create(ReflectionObject.prototype)).constructor = Namespace).className = "Namespace";
|
|
2778
2778
|
|
|
2779
2779
|
var Field = require(15),
|
|
2780
|
+
OneOf = require(23),
|
|
2780
2781
|
util = require(33);
|
|
2781
2782
|
|
|
2782
2783
|
var Type, // cyclic
|
|
@@ -2988,7 +2989,7 @@ Namespace.prototype.getEnum = function getEnum(name) {
|
|
|
2988
2989
|
*/
|
|
2989
2990
|
Namespace.prototype.add = function add(object) {
|
|
2990
2991
|
|
|
2991
|
-
if (!(object instanceof Field && object.extend !== undefined || object instanceof Type || object instanceof Enum || object instanceof Service || object instanceof Namespace))
|
|
2992
|
+
if (!(object instanceof Field && object.extend !== undefined || object instanceof Type || object instanceof Enum || object instanceof Service || object instanceof Namespace || object instanceof OneOf))
|
|
2992
2993
|
throw TypeError("object must be a valid nested object");
|
|
2993
2994
|
|
|
2994
2995
|
if (!this.nested)
|
|
@@ -3203,7 +3204,7 @@ Namespace._configure = function(Type_, Service_, Enum_) {
|
|
|
3203
3204
|
Enum = Enum_;
|
|
3204
3205
|
};
|
|
3205
3206
|
|
|
3206
|
-
},{"15":15,"22":22,"33":33}],22:[function(require,module,exports){
|
|
3207
|
+
},{"15":15,"22":22,"23":23,"33":33}],22:[function(require,module,exports){
|
|
3207
3208
|
"use strict";
|
|
3208
3209
|
module.exports = ReflectionObject;
|
|
3209
3210
|
|
|
@@ -5823,6 +5824,9 @@ util.decorateEnum = function decorateEnum(object) {
|
|
|
5823
5824
|
util.setProperty = function setProperty(dst, path, value) {
|
|
5824
5825
|
function setProp(dst, path, value) {
|
|
5825
5826
|
var part = path.shift();
|
|
5827
|
+
if (part === "__proto__" || part === "prototype") {
|
|
5828
|
+
return dst;
|
|
5829
|
+
}
|
|
5826
5830
|
if (path.length > 0) {
|
|
5827
5831
|
dst[part] = setProp(dst[part] || {}, path, value);
|
|
5828
5832
|
} else {
|