Bump protobufjs from 6.11.3 to 7.2.4
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Fedor Indutnyy <indutny@signal.org>
This commit is contained in:
parent
6e54438431
commit
5c4d93e103
11 changed files with 1391 additions and 160 deletions
|
@ -4,14 +4,14 @@
|
|||
import { Reader } from 'protobufjs';
|
||||
|
||||
type MessageWithUnknownFields = {
|
||||
__unknownFields?: ReadonlyArray<Uint8Array>;
|
||||
$unknownFields?: ReadonlyArray<Uint8Array>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns an array of the tags of unknown fields in a protobuf message.
|
||||
*
|
||||
* Clients may use slightly different definitions of our protos, in cases where
|
||||
* we don't recognize a field, we store it in `__unknownFields`.
|
||||
* we don't recognize a field, we store it in `$unknownFields`.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
|
@ -28,7 +28,7 @@ type MessageWithUnknownFields = {
|
|||
* }
|
||||
* ```
|
||||
*
|
||||
* If we receive a message with `baz` set, we'll store it in `__unknownFields`.
|
||||
* If we receive a message with `baz` set, we'll store it in `$unknownFields`.
|
||||
*
|
||||
* This function will then return `[2]`.
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@ export function inspectUnknownFieldTags(
|
|||
message: MessageWithUnknownFields
|
||||
): Array<number> {
|
||||
return (
|
||||
message.__unknownFields?.map(field => {
|
||||
message.$unknownFields?.map(field => {
|
||||
// https://protobuf.dev/programming-guides/encoding/
|
||||
// The first byte of a field is a varint encoding the tag bit-shifted << 3
|
||||
// eslint-disable-next-line no-bitwise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue