Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
asynccallguard
Advanced tools
Make all calls to a function queued and asynchronously guarded
Install the module with: npm install asynccallguard
var AsyncCallGuard = require('asynccallguard');
var w = 100;
var f = function(){console.log(Array.prototype.slice.call(arguments));};
var f2 = AsyncCallGuard(f, function MyGuard(fcall){
//
// ... Some complex logic here...
//
w *= 2;
console.log('MyGuard was called, waiting for '+w+'ms before running f');
setTimeout(fcall, w);
});
// Make multiple calls
f2();
f2(1,2);
f2(3,4);
f2(5,6,7);
// Produce:
// MyGuard was called, waiting for 200ms before running f
// []
// MyGuard was called, waiting for 400ms before running f
// [ 1, 2 ]
// MyGuard was called, waiting for 800ms before running f
// [ 3, 4 ]
// MyGuard was called, waiting for 1600ms before running f
// [ 5, 6, 7 ]
v1.0.0 - Initial commit (13 apr. 2012)
Copyright (c) 2013 Francois-Guillaume Ribreau Licensed under the MIT license.
FAQs
Make all calls to a function queued and asynchronously guarded
The npm package asynccallguard receives a total of 0 weekly downloads. As such, asynccallguard popularity was classified as not popular.
We found that asynccallguard 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.