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.
- package/README.md +1 -1
- package/dist/light/protobuf.js +16 -11
- 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 +14 -9
- 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 +72 -33
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/protojson.js +5 -1
- package/google/api/annotations.json +3 -1
- package/google/api/http.json +2 -1
- package/google/protobuf/api.json +12 -6
- package/google/protobuf/descriptor.json +170 -87
- package/google/protobuf/descriptor.proto +0 -8
- package/google/protobuf/source_context.json +2 -1
- package/google/protobuf/type.json +14 -7
- package/package.json +4 -4
- package/src/common.js +12 -6
- package/src/converter.js +1 -1
- package/src/decoder.js +1 -1
- package/src/index-minimal.js +1 -0
- package/src/parse.js +44 -16
- package/src/util/longbits.js +10 -6
package/dist/minimal/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.7.
|
|
3
|
-
* compiled mon,
|
|
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
|
|
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 (
|
|
1871
|
+
if (typeof value === "string" || value instanceof String) {
|
|
1871
1872
|
/* istanbul ignore else */
|
|
1872
|
-
if (
|
|
1873
|
-
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
|
|
1903
|
-
? new
|
|
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
|
-
|
|
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;
|