@helpfulhuman/router-kit
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -92,2 +92,4 @@ import pathToRegex from 'path-to-regexp'; | ||
assertEach("middleware", "function", middleware); | ||
// If only one middleware is provided, just return it | ||
if (middleware.length === 1) { return middleware[0]; } | ||
// Return a new function for running our composed middleware | ||
@@ -94,0 +96,0 @@ return function (context, next) { |
@@ -98,2 +98,4 @@ 'use strict'; | ||
assertEach("middleware", "function", middleware); | ||
// If only one middleware is provided, just return it | ||
if (middleware.length === 1) { return middleware[0]; } | ||
// Return a new function for running our composed middleware | ||
@@ -100,0 +102,0 @@ return function (context, next) { |
{ | ||
"name": "@helpfulhuman/router-kit", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple library for building custom frontend routing solutions for single page applications.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12899
339
0