Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
@dxos/codec-protobuf
Advanced tools
There's an associated @dxos/protobuf-compiler package that does codegen based on protobuf schema.
There's an associated @dxos/protobuf-compiler package that does codegen based on protobuf schema.
Based on:
In protobuf scalar fields (numbers, booleans, strings, bytes, enums) may have an implicit default value:
Example:
int32 number = 1;
If the field is set to it's default value (0 in this example) it MAY be missing in the wire encoding (Go implementation) or present with the value set to 0 (JS implementation).
When decoding, the missing fields MUST be treated as having the default implicit value (0 in this case).
optional int32 number = 1;
If the field is set to it's default value (0 in this example) it MUST be present in the wire encoding with the value set to 0.
When decoding, the missing fields it MUST be set as undefined. If the field is present in the wire format, it must be set to its numeric value.
This package must NOT use toolchain
to avoid cyclic dependencies.
FAQs
There's an associated @dxos/protobuf-compiler package that does codegen based on protobuf schema.
The npm package @dxos/codec-protobuf receives a total of 4,754 weekly downloads. As such, @dxos/codec-protobuf popularity was classified as popular.
We found that @dxos/codec-protobuf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.