
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
dora-plugin-proxy
Advanced tools
[](https://npmjs.org/package/dora-plugin-proxy) [](https://travis-ci.org/dora-js/dora-plugi
Proxy plugin for dora.
$ npm i dora dora-plugin-proxy -SD
$ ./node_modules/.bin/dora --plugins proxy
代理服务器端口号。
定义哪些目录下的规则定义可以实时刷新。
目录监听延迟,默认:300 毫秒。
在项目目录新增 proxy.config.js 可定制 proxy 规则。
样例:
module.exports = {
// Forward 到另一个服务器
'GET https://assets.daily/*': 'https://assets.online/',
// Forward 到另一个服务器,并指定路径
'GET https://assets.daily/*': 'https://assets.online/v2/',
// Forward 到另一个服务器,不指定来源服务器
'GET /assets/*': 'https://assets.online/',
// Forward 到另一个服务器,并指定子路径
// 请求 /someDir/0.0.50/index.css 会被代理到 https://g.alicdn.com/tb-page/taobao-home, 实际返回 https://g.alicdn.com/tb-page/taobao-home/0.0.50/index.css
'GET /someDir/(.*)': 'https://g.alicdn.com/tb-page/taobao-home',
// 本地文件替换
'GET /local': './local.js',
// Mock 数据返回
'GET /users': [{name:'sorrycc'}, {name:'pigcan'}],
'GET /users/1': {name:'jaredleechn'},
// Mock 数据,基于 mockjs
'GET /users': require('mockjs').mock({
success: true,
data: [{name:'@Name'}],
}),
// 通过自定义函数替换请求
'/custom-func/:action': function(req, res) {
// req 和 res 的设计类 express,http://expressjs.com/en/api.html
//
// req 能取到:
// 1. params
// 2. query
// 3. body
//
// res 有以下方法:
// 1. set(object|key, value)
// 2. type(json|html|text|png|...)
// 3. status(200|404|304)
// 4. json(jsonData)
// 5. jsonp(jsonData[, callbackQueryName])
// 6. end(string|object)
//
// 举例:
res.json({
action: req.params.action,
query: req.query,
});
},
};
FAQs
[](https://npmjs.org/package/dora-plugin-proxy) [](https://travis-ci.org/dora-js/dora-plugi
The npm package dora-plugin-proxy receives a total of 34 weekly downloads. As such, dora-plugin-proxy popularity was classified as not popular.
We found that dora-plugin-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.