
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@micro-zoe/micro-plugin-map
Advanced tools
微前端 Micro-app 地图插件,适配高德、百度、腾讯地图 🎉🎉🎉
Installation
# with npm
npm install @micro-zoe/micro-plugin-map --save-dev
# with yarn
yarn add @micro-zoe/micro-plugin-map --dev
Usage we use the package like this step:
1、主用,在入口处安装对应地图的sdk
https://webapi.amap.com/maps?v=2.0&key=xxxxxx
https://map.qq.com/api/gljs?v=1.exp&key=xxxxxx
https://api.map.baidu.com/api?type=webgl&v=1.0&ak=xxxxxx
2、在主应用中,使用该包
import microApp from '@micro-zoe/micro-app'
import microPluginMap from '@micro-zoe/micro-plugin-map'
// 设置为全局插件,作用于所有子应用
microApp.start({
plugins: {
global: [microPluginMap],
}
})
// 或者设置为某个子应用的插件,只作用于当前子应用
microApp.start({
plugins: {
modules: {
'appName': [microPluginMap],
}
}
})
目前插件目前仅在with沙箱下适用
插件以umd同步的方式引入sdk,异步加载的方式暂不支持
高德地图的不存在跨域问题,可以不用进行任何操作,高德地图若设置了使用白名单,需将白名单范围囊括主应用域名
腾讯地图,使用时候只是常规的跨越,用此插件进行常规使用即可,腾讯地图若设置了使用白名单,需将白名单范围囊括主应用域名
百度地图,使用时有跨域问题,可用此插件进行处理,百度地图若设置了使用白名单,需将白名单范围囊括主应用域名
micro-plugin-map 源码地址:https://github.com/micro-zoe/micro-plugin-map
# with npm
npm install @micro-zoe/micro-plugin-map --save-dev
# with yarn
yarn add @micro-zoe/micro-plugin-map --dev
FAQs
micro-app plugin for map
The npm package @micro-zoe/micro-plugin-map receives a total of 1 weekly downloads. As such, @micro-zoe/micro-plugin-map popularity was classified as not popular.
We found that @micro-zoe/micro-plugin-map demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.