
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@jacraig/request
Advanced tools
Wrapper around fetch that adds functionality including caching, retry, and timeouts.
@jacraig/request is a powerful yet lightweight library designed to simplify HTTP requests using the native fetch API while adding functionality such as caching, retry logic, and timeouts. It aims to provide developers with a convenient and flexible solution for handling HTTP requests in JavaScript and TypeScript applications.
You can install @jacraig/request via npm:
npm install @jacraig/request
Here's a basic example of how you can use @jacraig/request to make a fetch request:
import { Request } from '@jacraig/request';
let returnValue = await Request.get('https://jsonplaceholder.somewhere.com/post.json').send();
In order to use caching, retry logic, or timeouts, you can use the extra methods on the returned Request object to set options:
import { Request, StorageMode } from '@jacraig/request';
let returnValue = await Request.get('https://jsonplaceholder.somewhere.com/post.json')
.withStorageMode(StorageMode.StorageAndUpdate)
.withTimeout(5000)
.withRetryAttempts(3)
.send();
If you prefer to use callbacks instead of promises, you can do so by passing a callback function to the onSuccess method:
import { Request } from '@jacraig/request';
Request.get('https://jsonplaceholder.somewhere.com/post.json')
.onSuccess((response) => {
console.log(response);
})
.send();
For more detailed information on how to use @jacraig/request, please refer to the documentation on GitHub Pages.
@jacraig/request is licensed under the Apache 2.0 License
FAQs
Wrapper around fetch that adds functionality including caching, retry, and timeouts.
The npm package @jacraig/request receives a total of 174 weekly downloads. As such, @jacraig/request popularity was classified as not popular.
We found that @jacraig/request demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.