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

@aurelia/router-lite

Package Overview
Dependencies
Maintainers
1
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/router-lite - npm Package Compare versions

Comparing version 2.0.1-dev.202403021005 to 2.0.1-dev.202403150512

2

dist/types/index.d.ts

@@ -15,3 +15,3 @@ export { type IViewport, } from './resources/viewport';

export { ViewportAgent, } from './viewport-agent';
export { IUrlParser, pathUrlParser, fragmentUrlParser, } from './url-parser';
export { type IUrlParser, pathUrlParser, fragmentUrlParser, } from './url-parser';
//# sourceMappingURL=index.d.ts.map

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

import { Constructable, ResourceType, IContainer } from '@aurelia/kernel';
import { Constructable, ResourceType } from '@aurelia/kernel';
import type { RouteNode } from './route-tree';

@@ -19,3 +19,2 @@ import type { FallbackFunction, IChildRouteConfig, IRouteConfig, Routeable, TransitionPlanOrFunc } from './options';

private constructor();
register(container: IContainer): void;
}

@@ -22,0 +21,0 @@ export declare const Route: {

{
"name": "@aurelia/router-lite",
"version": "2.0.1-dev.202403021005",
"version": "2.0.1-dev.202403150512",
"main": "dist/cjs/index.cjs",

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

"dependencies": {
"@aurelia/kernel": "2.0.1-dev.202403021005",
"@aurelia/metadata": "2.0.1-dev.202403021005",
"@aurelia/platform": "2.0.1-dev.202403021005",
"@aurelia/platform-browser": "2.0.1-dev.202403021005",
"@aurelia/route-recognizer": "2.0.1-dev.202403021005",
"@aurelia/runtime": "2.0.1-dev.202403021005",
"@aurelia/runtime-html": "2.0.1-dev.202403021005"
"@aurelia/kernel": "2.0.1-dev.202403150512",
"@aurelia/metadata": "2.0.1-dev.202403150512",
"@aurelia/platform": "2.0.1-dev.202403150512",
"@aurelia/platform-browser": "2.0.1-dev.202403150512",
"@aurelia/route-recognizer": "2.0.1-dev.202403150512",
"@aurelia/runtime": "2.0.1-dev.202403150512",
"@aurelia/runtime-html": "2.0.1-dev.202403150512"
},

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

@@ -115,5 +115,5 @@ export {

export {
IUrlParser,
type IUrlParser,
pathUrlParser,
fragmentUrlParser,
} from './url-parser';
import {
Constructable,
DI,

@@ -11,5 +10,3 @@ type IContainer,

onResolve,
Protocol,
Registration,
ResourceDefinition,
emptyObject,

@@ -204,4 +201,2 @@ emptyArray,

container.register(config);
this._recognizer = new RouteRecognizer();

@@ -398,3 +393,3 @@

const container = this.container;
const componentInstance = container.get<IRouteViewModel>(routeNode.component.key);
const componentInstance = container.invoke<IRouteViewModel>(routeNode.component.Type);
// this is the point where we can load the delayed (non-static) child route configuration by calling the getRouteConfig

@@ -496,4 +491,4 @@ const task: Promise<void> | void = this._childRoutesConfigured

if (typeof raw === 'function') {
const def = Protocol.resource.getAll(raw as Constructable).find(isCustomElementDefinition);
if (def !== void 0) return def;
const def = CustomElement.isType(raw) ? CustomElement.getDefinition(raw) : null;
if (def != null) return def;
}

@@ -504,10 +499,13 @@

for (const item of m.items) {
if (item.isConstructable) {
const def = item.definitions.find(isCustomElementDefinition);
if (def !== void 0) {
if (item.key === 'default') {
defaultExport = def;
} else if (firstNonDefaultExport === void 0) {
firstNonDefaultExport = def;
}
const def = (CustomElement.isType(item.value)
// static resource API may require to change this item.definition
// into CustomElement.getDefinition(item.value) or CustomElement.getOrCreateDefinition(item.value)
? item.definition
: null
) as CustomElementDefinition;
if (def != null) {
if (item.key === 'default') {
defaultExport = def;
} else if (firstNonDefaultExport === void 0) {
firstNonDefaultExport = def;
}

@@ -672,6 +670,2 @@ }

function isCustomElementDefinition(value: ResourceDefinition): value is CustomElementDefinition {
return CustomElement.isType(value.Type);
}
export class $RecognizedRoute {

@@ -678,0 +672,0 @@ public constructor(

import { Metadata } from '@aurelia/metadata';
import { Constructable, emptyArray, onResolve, Protocol, ResourceType, Writable, IContainer } from '@aurelia/kernel';
import { Constructable, emptyArray, onResolve, ResourceType, Writable, getResourceKeyFor } from '@aurelia/kernel';

@@ -205,17 +205,6 @@ import { validateRouteConfig, expectType, shallowEquals, isPartialRedirectRouteConfig, isPartialChildRouteConfig } from './validation';

}
public register(container: IContainer): void {
/**
* When an instance of the RouteConfig is created, via the static `_create` and `resolveRouteConfiguration`, the component is always resolved to a custom element.
* This makes the process to registering to registering the custom element to the DI.
* The component can only be null for redirection configurations and that is ignored here.
*/
const component = this.component;
if (component == null) return;
container.register(component);
}
}
export const Route = {
name: Protocol.resource.keyFor('route-configuration'),
name: /*@__PURE__*/getResourceKeyFor('route-configuration'),
/**

@@ -320,3 +309,3 @@ * Returns `true` if the specified type has any static route configuration (either via static properties or a &#64;route decorator)

const component = context.container.find(CustomElement, instruction.value);
const component = CustomElement.find(context.container, instruction.value);
if (component === null) throw new Error(getMessage(Events.rtNoComponent, instruction.value, context));

@@ -323,0 +312,0 @@

@@ -43,3 +43,3 @@ import { emptyQuery } from './router';

value,
queryParams != null ? queryParams : emptyQuery,
queryParams ?? emptyQuery,
fragment,

@@ -46,0 +46,0 @@ );

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc