Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jack-henry/web-component-router

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jack-henry/web-component-router - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

lib/animated-routing-mixin.d.ts

@@ -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;

13

lib/page.js

@@ -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.

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