protobufjs 7.6.1 → 7.6.2
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 +7 -5
- 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 +3 -3
- package/dist/minimal/protobuf.js.map +1 -1
- package/dist/minimal/protobuf.min.js +3 -3
- package/dist/minimal/protobuf.min.js.map +1 -1
- package/dist/protobuf.js +7 -5
- 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/converter.js +4 -2
- package/src/roots.js +1 -1
package/dist/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v7.6.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.6.2 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled sat, 30 may 2026 21:57:57 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -1608,7 +1608,7 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
|
1608
1608
|
} gen
|
|
1609
1609
|
("}");
|
|
1610
1610
|
} else gen
|
|
1611
|
-
("if(
|
|
1611
|
+
("if(!util.isObject(d%s))", prop)
|
|
1612
1612
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
1613
1613
|
("m%s=types[%i].fromObject(d%s,n+1)", prop, fieldIndex, prop);
|
|
1614
1614
|
} else {
|
|
@@ -1675,6 +1675,8 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
1675
1675
|
var gen = util.codegen(["d", "n"], mtype.name + "$fromObject")
|
|
1676
1676
|
("if(d instanceof this.ctor)")
|
|
1677
1677
|
("return d")
|
|
1678
|
+
("if(!util.isObject(d))")
|
|
1679
|
+
("throw TypeError(%j)", mtype.fullName + ": object expected")
|
|
1678
1680
|
("if(n===undefined)n=0")
|
|
1679
1681
|
("if(n>util.recursionLimit)")
|
|
1680
1682
|
("throw Error(\"maximum nesting depth exceeded\")");
|
|
@@ -1689,7 +1691,7 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
1689
1691
|
// Map fields
|
|
1690
1692
|
if (field.map) { gen
|
|
1691
1693
|
("if(d%s){", prop)
|
|
1692
|
-
("if(
|
|
1694
|
+
("if(!util.isObject(d%s))", prop)
|
|
1693
1695
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
1694
1696
|
("m%s={}", prop)
|
|
1695
1697
|
("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", prop);
|
|
@@ -6455,7 +6457,7 @@ Root._configure = function(Type_, parse_, common_) {
|
|
|
6455
6457
|
|
|
6456
6458
|
},{"17":17,"18":18,"25":25,"27":27,"39":39}],32:[function(require,module,exports){
|
|
6457
6459
|
"use strict";
|
|
6458
|
-
module.exports =
|
|
6460
|
+
module.exports = Object.create(null);
|
|
6459
6461
|
|
|
6460
6462
|
/**
|
|
6461
6463
|
* Named roots.
|