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/light/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
|
*/
|
|
@@ -1207,7 +1207,7 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
|
|
|
1207
1207
|
} gen
|
|
1208
1208
|
("}");
|
|
1209
1209
|
} else gen
|
|
1210
|
-
("if(
|
|
1210
|
+
("if(!util.isObject(d%s))", prop)
|
|
1211
1211
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
1212
1212
|
("m%s=types[%i].fromObject(d%s,n+1)", prop, fieldIndex, prop);
|
|
1213
1213
|
} else {
|
|
@@ -1274,6 +1274,8 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
1274
1274
|
var gen = util.codegen(["d", "n"], mtype.name + "$fromObject")
|
|
1275
1275
|
("if(d instanceof this.ctor)")
|
|
1276
1276
|
("return d")
|
|
1277
|
+
("if(!util.isObject(d))")
|
|
1278
|
+
("throw TypeError(%j)", mtype.fullName + ": object expected")
|
|
1277
1279
|
("if(n===undefined)n=0")
|
|
1278
1280
|
("if(n>util.recursionLimit)")
|
|
1279
1281
|
("throw Error(\"maximum nesting depth exceeded\")");
|
|
@@ -1288,7 +1290,7 @@ converter.fromObject = function fromObject(mtype) {
|
|
|
1288
1290
|
// Map fields
|
|
1289
1291
|
if (field.map) { gen
|
|
1290
1292
|
("if(d%s){", prop)
|
|
1291
|
-
("if(
|
|
1293
|
+
("if(!util.isObject(d%s))", prop)
|
|
1292
1294
|
("throw TypeError(%j)", field.fullName + ": object expected")
|
|
1293
1295
|
("m%s={}", prop)
|
|
1294
1296
|
("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", prop);
|
|
@@ -5049,7 +5051,7 @@ Root._configure = function(Type_, parse_, common_) {
|
|
|
5049
5051
|
|
|
5050
5052
|
},{"16":16,"17":17,"23":23,"25":25,"35":35}],29:[function(require,module,exports){
|
|
5051
5053
|
"use strict";
|
|
5052
|
-
module.exports =
|
|
5054
|
+
module.exports = Object.create(null);
|
|
5053
5055
|
|
|
5054
5056
|
/**
|
|
5055
5057
|
* Named roots.
|