Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ddadaal/tsgrpc
Advanced tools
A minimal Node.JS TypeScript gRPC Server framework.
npm install --save @ddadaal/tsgrpc
module augmentation
to provide type information to all plugins in the projectasync
function as handleUnaryCall
test_${JEST_WORKER_ID}
=> test_${process.env.JEST_WORKER_ID}
)unpromisify
: write server implementation as async functionasyncClientCall
: calling grpc client as promise. Throws if client call causes error.ensureNotUndefined
: check fields that must not be undefined. Return type has checked fields required!Create tsgrpc.json
with the following content to specify paths to proto files
{
"protos": [
{
"path": "../protos",
"name": "billing"
},
{
"path": "../../management/protos",
"name": "management"
}
]
}
All paths are relative to pwd. The name
field will be used as the name of the sub directory containing files of the protos.
Run npx tsgrpc protos
, and the files will be generated to src/generated/${name of the proto}
MIT
FAQs
A simple gRPC Server Framework for TypeScript Node.js
The npm package @ddadaal/tsgrpc receives a total of 0 weekly downloads. As such, @ddadaal/tsgrpc popularity was classified as not popular.
We found that @ddadaal/tsgrpc 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.