
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@tenfold/http-client
Advanced tools
This repo exports helper functions to help capture metrics for API requests.
import { getHttpClient, HttpClientOptions, TfHttpClient } from '@tenfold/http-client';
const opts: HttpClientOptions = { statsdConfig: ... }
const httpClient: TfHttpClient = getHttpClient(opts);
httpClient.post(...)
The HttpClientOptions interface for now only has one property: statsdConfig, which represents the configuration object for statsd. See the resources below for statsd docs.
On version v0.5.0 an error interceptor helper was added. The interceptor will handle Axios errors and convert them to Tenfold Api error format (see https://github.com/tenfold/tenfold-api-responses-ts). To use it, you need to:
import { getHttpClient, TfHttpClient, TfErrorHandler } from '@tenfold/http-client';
const httpClient: TfHttpClient = getHttpClient(opts);
httpClient.interceptors.response.use((response: AxiosResponse) => response, TfErrorHandler.createInterceptor(logger));
Where logger is an optional parameter to log errors.
git clone git@github.com:tenfold/librariescd ./librariesyarn installThe source files can be found on the packages/http-client/src folder and the tests can be found on the test folder. Make sure to add tests for all your changes. Also, make sure to create a branch from master to develop your changes.
To run the tests you can simply use the command yarn test. Once you're done with your changes, send a pull request to master and get reviews.
See instructions here
FAQs
Http Client for Tenfold projects
The npm package @tenfold/http-client receives a total of 196 weekly downloads. As such, @tenfold/http-client popularity was classified as not popular.
We found that @tenfold/http-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.