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.202310060506 to 2.0.1-dev.202310121732

2

dist/types/route-tree.d.ts

@@ -47,3 +47,2 @@ import { type ILogger } from '@aurelia/kernel';

readonly component: CustomElementDefinition;
readonly children: RouteNode[];
/**

@@ -60,2 +59,3 @@ * Not-yet-resolved viewport instructions.

get isInstructionsFinalized(): boolean;
readonly children: RouteNode[];
private constructor();

@@ -62,0 +62,0 @@ static create(input: IRouteNode & {

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

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

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

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

@@ -92,7 +92,2 @@ import { Constructable, ILogger, resolve } from '@aurelia/kernel';

break;
case 'boolean':
if (value) {
propStrings.push(`${prop}:${value}`);
}
break;
default: {

@@ -99,0 +94,0 @@ propStrings.push(`${prop}:${String(value)}`);

@@ -81,2 +81,3 @@ import {

public get isInstructionsFinalized(): boolean { return this._isInstructionsFinalized; }
public readonly children: RouteNode[] = [];

@@ -123,3 +124,2 @@ private constructor(

public readonly component: CustomElementDefinition,
public readonly children: RouteNode[],
/**

@@ -154,3 +154,2 @@ * Not-yet-resolved viewport instructions.

/* component */input.component,
/* children */input.children ?? [],
/* residue */input.residue ?? [],

@@ -262,5 +261,9 @@ );

this.component,
this.children.map(x => x._clone()),
[...this.residue],
);
const children = this.children;
const len = children.length;
for (let i = 0; i < len; ++i) {
clone.children.push(children[i]._clone());
}
clone._version = this._version + 1;

@@ -267,0 +270,0 @@ if (clone.context.node === this) {

@@ -16,10 +16,2 @@ import { Metadata } from '@aurelia/metadata';

function defaultReentryBehavior(current: RouteNode, next: RouteNode): TransitionPlan {
if (!shallowEquals(current.params, next.params)) {
return 'replace';
}
return 'none';
}
// Every kind of route configurations are normalized to this `RouteConfig` class.

@@ -147,4 +139,9 @@ export class RouteConfig implements IRouteConfig, IChildRouteConfig {

/** @internal */
public _getTransitionPlan(cur: RouteNode, next: RouteNode) {
const plan = this.transitionPlan ?? defaultReentryBehavior;
public _getTransitionPlan(cur: RouteNode, next: RouteNode, overridingTransitionPlan: TransitionPlan | null) {
const hasSameParameters = shallowEquals(cur.params, next.params);
if (hasSameParameters) return 'none';
if (overridingTransitionPlan != null) return overridingTransitionPlan;
const plan = this.transitionPlan ?? 'replace';
return typeof plan === 'function' ? plan(cur, next) : plan;

@@ -151,0 +148,0 @@ }

@@ -701,3 +701,3 @@ // No-fallthrough disabled due to large numbers of false positives

// Component is the same, so determine plan based on config and/or convention
this._$plan = options.transitionPlan ?? next.context.config._getTransitionPlan(cur, next);
this._$plan = next.context.config._getTransitionPlan(cur, next, options.transitionPlan);
}

@@ -704,0 +704,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

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