Socket
Socket
Sign inDemoInstall

@aurelia/router-lite

Package Overview
Dependencies
7
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0-dev.202304111838 to 2.1.0-dev.202304270200

1

dist/types/route-context.d.ts

@@ -115,3 +115,2 @@ import { type IContainer, IModule } from '@aurelia/kernel';

}
export declare const INavigationModel: import("@aurelia/kernel").InterfaceSymbol<INavigationModel>;
export interface INavigationModel {

@@ -118,0 +117,0 @@ /**

16

package.json
{
"name": "@aurelia/router-lite",
"version": "2.1.0-dev.202304111838",
"version": "2.1.0-dev.202304270200",
"main": "dist/cjs/index.cjs",

@@ -52,9 +52,9 @@ "module": "dist/esm/index.mjs",

"dependencies": {
"@aurelia/kernel": "2.1.0-dev.202304111838",
"@aurelia/metadata": "2.1.0-dev.202304111838",
"@aurelia/platform": "2.1.0-dev.202304111838",
"@aurelia/platform-browser": "2.1.0-dev.202304111838",
"@aurelia/route-recognizer": "2.1.0-dev.202304111838",
"@aurelia/runtime": "2.1.0-dev.202304111838",
"@aurelia/runtime-html": "2.1.0-dev.202304111838"
"@aurelia/kernel": "2.1.0-dev.202304270200",
"@aurelia/metadata": "2.1.0-dev.202304270200",
"@aurelia/platform": "2.1.0-dev.202304270200",
"@aurelia/platform-browser": "2.1.0-dev.202304270200",
"@aurelia/route-recognizer": "2.1.0-dev.202304270200",
"@aurelia/runtime": "2.1.0-dev.202304270200",
"@aurelia/runtime-html": "2.1.0-dev.202304270200"
},

@@ -61,0 +61,0 @@ "devDependencies": {

@@ -69,2 +69,3 @@ import { isObject } from '@aurelia/metadata';

Registration.instance(IRouterOptions, routerOptions),
Registration.instance(RouterOptions, routerOptions),
AppTask.hydrated(IContainer, RouteContext.setRoot),

@@ -71,0 +72,0 @@ AppTask.activated(IRouter, router => router.start(true)),

@@ -10,4 +10,4 @@ import { DI, ILogger } from '@aurelia/kernel';

export const IBaseHref = DI.createInterface<URL>('IBaseHref');
export const ILocationManager = DI.createInterface<ILocationManager>('ILocationManager', x => x.singleton(BrowserLocationManager));
export const IBaseHref = /*@__PURE__*/DI.createInterface<URL>('IBaseHref');
export const ILocationManager = /*@__PURE__*/DI.createInterface<ILocationManager>('ILocationManager', x => x.singleton(BrowserLocationManager));
export interface ILocationManager extends BrowserLocationManager {}

@@ -14,0 +14,0 @@

@@ -16,3 +16,3 @@ import { DI } from '@aurelia/kernel';

export const IRouterOptions = DI.createInterface<Readonly<RouterOptions>>('RouterOptions');
export const IRouterOptions = /*@__PURE__*/DI.createInterface<Readonly<RouterOptions>>('RouterOptions');
export interface IRouterOptions extends Partial<RouterOptions> {}

@@ -19,0 +19,0 @@ export class RouterOptions {

@@ -60,3 +60,3 @@ import {

export interface IRouteContext extends RouteContext { }
export const IRouteContext = DI.createInterface<IRouteContext>('IRouteContext');
export const IRouteContext = /*@__PURE__*/DI.createInterface<IRouteContext>('IRouteContext');

@@ -207,6 +207,5 @@ type PathGenerationResult = { vi: ViewportInstruction; query: Params };

container.registerResolver(
IRouteContext,
new InstanceProvider<IRouteContext>('IRouteContext', this)
);
const ctxProvider = new InstanceProvider<IRouteContext>('IRouteContext', this);
container.registerResolver(IRouteContext, ctxProvider);
container.registerResolver(RouteContext, ctxProvider);

@@ -705,3 +704,2 @@ container.register(config);

export const INavigationModel = DI.createInterface<INavigationModel>('INavigationModel');
export interface INavigationModel {

@@ -708,0 +706,0 @@ /**

@@ -39,3 +39,3 @@ import { DI, IEventAggregator, IDisposable, ILogger } from '@aurelia/kernel';

export const IRouterEvents = DI.createInterface<IRouterEvents>('IRouterEvents', x => x.singleton(RouterEvents));
export const IRouterEvents = /*@__PURE__*/DI.createInterface<IRouterEvents>('IRouterEvents', x => x.singleton(RouterEvents));
export interface IRouterEvents extends RouterEvents {}

@@ -42,0 +42,0 @@ export class RouterEvents implements IRouterEvents {

import { isObject } from '@aurelia/metadata';
import { IContainer, ILogger, DI, IDisposable, onResolve, Writable, resolveAll } from '@aurelia/kernel';
import { IContainer, ILogger, DI, IDisposable, onResolve, Writable, resolveAll, Registration, IResolver } from '@aurelia/kernel';
import { CustomElement, CustomElementDefinition, IPlatform } from '@aurelia/runtime-html';

@@ -104,3 +104,3 @@

export interface IRouter extends Router { }
export const IRouter = DI.createInterface<IRouter>('IRouter', x => x.singleton(Router));
export const IRouter = /*@__PURE__*/DI.createInterface<IRouter>('IRouter', x => x.singleton(Router));
export class Router {

@@ -197,2 +197,3 @@ private _ctx: RouteContext | null = null;

this.instructions = ViewportInstructionTree.create('', options);
container.registerResolver(Router, Registration.instance(Router, this) as unknown as IResolver<Router>);
}

@@ -199,0 +200,0 @@

@@ -52,3 +52,3 @@ import { ICustomElementController } from '@aurelia/runtime-html';

export const IStateManager = DI.createInterface<IStateManager>('IStateManager', x => x.singleton(ScrollStateManager));
export const IStateManager = /*@__PURE__*/DI.createInterface<IStateManager>('IStateManager', x => x.singleton(ScrollStateManager));
export interface IStateManager {

@@ -55,0 +55,0 @@ saveState(controller: ICustomElementController): void;

Sorry, the diff of this file is too big to display

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc