protobufjs 7.2.0 → 7.2.1
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 -6
- 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 +4 -4
- 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 -6
- 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/root.js +3 -2
- package/src/util/minimal.js +2 -2
package/dist/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v7.2.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.2.1 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled thu, 02 feb 2023 21:27:33 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -5525,10 +5525,10 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
5525
5525
|
/* istanbul ignore if */
|
|
5526
5526
|
if (!callback)
|
|
5527
5527
|
return;
|
|
5528
|
-
if (sync)
|
|
5529
|
-
throw err;
|
|
5530
5528
|
var cb = callback;
|
|
5531
5529
|
callback = null;
|
|
5530
|
+
if (sync)
|
|
5531
|
+
throw err;
|
|
5532
5532
|
cb(err, root);
|
|
5533
5533
|
}
|
|
5534
5534
|
|
|
@@ -5572,6 +5572,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
5572
5572
|
|
|
5573
5573
|
// Fetches a single file
|
|
5574
5574
|
function fetch(filename, weak) {
|
|
5575
|
+
filename = getBundledFileName(filename) || filename;
|
|
5575
5576
|
|
|
5576
5577
|
// Skip if already loaded / attempted
|
|
5577
5578
|
if (self.files.indexOf(filename) > -1)
|
|
@@ -8076,7 +8077,7 @@ function newError(name) {
|
|
|
8076
8077
|
configurable: true,
|
|
8077
8078
|
},
|
|
8078
8079
|
name: {
|
|
8079
|
-
get() { return name; },
|
|
8080
|
+
get: function get() { return name; },
|
|
8080
8081
|
set: undefined,
|
|
8081
8082
|
enumerable: false,
|
|
8082
8083
|
// configurable: false would accurately preserve the behavior of
|
|
@@ -8086,7 +8087,7 @@ function newError(name) {
|
|
|
8086
8087
|
configurable: true,
|
|
8087
8088
|
},
|
|
8088
8089
|
toString: {
|
|
8089
|
-
value() { return this.name + ": " + this.message; },
|
|
8090
|
+
value: function value() { return this.name + ": " + this.message; },
|
|
8090
8091
|
writable: true,
|
|
8091
8092
|
enumerable: false,
|
|
8092
8093
|
configurable: true,
|