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.1 to 0.4.2

12

CHANGELOG.md

@@ -0,1 +1,13 @@

## [0.4.2](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.4.1...v0.4.2) (2020-01-10)
### Bug Fixes
* use proper path for service client config imports in sub-directories ([d47cdb1](https://github.com/ngx-grpc/protoc-gen-ng/commit/d47cdb1b3e75d1c90f8df0ec9623ea6638b1f1b7))
### Features
* add `implements GrpcMessage` for every message class ([4b617a4](https://github.com/ngx-grpc/protoc-gen-ng/commit/4b617a4b91d451cb035c4ea5912ea6b73673f34a))
## [0.4.1](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.4.0...v0.4.1) (2020-01-10)

@@ -2,0 +14,0 @@

4

dist/output/message.js

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

Message.prototype.print = function (printer) {
printer.addDeps(dependencies_1.ExternalDependencies.BinaryReader, dependencies_1.ExternalDependencies.BinaryWriter, dependencies_1.ExternalDependencies.ByteSource);
printer.addLine("export class " + this.message.name + " {\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 ");
printer.addDeps(dependencies_1.ExternalDependencies.BinaryReader, dependencies_1.ExternalDependencies.BinaryWriter, dependencies_1.ExternalDependencies.ByteSource, dependencies_1.ExternalDependencies.GrpcMessage);
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 ");
if (this.message.name === 'Timestamp' && this.proto.pb_package === 'google.protobuf') {

@@ -63,0 +63,0 @@ this.printTimestampStaticMethods(printer);

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

InjectionToken: new Dependency('@angular/core', 'InjectionToken'),
GrpcMessage: new Dependency('@ngx-grpc/core', 'GrpcMessage'),
GrpcCallType: new Dependency('@ngx-grpc/core', 'GrpcCallType'),

@@ -17,0 +18,0 @@ GrpcClient: new Dependency('@ngx-grpc/core', 'GrpcClient'),

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var path_1 = require("path");
var enum_1 = require("./enum");

@@ -23,3 +24,4 @@ var message_1 = require("./message");

if (serviceClientConfigs.length) {
printer.add("import {" + serviceClientConfigs.map(function (scc) { return scc.getTokenName(); }).join(',') + "} from './" + this.proto.getGeneratedFileBaseName() + "conf';");
var fileName = path_1.basename(this.proto.getGeneratedFileBaseName());
printer.add("import {" + serviceClientConfigs.map(function (scc) { return scc.getTokenName(); }).join(',') + "} from './" + fileName + "conf';");
}

@@ -26,0 +28,0 @@ this.proto.enumTypeList.forEach(function (protoEnum) {

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

@@ -33,28 +33,28 @@ "license": "MIT",

"devDependencies": {
"@angular/core": "^8.2.13",
"@ngx-grpc/core": "0.0.1",
"@semantic-release/changelog": "^3.0.5",
"@angular/core": "^8.2.14",
"@ngx-grpc/core": "^0.1.3",
"@semantic-release/changelog": "^3.0.6",
"@semantic-release/commit-analyzer": "^6.3.3",
"@semantic-release/git": "^7.0.18",
"@semantic-release/npm": "^5.3.4",
"@semantic-release/release-notes-generator": "^7.3.3",
"@semantic-release/npm": "^5.3.5",
"@semantic-release/release-notes-generator": "^7.3.5",
"@types/google-protobuf": "^3.7.2",
"@types/jasmine": "^3.4.6",
"@types/jest": "^24.0.22",
"@types/node": "^12.12.6",
"@types/prettier": "^1.18.3",
"@typescript-eslint/eslint-plugin": "^2.6.1",
"@typescript-eslint/parser": "^2.6.1",
"acorn": "^6.3.0",
"eslint": "^6.6.0",
"@types/jasmine": "^3.5.0",
"@types/jest": "^24.0.25",
"@types/node": "^12.12.24",
"@types/prettier": "^1.19.0",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"acorn": "^6.4.0",
"eslint": "^6.8.0",
"eslint-plugin-deprecate": "^0.7.0",
"google-protobuf": "^3.10.0",
"grpc-web": "^1.0.6",
"google-protobuf": "^3.11.2",
"grpc-web": "^1.0.7",
"jest": "^24.9.0",
"nodemon": "^1.19.4",
"rimraf": "^3.0.0",
"rxjs": "^6.5.3",
"semantic-release": "^15.13.31",
"ts-jest": "^24.1.0",
"typescript": "^3.7.2"
"rxjs": "^6.5.4",
"semantic-release": "^15.14.0",
"ts-jest": "^24.3.0",
"typescript": "^3.7.4"
},

@@ -61,0 +61,0 @@ "dependencies": {

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