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

diet-router

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diet-router - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

4

index.js
function Router (...middleware) {
const fn = function route (app, path, ...middleware) {
fn.app = app
fn.path = path
fn.path = path === '/' ? '' : path
fn.middleware = [...middleware, ...fn.middleware]

@@ -30,3 +30,3 @@ for (const op of fn.queue) {

}
return function(path, ...middleware) {
return function (path, ...middleware) {
method.call(this, name, path, middleware)

@@ -33,0 +33,0 @@ }

{
"name": "diet-router",
"version": "1.0.3",
"version": "2.0.0",
"description": "Simple, full featured, nestable router for diet.js",

@@ -5,0 +5,0 @@ "main": "index.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