
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.
@samhammer/vue-middleware-pipelines
Advanced tools
Possibility to add middleware logic to the vue router This package contains the routing logic of Dotunj. For more details see https://github.com/Dotunj/vue-middleware-pipelines
Register Middleware in router:
import routerMiddleware from './routerMiddleware';
...
routerMiddleware.registerMiddleware(router, AuthStore);
Write a function to set the next route (e.g. in a new module called authMiddleware):
import { Context } from '@samhammer/vue-middleware-pipelines';
export default function authMiddleware(context: Context): void {
if (!context.store.getters.auth.isLoggedIn) {
return context.next({
name: 'login',
});
}
return context.next();
}
Add middleware to route:
import authMiddleware from './authMiddleware';
...
routes: [
...
{
path: '/agentchat',
name: 'agentchat',
component: () => import('@/views/AgentChat.vue'),
meta: {
middleware: [
authMiddleware,
],
},
},
...
]
For publishing an npm account that is referenced to the organization is required.
See the following how to:
https://yarnpkg.com/en/docs/publishing-a-package
https://docs.npmjs.com/getting-started/publishing-npm-packages
If everything is configured correctly just count up the version number in our package.json and execute one of the following commands:
yarn run build
yarn publish
npm run build
npm publish --access public
vue-middleware-pipelines is released under the MIT License. See LICENSE file for details.
FAQs
possibility to add middleware logic to the vue router
We found that @samhammer/vue-middleware-pipelines demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
/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.