Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@colucom/osseus-moleculerweb
Advanced tools
$ npm install @colucom/osseus-moleculerweb
This module creates new moleculer-web service: apiGateway, as each moleculer service , actions, methods , hooks & events can be added. The routes & started event function are mandatory for the operation of the service. see details below
const OsseusMoleculerWeb = require('@colucom/osseus-moleculerweb')
const moleculer = await OsseusMoleculerWeb.init(osseus)
const broker = moleculer.broker //Moleculer Service Broker Instance
const apiGatewayService = moleculer.service // Moleucler-Web ApiGateway Service
To make the moleculer-web Api Gateway module to function there must be configurations added.
OSSEUS_MOLECULER_WEB_ROUTES_PATH: 'Custom Path'
The moleculer-web scheme need to recieve an array of route functions , according to the moleculer-web documentation.
./broker/routes
.OSSEUS_MOLECULER_WEB_STARTED_EVENT_HANDLER_PATH: 'Custom Path'
./broker/events
.OSSEUS_MOLECULER_WEB_MIDDLEWARES_PATH
OSSEUS_MOLECULERWEB_ACTIONS_PATH
OSSEUS_MOLECULERWEB_SHOULD_LOAD_ACTIONS: true,
, and then add the whising path to the actions object.OSSEUS_MOLECULERWEB_HOOKS_PATH
OSSEUS_MOLECULERWEB_SHOULD_LOAD_HOOKS: true,
, and then add the whising path to the actions object.OSSEUS_MOLECULERWEB_METHODS_PATH
OSSEUS_MOLECULERWEB_SHOULD_LOAD_METHODS: true,
, and then add the whising path to the actions object.OSSEUS_MOLECULERWEB_EVENTS_PATH
OSSEUS_MOLECULERWEB_SHOULD_LOAD_EVENTS: true,
, and then add the whising path to the actions object.Please see contributing guidelines.
Code released under the MIT License. `
FAQs
Osseus moleculer-web(API Gateway) service module.
We found that @colucom/osseus-moleculerweb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.