
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
datahub-proxy-middleware
Advanced tools
datahub proxy middleware
xudafeng | zivyangll | Chan-Chun | zhangyuheng | zhuyali |
|---|
This project follows the git-contributor spec, auto updated at Thu Mar 18 2021 13:45:58 GMT+0800.
$ npm i datahub-proxy-middleware --save-dev
const datahubMiddleware = require('datahub-proxy-middleware');
const datahubConfig = {
proxy: {
'/api': {
hub: 'project_name',
port: 8080,
hostname: 'localhost',
pathOptions: {
start: true
}
},
},
};
datahubMiddleware(app)(datahubConfig);
notice version 6 has a break change that needs special attention, see more details.
const path = require('path');
const DataHub = require('macaca-datahub');
const datahubMiddleware = require('datahub-proxy-middleware');
// datahub config
// document: https://github.com/macacajs/macaca-datahub#configuration
const datahubConfig = {
port: 5678,
hostname: '127.0.0.1',
pathOptions: {
start: true,
end: false
},
store: path.join(__dirname, '..', 'data'),
proxy: {
'/api': {
hub: 'sample',
},
},
showBoard: true,
};
const defaultDatahub = new DataHub({
port: datahubConfig.port,
});
// devServer field
devServer: {
before: app => {
datahubMiddleware(app)(datahubConfig);
},
after: () => {
defaultDatahub.startServer(datahubConfig).then(() => {
console.log('datahub ready');
});
},
},
showBoard will inject debugger-board
The MIT License (MIT)
FAQs
datahub proxy middleware
The npm package datahub-proxy-middleware receives a total of 3,270 weekly downloads. As such, datahub-proxy-middleware popularity was classified as popular.
We found that datahub-proxy-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.