New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ngx-grpc/protoc-gen-ng

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-grpc/protoc-gen-ng - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [0.4.3](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.4.2...v0.4.3) (2020-01-13)
### Features
* use RecursivePartial for message constructor input ([5b1be75](https://github.com/ngx-grpc/protoc-gen-ng/commit/5b1be750d8b5cf0a1b0a76cafc33dfb08fdb251d))
## [0.4.2](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.4.1...v0.4.2) (2020-01-10)

@@ -2,0 +9,0 @@

4

dist/output/message.js

@@ -59,3 +59,3 @@ "use strict";

Message.prototype.print = function (printer) {
printer.addDeps(dependencies_1.ExternalDependencies.BinaryReader, dependencies_1.ExternalDependencies.BinaryWriter, dependencies_1.ExternalDependencies.ByteSource, dependencies_1.ExternalDependencies.GrpcMessage);
printer.addDeps(dependencies_1.ExternalDependencies.BinaryReader, dependencies_1.ExternalDependencies.BinaryWriter, dependencies_1.ExternalDependencies.ByteSource, dependencies_1.ExternalDependencies.GrpcMessage, dependencies_1.ExternalDependencies.RecursivePartial);
printer.addLine("export class " + this.message.name + " implements GrpcMessage {\n\n static toBinary(instance: " + this.message.name + ") {\n const writer = new BinaryWriter();\n " + this.message.name + ".toBinaryWriter(instance, writer);\n return writer.getResultBuffer();\n }\n\n static fromBinary(bytes: ByteSource) {\n const instance = new " + this.message.name + "();\n " + this.message.name + ".fromBinaryReader(instance, new BinaryReader(bytes));\n return instance;\n }\n ");

@@ -135,3 +135,3 @@ if (this.message.name === 'Timestamp' && this.proto.pb_package === 'google.protobuf') {

printer.addLine(jsdoc.toString());
printer.addLine("constructor(value?: Partial<" + this.message.name + ">) {");
printer.addLine("constructor(value?: RecursivePartial<" + this.message.name + ">) {");
printer.addLine('value = value || {};');

@@ -138,0 +138,0 @@ this.messageFields.forEach(function (f) {

@@ -20,2 +20,3 @@ "use strict";

GrpcHandler: new Dependency('@ngx-grpc/core', 'GrpcHandler'),
RecursivePartial: new Dependency('@ngx-grpc/core', 'RecursivePartial'),
BinaryReader: new Dependency('google-protobuf', 'BinaryReader'),

@@ -22,0 +23,0 @@ BinaryWriter: new Dependency('google-protobuf', 'BinaryWriter'),

{
"name": "@ngx-grpc/protoc-gen-ng",
"version": "0.4.2",
"version": "0.4.3",
"author": "smnbbrv",

@@ -34,3 +34,3 @@ "license": "MIT",

"@angular/core": "^8.2.14",
"@ngx-grpc/core": "^0.1.3",
"@ngx-grpc/core": "^0.1.4",
"@semantic-release/changelog": "^3.0.6",

@@ -37,0 +37,0 @@ "@semantic-release/commit-analyzer": "^6.3.3",

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