
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.
futoin-request
Advanced tools
FutoIn AsyncSteps friendly wrapper of request.
Documentation --> FutoIn Guide
Author: Andrey Galkin
Command line:
$ npm install futoin-request --save
or:
$ yarn add futoin-request --save
The module can be used with webpack or any other CommonJS packer. However, please
ensure to use ES6->ES5 transpilation for older browsers.
Pre-packed UMD module is available in dist/futoin-request.js (stripped ~180KB from over 1MB).
Note: please note that pre-packed dist is heavily stripped of dependencies and most features of request library is not expected to work due not minimal use case in browsers:
You can always use own webpack build.
const $as = require('futoin-asyncsteps');
const $as_request = require('futoin-request');
$as().add((as) => {
// Very basic
$as_request(as, 'https://httpbin.org/get');
as.add((as, rsp, body) => console.log(body));
// As usual
$as_request.post(as, {
url: 'https://httpbin.org/post',
json: {a: 1, b: 2},
});
as.add((as, rsp, body) => console.log(body));
// With callback for request as stream manipulation
$as_request.post(as, {
url: 'https://httpbin.org/post',
headers: { 'content-length': 4 },
}, (req) => req.end('test') );
as.add((as, rsp, body) => console.log(body));
}).execute();
API is absolutely the same as for original request package except that:
(as, rsp, body) => {} must be added instead of result callback.AsyncSteps#error(), if detected.Additional notes:
AsyncSteps#cancel() or timeoutRequestErroras.state.last_exception conventionas.state.last_response is set with response object$as_request global referencewindow.FutoIn.request - browser-only reference to futoin-request module
window.$as_request - browser-only reference to futoin-request module
window.FutoIn.request - browser-only reference to futoin-request module
window.$as_request - browser-only reference to futoin-request module
Kind: global variable
FAQs
AsyncSteps friendly wrapper of 'request' package
The npm package futoin-request receives a total of 16 weekly downloads. As such, futoin-request popularity was classified as not popular.
We found that futoin-request 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.