New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chaosrouter

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chaosrouter - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

testscope.js~

34

chaosrouter.js

@@ -93,15 +93,4 @@

function getDirectives(data) {
var directives = {};
for (var k in data) {
if (k.indexOf(ChaosRouter.directivePrefix) === 0) {
directives[k.slice(2)] = data[k];
delete data[k];
}
}
return directives;
}
var directives = {};
var validates = [];
var validateKey = ChaosRouter.directivePrefix+'validate';
var validates = data[validateKey] || [];
for (var i in segs) {

@@ -145,11 +134,20 @@ var seg = segs[i];

}
// Attach the parent validations to this layer
if(directives.validate) {
data['#_validate'] = directives.validate.concat( data['#_validate'] || [] );
}
directives = getDirectives(data);
// Add this level's validates to validations list
if(data[validateKey])
validates.splice(validates.length-1, 0, data[validateKey]);
}
last_seg = seg;
}
var directives = {};
for (var k in data) {
if (k.indexOf(ChaosRouter.directivePrefix) === 0) {
var name = k.slice(ChaosRouter.directivePrefix.length);
directives[name] = data[k];
delete data[k];
}
}
if (directives['base'] === undefined)

@@ -156,0 +154,0 @@ var config = extend({}, data);

{
"name": "chaosrouter",
"version": "0.2.8",
"version": "0.2.9",
"description": "ERROR: No README data found!",

@@ -5,0 +5,0 @@ "main": "chaosrouter.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc