
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
@dalisoft/as-batch
Advanced tools
Convert many calls into batches
Mostly use this for solving 1+N (N+1) problem
// ES6
import asBatch from "@dalisoft/as-batch";
// or
// CommonJS
const asBatch = require("@dalisoft/as-batch");
// or
const asBatch = window.asBatch;
const calling = new asBatch({
onCallsTimeout: async calls => {
await timeout(2000);
return await Promise.all(calls);
}
});
// No await calling, because await blocks caching and this not works effectively
// Also available other ways, see tests and i'm happy your PR for examples
// Just i don't have time to create examples
calling
.call(
async () => {
return requestWithSomeLib('[endpoint]/posts);
},
responses => responses.find(response => response.src === '/posts').posts
)
.then(posts =>
console.log('see posts', posts)
);
For more info see tests.
.register method as useful for query and/or something similar.register method and callback when within specified delay no calls happen, this callback will be fired.call method and callback when within specified delay no calls happen, this callback will be fired.register(key?: string | Function, value?: string | Function, resolve?: Function): Promise | CacheResult | AnyRegisters anything and then call onRegisterTimeout if no again calling this method within specified delay
.call(key?: string | Function, value?: string | Function, resolve?: Function): Promise | CacheResult | AnyReturns the cached call within specified delay
.fetchRegistered(): Promise | AnyFetchs registered caches from .register method
.delete(key: string)Removes the callback from cache
.clear()Clear cache instance to be empty
MIT
FAQs
Convert many calls into batches
We found that @dalisoft/as-batch 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.