@jack-henry/web-component-router
Advanced tools
Comparing version 3.1.0 to 3.1.3
@@ -202,3 +202,3 @@ /** The page instance */ | ||
method: string; | ||
regexp: any; | ||
regexp: RegExp; | ||
keys: any[]; | ||
@@ -205,0 +205,0 @@ /** |
@@ -18,3 +18,3 @@ /** | ||
import {pathToRegexp} from 'path-to-regexp/dist.es2015/index.js'; | ||
import {pathToRegexp} from 'path-to-regexp'; | ||
@@ -21,0 +21,0 @@ /** |
{ | ||
"name": "@jack-henry/web-component-router", | ||
"version": "3.1.0", | ||
"version": "3.1.3", | ||
"description": "Web Components Router", | ||
@@ -5,0 +5,0 @@ "main": "router.js", |
@@ -6,5 +6,5 @@ export default Router; | ||
path: string; | ||
params?: Array<string> | undefined; | ||
authenticated?: boolean | undefined; | ||
subRoutes?: Array<RouteConfig> | undefined; | ||
params: (Array<string> | undefined); | ||
authenticated: (boolean | undefined); | ||
subRoutes: (Array<RouteConfig> | undefined); | ||
}; | ||
@@ -27,3 +27,3 @@ declare class Router { | ||
/** @param {!RouteTreeNode|undefined} root */ | ||
set routeTree(arg: RouteTreeNode); | ||
set routeTree(root: RouteTreeNode); | ||
/** @return {!RouteTreeNode|undefined} */ | ||
@@ -118,3 +118,30 @@ get routeTree(): RouteTreeNode; | ||
import routingMixin from './lib/routing-mixin.js'; | ||
/** | ||
* @fileoverview Router for banno web. | ||
* | ||
* Page.js is used to parse route paths and invoke callbacks | ||
* when routes are entered or exited. This class provides | ||
* support for storing the routing tree and registering the | ||
* route callbacks with Page.js. | ||
* | ||
* Routes should form a tree. Example: | ||
* | ||
* _Root_ | ||
* / \ | ||
* A D | ||
* / \ \ | ||
* B C E | ||
*/ | ||
/** | ||
* @typedef {{ | ||
* id: string, | ||
* tagName: string, | ||
* path: string, | ||
* params: (Array<string>|undefined), | ||
* authenticated: (boolean|undefined), | ||
* subRoutes: (Array<RouteConfig>|undefined), | ||
* }} RouteConfig | ||
*/ | ||
declare let RouteConfig: any; | ||
import { Page } from './lib/page.js'; | ||
export { animatedRoutingMixin, BasicRoutingInterface, Context, RouteData, RouteTreeNode, routingMixin }; |
@@ -19,10 +19,12 @@ /** | ||
/** | ||
* @typedef {Object} RouteConfig | ||
* @property {string} id | ||
* @property {string} tagName | ||
* @property {string} path | ||
* @property {Array<string>=} params | ||
* @property {boolean=} authenticated | ||
* @property {Array<RouteConfig>=} subRoutes | ||
* @typedef {{ | ||
* id: string, | ||
* tagName: string, | ||
* path: string, | ||
* params: (Array<string>|undefined), | ||
* authenticated: (boolean|undefined), | ||
* subRoutes: (Array<RouteConfig>|undefined), | ||
* }} RouteConfig | ||
*/ | ||
let RouteConfig; | ||
@@ -29,0 +31,0 @@ import {Context, Page} from './lib/page.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
123712
2822
1