
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
grpc-client-egg
Advanced tools
An egg grpc client written in Typescript.
1 install
npm i -S grpc-client-egg
2 include
import { EggPlugin } from 'egg'
const plugin: EggPlugin = {
routerPlus: {
enable: true,
package: 'egg-router-plus',
},
grpcClient: {
enable: true,
package: 'grpc-client-egg',
},
}
export default plugin
3 config
import { EggAppConfig, PowerPartial } from 'egg'
export default () => {
const config: PowerPartial<EggAppConfig> = {
grpcClient: {
clients: [
{
name: 'main',
protoPath: 'app/proto/main',
host: '0.0.0.0',
port: 50051,
},
],
},
}
return config
}
4 invoke promisified grpc service methods
import { Service } from 'egg'
export default class Greeter extends Service {
readonly service: GreeterService = this.app.grpcClient.main.greeter.Greeter
public async sayHello(name: string) {
return this.service.sayHello({ name })
}
public async sayGoodbye(name: string) {
return this.service.sayGoodbye({ name })
}
}
loaderOption: {
keepCase: true,
longs: String,
enums: String,
defaults: true,
oneofs: true,
},
clients: [
{
name: 'main',
protoPath: 'app/proto/main',
host: '0.0.0.0',
port: 50051,
},
],
FAQs
An egg grpc client.
The npm package grpc-client-egg receives a total of 12 weekly downloads. As such, grpc-client-egg popularity was classified as not popular.
We found that grpc-client-egg 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.