Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@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/libraries
cd ./libraries
yarn install
The 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 25 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 0 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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.