alepha 0.11.6 → 0.11.9

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/server.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as _alepha_core4 from "alepha";
1
+ import * as _alepha_core1 from "alepha";
2
2
  import { Alepha, AlephaError, Async, Descriptor, FileLike, KIND, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
3
- import * as _alepha_logger2 from "alepha/logger";
3
+ import * as _alepha_logger0 from "alepha/logger";
4
4
  import { Readable } from "node:stream";
5
5
  import { ReadableStream } from "node:stream/web";
6
6
  import { Route, RouterProvider } from "alepha/router";
@@ -186,14 +186,14 @@ declare class ServerRequestParser {
186
186
  //#region src/providers/ServerTimingProvider.d.ts
187
187
  type TimingMap = Record<string, [number, number]>;
188
188
  declare class ServerTimingProvider {
189
- protected readonly log: _alepha_logger2.Logger;
189
+ protected readonly log: _alepha_logger0.Logger;
190
190
  protected readonly alepha: Alepha;
191
191
  options: {
192
192
  prefix: string;
193
193
  disabled: boolean;
194
194
  };
195
- readonly onRequest: _alepha_core4.HookDescriptor<"server:onRequest">;
196
- readonly onResponse: _alepha_core4.HookDescriptor<"server:onResponse">;
195
+ readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
196
+ readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
197
197
  protected get handlerName(): string;
198
198
  beginTiming(name: string): void;
199
199
  endTiming(name: string): void;
@@ -234,7 +234,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
234
234
  //#endregion
235
235
  //#region src/services/HttpClient.d.ts
236
236
  declare class HttpClient {
237
- protected readonly log: _alepha_logger2.Logger;
237
+ protected readonly log: _alepha_logger0.Logger;
238
238
  protected readonly alepha: Alepha;
239
239
  readonly cache: _alepha_cache0.CacheDescriptorFn<HttpClientCache, any[]>;
240
240
  protected readonly pendingRequests: HttpClientPendingRequests;
@@ -554,7 +554,7 @@ interface ActionDescriptorOptions<TConfig extends RequestConfigSchema> extends O
554
554
  handler: ServerActionHandler<TConfig>;
555
555
  }
556
556
  declare class ActionDescriptor<TConfig extends RequestConfigSchema> extends Descriptor<ActionDescriptorOptions<TConfig>> {
557
- protected readonly log: _alepha_logger2.Logger;
557
+ protected readonly log: _alepha_logger0.Logger;
558
558
  protected readonly env: {
559
559
  SERVER_API_PREFIX: string;
560
560
  };
@@ -726,9 +726,9 @@ declare const okSchema: typebox0.TObject<{
726
726
  type Ok = Static<typeof okSchema>;
727
727
  //#endregion
728
728
  //#region src/providers/NodeHttpServerProvider.d.ts
729
- declare const envSchema: _alepha_core4.TObject<{
730
- SERVER_PORT: _alepha_core4.TInteger;
731
- SERVER_HOST: _alepha_core4.TString;
729
+ declare const envSchema: _alepha_core1.TObject<{
730
+ SERVER_PORT: _alepha_core1.TInteger;
731
+ SERVER_HOST: _alepha_core1.TString;
732
732
  }>;
733
733
  declare module "alepha" {
734
734
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -736,29 +736,29 @@ declare module "alepha" {
736
736
  declare class NodeHttpServerProvider extends ServerProvider {
737
737
  protected readonly alepha: Alepha;
738
738
  protected readonly dateTimeProvider: DateTimeProvider;
739
- protected readonly log: _alepha_logger2.Logger;
739
+ protected readonly log: _alepha_logger0.Logger;
740
740
  protected readonly env: {
741
741
  SERVER_PORT: number;
742
742
  SERVER_HOST: string;
743
743
  };
744
744
  protected readonly router: ServerRouterProvider;
745
745
  protected readonly server: http0.Server<typeof IncomingMessage, typeof ServerResponse$1>;
746
- protected readonly onNodeRequest: _alepha_core4.HookDescriptor<"node:request">;
746
+ protected readonly onNodeRequest: _alepha_core1.HookDescriptor<"node:request">;
747
747
  handle(req: IncomingMessage, res: ServerResponse$1): Promise<void>;
748
748
  get hostname(): string;
749
- readonly start: _alepha_core4.HookDescriptor<"start">;
750
- protected readonly stop: _alepha_core4.HookDescriptor<"stop">;
749
+ readonly start: _alepha_core1.HookDescriptor<"start">;
750
+ protected readonly stop: _alepha_core1.HookDescriptor<"stop">;
751
751
  protected listen(): Promise<void>;
752
752
  protected close(): Promise<void>;
753
753
  }
754
754
  //#endregion
755
755
  //#region src/providers/ServerLoggerProvider.d.ts
756
756
  declare class ServerLoggerProvider {
757
- protected readonly log: _alepha_logger2.Logger;
757
+ protected readonly log: _alepha_logger0.Logger;
758
758
  protected readonly alepha: Alepha;
759
- readonly onRequest: _alepha_core4.HookDescriptor<"server:onRequest">;
760
- readonly onError: _alepha_core4.HookDescriptor<"server:onError">;
761
- readonly onResponse: _alepha_core4.HookDescriptor<"server:onResponse">;
759
+ readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
760
+ readonly onError: _alepha_core1.HookDescriptor<"server:onError">;
761
+ readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
762
762
  }
763
763
  //#endregion
764
764
  //#region src/providers/ServerNotReadyProvider.d.ts
@@ -771,7 +771,7 @@ declare class ServerLoggerProvider {
771
771
  */
772
772
  declare class ServerNotReadyProvider {
773
773
  protected readonly alepha: Alepha;
774
- readonly onRequest: _alepha_core4.HookDescriptor<"server:onRequest">;
774
+ readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
775
775
  }
776
776
  //#endregion
777
777
  //#region src/index.d.ts
@@ -843,7 +843,7 @@ declare module "alepha" {
843
843
  * @see {@link $action}
844
844
  * @module alepha.server
845
845
  */
846
- declare const AlephaServer: _alepha_core4.Service<_alepha_core4.Module>;
846
+ declare const AlephaServer: _alepha_core1.Service<_alepha_core1.Module>;
847
847
  //#endregion
848
848
  export { $action, $route, ActionDescriptor, ActionDescriptorFn, ActionDescriptorOptions, AlephaServer, BadRequestError, ClientRequestEntry, ClientRequestEntryContainer, ClientRequestOptions, ClientRequestResponse, ConflictError, ErrorSchema, FetchActionArgs, FetchOptions, FetchResponse, ForbiddenError, HttpAction, HttpClient, HttpClientPendingRequests, HttpError, HttpErrorLike, NodeHttpServerProvider, NotFoundError, Ok, RequestConfigSchema, RequestInitWithOptions, ResponseBodyType, ResponseKind, RouteDescriptor, RouteDescriptorOptions, RouteMethod, ServerActionHandler, ServerActionRequest, ServerHandler, ServerLoggerProvider, ServerNotReadyProvider, ServerProvider, ServerRawRequest, ServerReply, ServerRequest, ServerRequestConfig, ServerRequestConfigEntry, ServerResponse, ServerResponseBody, ServerRoute, ServerRouteMatcher, ServerRouteRequestHandler, ServerRouterProvider, ServerTimingProvider, TRequestBody, TResponseBody, UnauthorizedError, ValidationError, errorNameByStatus, errorSchema, isHttpError, isMultipart, okSchema, routeMethods };
849
849
  //# sourceMappingURL=index.d.ts.map
package/vite.d.ts CHANGED
@@ -126,7 +126,7 @@ interface ViteAlephaBuildOptions {
126
126
  * Path to the entry file for the server build.
127
127
  * If empty, SSR build will be skipped.
128
128
  */
129
- serverEntry?: string;
129
+ serverEntry?: string | false;
130
130
  /**
131
131
  * Set false to skip the client build.
132
132
  * This is useful if you only want to build the server-side application.
@@ -158,7 +158,7 @@ interface ViteAlephaDevOptions {
158
158
  * Path to the entry file for the server build.
159
159
  * If empty, plugin will be disabled.
160
160
  */
161
- serverEntry?: string;
161
+ serverEntry?: string | false;
162
162
  /**
163
163
  * If true, enables debug logging.
164
164
  *
package/ui.cjs DELETED
@@ -1,8 +0,0 @@
1
- 'use strict';
2
- var m = require('@alepha/ui');
3
- Object.keys(m).forEach(function (k) {
4
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
5
- enumerable: true,
6
- get: function () { return m[k]; }
7
- });
8
- });