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

swagger-router

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-router - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.idea/.name

13

index.js

@@ -547,2 +547,3 @@ "use strict";

var prevNode;
var permissions = [];
for (var i = 0; i < path.length; i++) {

@@ -553,2 +554,5 @@ if (!node || !node.getChild) {

prevNode = node;
if (node.value && node.value.security) {
permissions = permissions.concat(node.value.security);
}
node = node.getChild(path[i], params);

@@ -563,3 +567,4 @@ }

params: params,
value: (node && node.value || null)
value: (node && node.value || null),
permissions: permissions
};

@@ -581,3 +586,4 @@ } else {

* },
* value: theValue
* value: theValue,
* permissions: [somePermission]
* }

@@ -597,3 +603,4 @@ */

params: res.params,
value: res.value
value: res.value,
permissions: res.permissions
};

@@ -600,0 +607,0 @@ } else {

{
"name": "swagger-router",
"version": "0.1.0",
"version": "0.1.1",
"description": "An efficient swagger 2 based router with support for multiple APIs. For use in RESTBase.",

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

@@ -48,3 +48,4 @@ 'use strict';

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -56,3 +57,4 @@ '/en.wikipedia.org/v1/page/': {

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -64,3 +66,4 @@ '/en.wikipedia.org/v1/page/Foo': {

title: 'Foo'
}
},
permissions: []
},

@@ -74,3 +77,4 @@ // static listing of available formats

title: 'Foo'
}
},
permissions: []
},

@@ -82,3 +86,4 @@ '/en.wikipedia.org/v1/page/Foo/html': {

title: 'Foo'
}
},
permissions: []
},

@@ -90,3 +95,4 @@ '/en.wikipedia.org/v1/transform/html/to/wikitext': {

format: 'wikitext'
}
},
permissions: []
},

@@ -99,3 +105,4 @@ // static listing

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -108,3 +115,4 @@ // static listing, another wiki

domain: 'de.wikipedia.org'
}
},
permissions: []
},

@@ -118,3 +126,4 @@

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -126,3 +135,4 @@ '/en.wikipedia.org/v1/double//': {

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -133,3 +143,4 @@ '/en.wikipedia.org/v1/double//slash': {

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -140,3 +151,4 @@ '/en.wikipedia.org/v1/some/really/long/path': {

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -149,3 +161,4 @@

domain: 'en.wikipedia.org'
}
},
permissions: []
},

@@ -157,3 +170,4 @@ '/en.wikipedia.org/v1/several/optional': {

optional: 'optional'
}
},
permissions: []
},

@@ -166,3 +180,4 @@ '/en.wikipedia.org/v1/several/optional/path': {

path: 'path'
}
},
permissions: []
},

@@ -176,3 +191,4 @@ '/en.wikipedia.org/v1/several/optional/path/segments': {

segments: ['segments'],
}
},
permissions: []
},

@@ -186,3 +202,4 @@ '/en.wikipedia.org/v1/several/optional/path/segments/a': {

segments: ['segments','a'],
}
},
permissions: []
},

@@ -196,3 +213,4 @@ '/en.wikipedia.org/v1/several/optional/path/segments/a/b': {

segments: ['segments','a','b'],
}
},
permissions: []
},

@@ -204,3 +222,4 @@ '/en.wikipedia.org/v1/simple/templated': {

templated: 'templated'
}
},
permissions: []
},

@@ -213,3 +232,4 @@ '/en.wikipedia.org/v1/simple/templated/path': {

path: 'path'
}
},
permissions: []
},

@@ -222,3 +242,4 @@ '/en.wikipedia.org/v1/simple/templated/path/toolong': null,

},
value: null
value: null,
permissions: []
},

@@ -230,3 +251,4 @@ '/en.wikipedia.org/v1/optional/': {

},
value: null
value: null,
permissions: []
},

@@ -238,3 +260,4 @@ '/en.wikipedia.org/v1/optional/path': {

path: ['path']
}
},
permissions: []
},

@@ -246,3 +269,4 @@ '/en.wikipedia.org/v1/optional/path/bits': {

path: ['path','bits']
}
},
permissions: []
},

@@ -249,0 +273,0 @@

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