
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
wps-airscript-router
Advanced tools
WPS AirScript路由应用框架,适用于复杂的webhook调用。
npm install --save wps-airscript-router
import AppFactory from 'wps-airscript-router'
// 统一配置路由
const app = AppFactory.createApp([
{ path: 'index', handle: () => 'index response' }
])
// 单独新增路由
app.route('test', () => 'test response')
// 配置默认处理
app.setDefaultHandle(() => 404)
// 配置错误处理
app.setErrorHandle((_error: any) => 500)
const bootstrap = () => {
const { method } = Context.argv;
const handle = app.getHandle(method);
return handle();
}
export default bootstrap()
const app = AppFactory.createApp()
// 定义一条路由
app.route('index', () => 'index response')
// path是http调用webhook时传入的body参数
const { path } = Context.argv;
const handle = app.getHandle(path);
// return保证http调用webhook有返回值
return handle();
FAQs
一个简单的WPS AirScript应用框架,尤其适用于Webhook调用场景。
The npm package wps-airscript-router receives a total of 9 weekly downloads. As such, wps-airscript-router popularity was classified as not popular.
We found that wps-airscript-router 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
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.