
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
基于AMap高德地图构建的API加载器。
# 通过 npm 安装
npm i amap-js -S
# 通过 yarn 安装
yarn add amap-js
import AMapJS from 'amap-js';
// or
// import { AMapLoader, AMapUILoader, LocaLoader, ... } from 'amap-js';
// 创建AMapLoader
const loader = new AMapJS.AMapLoader({
key: '您申请的高德Key值',
version: '2.0',
plugins: [],
});
// 调用 load 方法完成加载并调用执行回调。
loader
.load()
.then(() => {
// 加载完成
console.log(AMap);
})
.catch(e => {
// 加载失败
});
AMapJS 支持按需引入、CDN 引入等方式,详细说明见 快速上手.
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|---|---|---|---|---|---|
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 9+ ✔ |
AMapJS 支持 现代浏览器以及所有兼容 ECMAScript 5 的浏览器.
MIT
FAQs
AMap高德地图API加载器。
The npm package amap-js receives a total of 2,692 weekly downloads. As such, amap-js popularity was classified as popular.
We found that amap-js demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.