protobufjs 8.7.0 → 8.7.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v8.7.0 (c) 2016, daniel wirtz
3
- * compiled mon, 06 jul 2026 13:50:00 utc
2
+ * protobuf.js v8.7.1 (c) 2016, daniel wirtz
3
+ * compiled mon, 13 jul 2026 11:04:12 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -66,6 +66,7 @@ exports.configure = configure;
66
66
  * @returns {undefined}
67
67
  */
68
68
  function configure() {
69
+ exports.util.LongBits._configure(exports.util.Long);
69
70
  exports.Writer._configure(exports.BufferWriter);
70
71
  exports.Reader._configure(exports.BufferReader);
71
72
  }
@@ -1788,7 +1789,7 @@ function readUintBE(buf, pos) {
1788
1789
  "use strict";
1789
1790
  module.exports = LongBits;
1790
1791
 
1791
- var util = require(12);
1792
+ var Long;
1792
1793
 
1793
1794
  /**
1794
1795
  * Constructs new long bits.
@@ -1867,10 +1868,10 @@ LongBits.fromNumber = function fromNumber(value) {
1867
1868
  LongBits.from = function from(value) {
1868
1869
  if (typeof value === "number")
1869
1870
  return LongBits.fromNumber(value);
1870
- if (util.isString(value)) {
1871
+ if (typeof value === "string" || value instanceof String) {
1871
1872
  /* istanbul ignore else */
1872
- if (util.Long)
1873
- value = util.Long.fromString(value);
1873
+ if (Long)
1874
+ value = Long.fromString(value);
1874
1875
  else
1875
1876
  return LongBits.fromNumber(parseInt(value, 10));
1876
1877
  }
@@ -1899,8 +1900,8 @@ LongBits.prototype.toNumber = function toNumber(unsigned) {
1899
1900
  * @returns {Long} Long
1900
1901
  */
1901
1902
  LongBits.prototype.toLong = function toLong(unsigned) {
1902
- return util.Long
1903
- ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))
1903
+ return Long
1904
+ ? new Long(this.lo | 0, this.hi | 0, Boolean(unsigned))
1904
1905
  /* istanbul ignore next */
1905
1906
  : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
1906
1907
  };
@@ -1986,7 +1987,11 @@ LongBits.prototype.length = function length() {
1986
1987
  : part2 < 128 ? 9 : 10;
1987
1988
  };
1988
1989
 
1989
- },{"12":12}],12:[function(require,module,exports){
1990
+ LongBits._configure = function(Long_) {
1991
+ Long = Long_;
1992
+ };
1993
+
1994
+ },{}],12:[function(require,module,exports){
1990
1995
  "use strict";
1991
1996
  /* global globalThis */
1992
1997
  var util = exports;