protobufjs 7.2.5 → 7.3.0

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v7.2.5 (c) 2016, daniel wirtz
3
- * compiled tue, 22 aug 2023 00:04:28 utc
2
+ * protobuf.js v7.3.0 (c) 2016, daniel wirtz
3
+ * compiled fri, 10 may 2024 03:38:34 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v7.2.5 (c) 2016, daniel wirtz
3
- * compiled tue, 22 aug 2023 00:04:29 utc
2
+ * protobuf.js v7.3.0 (c) 2016, daniel wirtz
3
+ * compiled fri, 10 may 2024 03:38:35 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
package/dist/protobuf.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v7.2.5 (c) 2016, daniel wirtz
3
- * compiled tue, 22 aug 2023 00:04:28 utc
2
+ * protobuf.js v7.3.0 (c) 2016, daniel wirtz
3
+ * compiled fri, 10 may 2024 03:38:34 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -4244,7 +4244,24 @@ function parse(source, root, options) {
4244
4244
  else
4245
4245
  target.push([ start = parseId(next()), skip("to", true) ? parseId(next()) : start ]);
4246
4246
  } while (skip(",", true));
4247
- skip(";");
4247
+ var dummy = {options: undefined};
4248
+ dummy.setOption = function(name, value) {
4249
+ if (this.options === undefined) this.options = {};
4250
+ this.options[name] = value;
4251
+ };
4252
+ ifBlock(
4253
+ dummy,
4254
+ function parseRange_block(token) {
4255
+ /* istanbul ignore else */
4256
+ if (token === "option") {
4257
+ parseOption(dummy, token); // skip
4258
+ skip(";");
4259
+ } else
4260
+ throw illegal(token);
4261
+ },
4262
+ function parseRange_line() {
4263
+ parseInlineOptions(dummy); // skip
4264
+ });
4248
4265
  }
4249
4266
 
4250
4267
  function parseNumber(token, insideTryCatch) {
@@ -5543,10 +5560,10 @@ Root.prototype.load = function load(filename, options, callback) {
5543
5560
  /* istanbul ignore if */
5544
5561
  if (!callback)
5545
5562
  return;
5546
- var cb = callback;
5547
- callback = null;
5548
5563
  if (sync)
5549
5564
  throw err;
5565
+ var cb = callback;
5566
+ callback = null;
5550
5567
  cb(err, root);
5551
5568
  }
5552
5569