
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
r3b-promise
Advanced tools
A very minimal Promise implementation. Creates a simple deferred object with utility methods for sequential or parallel execution. that's it.
var Promise= require('r3b-promise');
function asyncTask(options, callback){
//do something
callback();
}
function postProcessingTask(err, result){
//process
}
function process(options){
var p = new Promise();
asyncTask(options, function(err, result){
p.done(err, result);
}
return p;
}
function run(){
process({}).then(postProcessingTask);
}
function runInParallel(){
Promise.join([
asyncTask({property:'value1'}),
asyncTask({property:'value2'}),
asyncTask({property:'value3'}),
]).then(function(errors, results){
errors.forEach(function(err){
//handle error
});
results.forEach(function(result){
//handle result
});
});
}
function step(err, data){
var p = new Promise();
passItOn(function(err, result){
p.done(err, result);
}
return p;
}
function runInSequence(){
Promise.chain([
step({property:'value1'}),
step({property:'value2'}),
step({property:'value3'}),
]);
}
FAQs
A minimal promise implementation
The npm package r3b-promise receives a total of 0 weekly downloads. As such, r3b-promise popularity was classified as not popular.
We found that r3b-promise 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.