@helpfulhuman/router-kit
Advanced tools
Comparing version 1.0.1 to 1.0.2
import pathToRegex from 'path-to-regexp'; | ||
import flatten from 'arr-flatten'; | ||
@@ -88,3 +89,3 @@ /** | ||
// Flatten all given middleware into a single array | ||
middleware = Array.prototype.concat.apply(middleware); | ||
middleware = flatten(middleware); | ||
// Assert that all given values are functions | ||
@@ -91,0 +92,0 @@ assertEach("middleware", "function", middleware); |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var pathToRegex = _interopDefault(require('path-to-regexp')); | ||
var flatten = _interopDefault(require('arr-flatten')); | ||
@@ -95,3 +96,3 @@ /** | ||
// Flatten all given middleware into a single array | ||
middleware = Array.prototype.concat.apply(middleware); | ||
middleware = flatten(middleware); | ||
// Assert that all given values are functions | ||
@@ -98,0 +99,0 @@ assertEach("middleware", "function", middleware); |
{ | ||
"name": "@helpfulhuman/router-kit", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple library for building custom frontend routing solutions for single page applications.", | ||
@@ -36,2 +36,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"arr-flatten": "^1.1.0", | ||
"path-to-regexp": "^2.0.0" | ||
@@ -38,0 +39,0 @@ }, |
@@ -9,2 +9,3 @@ import buble from "rollup-plugin-buble"; | ||
], | ||
external: ["arr-flatten"], | ||
plugins: [ buble() ], | ||
@@ -11,0 +12,0 @@ onwarn (message) { |
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
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
12673
2
7
335
1
+ Addedarr-flatten@^1.1.0
+ Addedarr-flatten@1.1.0(transitive)