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/light/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
|
*/
|
|
@@ -4249,10 +4249,10 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
4249
4249
|
/* istanbul ignore if */
|
|
4250
4250
|
if (!callback)
|
|
4251
4251
|
return;
|
|
4252
|
-
if (sync)
|
|
4253
|
-
throw err;
|
|
4254
4252
|
var cb = callback;
|
|
4255
4253
|
callback = null;
|
|
4254
|
+
if (sync)
|
|
4255
|
+
throw err;
|
|
4256
4256
|
cb(err, root);
|
|
4257
4257
|
}
|
|
4258
4258
|
|
|
@@ -4296,6 +4296,7 @@ Root.prototype.load = function load(filename, options, callback) {
|
|
|
4296
4296
|
|
|
4297
4297
|
// Fetches a single file
|
|
4298
4298
|
function fetch(filename, weak) {
|
|
4299
|
+
filename = getBundledFileName(filename) || filename;
|
|
4299
4300
|
|
|
4300
4301
|
// Skip if already loaded / attempted
|
|
4301
4302
|
if (self.files.indexOf(filename) > -1)
|
|
@@ -6380,7 +6381,7 @@ function newError(name) {
|
|
|
6380
6381
|
configurable: true,
|
|
6381
6382
|
},
|
|
6382
6383
|
name: {
|
|
6383
|
-
get() { return name; },
|
|
6384
|
+
get: function get() { return name; },
|
|
6384
6385
|
set: undefined,
|
|
6385
6386
|
enumerable: false,
|
|
6386
6387
|
// configurable: false would accurately preserve the behavior of
|
|
@@ -6390,7 +6391,7 @@ function newError(name) {
|
|
|
6390
6391
|
configurable: true,
|
|
6391
6392
|
},
|
|
6392
6393
|
toString: {
|
|
6393
|
-
value() { return this.name + ": " + this.message; },
|
|
6394
|
+
value: function value() { return this.name + ": " + this.message; },
|
|
6394
6395
|
writable: true,
|
|
6395
6396
|
enumerable: false,
|
|
6396
6397
|
configurable: true,
|