@jack-henry/web-component-router
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -58,2 +58,5 @@ export default animatedRoutingMixin; | ||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; | ||
disconnectedCallback(): void; | ||
adoptedCallback(): void; | ||
attributeChangedCallback(name: string, oldValue: any, newValue: any): any; | ||
readonly attributes: NamedNodeMap; | ||
@@ -181,2 +184,3 @@ readonly classList: DOMTokenList; | ||
ariaColIndex: string; | ||
ariaColIndexText: string; | ||
ariaColSpan: string; | ||
@@ -188,2 +192,3 @@ ariaCurrent: string; | ||
ariaHidden: string; | ||
ariaInvalid: string; | ||
ariaKeyShortcuts: string; | ||
@@ -205,2 +210,3 @@ ariaLabel: string; | ||
ariaRowIndex: string; | ||
ariaRowIndexText: string; | ||
ariaRowSpan: string; | ||
@@ -214,2 +220,3 @@ ariaSelected: string; | ||
ariaValueText: string; | ||
role: string; | ||
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation; | ||
@@ -252,3 +259,5 @@ getAnimations(options?: GetAnimationsOptions): Animation[]; | ||
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; | ||
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any; | ||
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any; | ||
oncancel: (this: GlobalEventHandlers, ev: Event) => any; | ||
oncanplay: (this: GlobalEventHandlers, ev: Event) => any; | ||
@@ -255,0 +264,0 @@ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any; |
@@ -79,7 +79,7 @@ /** | ||
/** @type {!Window|undefined} */ | ||
this._window; | ||
this._window = (hasWindow ? window : undefined); | ||
this._decodeURLComponents = true; | ||
this._popstate = true; | ||
this._click = true; | ||
this._hashbang = true; | ||
this._hashbang = false; | ||
} | ||
@@ -634,3 +634,10 @@ | ||
ctx.handled = false; | ||
isLocation && (window.location.href = ctx.canonicalPath); | ||
const url = new URL(ctx.canonicalPath, window.location.origin); | ||
if (isLocation) { | ||
if (url.origin === window.location.origin) { | ||
window.location.href = url.toString(); | ||
} else { | ||
console.error('Cross domain route change prevented'); | ||
} | ||
} | ||
} | ||
@@ -637,0 +644,0 @@ |
@@ -54,2 +54,6 @@ /** | ||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; | ||
connectedCallback(): void; | ||
disconnectedCallback(): void; | ||
adoptedCallback(): void; | ||
attributeChangedCallback(name: string, oldValue: any, newValue: any): any; | ||
readonly attributes: NamedNodeMap; | ||
@@ -177,2 +181,3 @@ readonly classList: DOMTokenList; | ||
ariaColIndex: string; | ||
ariaColIndexText: string; | ||
ariaColSpan: string; | ||
@@ -184,2 +189,3 @@ ariaCurrent: string; | ||
ariaHidden: string; | ||
ariaInvalid: string; | ||
ariaKeyShortcuts: string; | ||
@@ -201,2 +207,3 @@ ariaLabel: string; | ||
ariaRowIndex: string; | ||
ariaRowIndexText: string; | ||
ariaRowSpan: string; | ||
@@ -210,2 +217,3 @@ ariaSelected: string; | ||
ariaValueText: string; | ||
role: string; | ||
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation; | ||
@@ -248,3 +256,5 @@ getAnimations(options?: GetAnimationsOptions): Animation[]; | ||
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; | ||
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any; | ||
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any; | ||
oncancel: (this: GlobalEventHandlers, ev: Event) => any; | ||
oncanplay: (this: GlobalEventHandlers, ev: Event) => any; | ||
@@ -251,0 +261,0 @@ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any; |
{ | ||
"name": "@jack-henry/web-component-router", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Web Components Router", | ||
@@ -33,2 +33,5 @@ "main": "router.js", | ||
}, | ||
"resolutions": { | ||
"@types/node": "^18.11.18" | ||
}, | ||
"devDependencies": { | ||
@@ -41,4 +44,4 @@ "@polymer/polymer": "^3.4.1", | ||
"karma-spec-reporter": "^0.0.34", | ||
"typescript": "^4.8.0-beta" | ||
"typescript": "^4.9.4" | ||
} | ||
} |
@@ -75,10 +75,2 @@ export default Router; | ||
/** | ||
* Adds the query parameters to the Page.js context. | ||
* | ||
* @param {!Context} context | ||
* @param {function():?} next | ||
* @private | ||
*/ | ||
private parseQueryString_; | ||
/** | ||
* Walk the route tree and register route nodes with | ||
@@ -85,0 +77,0 @@ * the Page.js router. |
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
118129
2738
1