@bufbuild/protobuf
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0
@@ -617,2 +617,3 @@ "use strict"; | ||
field.message = reg.getMessage(trimLeadingDot(proto.typeName)); | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
assert(field.message); | ||
@@ -624,2 +625,3 @@ field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); | ||
field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
assert(field.enum); | ||
@@ -642,3 +644,5 @@ break; | ||
field.message = reg.getMessage(trimLeadingDot(proto.typeName)); | ||
assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); | ||
assert( | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); | ||
field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); | ||
@@ -780,3 +784,5 @@ field.getDefaultValue = () => undefined; | ||
const oneof = allOneofs[proto.oneofIndex]; | ||
assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); | ||
assert( | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); | ||
return oneof; | ||
@@ -783,0 +789,0 @@ } |
@@ -611,2 +611,3 @@ // Copyright 2021-2024 Buf Technologies, Inc. | ||
field.message = reg.getMessage(trimLeadingDot(proto.typeName)); | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
assert(field.message); | ||
@@ -618,2 +619,3 @@ field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); | ||
field.enum = reg.getEnum(trimLeadingDot(proto.typeName)); | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
assert(field.enum); | ||
@@ -636,3 +638,5 @@ break; | ||
field.message = reg.getMessage(trimLeadingDot(proto.typeName)); | ||
assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); | ||
assert( | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`); | ||
field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile); | ||
@@ -774,3 +778,5 @@ field.getDefaultValue = () => undefined; | ||
const oneof = allOneofs[proto.oneofIndex]; | ||
assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); | ||
assert( | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`); | ||
return oneof; | ||
@@ -777,0 +783,0 @@ } |
{ | ||
"name": "@bufbuild/protobuf", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0", | ||
"license": "(Apache-2.0 AND BSD-3-Clause)", | ||
@@ -5,0 +5,0 @@ "description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1249819
32907
1
53
3
4
2
22