@protobuf-ts/runtime
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -25,3 +25,3 @@ "use strict"; | ||
const group = input[field.oneof]; // this is the oneof`s group in the source | ||
if (group === undefined) { // the user is free to omit | ||
if (group == undefined) { // the user is free to omit | ||
continue; // we skip this field, and all other members too | ||
@@ -32,3 +32,3 @@ } | ||
output.oneofKind = group.oneofKind; // always update discriminator | ||
if (fieldValue === undefined) { | ||
if (fieldValue == undefined) { | ||
delete output[name]; // remove any existing value | ||
@@ -41,3 +41,3 @@ continue; // skip further work on field | ||
output = target; // we want our field value to go directly into the target | ||
if (fieldValue === undefined) { | ||
if (fieldValue == undefined) { | ||
continue; // skip further work on field, existing value is used as is | ||
@@ -44,0 +44,0 @@ } |
@@ -22,3 +22,3 @@ /** | ||
const group = input[field.oneof]; // this is the oneof`s group in the source | ||
if (group === undefined) { // the user is free to omit | ||
if (group == undefined) { // the user is free to omit | ||
continue; // we skip this field, and all other members too | ||
@@ -29,3 +29,3 @@ } | ||
output.oneofKind = group.oneofKind; // always update discriminator | ||
if (fieldValue === undefined) { | ||
if (fieldValue == undefined) { | ||
delete output[name]; // remove any existing value | ||
@@ -38,3 +38,3 @@ continue; // skip further work on field | ||
output = target; // we want our field value to go directly into the target | ||
if (fieldValue === undefined) { | ||
if (fieldValue == undefined) { | ||
continue; // skip further work on field, existing value is used as is | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "@protobuf-ts/runtime", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Runtime library for code generated by the protoc plugin \"protobuf-ts\"", | ||
@@ -40,3 +40,3 @@ "license": "(Apache-2.0 AND BSD-3-Clause)", | ||
}, | ||
"gitHead": "63ea42785d879a32021268b1b318803df3ab391d" | ||
"gitHead": "1c44863223b3fcbaf59997affcd87a233b8261fb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
342163