
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.
@pendant/api
Advanced tools
api快速请求 CODING OPEN API
import { setConfig, fetchApi } from '@pendant/api';
setConfig({ clientId: '1234565' });
const ProjectListDemo = () => {
const [describeCodingProjects, setDescribeCodingProjects] = useState({});
const { response, error } = describeCodingProjects;
useEffect(() => {
fetchApi('DescribeCodingProjects', query).then((res) => setDescribeCodingProjects(res));
}, [])
if (error || response?.Error) {
return <>获取数据错误</>
}
if (response?.Data?.ProjectList instanceof Array) {
return response?.Data?.ProjectList.map(project => <div>{project.Name}<div>)
}
return <>loading</>;
}
export default ProjectListDemo;
设置 api 的配置
{
clientId: string;
fetch?: Parameters<typeof fetch>;
}
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| clientId | 客户端 ID | string | - |
| fetch | fetch 的默认参数[RequestInfo | URL, { headers: RequestInit['headers'] }],在发送请求的时候会合并到 参数里面。 | Parameters | - |
fetchApi('DescribeCodingProjects', query).then((res) => console.log(res));
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| action | 需要调用的业务 id | string | - |
| query | 请求参数 | Object | - |
获取应用的上下文信息
const { accessToken, apiUrl } = await getContext();
FAQs
> TODO: description
We found that @pendant/api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.