@scaffoldly/rowdy 0.0.2-1-beta.20250930234754.ffd57d3 → 0.0.2-1-beta.20251001124440.3766778

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ interface ILoggable {
4
4
  }
5
5
 
6
6
  type RouteRuleMatchDetail = {
7
- type?: 'PathToRegexp' | 'RegularExpression' | 'Exact' | 'PathPrefix';
7
+ type?: 'PathToRegexp' | 'Exact' | 'PathPrefix';
8
8
  value?: string;
9
9
  };
10
10
  type RouteRuleMatch = {
@@ -23,17 +23,26 @@ interface IRoutes {
23
23
  readonly version: RoutesVersion;
24
24
  readonly rules: Array<RouteRule>;
25
25
  }
26
+ declare class URI extends URL implements ILoggable {
27
+ readonly insecure: boolean;
28
+ private constructor();
29
+ static from(uri: string): URI;
30
+ repr(): string;
31
+ }
26
32
  declare class Routes implements IRoutes, ILoggable {
27
33
  readonly version: RoutesVersion;
28
34
  readonly rules: Array<RouteRule>;
29
35
  withRules(rules: Array<RouteRule>): this;
30
36
  withDefault(target: string): this;
37
+ withPaths(paths: {
38
+ [key: string]: string | undefined;
39
+ }): this;
31
40
  withPath(path: string, target: string): this;
32
41
  withMatch(match: RouteRuleMatch, target: RouteRuleBackendRef): this;
33
42
  static fromDataURL(dataUrl?: string): Routes;
34
43
  intoDataURL(): string;
35
- intoURL(path: string): URL | undefined;
44
+ intoURI(path: string): URI | undefined;
36
45
  repr(): string;
37
46
  }
38
47
 
39
- export { Routes };
48
+ export { Routes, URI };