
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@halo-dev/api-client
Advanced tools
Halo 2.0 的 JavaScript API 客户端请求库。使用 OpenAPI Generator 生成。
import {
coreApiClient,
consoleApiClient,
ucApiClient,
publicApiClient,
createCoreApiClient,
createConsoleApiClient,
createUcApiClient,
createPublicApiClient,
axiosInstance,
} from "@halo-dev/api-client";
pnpm install @halo-dev/api-client axios
由于已经在 Console 和 UC 项目中引入并设置好了 Axios 拦截器,所以直接使用即可:
import { coreApiClient } from "@halo-dev/api-client";
coreApiClient.content.post.listPost().then((response) => {
// handle response
});
此外,在最新的 @halo-dev/ui-plugin-bundler-kit@2.17.0 中,已经排除了 @halo-dev/api-client、axios 依赖,所以最终产物中的相关依赖会自动使用 Halo 本身提供的依赖,无需关心最终产物大小。
详细文档可查阅:插件开发 / API 请求
pnpm install @halo-dev/api-client axios
import axios from "axios";
const axiosInstance = axios.create({
baseURL: "http://localhost:8090",
});
const coreApiClient = createCoreApiClient(axiosInstance);
coreApiClient.content.post.listPost().then((response) => {
// handle response
});
FAQs
API Client for Halo 2
The npm package @halo-dev/api-client receives a total of 1,019 weekly downloads. As such, @halo-dev/api-client popularity was classified as popular.
We found that @halo-dev/api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.