@stacksjs/router 0.75.519 → 0.75.522

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.
@@ -9,6 +9,8 @@ declare type SecurityModule = typeof import('@stacksjs/security');
9
9
  * replacement for any of the built-in stores.
10
10
  */
11
11
  export declare class EncryptedSessionStore implements SessionStore<SessionData> {
12
+ private inner;
13
+ private opts;
12
14
  constructor(inner: SessionStore<SessionData>, opts?: EncryptedSessionStoreOptions);
13
15
  set(sid: string, session: SessionData, ttl?: number): Promise<void>;
14
16
  touch(sid: string, session: SessionData, ttl?: number): Promise<void>;
@@ -17,4 +19,7 @@ export declare class EncryptedSessionStore implements SessionStore<SessionData>
17
19
  all(): Promise<Record<string, SessionData>>;
18
20
  length(): Promise<number>;
19
21
  clear(): Promise<void>;
22
+ private wrap;
23
+ private unwrap;
20
24
  }
25
+ export {};
@@ -1,3 +1,4 @@
1
+ import './query-tracking';
1
2
  import type { EnhancedRequest } from '@stacksjs/bun-router';
2
3
  /**
3
4
  * Create an Ignition-style error response for development
@@ -1,3 +1,4 @@
1
+ import './request-context';
1
2
  export declare function isDebugAllowed(): boolean;
2
3
  export declare function trackQuery(query: string, time?: number, connection?: string): void;
3
4
  export declare function registerQueryTracker(): void;
@@ -29,3 +29,4 @@ export declare function rateLimitStatus(key: string, max: number, windowSeconds:
29
29
  */
30
30
  export declare function clearRateLimit(key: string, max: number, windowSeconds: number, options?: { identity?: string }): Promise<void>;
31
31
  declare type Period = 'second' | 'minute' | 'hour' | 'day';
32
+ export {};
@@ -1,3 +1,4 @@
1
+ import './stacks-router';
1
2
  import type { RouteRegistry } from './route-types';
2
3
  export declare function listRootMountedAppRoutes(): readonly RootMountedAppRoute[];
3
4
  /**
@@ -58,3 +58,4 @@ declare interface CacheSettings {
58
58
  prefix?: string
59
59
  drivers?: { redis?: { url?: string, host?: string, port?: number, username?: string, password?: string, database?: number, tls?: boolean } }
60
60
  }
61
+ export {};
@@ -535,7 +535,7 @@ declare type WithActionsPrefix<T extends string> = T extends `Actions/${string}`
535
535
  * first and never looks at `except` when both are given.
536
536
  */
537
537
  declare type ActiveResourceActions<TOnly extends ResourceAction, TExcept extends ResourceAction> = [TOnly] extends [never]
538
- ? ([TExcept] extends [never] ? ResourceAction : Exclude<ResourceAction, TExcept>)
538
+ ? Exclude<ResourceAction, TExcept>
539
539
  : TOnly;
540
540
  /** The action files a call needs, given its base and its active actions. */
541
541
  declare type RequiredResourceActions<TBase extends string, TActive extends ResourceAction> = `${WithActionsPrefix<StripActionSuffix<TBase>>}${ResourceKindOf[TActive]}Action`;
@@ -655,6 +655,8 @@ declare type NativeResponseFinalizer = (response: Response, request: Request) =>
655
655
  * get would buy nothing since reads dominate.
656
656
  */
657
657
  declare class BoundedMap<K, V> {
658
+ private map;
659
+ private max;
658
660
  constructor(max: number);
659
661
  get(key: K): V | undefined;
660
662
  has(key: K): boolean;
@@ -663,3 +665,4 @@ declare class BoundedMap<K, V> {
663
665
  clear(): void;
664
666
  get size(): number;
665
667
  }
668
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.519",
5
+ "version": "0.75.522",
6
6
  "description": "The Stacks framework router.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -68,27 +68,27 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@stacksjs/bun-router": "^0.1.24",
71
- "@stacksjs/cache": "0.75.519",
72
- "@stacksjs/collections": "0.75.519",
73
- "@stacksjs/config": "0.75.519",
74
- "@stacksjs/error-handling": "0.75.519",
75
- "@stacksjs/logging": "0.75.519",
76
- "@stacksjs/pagination": "0.75.519",
77
- "@stacksjs/path": "0.75.519",
78
- "@stacksjs/security": "0.75.519",
79
- "@stacksjs/storage": "0.75.519",
71
+ "@stacksjs/cache": "0.75.522",
72
+ "@stacksjs/collections": "0.75.522",
73
+ "@stacksjs/config": "0.75.522",
74
+ "@stacksjs/error-handling": "0.75.522",
75
+ "@stacksjs/logging": "0.75.522",
76
+ "@stacksjs/pagination": "0.75.522",
77
+ "@stacksjs/path": "0.75.522",
78
+ "@stacksjs/security": "0.75.522",
79
+ "@stacksjs/storage": "0.75.522",
80
80
  "ts-rate-limiter": "^0.4.10"
81
81
  },
82
82
  "devDependencies": {
83
- "@stacksjs/actions": "0.75.519",
84
- "@stacksjs/types": "0.75.519",
83
+ "@stacksjs/actions": "0.75.522",
84
+ "@stacksjs/types": "0.75.522",
85
85
  "better-dx": "^0.2.24"
86
86
  },
87
87
  "peerDependencies": {
88
- "@stacksjs/api": "0.75.519",
89
- "@stacksjs/auth": "0.75.519",
90
- "@stacksjs/database": "0.75.519",
91
- "@stacksjs/validation": "0.75.519"
88
+ "@stacksjs/api": "0.75.522",
89
+ "@stacksjs/auth": "0.75.522",
90
+ "@stacksjs/database": "0.75.522",
91
+ "@stacksjs/validation": "0.75.522"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@stacksjs/api": {