ts-proto-descriptors
Advanced tools
Comparing version 1.16.0 to 2.0.0
@@ -1,2 +0,2 @@ | ||
import _m0 from "protobufjs/minimal"; | ||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; | ||
import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor"; | ||
@@ -150,4 +150,4 @@ /** The version number of protocol compiler. */ | ||
export declare const Version: { | ||
encode(message: Version, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Version; | ||
encode(message: Version, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): Version; | ||
fromJSON(object: any): Version; | ||
@@ -159,4 +159,4 @@ toJSON(message: Version): unknown; | ||
export declare const CodeGeneratorRequest: { | ||
encode(message: CodeGeneratorRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeGeneratorRequest; | ||
encode(message: CodeGeneratorRequest, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): CodeGeneratorRequest; | ||
fromJSON(object: any): CodeGeneratorRequest; | ||
@@ -168,4 +168,4 @@ toJSON(message: CodeGeneratorRequest): unknown; | ||
export declare const CodeGeneratorResponse: { | ||
encode(message: CodeGeneratorResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeGeneratorResponse; | ||
encode(message: CodeGeneratorResponse, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): CodeGeneratorResponse; | ||
fromJSON(object: any): CodeGeneratorResponse; | ||
@@ -177,4 +177,4 @@ toJSON(message: CodeGeneratorResponse): unknown; | ||
export declare const CodeGeneratorResponse_File: { | ||
encode(message: CodeGeneratorResponse_File, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): CodeGeneratorResponse_File; | ||
encode(message: CodeGeneratorResponse_File, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): CodeGeneratorResponse_File; | ||
fromJSON(object: any): CodeGeneratorResponse_File; | ||
@@ -181,0 +181,0 @@ toJSON(message: CodeGeneratorResponse_File): unknown; |
"use strict"; | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.175.1 | ||
// protoc-gen-ts_proto v2.0.3 | ||
// protoc v3.21.12 | ||
// source: google/protobuf/compiler/plugin.proto | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CodeGeneratorResponse_File = exports.CodeGeneratorResponse = exports.CodeGeneratorRequest = exports.Version = exports.codeGeneratorResponse_FeatureToJSON = exports.codeGeneratorResponse_FeatureFromJSON = exports.CodeGeneratorResponse_Feature = void 0; | ||
/* eslint-disable */ | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const wire_1 = require("@bufbuild/protobuf/wire"); | ||
const descriptor_1 = require("../descriptor"); | ||
@@ -54,3 +50,3 @@ /** Sync with code_generator.h. */ | ||
exports.Version = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = new wire_1.BinaryWriter()) { | ||
if (message.major !== 0) { | ||
@@ -72,4 +68,3 @@ writer.uint32(8).int32(message.major); | ||
for (const value of values) { | ||
writer.uint32(tag); | ||
writer["_push"]((val, buf, pos) => buf.set(val, pos), value.length, value); | ||
writer.uint32(tag).raw(value); | ||
} | ||
@@ -81,3 +76,3 @@ } | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -116,5 +111,3 @@ const message = Object.create(createBaseVersion()); | ||
} | ||
const startPos = reader.pos; | ||
reader.skipType(tag & 7); | ||
const buf = reader.buf.slice(startPos, reader.pos); | ||
const buf = reader.skip(tag & 7); | ||
if (message._unknownFields === undefined) { | ||
@@ -158,11 +151,10 @@ message._unknownFields = {}; | ||
create(base) { | ||
return exports.Version.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
return exports.Version.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d; | ||
const message = Object.create(createBaseVersion()); | ||
message.major = (_a = object.major) !== null && _a !== void 0 ? _a : 0; | ||
message.minor = (_b = object.minor) !== null && _b !== void 0 ? _b : 0; | ||
message.patch = (_c = object.patch) !== null && _c !== void 0 ? _c : 0; | ||
message.suffix = (_d = object.suffix) !== null && _d !== void 0 ? _d : ""; | ||
message.major = object.major ?? 0; | ||
message.minor = object.minor ?? 0; | ||
message.patch = object.patch ?? 0; | ||
message.suffix = object.suffix ?? ""; | ||
return message; | ||
@@ -175,3 +167,3 @@ }, | ||
exports.CodeGeneratorRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = new wire_1.BinaryWriter()) { | ||
for (const v of message.fileToGenerate) { | ||
@@ -184,6 +176,6 @@ writer.uint32(10).string(v); | ||
for (const v of message.protoFile) { | ||
descriptor_1.FileDescriptorProto.encode(v, writer.uint32(122).fork()).ldelim(); | ||
descriptor_1.FileDescriptorProto.encode(v, writer.uint32(122).fork()).join(); | ||
} | ||
if (message.compilerVersion !== undefined) { | ||
exports.Version.encode(message.compilerVersion, writer.uint32(26).fork()).ldelim(); | ||
exports.Version.encode(message.compilerVersion, writer.uint32(26).fork()).join(); | ||
} | ||
@@ -194,4 +186,3 @@ if (message._unknownFields !== undefined) { | ||
for (const value of values) { | ||
writer.uint32(tag); | ||
writer["_push"]((val, buf, pos) => buf.set(val, pos), value.length, value); | ||
writer.uint32(tag).raw(value); | ||
} | ||
@@ -203,3 +194,3 @@ } | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -238,5 +229,3 @@ const message = Object.create(createBaseCodeGeneratorRequest()); | ||
} | ||
const startPos = reader.pos; | ||
reader.skipType(tag & 7); | ||
const buf = reader.buf.slice(startPos, reader.pos); | ||
const buf = reader.skip(tag & 7); | ||
if (message._unknownFields === undefined) { | ||
@@ -257,7 +246,7 @@ message._unknownFields = {}; | ||
return { | ||
fileToGenerate: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fileToGenerate) | ||
fileToGenerate: globalThis.Array.isArray(object?.fileToGenerate) | ||
? object.fileToGenerate.map((e) => globalThis.String(e)) | ||
: [], | ||
parameter: isSet(object.parameter) ? globalThis.String(object.parameter) : "", | ||
protoFile: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.protoFile) | ||
protoFile: globalThis.Array.isArray(object?.protoFile) | ||
? object.protoFile.map((e) => descriptor_1.FileDescriptorProto.fromJSON(e)) | ||
@@ -269,5 +258,4 @@ : [], | ||
toJSON(message) { | ||
var _a, _b; | ||
const obj = {}; | ||
if ((_a = message.fileToGenerate) === null || _a === void 0 ? void 0 : _a.length) { | ||
if (message.fileToGenerate?.length) { | ||
obj.fileToGenerate = message.fileToGenerate; | ||
@@ -278,3 +266,3 @@ } | ||
} | ||
if ((_b = message.protoFile) === null || _b === void 0 ? void 0 : _b.length) { | ||
if (message.protoFile?.length) { | ||
obj.protoFile = message.protoFile.map((e) => descriptor_1.FileDescriptorProto.toJSON(e)); | ||
@@ -288,10 +276,9 @@ } | ||
create(base) { | ||
return exports.CodeGeneratorRequest.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
return exports.CodeGeneratorRequest.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = Object.create(createBaseCodeGeneratorRequest()); | ||
message.fileToGenerate = ((_a = object.fileToGenerate) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; | ||
message.parameter = (_b = object.parameter) !== null && _b !== void 0 ? _b : ""; | ||
message.protoFile = ((_c = object.protoFile) === null || _c === void 0 ? void 0 : _c.map((e) => descriptor_1.FileDescriptorProto.fromPartial(e))) || []; | ||
message.fileToGenerate = object.fileToGenerate?.map((e) => e) || []; | ||
message.parameter = object.parameter ?? ""; | ||
message.protoFile = object.protoFile?.map((e) => descriptor_1.FileDescriptorProto.fromPartial(e)) || []; | ||
message.compilerVersion = (object.compilerVersion !== undefined && object.compilerVersion !== null) | ||
@@ -307,3 +294,3 @@ ? exports.Version.fromPartial(object.compilerVersion) | ||
exports.CodeGeneratorResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = new wire_1.BinaryWriter()) { | ||
if (message.error !== "") { | ||
@@ -316,3 +303,3 @@ writer.uint32(10).string(message.error); | ||
for (const v of message.file) { | ||
exports.CodeGeneratorResponse_File.encode(v, writer.uint32(122).fork()).ldelim(); | ||
exports.CodeGeneratorResponse_File.encode(v, writer.uint32(122).fork()).join(); | ||
} | ||
@@ -323,4 +310,3 @@ if (message._unknownFields !== undefined) { | ||
for (const value of values) { | ||
writer.uint32(tag); | ||
writer["_push"]((val, buf, pos) => buf.set(val, pos), value.length, value); | ||
writer.uint32(tag).raw(value); | ||
} | ||
@@ -332,3 +318,3 @@ } | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -361,5 +347,3 @@ const message = Object.create(createBaseCodeGeneratorResponse()); | ||
} | ||
const startPos = reader.pos; | ||
reader.skipType(tag & 7); | ||
const buf = reader.buf.slice(startPos, reader.pos); | ||
const buf = reader.skip(tag & 7); | ||
if (message._unknownFields === undefined) { | ||
@@ -382,3 +366,3 @@ message._unknownFields = {}; | ||
supportedFeatures: isSet(object.supportedFeatures) ? globalThis.Number(object.supportedFeatures) : 0, | ||
file: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.file) | ||
file: globalThis.Array.isArray(object?.file) | ||
? object.file.map((e) => exports.CodeGeneratorResponse_File.fromJSON(e)) | ||
@@ -389,3 +373,2 @@ : [], | ||
toJSON(message) { | ||
var _a; | ||
const obj = {}; | ||
@@ -398,3 +381,3 @@ if (message.error !== "") { | ||
} | ||
if ((_a = message.file) === null || _a === void 0 ? void 0 : _a.length) { | ||
if (message.file?.length) { | ||
obj.file = message.file.map((e) => exports.CodeGeneratorResponse_File.toJSON(e)); | ||
@@ -405,10 +388,9 @@ } | ||
create(base) { | ||
return exports.CodeGeneratorResponse.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
return exports.CodeGeneratorResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = Object.create(createBaseCodeGeneratorResponse()); | ||
message.error = (_a = object.error) !== null && _a !== void 0 ? _a : ""; | ||
message.supportedFeatures = (_b = object.supportedFeatures) !== null && _b !== void 0 ? _b : 0; | ||
message.file = ((_c = object.file) === null || _c === void 0 ? void 0 : _c.map((e) => exports.CodeGeneratorResponse_File.fromPartial(e))) || []; | ||
message.error = object.error ?? ""; | ||
message.supportedFeatures = object.supportedFeatures ?? 0; | ||
message.file = object.file?.map((e) => exports.CodeGeneratorResponse_File.fromPartial(e)) || []; | ||
return message; | ||
@@ -421,3 +403,3 @@ }, | ||
exports.CodeGeneratorResponse_File = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = new wire_1.BinaryWriter()) { | ||
if (message.name !== "") { | ||
@@ -433,3 +415,3 @@ writer.uint32(10).string(message.name); | ||
if (message.generatedCodeInfo !== undefined) { | ||
descriptor_1.GeneratedCodeInfo.encode(message.generatedCodeInfo, writer.uint32(130).fork()).ldelim(); | ||
descriptor_1.GeneratedCodeInfo.encode(message.generatedCodeInfo, writer.uint32(130).fork()).join(); | ||
} | ||
@@ -440,4 +422,3 @@ if (message._unknownFields !== undefined) { | ||
for (const value of values) { | ||
writer.uint32(tag); | ||
writer["_push"]((val, buf, pos) => buf.set(val, pos), value.length, value); | ||
writer.uint32(tag).raw(value); | ||
} | ||
@@ -449,3 +430,3 @@ } | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -484,5 +465,3 @@ const message = Object.create(createBaseCodeGeneratorResponse_File()); | ||
} | ||
const startPos = reader.pos; | ||
reader.skipType(tag & 7); | ||
const buf = reader.buf.slice(startPos, reader.pos); | ||
const buf = reader.skip(tag & 7); | ||
if (message._unknownFields === undefined) { | ||
@@ -528,10 +507,9 @@ message._unknownFields = {}; | ||
create(base) { | ||
return exports.CodeGeneratorResponse_File.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
return exports.CodeGeneratorResponse_File.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = Object.create(createBaseCodeGeneratorResponse_File()); | ||
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : ""; | ||
message.insertionPoint = (_b = object.insertionPoint) !== null && _b !== void 0 ? _b : ""; | ||
message.content = (_c = object.content) !== null && _c !== void 0 ? _c : ""; | ||
message.name = object.name ?? ""; | ||
message.insertionPoint = object.insertionPoint ?? ""; | ||
message.content = object.content ?? ""; | ||
message.generatedCodeInfo = (object.generatedCodeInfo !== undefined && object.generatedCodeInfo !== null) | ||
@@ -543,14 +521,14 @@ ? descriptor_1.GeneratedCodeInfo.fromPartial(object.generatedCodeInfo) | ||
}; | ||
function longToNumber(long) { | ||
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) { | ||
function longToNumber(int64) { | ||
const num = globalThis.Number(int64.toString()); | ||
if (num > globalThis.Number.MAX_SAFE_INTEGER) { | ||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); | ||
} | ||
return long.toNumber(); | ||
if (num < globalThis.Number.MIN_SAFE_INTEGER) { | ||
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER"); | ||
} | ||
return num; | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
} | ||
function isSet(value) { | ||
return value !== null && value !== undefined; | ||
} |
@@ -1,2 +0,2 @@ | ||
import _m0 from "protobufjs/minimal"; | ||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; | ||
/** | ||
@@ -909,4 +909,4 @@ * The protocol compiler can output a FileDescriptorSet containing the .proto | ||
export declare const FileDescriptorSet: { | ||
encode(message: FileDescriptorSet, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet; | ||
encode(message: FileDescriptorSet, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorSet; | ||
fromJSON(object: any): FileDescriptorSet; | ||
@@ -918,4 +918,4 @@ toJSON(message: FileDescriptorSet): unknown; | ||
export declare const FileDescriptorProto: { | ||
encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto; | ||
encode(message: FileDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): FileDescriptorProto; | ||
fromJSON(object: any): FileDescriptorProto; | ||
@@ -927,4 +927,4 @@ toJSON(message: FileDescriptorProto): unknown; | ||
export declare const DescriptorProto: { | ||
encode(message: DescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto; | ||
encode(message: DescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto; | ||
fromJSON(object: any): DescriptorProto; | ||
@@ -936,4 +936,4 @@ toJSON(message: DescriptorProto): unknown; | ||
export declare const DescriptorProto_ExtensionRange: { | ||
encode(message: DescriptorProto_ExtensionRange, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; | ||
encode(message: DescriptorProto_ExtensionRange, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ExtensionRange; | ||
fromJSON(object: any): DescriptorProto_ExtensionRange; | ||
@@ -945,4 +945,4 @@ toJSON(message: DescriptorProto_ExtensionRange): unknown; | ||
export declare const DescriptorProto_ReservedRange: { | ||
encode(message: DescriptorProto_ReservedRange, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange; | ||
encode(message: DescriptorProto_ReservedRange, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): DescriptorProto_ReservedRange; | ||
fromJSON(object: any): DescriptorProto_ReservedRange; | ||
@@ -954,5 +954,5 @@ toJSON(message: DescriptorProto_ReservedRange): unknown; | ||
export declare const ExtensionRangeOptions: { | ||
encode(message: ExtensionRangeOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: ExtensionRangeOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: ExtensionRangeOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): ExtensionRangeOptions; | ||
getExtension<T_1>(message: ExtensionRangeOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -965,4 +965,4 @@ fromJSON(object: any): ExtensionRangeOptions; | ||
export declare const FieldDescriptorProto: { | ||
encode(message: FieldDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto; | ||
encode(message: FieldDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): FieldDescriptorProto; | ||
fromJSON(object: any): FieldDescriptorProto; | ||
@@ -974,4 +974,4 @@ toJSON(message: FieldDescriptorProto): unknown; | ||
export declare const OneofDescriptorProto: { | ||
encode(message: OneofDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto; | ||
encode(message: OneofDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): OneofDescriptorProto; | ||
fromJSON(object: any): OneofDescriptorProto; | ||
@@ -983,4 +983,4 @@ toJSON(message: OneofDescriptorProto): unknown; | ||
export declare const EnumDescriptorProto: { | ||
encode(message: EnumDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto; | ||
encode(message: EnumDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto; | ||
fromJSON(object: any): EnumDescriptorProto; | ||
@@ -992,4 +992,4 @@ toJSON(message: EnumDescriptorProto): unknown; | ||
export declare const EnumDescriptorProto_EnumReservedRange: { | ||
encode(message: EnumDescriptorProto_EnumReservedRange, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; | ||
encode(message: EnumDescriptorProto_EnumReservedRange, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange; | ||
fromJSON(object: any): EnumDescriptorProto_EnumReservedRange; | ||
@@ -1001,4 +1001,4 @@ toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown; | ||
export declare const EnumValueDescriptorProto: { | ||
encode(message: EnumValueDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto; | ||
encode(message: EnumValueDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): EnumValueDescriptorProto; | ||
fromJSON(object: any): EnumValueDescriptorProto; | ||
@@ -1010,4 +1010,4 @@ toJSON(message: EnumValueDescriptorProto): unknown; | ||
export declare const ServiceDescriptorProto: { | ||
encode(message: ServiceDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto; | ||
encode(message: ServiceDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): ServiceDescriptorProto; | ||
fromJSON(object: any): ServiceDescriptorProto; | ||
@@ -1019,4 +1019,4 @@ toJSON(message: ServiceDescriptorProto): unknown; | ||
export declare const MethodDescriptorProto: { | ||
encode(message: MethodDescriptorProto, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto; | ||
encode(message: MethodDescriptorProto, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): MethodDescriptorProto; | ||
fromJSON(object: any): MethodDescriptorProto; | ||
@@ -1028,5 +1028,5 @@ toJSON(message: MethodDescriptorProto): unknown; | ||
export declare const FileOptions: { | ||
encode(message: FileOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: FileOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: FileOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): FileOptions; | ||
getExtension<T_1>(message: FileOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1039,5 +1039,5 @@ fromJSON(object: any): FileOptions; | ||
export declare const MessageOptions: { | ||
encode(message: MessageOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: MessageOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: MessageOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): MessageOptions; | ||
getExtension<T_1>(message: MessageOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1050,5 +1050,5 @@ fromJSON(object: any): MessageOptions; | ||
export declare const FieldOptions: { | ||
encode(message: FieldOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: FieldOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: FieldOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): FieldOptions; | ||
getExtension<T_1>(message: FieldOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1061,5 +1061,5 @@ fromJSON(object: any): FieldOptions; | ||
export declare const OneofOptions: { | ||
encode(message: OneofOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: OneofOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: OneofOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): OneofOptions; | ||
getExtension<T_1>(message: OneofOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1072,5 +1072,5 @@ fromJSON(object: any): OneofOptions; | ||
export declare const EnumOptions: { | ||
encode(message: EnumOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: EnumOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: EnumOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): EnumOptions; | ||
getExtension<T_1>(message: EnumOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1083,5 +1083,5 @@ fromJSON(object: any): EnumOptions; | ||
export declare const EnumValueOptions: { | ||
encode(message: EnumValueOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: EnumValueOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: EnumValueOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): EnumValueOptions; | ||
getExtension<T_1>(message: EnumValueOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1094,5 +1094,5 @@ fromJSON(object: any): EnumValueOptions; | ||
export declare const ServiceOptions: { | ||
encode(message: ServiceOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: ServiceOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: ServiceOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): ServiceOptions; | ||
getExtension<T_1>(message: ServiceOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1105,5 +1105,5 @@ fromJSON(object: any): ServiceOptions; | ||
export declare const MethodOptions: { | ||
encode(message: MethodOptions, writer?: _m0.Writer): _m0.Writer; | ||
encode(message: MethodOptions, writer?: BinaryWriter): BinaryWriter; | ||
setExtension<T>(message: MethodOptions, extension: Extension<T>, value: T): void; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions; | ||
decode(input: BinaryReader | Uint8Array, length?: number): MethodOptions; | ||
getExtension<T_1>(message: MethodOptions, extension: Extension<T_1>): T_1 | undefined; | ||
@@ -1116,4 +1116,4 @@ fromJSON(object: any): MethodOptions; | ||
export declare const UninterpretedOption: { | ||
encode(message: UninterpretedOption, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption; | ||
encode(message: UninterpretedOption, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption; | ||
fromJSON(object: any): UninterpretedOption; | ||
@@ -1125,4 +1125,4 @@ toJSON(message: UninterpretedOption): unknown; | ||
export declare const UninterpretedOption_NamePart: { | ||
encode(message: UninterpretedOption_NamePart, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart; | ||
encode(message: UninterpretedOption_NamePart, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): UninterpretedOption_NamePart; | ||
fromJSON(object: any): UninterpretedOption_NamePart; | ||
@@ -1134,4 +1134,4 @@ toJSON(message: UninterpretedOption_NamePart): unknown; | ||
export declare const SourceCodeInfo: { | ||
encode(message: SourceCodeInfo, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo; | ||
encode(message: SourceCodeInfo, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo; | ||
fromJSON(object: any): SourceCodeInfo; | ||
@@ -1143,4 +1143,4 @@ toJSON(message: SourceCodeInfo): unknown; | ||
export declare const SourceCodeInfo_Location: { | ||
encode(message: SourceCodeInfo_Location, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location; | ||
encode(message: SourceCodeInfo_Location, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): SourceCodeInfo_Location; | ||
fromJSON(object: any): SourceCodeInfo_Location; | ||
@@ -1152,4 +1152,4 @@ toJSON(message: SourceCodeInfo_Location): unknown; | ||
export declare const GeneratedCodeInfo: { | ||
encode(message: GeneratedCodeInfo, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo; | ||
encode(message: GeneratedCodeInfo, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo; | ||
fromJSON(object: any): GeneratedCodeInfo; | ||
@@ -1161,4 +1161,4 @@ toJSON(message: GeneratedCodeInfo): unknown; | ||
export declare const GeneratedCodeInfo_Annotation: { | ||
encode(message: GeneratedCodeInfo_Annotation, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; | ||
encode(message: GeneratedCodeInfo_Annotation, writer?: BinaryWriter): BinaryWriter; | ||
decode(input: BinaryReader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation; | ||
fromJSON(object: any): GeneratedCodeInfo_Annotation; | ||
@@ -1165,0 +1165,0 @@ toJSON(message: GeneratedCodeInfo_Annotation): unknown; |
{ | ||
"name": "ts-proto-descriptors", | ||
"version": "1.16.0", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -15,9 +15,9 @@ "repository": "github:stephenh/ts-proto", | ||
"dependencies": { | ||
"long": "^5.2.3", | ||
"protobufjs": "^7.2.4" | ||
"@bufbuild/protobuf": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ts-proto": "^1.175.1", | ||
"ts-proto": "^2.0.0", | ||
"typescript": "^5.1.3" | ||
} | ||
}, | ||
"packageManager": "yarn@3.6.0" | ||
} |
Sorry, the diff of this file is too big to display
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
279885
1
11
6935
+ Added@bufbuild/protobuf@^2.0.0
+ Added@bufbuild/protobuf@2.2.2(transitive)
- Removedlong@^5.2.3
- Removedprotobufjs@^7.2.4
- Removed@protobufjs/aspromise@1.1.2(transitive)
- Removed@protobufjs/base64@1.1.2(transitive)
- Removed@protobufjs/codegen@2.0.4(transitive)
- Removed@protobufjs/eventemitter@1.1.0(transitive)
- Removed@protobufjs/fetch@1.1.0(transitive)
- Removed@protobufjs/float@1.0.2(transitive)
- Removed@protobufjs/inquire@1.1.0(transitive)
- Removed@protobufjs/path@1.1.2(transitive)
- Removed@protobufjs/pool@1.1.0(transitive)
- Removed@protobufjs/utf8@1.1.0(transitive)
- Removed@types/node@22.9.0(transitive)
- Removedlong@5.2.3(transitive)
- Removedprotobufjs@7.4.0(transitive)
- Removedundici-types@6.19.8(transitive)