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

ngx-quicklink

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-quicklink - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

3

bundles/ngx-quicklink.umd.js

@@ -180,2 +180,5 @@ (function (global, factory) {

this.rl = link || linkWithHref;
if (this.element && this.element.setAttribute) {
this.element.setAttribute('ngx-ql', '');
}
}

@@ -182,0 +185,0 @@ LinkDirective.prototype.ngOnChanges = function (c) {

2

bundles/ngx-quicklink.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-quicklink",["exports","@angular/core","@angular/router","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-quicklink"]={},e.ng.core,e.ng.router,e.rxjs)}(this,(function(e,t,r,n){"use strict";var i=[],o=function(){function e(e){this.router=e,this.trees=i}return e.prototype.add=function(e){this.trees.push(e)},e.prototype.remove=function(e){this.trees.splice(this.trees.indexOf(e),1)},e.prototype.shouldPrefetch=function(e){var t=this.router.parseUrl(e);return this.trees.some(u.bind(null,t))},e}();function u(e,t){return function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(r){return t[r]===e[r]}))}(t.queryParams,e.queryParams)&&s(t.root,e.root,e.root.segments)}function s(e,t,n){if(e.segments.length>n.length)return!!a(o=e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!a(e.segments,n))return!1;if(!t.hasChildren())return!0;for(var i in t.children){if(!e.children[i])break;if(s(e.children[i],t.children[i],t.children[i].segments))return!0}return!1}var o=n.slice(0,e.segments.length),u=n.slice(e.segments.length);return!!a(e.segments,o)&&(!!e.children[r.PRIMARY_OUTLET]&&s(e.children[r.PRIMARY_OUTLET],t,u))}function a(e,t){return e.length===t.length&&e.every((function(e,r){return e.path===t[r].path||e.path.startsWith(":")||t[r].path.startsWith(":")}))}o.decorators=[{type:t.Injectable}],o.ctorParameters=function(){return[{type:r.Router}]};var c="undefined"!=typeof window?window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)}:function(){},l=function(){return"undefined"!=typeof window&&!!window.IntersectionObserver},f=new t.InjectionToken("LinkHandler"),d=function(){function e(e,t,r){var n=this;this.loader=e,this.queue=t,this.ngZone=r,this.elementLink=new Map,this.observer=l()?new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){var t=e.target,r=n.elementLink.get(t);if(!r||!r.urlTree)return;n.queue.add(r.urlTree),n.observer.unobserve(t),c((function(){n.loader.preload().subscribe((function(){})),n.queue.remove(r.urlTree)}))}}))})):null}return e.prototype.register=function(e){var t=this;this.elementLink.set(e.element,e),this.ngZone.runOutsideAngular((function(){t.observer.observe(e.element)}))},e.prototype.unregister=function(e){this.elementLink.has(e.element)&&(this.observer.unobserve(e.element),this.elementLink.delete(e.element))},e.prototype.supported=function(){return l()},e}();d.decorators=[{type:t.Injectable}],d.ctorParameters=function(){return[{type:r.RouterPreloader},{type:o},{type:t.NgZone}]};var p=function(){function e(e,t){this.loader=e,this.queue=t}return e.prototype.register=function(e){var t=this;this.queue.add(e.urlTree),c((function(){return t.loader.preload().subscribe((function(){}))}))},e.prototype.unregister=function(e){},e.prototype.supported=function(){return!0},e}();p.decorators=[{type:t.Injectable}],p.ctorParameters=function(){return[{type:r.RouterPreloader},{type:o}]};var h=function(){function e(e,t,r,n){this.linkHandlers=e,this.el=t,this.linkHandler=this.linkHandlers.filter((function(e){return e.supported()})).shift(),this.rl=r||n}return e.prototype.ngOnChanges=function(e){e.routerLink&&(this.linkHandler.unregister(this),this.linkHandler.register(this))},e.prototype.ngOnDestroy=function(){this.linkHandler.unregister(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.el.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.rl.urlTree},enumerable:!1,configurable:!0}),e}();h.decorators=[{type:t.Directive,args:[{selector:"[routerLink]"}]}],h.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[f]}]},{type:t.ElementRef},{type:r.RouterLink,decorators:[{type:t.Optional}]},{type:r.RouterLinkWithHref,decorators:[{type:t.Optional}]}]},h.propDecorators={routerLink:[{type:t.Input}]};var g=function(){function e(e,t){this.queue=e,this.router=t,this.loading=new Set}return e.prototype.preload=function(e,t){if(this.loading.has(e))return n.EMPTY;var r="undefined"!=typeof window?navigator.connection:void 0;if(r&&((r.effectiveType||"").includes("2g")||r.saveData))return n.EMPTY;if(e.data&&!1===e.data.preload)return n.EMPTY;var i=y(this.router.config,e);return this.queue.shouldPrefetch(i)?(this.loading.add(e),t()):n.EMPTY},e}();g.decorators=[{type:t.Injectable}],g.ctorParameters=function(){return[{type:o},{type:r.Router}]};var y=function(e,t){e=e.slice();for(var r=new Map,n=new Set,i=function(){var i=e.shift();if(n.add(i),i===t)return"break";var o=i.children||[],u=i._loadedConfig;u&&u.routes&&(o=o.concat(u.routes)),o.forEach((function(t){n.has(t)||(r.set(t,i),e.push(t))}))};e.length;){if("break"===i())break}for(var o="",u=t;u;)o=v(u)?"/"+u.path+o:"/("+u.outlet+":"+u.path+o+")",u=r.get(u);return o.replace(/\/\//,"/")};function v(e){return e.outlet===r.PRIMARY_OUTLET||!e.outlet}var m=function(){};m.decorators=[{type:t.NgModule,args:[{declarations:[h],providers:[{provide:f,useClass:d,multi:!0},{provide:f,useClass:p,multi:!0},o,g],exports:[h]}]}],e.QuicklinkModule=m,e.QuicklinkStrategy=g,e.ɵa=f,e.ɵb=d,e.ɵc=p,e.ɵe=o,e.ɵɵLinkDirective=h,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-quicklink",["exports","@angular/core","@angular/router","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-quicklink"]={},e.ng.core,e.ng.router,e.rxjs)}(this,(function(e,t,r,n){"use strict";var i=[],o=function(){function e(e){this.router=e,this.trees=i}return e.prototype.add=function(e){this.trees.push(e)},e.prototype.remove=function(e){this.trees.splice(this.trees.indexOf(e),1)},e.prototype.shouldPrefetch=function(e){var t=this.router.parseUrl(e);return this.trees.some(u.bind(null,t))},e}();function u(e,t){return function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(r){return t[r]===e[r]}))}(t.queryParams,e.queryParams)&&s(t.root,e.root,e.root.segments)}function s(e,t,n){if(e.segments.length>n.length)return!!a(o=e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!a(e.segments,n))return!1;if(!t.hasChildren())return!0;for(var i in t.children){if(!e.children[i])break;if(s(e.children[i],t.children[i],t.children[i].segments))return!0}return!1}var o=n.slice(0,e.segments.length),u=n.slice(e.segments.length);return!!a(e.segments,o)&&(!!e.children[r.PRIMARY_OUTLET]&&s(e.children[r.PRIMARY_OUTLET],t,u))}function a(e,t){return e.length===t.length&&e.every((function(e,r){return e.path===t[r].path||e.path.startsWith(":")||t[r].path.startsWith(":")}))}o.decorators=[{type:t.Injectable}],o.ctorParameters=function(){return[{type:r.Router}]};var l="undefined"!=typeof window?window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)}:function(){},c=function(){return"undefined"!=typeof window&&!!window.IntersectionObserver},f=new t.InjectionToken("LinkHandler"),d=function(){function e(e,t,r){var n=this;this.loader=e,this.queue=t,this.ngZone=r,this.elementLink=new Map,this.observer=c()?new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){var t=e.target,r=n.elementLink.get(t);if(!r||!r.urlTree)return;n.queue.add(r.urlTree),n.observer.unobserve(t),l((function(){n.loader.preload().subscribe((function(){})),n.queue.remove(r.urlTree)}))}}))})):null}return e.prototype.register=function(e){var t=this;this.elementLink.set(e.element,e),this.ngZone.runOutsideAngular((function(){t.observer.observe(e.element)}))},e.prototype.unregister=function(e){this.elementLink.has(e.element)&&(this.observer.unobserve(e.element),this.elementLink.delete(e.element))},e.prototype.supported=function(){return c()},e}();d.decorators=[{type:t.Injectable}],d.ctorParameters=function(){return[{type:r.RouterPreloader},{type:o},{type:t.NgZone}]};var h=function(){function e(e,t){this.loader=e,this.queue=t}return e.prototype.register=function(e){var t=this;this.queue.add(e.urlTree),l((function(){return t.loader.preload().subscribe((function(){}))}))},e.prototype.unregister=function(e){},e.prototype.supported=function(){return!0},e}();h.decorators=[{type:t.Injectable}],h.ctorParameters=function(){return[{type:r.RouterPreloader},{type:o}]};var p=function(){function e(e,t,r,n){this.linkHandlers=e,this.el=t,this.linkHandler=this.linkHandlers.filter((function(e){return e.supported()})).shift(),this.rl=r||n,this.element&&this.element.setAttribute&&this.element.setAttribute("ngx-ql","")}return e.prototype.ngOnChanges=function(e){e.routerLink&&(this.linkHandler.unregister(this),this.linkHandler.register(this))},e.prototype.ngOnDestroy=function(){this.linkHandler.unregister(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.el.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.rl.urlTree},enumerable:!1,configurable:!0}),e}();p.decorators=[{type:t.Directive,args:[{selector:"[routerLink]"}]}],p.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[f]}]},{type:t.ElementRef},{type:r.RouterLink,decorators:[{type:t.Optional}]},{type:r.RouterLinkWithHref,decorators:[{type:t.Optional}]}]},p.propDecorators={routerLink:[{type:t.Input}]};var g=function(){function e(e,t){this.queue=e,this.router=t,this.loading=new Set}return e.prototype.preload=function(e,t){if(this.loading.has(e))return n.EMPTY;var r="undefined"!=typeof window?navigator.connection:void 0;if(r&&((r.effectiveType||"").includes("2g")||r.saveData))return n.EMPTY;if(e.data&&!1===e.data.preload)return n.EMPTY;var i=y(this.router.config,e);return this.queue.shouldPrefetch(i)?(this.loading.add(e),t()):n.EMPTY},e}();g.decorators=[{type:t.Injectable}],g.ctorParameters=function(){return[{type:o},{type:r.Router}]};var y=function(e,t){e=e.slice();for(var r=new Map,n=new Set,i=function(){var i=e.shift();if(n.add(i),i===t)return"break";var o=i.children||[],u=i._loadedConfig;u&&u.routes&&(o=o.concat(u.routes)),o.forEach((function(t){n.has(t)||(r.set(t,i),e.push(t))}))};e.length;){if("break"===i())break}for(var o="",u=t;u;)o=m(u)?"/"+u.path+o:"/("+u.outlet+":"+u.path+o+")",u=r.get(u);return o.replace(/\/\//,"/")};function m(e){return e.outlet===r.PRIMARY_OUTLET||!e.outlet}var v=function(){};v.decorators=[{type:t.NgModule,args:[{declarations:[p],providers:[{provide:f,useClass:d,multi:!0},{provide:f,useClass:h,multi:!0},o,g],exports:[p]}]}],e.QuicklinkModule=v,e.QuicklinkStrategy=g,e.ɵa=f,e.ɵb=d,e.ɵc=h,e.ɵe=o,e.ɵɵLinkDirective=p,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-quicklink.umd.min.js.map

@@ -10,2 +10,5 @@ import { Directive, ElementRef, Optional, Inject, Input } from '@angular/core';

this.rl = link || linkWithHref;
if (this.element && this.element.setAttribute) {
this.element.setAttribute('ngx-ql', '');
}
}

@@ -42,2 +45,2 @@ ngOnChanges(c) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL21nZWNoZXYvUHJvamVjdHMvbmd4LXF1aWNrbGluay8iLCJzb3VyY2VzIjpbInNyYy9saW5rLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzI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gdGhpcy5saW5rSGFuZGxlci5yZWdpc3Rlcih0aGlzKTtcbiAgICB9XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICB0aGlzLmxpbmtIYW5kbGVyLnVucmVnaXN0ZXIodGhpcyk7XG4gIH1cblxuICBnZXQgZWxlbWVudCgpOiBFbGVtZW50IHtcbiAgICByZXR1cm4gdGhpcy5lbC5uYXRpdmVFbGVtZW50O1xuICB9XG5cbiAgZ2V0IHVybFRyZWUoKTogYW55IHtcbiAgICByZXR1cm4gdGhpcy5ybC51cmxUcmVlO1xuICB9XG59XG4iXX0=

@@ -172,2 +172,5 @@ import { Injectable, InjectionToken, NgZone, Directive, Inject, ElementRef, Optional, Input, NgModule } from '@angular/core';

this.rl = link || linkWithHref;
if (this.element && this.element.setAttribute) {
this.element.setAttribute('ngx-ql', '');
}
}

@@ -174,0 +177,0 @@ ngOnChanges(c) {

{
"$schema": "./node_modules/ng-packagr/package.schema.json",
"name": "ngx-quicklink",
"version": "0.2.5",
"version": "0.2.6",
"description": "Quicklink for Angular",

@@ -6,0 +6,0 @@ "keywords": [

@@ -72,2 +72,8 @@ <p align="center">

## Debugging
**Not getting routes preloaded?** Most likely the problem comes from a missing import of the `QuicklinkModule`. The `QuicklinkModule` exports a `LinkDirective` which matches the `[routerLink]` selector. It'll hook into all your router links in the scope of the module and observe their visibility. If you've not imported the `QuicklinkModule` correctly, this directive will be missing and the quicklink preloading strategy will not work.
**How to verify Angular has made my links "quicklinks"?** Inspect a router link and check if it has `ngx-ql` attribute. If it does not, make sure you import `QuicklinkModule` in the module that defines the compilation context of the template where the router link is. Alternatively, if the `ngx-ql` attribute is there, but the prefetching does not work as expected, please open an issue.
## Polyfills

@@ -74,0 +80,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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