ts-proto-descriptors
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -1,2 +0,2 @@ | ||
import * as _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal"; | ||
import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor"; | ||
@@ -3,0 +3,0 @@ /** The version number of protocol compiler. */ |
"use strict"; | ||
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 = require("long"); | ||
const _m0 = require("protobufjs/minimal"); | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const descriptor_1 = require("../descriptor"); | ||
@@ -46,3 +49,3 @@ /** Sync with code_generator.h. */ | ||
exports.Version = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.major !== 0) { | ||
@@ -72,3 +75,3 @@ writer.uint32(8).int32(message.major); | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -156,3 +159,3 @@ const message = Object.create(createBaseVersion()); | ||
exports.CodeGeneratorRequest = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
for (const v of message.fileToGenerate) { | ||
@@ -182,3 +185,3 @@ writer.uint32(10).string(v); | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -281,3 +284,3 @@ const message = Object.create(createBaseCodeGeneratorRequest()); | ||
exports.CodeGeneratorResponse = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.error !== "") { | ||
@@ -304,3 +307,3 @@ writer.uint32(10).string(message.error); | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -384,3 +387,3 @@ const message = Object.create(createBaseCodeGeneratorResponse()); | ||
exports.CodeGeneratorResponse_File = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.name !== "") { | ||
@@ -410,3 +413,3 @@ writer.uint32(10).string(message.name); | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -517,7 +520,5 @@ const message = Object.create(createBaseCodeGeneratorResponse_File()); | ||
} | ||
// If you get a compile-error about 'Constructor<Long> and ... have no overlap', | ||
// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'. | ||
if (_m0.util.Long !== Long) { | ||
_m0.util.Long = Long; | ||
_m0.configure(); | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
} | ||
@@ -524,0 +525,0 @@ function isSet(value) { |
@@ -1,2 +0,2 @@ | ||
import * as _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal"; | ||
/** | ||
@@ -3,0 +3,0 @@ * The protocol compiler can output a FileDescriptorSet containing the .proto |
{ | ||
"name": "ts-proto-descriptors", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "", | ||
@@ -15,3 +15,3 @@ "repository": "github:stephenh/ts-proto", | ||
"dependencies": { | ||
"long": "^4.0.0", | ||
"long": "^5.0.0", | ||
"protobufjs": "^7.2.4" | ||
@@ -18,0 +18,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
262517
6153
- Removedlong@4.0.0(transitive)
Updatedlong@^5.0.0