Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
grpc-web-service-generator
Advanced tools
Wrapper service over base grpc-web.
$ yarn add grpc-web-service-generator
$ yarn grpc-web-service-generator --proto-file=./proto/rpc.proto --output-dir=./proto --skip-grpc-service
$ yarn grpc-web-service-generator --proto-file=./proto/rpc.proto --output-dir=./services/GrpcService
--proto-file
- path to main proto.--output-dir
- dir path for generated code.--skip-grpc-service
- disabling generation GrpcService (special for server-side)// rpc.proto
syntax = "proto3";
package RpcPackage;
service TodoService {
rpc AddTodo() returns () {}
}
import { GrpcService } from './GrpcService';
const grpcService = new GrpcService('http://localhost:8080');
grpcService.TodoService.AddTodo({}).then(response => ...)
import { GrpcService } from './GrpcService';
const grpcService = new GrpcService('http://localhost:8080');
grpcService.RpcPackage.TodoService.AddTodo({}).then(response => ...)
const updateGrpcServiceAccessToken = async () => {
storedAccessToken = await grpcService.AuthService.GetAccessToken();
console.log('updateGrpcServiceAccessToken', storedAccessToken);
grpcService.setAccessToken(storedAccessToken);
};
grpcService.interceptors.errors.push((e) => {
if (e === 'INVALID_TOKEN') {
return updateGrpcServiceAccessToken();
} else {
return Promise.resolve();
}
});
FAQs
gRPC-Web Service Generator
The npm package grpc-web-service-generator receives a total of 13 weekly downloads. As such, grpc-web-service-generator popularity was classified as not popular.
We found that grpc-web-service-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.