
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@webileapps/routing-v1
Advanced tools
Recursive payment gateway routing engine and DSL validator.
npm install @webileapps/routing-v1
const { RecursiveRoutingEngine } = require('@webileapps/routing-v1');
const engine = new RecursiveRoutingEngine();
engine.loadRawRules({
rules: [
{
id: 'upi-lumpsum',
name: 'UPI Lumpsum',
conditions: {
transactionType: { operator: 'equals', value: 'Lumpsum' },
paymentMode: { operator: 'equals', value: 'UPI' }
},
gatewayDistribution: [
{ gatewayId: 'PineLabs', percentage: 60 },
{ gatewayId: 'BillDesk', percentage: 40 }
]
}
],
fallbackRule: [{ gatewayId: 'fallback', percentage: 100 }]
});
const result = engine.routePayment({
transactionType: 'Lumpsum',
paymentMode: 'UPI',
amount: 5000,
bank: 'HDFC'
});
console.log(result.selectedGateway);
const { RoutingDSLValidator } = require('@webileapps/routing-v1');
const path = require('path');
// Validate a JSON rules file
const validator = new RoutingDSLValidator(path.join(__dirname, 'rules.json'));
validator.validateConfig(path.join(__dirname, 'rules.json')).then(({ isValid, messages }) => {
console.log(isValid, messages);
});
engine: require('@webileapps/routing-v1/engine')validator: require('@webileapps/routing-v1/validator')schema: require('@webileapps/routing-v1/schema')MIT
FAQs
Recursive payment gateway routing engine and DSL validator
We found that @webileapps/routing-v1 demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.