@dunx/http 2.1.1 → 2.2.0

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
@@ -7,7 +7,7 @@ export { gatewaysOf, routesOf, type GatewayHandler, type GatewayNode, type Route
7
7
  export { ClientAddress } from './server/client-address.js';
8
8
  export { buildContext, type RouteContext } from './server/context.js';
9
9
  export { preflight, withCors, type CorsOptions, type CorsOrigin, } from './server/cors.js';
10
- export { defaultErrorMapper, ErrorFilter, errorMapper, HttpError, isErrorFilter, toErrorMapper, ValidationError, type ErrorHandler, type ErrorMapper, type InputSource, type ValidationIssue, } from './server/errors.js';
10
+ export { defaultErrorMapper, ErrorFilter, errorMapper, HttpError, isErrorFilter, toErrorMapper, ValidationError, type ErrorHandler, type ErrorMapper, type HttpErrorOptions, type InputSource, type ValidationIssue, } from './server/errors.js';
11
11
  export { HttpFactory, type HttpApp, type HttpOptions, } from './server/factory.js';
12
12
  export { REQUEST_ID_HEADER, RequestLoggingMiddleware, type RequestLoggingOptions, } from './server/request-logging.js';
13
13
  export { compose, type Middleware, type Next, type RouteHandler, } from './server/middleware.js';
@@ -16,11 +16,18 @@ export type { AppSettings } from './server/settings.js';
16
16
  export { StaticFiles } from './static/files.js';
17
17
  export { StaticModule } from './static/module.js';
18
18
  export { normalizePrefix, StaticOptions, type StaticOptionsInit, } from './static/options.js';
19
+ export { SKIP_THROTTLE, SkipThrottle, THROTTLE, Throttle, type ThrottleLimit, } from './throttle/decorators.js';
20
+ export { ThrottleGuard } from './throttle/guard.js';
21
+ export { ThrottleModule } from './throttle/module.js';
22
+ export { ThrottleOptions, type ThrottleOptionsInit, } from './throttle/options.js';
23
+ export { MemoryThrottleStore, RedisThrottleStore, ThrottleStore, type ThrottleRedis, } from './throttle/store.js';
19
24
  export { HttpStatusCode, type HttpStatusName } from './server/status.js';
20
25
  export { buildWebSocket, type UpgradeHandler, type WebSocketRuntime, } from './ws/adapter.js';
21
26
  export { Gateway, OnClose, OnDrain, OnMessage, OnOpen, OnPing, OnPong, OnUpgrade, } from './ws/decorators.js';
22
27
  export { discoverGateway, discoverGateways, normalizePath, type DiscoveredGateway, type DiscoveredHandler, type Invoke, } from './ws/discover.js';
23
28
  export { decode, encode, type Envelope } from './ws/envelope.js';
29
+ export { composeSocket, observe, type SocketContext, type SocketDispatch, type SocketFrame, type SocketMiddleware, type SocketNext, } from './ws/middleware.js';
30
+ export { SocketLoggingMiddleware, type SocketLoggingOptions, } from './ws/logging.js';
24
31
  export { HandlerKind, isGateway, type HandlerMeta } from './ws/marker.js';
25
32
  export { PubSub } from './ws/pubsub.js';
26
33
  export { defaultRelayUrl, RedisRelay, type RedisRelayOptions, } from './ws/redis-relay.js';