@a11d/lit-application
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -12,6 +12,8 @@ import type { Component } from '@a11d/lit'; | ||
export declare class RoutesContainer extends Map<string, RouteMetadata> { | ||
basePath: string; | ||
get(key: string): RouteMetadata | undefined; | ||
private _basePath; | ||
get basePath(): string; | ||
set basePath(value: string); | ||
set(key: string, value: RouteMetadata): this; | ||
} | ||
export {}; | ||
//# sourceMappingURL=RoutesContainer.d.ts.map |
export class RoutesContainer extends Map { | ||
constructor() { | ||
super(...arguments); | ||
this.basePath = ''; | ||
this._basePath = ''; | ||
} | ||
get(key) { | ||
return super.get(this.basePath + key); | ||
get basePath() { return this._basePath; } | ||
set basePath(value) { | ||
this._basePath = value; | ||
for (const [key, value] of this) { | ||
this.delete(key); | ||
this.set(key, value); | ||
} | ||
} | ||
set(key, value) { | ||
return super.set(this.basePath + key, value); | ||
} | ||
} |
{ | ||
"name": "@a11d/lit-application", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "Lit-based application shell.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150909
1515