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.
typescript-rest-ioc
Advanced tools
A Typescript-Rest Service Factory to integrate it wit typescript-ioc.
After install Typescript-Rest, install the IoC container and the serviceFactory for the IoC Container
npm install typescript-rest --save
npm install typescript-ioc --save
npm install typescript-rest-ioc --save
Then add a rest.config file in the root of your project:
{
"serviceFactory": "typescript-rest-ioc"
}
And you can use Injections, Request scopes and all the features of the IoC Container. It is possible to use it with any other IoC Container, like Inversify.
Example:
class HelloService {
sayHello(name: string) {
return "Hello " + name;
}
}
@Path("/hello")
class HelloRestService {
@Inject
private helloService: HelloService;
@Path(":name")
@GET
sayHello( @PathParam('name') name: string): string {
return this.helloService.sayHello(name);
}
}
FAQs
A Typescript-Rest Service Factory to integrate it wit typescript-ioc.
The npm package typescript-rest-ioc receives a total of 2,388 weekly downloads. As such, typescript-rest-ioc popularity was classified as popular.
We found that typescript-rest-ioc 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.