protobufjs 8.6.3 → 8.6.4
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 +9 -2
- 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 +9 -2
- 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 +9 -2
- 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 +26 -6
- package/package.json +1 -1
- package/src/util/utf8.js +7 -0
package/dist/light/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v8.6.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v8.6.4 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 16 jun 2026 14:35:46 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -7561,7 +7561,14 @@ function pool(alloc, slice, size) {
|
|
|
7561
7561
|
*/
|
|
7562
7562
|
var utf8 = exports,
|
|
7563
7563
|
replacementChar = "\ufffd",
|
|
7564
|
+
strictDecoder;
|
|
7565
|
+
|
|
7566
|
+
try {
|
|
7564
7567
|
strictDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
7568
|
+
} catch (err) {
|
|
7569
|
+
// "fatal" option is not supported on Node.js compiled without ICU
|
|
7570
|
+
strictDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
7571
|
+
}
|
|
7565
7572
|
|
|
7566
7573
|
/**
|
|
7567
7574
|
* Calculates the UTF8 byte length of a string.
|