
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
RetroJS is a simple HTTP Client for JavaScript that heavily uses ES2016 decorators. Inspired by [Retrofit](http://square.github.io/retrofit/)
RetroJS is a simple HTTP Client for JavaScript that heavily uses ES2016 decorators. Inspired by Retrofit
import * as request from 'request';
import * as RetroJS from 'retrojs';
const {RetroBuilder, RetroClient} = RetroJS;
const {GET, POST, DELETE, PUT, Body, Path, Query} = RetroJS.decorators;
class GithubService {
@GET('users/{user}/repos?sort=pushed')
listRepos( @Path('user') user: string, @Query('type') type: string): RetroJS.ICall<any[]> {
return null;
}
}
// Optional: Use a custom client
const client: RetroJS.IHttpClient = new RetroClient(request.defaults({
headers: {
'User-Agent': 'request'
}
}));
const retro = new RetroBuilder()
.client(client)
.baseUrl('https://api.github.com/')
.build();
// Use the Retro instance to instantiate the class
const githubService = retro.create(GithubService);
const call = githubService.listRepos('benjaminRomano', 'owner');
call.execute().then(result => {
console.log(result.body.length);
});
/* Method Decorators */
@POST('path')
@GET('path')
@DELETE('path')
@PUT('path')
/* Parameter Decorators */
someFunction(@Body body: any);
someFunction(@Query('type') type: string);
someFunction(@Path('user') user: string);
FAQs
Annotation-based Http Client generator
The npm package retrojs receives a total of 6 weekly downloads. As such, retrojs popularity was classified as not popular.
We found that retrojs 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.