Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-proto

Package Overview
Dependencies
Maintainers
1
Versions
356
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-proto - npm Package Compare versions

Comparing version 1.169.1 to 1.170.0

9

build/types.js

@@ -333,5 +333,9 @@ "use strict";

// When useOptionals='messages', non-scalar fields are translated into optional
// properties. When useOptionals='all', all fields are translated into
// properties.
// When useOptionals='all', all fields are translated into
// optional properties, with the exception of map Entry key/values, which must
// always be present.
// When useOptionals='deprecatedOnly', all deprecated fields are translated into
// optional properties, with the exception of map Entry key/values, which must
// always be present.
// OneOf fields are always optional, whenever oneof=unions option not in use.

@@ -341,4 +345,5 @@ function isOptionalProperty(field, messageOptions, options, isProto3Syntax) {

const optionalAll = options.useOptionals === "all";
const deprecatedOnly = options.useOptionals === "deprecatedOnly" && field.options && field.options.deprecated;
return ((optionalMessages && isMessage(field) && !isRepeated(field)) ||
(optionalAll && !(messageOptions === null || messageOptions === void 0 ? void 0 : messageOptions.mapEntry)) ||
((optionalAll || deprecatedOnly) && !(messageOptions === null || messageOptions === void 0 ? void 0 : messageOptions.mapEntry)) ||
// file is proto2, we have enabled proto2 optionals, and the field itself is optional

@@ -345,0 +350,0 @@ (!isProto3Syntax &&

{
"name": "ts-proto",
"version": "1.169.1",
"version": "1.170.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/plugin.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc