Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@aptos-labs/aptos-client
Advanced tools
Readme
This package implements a client with which you can interact with the Aptos network. It can be used standalone, and it is the client package used by the Aptos TypeScript SDK.
The @aptos-labs/aptos-client
package supports http2 protocol and implements 2 clients environment based:
index.browser.ts
to use in browser
environment (in a browser env it is up to the browser and the server to negotiate http2 connection)index.node.ts
to use in node
environment (to support http2 in node environment, still the server must support http2 also)async function aptosClient<Res>(requestOptions: AptosClientRequest): Promise<AptosClientResponse<Res>>;
type AptosClientResponse<Res> = {
status: number;
statusText: string;
data: Res;
config?: any;
request?: any;
response?: any;
headers?: any;
};
type AptosClientRequest = {
url: string;
method: "GET" | "POST";
body?: any;
params?: any;
headers?: any;
overrides?: any;
};
import aptosClient from "@aptos-labs/aptos-client";
const response = await aptosClient<Res>({ url, method, body, params, headers, overrides });
return response;
FAQs
client package for accessing the Aptos network API
The npm package @aptos-labs/aptos-client receives a total of 18,590 weekly downloads. As such, @aptos-labs/aptos-client popularity was classified as popular.
We found that @aptos-labs/aptos-client 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.