New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@luigi-project/client-support-angular

Package Overview
Dependencies
Maintainers
2
Versions
947
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luigi-project/client-support-angular - npm Package Compare versions

Comparing version 1.10.1-dev.20210227 to 1.10.1-dev.20210227.1

15

bundles/luigi-project-client-support-angular.umd.js

@@ -163,7 +163,18 @@ (function (global, factory) {

if (current.data.fromVirtualTreeRoot) {
console.debug('Calling fromVirtualTreeRoot for ulr ==> ' + event.url);
var url = event.url;
var truncate = current.data.fromVirtualTreeRoot.truncate;
if (truncate) {
if (truncate.indexOf('*') === 0) {
var index = url.indexOf(truncate.substr(1));
url = url.substr(index + truncate.length - 1);
}
else if (url.indexOf(truncate) === 0) {
url = url.substr(truncate.length);
}
}
console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
client.linkManager()
.fromVirtualTreeRoot()
.withoutSync()
.navigate(event.url);
.navigate(url);
}

@@ -170,0 +181,0 @@ }

4

bundles/luigi-project-client-support-angular.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@luigi-project/client")):"function"==typeof define&&define.amd?define("@luigi-project/client-support-angular",["exports","@angular/core","@angular/router","rxjs","rxjs/operators","@luigi-project/client"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["luigi-project"]=t["luigi-project"]||{},t["luigi-project"]["client-support-angular"]={}),t.ng.core,t.ng.router,t.rxjs,t.rxjs.operators,t.client)}(this,(function(t,e,r,o,n,i){"use strict";var u=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();u.decorators=[{type:e.Component,args:[{selector:"lib-client-support-angular",template:'<p luigipreload="luigipreload"></p>\n'}]}],u.ctorParameters=function(){return[]};var a,c=function(){};(a=t.ILuigiContextTypes||(t.ILuigiContextTypes={}))[a.INIT=0]="INIT",a[a.UPDATE=1]="UPDATE";var s=function(){function e(){var e=this;this.subject=new o.ReplaySubject(1),this.currentContext=null,i.addInitListener((function(r){e.addListener(t.ILuigiContextTypes.INIT,r)})),i.addContextUpdateListener((function(r){e.addListener(t.ILuigiContextTypes.UPDATE,r)}))}return e.prototype.contextObservable=function(){return this.subject.asObservable()},e.prototype.getContext=function(){return this.currentContext&&this.currentContext.context},e.prototype.getContextAsync=function(){var t=this;return new Promise((function(e,r){t.getContext()?e(t.getContext()):t.contextObservable().pipe(n.first()).subscribe((function(t){e(t.context)}))}))},e.prototype.setContext=function(t){this.currentContext=t,this.subject.next(t)},e.prototype.addListener=function(t,e){this.setContext({contextType:t,context:e})},e}();s.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var p=function(){function t(){}return t.getCurrent=function(){return t._current},t.setCurrent=function(e){t._current=e},t}();p._current=null;var l=function(){function t(t,e){this.router=t,this.luigiContextService=e,this.subscription=new o.Subscription,this.subscription.add(this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this)))}return t.prototype.doFilter=function(){return n.filter((function(t){return!(!(t instanceof r.NavigationEnd&&t.url&&t.url.length>0)||history.state&&history.state.luigiInduced)}))},t.prototype.doSubscription=function(t){var e=p.getCurrent();if(e.data){if(e.data.luigiRoute){var o=e.data.luigiRoute;if(e.params){var n=r.convertToParamMap(e.params);n.keys.forEach((function(t){n.getAll(t).forEach((function(e){o=o.replace(":"+t,e)}))}))}var u=i.linkManager();if(e.data.fromContext){if(!this.luigiContextService.getContext())return void console.debug("Ignoring auto navigation request, luigi context not set");u=!0===e.data.fromContext?u.fromClosestContext():u.fromContext(e.data.fromContext)}return void u.withoutSync().navigate(o)}e.data.fromVirtualTreeRoot&&(console.debug("Calling fromVirtualTreeRoot for ulr ==> "+t.url),i.linkManager().fromVirtualTreeRoot().withoutSync().navigate(t.url))}},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();l.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new l(e.ɵɵinject(r.Router),e.ɵɵinject(c))},token:l,providedIn:"root"}),l.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],l.ctorParameters=function(){return[{type:r.Router},{type:c}]};
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@luigi-project/client")):"function"==typeof define&&define.amd?define("@luigi-project/client-support-angular",["exports","@angular/core","@angular/router","rxjs","rxjs/operators","@luigi-project/client"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["luigi-project"]=t["luigi-project"]||{},t["luigi-project"]["client-support-angular"]={}),t.ng.core,t.ng.router,t.rxjs,t.rxjs.operators,t.client)}(this,(function(t,e,r,o,n,i){"use strict";var u=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();u.decorators=[{type:e.Component,args:[{selector:"lib-client-support-angular",template:'<p luigipreload="luigipreload"></p>\n'}]}],u.ctorParameters=function(){return[]};var a,c=function(){};(a=t.ILuigiContextTypes||(t.ILuigiContextTypes={}))[a.INIT=0]="INIT",a[a.UPDATE=1]="UPDATE";var s=function(){function e(){var e=this;this.subject=new o.ReplaySubject(1),this.currentContext=null,i.addInitListener((function(r){e.addListener(t.ILuigiContextTypes.INIT,r)})),i.addContextUpdateListener((function(r){e.addListener(t.ILuigiContextTypes.UPDATE,r)}))}return e.prototype.contextObservable=function(){return this.subject.asObservable()},e.prototype.getContext=function(){return this.currentContext&&this.currentContext.context},e.prototype.getContextAsync=function(){var t=this;return new Promise((function(e,r){t.getContext()?e(t.getContext()):t.contextObservable().pipe(n.first()).subscribe((function(t){e(t.context)}))}))},e.prototype.setContext=function(t){this.currentContext=t,this.subject.next(t)},e.prototype.addListener=function(t,e){this.setContext({contextType:t,context:e})},e}();s.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new s},token:s,providedIn:"root"}),s.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[]};var p=function(){function t(){}return t.getCurrent=function(){return t._current},t.setCurrent=function(e){t._current=e},t}();p._current=null;var l=function(){function t(t,e){this.router=t,this.luigiContextService=e,this.subscription=new o.Subscription,this.subscription.add(this.router.events.pipe(this.doFilter()).subscribe(this.doSubscription.bind(this)))}return t.prototype.doFilter=function(){return n.filter((function(t){return!(!(t instanceof r.NavigationEnd&&t.url&&t.url.length>0)||history.state&&history.state.luigiInduced)}))},t.prototype.doSubscription=function(t){var e=p.getCurrent();if(e.data){if(e.data.luigiRoute){var o=e.data.luigiRoute;if(e.params){var n=r.convertToParamMap(e.params);n.keys.forEach((function(t){n.getAll(t).forEach((function(e){o=o.replace(":"+t,e)}))}))}var u=i.linkManager();if(e.data.fromContext){if(!this.luigiContextService.getContext())return void console.debug("Ignoring auto navigation request, luigi context not set");u=!0===e.data.fromContext?u.fromClosestContext():u.fromContext(e.data.fromContext)}return void u.withoutSync().navigate(o)}if(e.data.fromVirtualTreeRoot){var a=t.url,c=e.data.fromVirtualTreeRoot.truncate;if(c)if(0===c.indexOf("*")){var s=a.indexOf(c.substr(1));a=a.substr(s+c.length-1)}else 0===a.indexOf(c)&&(a=a.substr(c.length));console.debug("Calling fromVirtualTreeRoot for url ==> "+a),i.linkManager().fromVirtualTreeRoot().withoutSync().navigate(a)}}},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}();l.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new l(e.ɵɵinject(r.Router),e.ɵɵinject(c))},token:l,providedIn:"root"}),l.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],l.ctorParameters=function(){return[{type:r.Router},{type:c}]};
/*! *****************************************************************************

@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation.

***************************************************************************** */
var f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};Object.create;Object.create;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.retrieve=function(e){return p.setCurrent(e),t.prototype.retrieve.call(this,e)},e}(r.BaseRouteReuseStrategy),g={fromVirtualTreeRoot:!0},y={luigiRoute:"/home/reload"},x={reuse:!0},v=[{path:"luigi-client-support-preload",component:u,data:g},{path:"luigi-client-support-preload",component:u,data:y},{path:"luigi-client-support-preload=component",component:u,data:x}],h=function(t,e){};h.decorators=[{type:e.NgModule,args:[{declarations:[u],imports:[r.RouterModule.forChild(v)],providers:[{provide:c,useClass:s},{provide:r.RouteReuseStrategy,useClass:d}],exports:[u]}]}],h.ctorParameters=function(){return[{type:l},{type:c}]},t.LuigiAngularSupportModule=h,t.LuigiAutoRoutingService=l,t.LuigiContextService=c,t.LuigiContextServiceImpl=s,t.LuigiPreloadComponent=u,t.staticRoutes=v,t.ɵ0=g,t.ɵ1=y,t.ɵ2=x,t.ɵa=d,Object.defineProperty(t,"__esModule",{value:!0})}));
var f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};Object.create;Object.create;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.retrieve=function(e){return p.setCurrent(e),t.prototype.retrieve.call(this,e)},e}(r.BaseRouteReuseStrategy),g={fromVirtualTreeRoot:!0},y={luigiRoute:"/home/reload"},x={reuse:!0},v=[{path:"luigi-client-support-preload",component:u,data:g},{path:"luigi-client-support-preload",component:u,data:y},{path:"luigi-client-support-preload=component",component:u,data:x}],b=function(t,e){};b.decorators=[{type:e.NgModule,args:[{declarations:[u],imports:[r.RouterModule.forChild(v)],providers:[{provide:c,useClass:s},{provide:r.RouteReuseStrategy,useClass:d}],exports:[u]}]}],b.ctorParameters=function(){return[{type:l},{type:c}]},t.LuigiAngularSupportModule=b,t.LuigiAutoRoutingService=l,t.LuigiContextService=c,t.LuigiContextServiceImpl=s,t.LuigiPreloadComponent=u,t.staticRoutes=v,t.ɵ0=g,t.ɵ1=y,t.ɵ2=x,t.ɵa=d,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=luigi-project-client-support-angular.umd.min.js.map

@@ -0,0 +0,0 @@ import { Component } from '@angular/core';

@@ -0,0 +0,0 @@ import { NgModule } from '@angular/core';

@@ -0,0 +0,0 @@ export class LuigiActivatedRouteSnapshotHelper {

@@ -0,0 +0,0 @@ import { BaseRouteReuseStrategy } from '@angular/router';

@@ -67,7 +67,18 @@ import { Injectable } from '@angular/core';

if (current.data.fromVirtualTreeRoot) {
console.debug('Calling fromVirtualTreeRoot for ulr ==> ' + event.url);
let url = event.url;
const truncate = current.data.fromVirtualTreeRoot.truncate;
if (truncate) {
if (truncate.indexOf('*') === 0) {
const index = url.indexOf(truncate.substr(1));
url = url.substr(index + truncate.length - 1);
}
else if (url.indexOf(truncate) === 0) {
url = url.substr(truncate.length);
}
}
console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
linkManager()
.fromVirtualTreeRoot()
.withoutSync()
.navigate(event.url);
.navigate(url);
}

@@ -90,2 +101,2 @@ }

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibHVpZ2ktYXV0by1yb3V0aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXN1cHBvcnQtYW5ndWxhci9zcmMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZS9sdWlnaS1hdXRvLXJvdXRpbmcuc2VydmljZS50c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ydmljZS5nZXRDb250ZXh0KCkpIHtcbiAgICAgICAgICAgIGNvbnNvbGUuZGVidWcoXG4gICAgICAgICAgICAgICdJZ25vcmluZyBhdXRvIG5hdmlnYXRpb24gcmVxdWVzdCwgbHVpZ2kgY29udGV4dCBub3Qgc2V0J1xuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYgKGN1cnJlbnQuZGF0YS5mcm9tQ29udGV4dCA9PT0gdHJ1ZSkge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ2xvc2VzdENvbnRleHQoKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ29udGV4dChjdXJyZW50LmRhdGEuZnJvbUNvbnRleHQpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGxtLndpdGhvdXRTeW5jKCkubmF2aWdhdGUocm91dGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG4gICAgICBpZiAoY3VycmVudC5kYXRhLmZyb21WaXJ0dWFsVHJlZVJvb3QpIHtcbiAgICAgICAgY29uc29sZS5kZWJ1ZygnQ2FsbGluZyBmcm9tVmlydHVhbFRyZWVSb290IGZvciB1bHIgPT0+ICcgKyBldmVudC51cmwpO1xuICAgICAgICBsaW5rTWFuYWdlcigpXG4gICAgICAgICAgLmZyb21WaXJ0dWFsVHJlZVJvb3QoKVxuICAgICAgICAgIC53aXRob3V0U3luYygpXG4gICAgICAgICAgLm5hdmlnYXRlKGV2ZW50LnVybCk7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibHVpZ2ktYXV0by1yb3V0aW5nLnNlcnZpY2Uu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1ZSkge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ2xvc2VzdENvbnRleHQoKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbG0gPSBsbS5mcm9tQ29udGV4dChjdXJyZW50LmRhdGEuZnJvbUNvbnRleHQpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGxtLndpdGhvdXRTeW5jKCkubmF2aWdhdGUocm91dGUpO1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG4gICAgICBpZiAoY3VycmVudC5kYXRhLmZyb21WaXJ0dWFsVHJlZVJvb3QpIHtcbiAgICAgICAgbGV0IHVybCA9IGV2ZW50LnVybDtcbiAgICAgICAgY29uc3QgdHJ1bmNhdGUgPSBjdXJyZW50LmRhdGEuZnJvbVZpcnR1YWxUcmVlUm9vdC50cnVuY2F0ZTtcbiAgICAgICAgaWYgKHRydW5jYXRlKSB7XG4gICAgICAgICAgaWYgKHRydW5jYXRlLmluZGV4T2YoJyonKSA9PT0gMCkge1xuICAgICAgICAgICAgY29uc3QgaW5kZXggPSB1cmwuaW5kZXhPZih0cnVuY2F0ZS5zdWJzdHIoMSkpO1xuICAgICAgICAgICAgdXJsID0gdXJsLnN1YnN0cihpbmRleCArIHRydW5jYXRlLmxlbmd0aCAtIDEpO1xuICAgICAgICAgIH1cbiAgICAgICAgICBlbHNlIGlmICh1cmwuaW5kZXhPZih0cnVuY2F0ZSkgPT09IDApIHtcbiAgICAgICAgICAgIHVybCA9IHVybC5zdWJzdHIodHJ1bmNhdGUubGVuZ3RoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgY29uc29sZS5kZWJ1ZygnQ2FsbGluZyBmcm9tVmlydHVhbFRyZWVSb290IGZvciB1cmwgPT0+ICcgKyB1cmwpO1xuICAgICAgICBsaW5rTWFuYWdlcigpXG4gICAgICAgICAgLmZyb21WaXJ0dWFsVHJlZVJvb3QoKVxuICAgICAgICAgIC53aXRob3V0U3luYygpXG4gICAgICAgICAgLm5hdmlnYXRlKHVybCk7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19

@@ -0,0 +0,0 @@ export class LuigiContextService {

@@ -0,0 +0,0 @@ import { Injectable } from '@angular/core';

@@ -0,0 +0,0 @@ /*

@@ -153,7 +153,18 @@ import { Component, ɵɵdefineInjectable, Injectable, ɵɵinject, NgModule } from '@angular/core';

if (current.data.fromVirtualTreeRoot) {
console.debug('Calling fromVirtualTreeRoot for ulr ==> ' + event.url);
let url = event.url;
const truncate = current.data.fromVirtualTreeRoot.truncate;
if (truncate) {
if (truncate.indexOf('*') === 0) {
const index = url.indexOf(truncate.substr(1));
url = url.substr(index + truncate.length - 1);
}
else if (url.indexOf(truncate) === 0) {
url = url.substr(truncate.length);
}
}
console.debug('Calling fromVirtualTreeRoot for url ==> ' + url);
linkManager()
.fromVirtualTreeRoot()
.withoutSync()
.navigate(event.url);
.navigate(url);
}

@@ -160,0 +171,0 @@ }

@@ -6,2 +6,1 @@ import { OnInit } from '@angular/core';

}
//# sourceMappingURL=luigi.preload.component.d.ts.map

@@ -8,2 +8,1 @@ import { Routes } from '@angular/router';

}
//# sourceMappingURL=luigi.angular.support.module.d.ts.map

@@ -7,2 +7,1 @@ import { ActivatedRouteSnapshot } from '@angular/router';

}
//# sourceMappingURL=luigi-activated-route-snapshot-helper.d.ts.map

@@ -6,2 +6,1 @@ import { BaseRouteReuseStrategy } from '@angular/router';

}
//# sourceMappingURL=luigi-route-strategy.d.ts.map

@@ -23,2 +23,1 @@ import { OnDestroy } from '@angular/core';

}
//# sourceMappingURL=luigi-auto-routing.service.d.ts.map

@@ -26,2 +26,1 @@ import { Context } from '@luigi-project/client';

}
//# sourceMappingURL=luigi-context-service.d.ts.map

@@ -23,2 +23,1 @@ import { Observable } from 'rxjs';

}
//# sourceMappingURL=luigi-context.service.impl.d.ts.map

@@ -6,2 +6,1 @@ /**

export { LuigiRouteStrategy as ɵa } from './lib/route/luigi-route-strategy';
//# sourceMappingURL=luigi-project-client-support-angular.d.ts.map
{
"name": "@luigi-project/client-support-angular",
"version": "1.10.1-dev.20210227",
"version": "1.10.1-dev.20210227.1",
"peerDependencies": {

@@ -23,2 +23,2 @@ "@angular/common": "^11.0.0",

"sideEffects": false
}
}

@@ -6,2 +6,1 @@ export * from './lib/component/luigi.preload.component';

export * from './lib/service/luigi-auto-routing.service';
//# sourceMappingURL=public-api.d.ts.map

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