
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@142vip/egg
Advanced tools
Egg.js框架二次封装,提供常用工具,约定开发规范
# npm
npm i @142vip/egg
# pnpm
pnpm i @142vip/egg
以注册@142vip/egg-axios插件为例:
class EggAxiosAgentBoot extends EggPluginBoot {
constructor(app) {
super({
pluginName: RegisterEggPluginName.EGG_AXIOS,
appOrAgent: app,
createEggPluginInstance: createEggAxiosInstance,
})
}
}
module.exports = EggAxiosAgentBoot
以合并插件配置为例:
const { mergeConfig } = require('@142vip/egg')
const defaultConfig = {
axios: {
baseURL: 'https://api.142vip.com',
},
}
const pluginConfig = {
axios: {
baseURL: 'https://api.142vip.com/v2',
},
}
const config = mergeConfig(defaultConfig, pluginConfig)
Copyright (c) 2019-present, @142vip 储凡
仅供学习参考,商业使用请保留作者版权信息,作者不保证也不承担任何软件的使用风险。
FAQs
Egg.js框架二次封装,提供常用工具,约定开发规范
The npm package @142vip/egg receives a total of 8 weekly downloads. As such, @142vip/egg popularity was classified as not popular.
We found that @142vip/egg 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.