alepha 0.7.4 → 0.7.6

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.
Files changed (99) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -21
  3. package/cache/redis.cjs +4 -8
  4. package/cache/redis.d.ts +30 -91
  5. package/cache/redis.js +1 -1
  6. package/cache.cjs +4 -8
  7. package/cache.d.ts +190 -259
  8. package/cache.js +1 -1
  9. package/core.cjs +4 -8
  10. package/core.d.ts +950 -925
  11. package/core.js +1 -1
  12. package/datetime.cjs +4 -8
  13. package/datetime.d.ts +151 -140
  14. package/datetime.js +1 -1
  15. package/lock/redis.cjs +7 -49
  16. package/lock/redis.d.ts +17 -14
  17. package/lock/redis.js +1 -47
  18. package/lock.cjs +4 -8
  19. package/lock.d.ts +117 -170
  20. package/lock.js +1 -1
  21. package/package.json +70 -40
  22. package/postgres.cjs +4 -8
  23. package/postgres.d.ts +1314 -4400
  24. package/postgres.js +1 -1
  25. package/queue/redis.cjs +8 -0
  26. package/queue/redis.d.ts +31 -0
  27. package/queue/redis.js +1 -0
  28. package/queue.cjs +4 -8
  29. package/queue.d.ts +162 -205
  30. package/queue.js +1 -1
  31. package/react/auth.cjs +4 -8
  32. package/react/auth.d.ts +167 -280
  33. package/react/auth.js +1 -1
  34. package/react.cjs +4 -8
  35. package/react.d.ts +530 -570
  36. package/react.js +1 -1
  37. package/redis.cjs +4 -8
  38. package/redis.d.ts +59 -132
  39. package/redis.js +1 -1
  40. package/retry.cjs +4 -8
  41. package/retry.d.ts +34 -31
  42. package/retry.js +1 -1
  43. package/scheduler.cjs +4 -8
  44. package/scheduler.d.ts +128 -155
  45. package/scheduler.js +1 -1
  46. package/security.cjs +4 -8
  47. package/security.d.ts +472 -595
  48. package/security.js +1 -1
  49. package/server/cache.cjs +4 -8
  50. package/server/cache.d.ts +73 -39
  51. package/server/cache.js +1 -1
  52. package/server/cookies.cjs +4 -8
  53. package/server/cookies.d.ts +46 -41
  54. package/server/cookies.js +1 -1
  55. package/server/static.cjs +4 -8
  56. package/server/static.d.ts +98 -95
  57. package/server/static.js +1 -1
  58. package/server/swagger.cjs +4 -8
  59. package/server/swagger.d.ts +106 -92
  60. package/server/swagger.js +1 -1
  61. package/server.cjs +4 -8
  62. package/server.d.ts +754 -1025
  63. package/server.js +1 -1
  64. package/testing.cjs +8 -0
  65. package/testing.d.ts +1 -0
  66. package/testing.js +1 -0
  67. package/topic/redis.cjs +8 -0
  68. package/topic/redis.d.ts +45 -0
  69. package/topic/redis.js +1 -0
  70. package/topic.cjs +4 -8
  71. package/topic.d.ts +171 -163
  72. package/topic.js +1 -1
  73. package/vite.cjs +4 -8
  74. package/vite.d.ts +91 -84
  75. package/vite.js +1 -1
  76. package/assets/logo.png +0 -0
  77. package/src/cache/redis.ts +0 -1
  78. package/src/cache.ts +0 -1
  79. package/src/core.ts +0 -1
  80. package/src/datetime.ts +0 -1
  81. package/src/lock/redis.ts +0 -1
  82. package/src/lock.ts +0 -1
  83. package/src/postgres.ts +0 -1
  84. package/src/queue/redis.ts +0 -1
  85. package/src/queue.ts +0 -1
  86. package/src/react/auth.ts +0 -1
  87. package/src/react.ts +0 -1
  88. package/src/redis.ts +0 -1
  89. package/src/retry.ts +0 -1
  90. package/src/scheduler.ts +0 -1
  91. package/src/security.ts +0 -1
  92. package/src/server/cache.ts +0 -1
  93. package/src/server/cookies.ts +0 -1
  94. package/src/server/static.ts +0 -1
  95. package/src/server/swagger.ts +0 -1
  96. package/src/server.ts +0 -1
  97. package/src/topic/redis.ts +0 -1
  98. package/src/topic.ts +0 -1
  99. package/src/vite.ts +0 -1
package/security.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/security';
1
+ export * from '@alepha/security'
package/server/cache.cjs CHANGED
@@ -1,12 +1,8 @@
1
1
  'use strict';
2
-
3
- var serverCache = require('@alepha/server-cache');
4
-
5
-
6
-
7
- Object.keys(serverCache).forEach(function (k) {
2
+ var m = require('@alepha/server-cache');
3
+ Object.keys(m).forEach(function (k) {
8
4
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
5
  enumerable: true,
10
- get: function () { return serverCache[k]; }
6
+ get: function () { return m[k]; }
11
7
  });
12
- });
8
+ });
package/server/cache.d.ts CHANGED
@@ -1,51 +1,85 @@
1
- import * as _alepha_core from '@alepha/core';
2
- import { Alepha, OPTIONS, Module } from '@alepha/core';
3
- import { CacheDescriptorOptions, CacheDescriptorProvider, Cache } from '@alepha/cache';
4
- import { DurationLike, DateTimeProvider } from '@alepha/datetime';
5
- import { ServerHandler, ServerRequestConfig } from '@alepha/server';
1
+ import { Cache, CacheDescriptorOptions, CacheDescriptorProvider } from "@alepha/cache";
2
+ import { ServerHandler, ServerRequestConfig } from "@alepha/server";
3
+ import * as _alepha_core1 from "@alepha/core";
4
+ import { Alepha, Module, OPTIONS } from "@alepha/core";
5
+ import { DateTimeProvider, DurationLike } from "@alepha/datetime";
6
6
 
7
+ //#region src/providers/ServerCacheProvider.d.ts
7
8
  declare module "alepha/server" {
8
- interface ServerRoute {
9
- cache?: ServiceRouteCache;
10
- }
11
- interface ActionDescriptor {
12
- invalidate: () => Promise<void>;
13
- }
9
+ interface ServerRoute {
10
+ cache?: ServerRouteCache;
11
+ }
12
+ interface ActionDescriptor {
13
+ invalidate: () => Promise<void>;
14
+ }
14
15
  }
15
16
  declare class ServerCacheProvider {
16
- protected readonly log: _alepha_core.Logger;
17
- protected readonly alepha: Alepha;
18
- protected readonly cacheProvider: CacheDescriptorProvider;
19
- protected readonly time: DateTimeProvider;
20
- protected readonly caches: Map<ServerHandler, RouteCache>;
21
- readonly onConfigure: _alepha_core.HookDescriptor<"configure">;
22
- readonly onRoute: _alepha_core.HookDescriptor<"server:onRoute">;
23
- readonly onRequest: _alepha_core.HookDescriptor<"server:onRequest">;
24
- readonly onSend: _alepha_core.HookDescriptor<"server:onResponse">;
25
- generateETag(content: string): string;
26
- invalidate(route: RouteLike): Promise<void>;
27
- protected getCacheByRoute(route: RouteLike): RouteCache | undefined;
28
- protected createCacheKey(args: ServerRequestConfig): string;
17
+ protected readonly log: _alepha_core1.Logger;
18
+ protected readonly alepha: Alepha;
19
+ protected readonly cacheProvider: CacheDescriptorProvider;
20
+ protected readonly time: DateTimeProvider;
21
+ protected readonly caches: Map<ServerHandler, RouteCache>;
22
+ readonly onConfigure: _alepha_core1.HookDescriptor<"configure">;
23
+ readonly onRoute: _alepha_core1.HookDescriptor<"server:onRoute">;
24
+ readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
25
+ readonly onSend: _alepha_core1.HookDescriptor<"server:onResponse">;
26
+ generateETag(content: string): string;
27
+ invalidate(route: RouteLike): Promise<void>;
28
+ protected getCacheByRoute(route: RouteLike): RouteCache | undefined;
29
+ protected createCacheKey(args: ServerRequestConfig): string;
29
30
  }
30
- type ServiceRouteCache = boolean | DurationLike | Omit<CacheDescriptorOptions<any>, "handler" | "key">;
31
+ type ServerRouteCache = boolean | DurationLike | Omit<CacheDescriptorOptions<any>, "handler" | "key">;
31
32
  type RouteCache = Cache<{
32
- contentType?: string;
33
- body: string;
34
- status?: number;
35
- lastModified: string;
36
- hash: string;
33
+ contentType?: string;
34
+ body: string;
35
+ status?: number;
36
+ lastModified: string;
37
+ hash: string;
37
38
  }>;
38
39
  type RouteLike = {
39
- [OPTIONS]: {
40
- handler?: ServerHandler;
41
- };
42
- } | {
40
+ [OPTIONS]: {
43
41
  handler?: ServerHandler;
42
+ };
43
+ } | {
44
+ handler?: ServerHandler;
44
45
  };
45
-
46
+ //#endregion
47
+ //#region src/index.d.ts
48
+ /**
49
+ * # Alepha Server Cache Module
50
+ *
51
+ * @description
52
+ * Plugin for Alepha Server that provides server-side caching capabilities.
53
+ * It uses the Alepha Cache module to cache responses from server actions ($action).
54
+ * It also provides a ETag-based cache invalidation mechanism.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * import { Alepha } from "@alepha/core";
59
+ * import { $action } from "@alepha/server";
60
+ * import { AlephaServerCache } from "alepha/server/cache";
61
+ *
62
+ * class ApiServer {
63
+ * hello = $action({
64
+ * cache: true,
65
+ * handler: () => "Hello, World!",
66
+ * });
67
+ * }
68
+ *
69
+ * const alepha = Alepha.create()
70
+ * .with(AlephaServerCache)
71
+ * .with(ApiServer);
72
+ *
73
+ * run(alepha);
74
+ * ```
75
+ *
76
+ * @see {@link ServerCacheProvider}
77
+ * @module alepha.server.cache
78
+ */
46
79
  declare class AlephaServerCache implements Module {
47
- readonly name = "alepha.server.cache";
48
- readonly $services: (alepha: Alepha) => Alepha;
80
+ readonly name = "alepha.server.cache";
81
+ readonly $services: (alepha: Alepha) => Alepha;
49
82
  }
50
-
51
- export { AlephaServerCache, ServerCacheProvider, type ServiceRouteCache };
83
+ //#endregion
84
+ export { AlephaServerCache, ServerCacheProvider, ServerRouteCache };
85
+ //# sourceMappingURL=index.d.ts.map
package/server/cache.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/server-cache';
1
+ export * from '@alepha/server-cache'
@@ -1,12 +1,8 @@
1
1
  'use strict';
2
-
3
- var serverCookies = require('@alepha/server-cookies');
4
-
5
-
6
-
7
- Object.keys(serverCookies).forEach(function (k) {
2
+ var m = require('@alepha/server-cookies');
3
+ Object.keys(m).forEach(function (k) {
8
4
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
5
  enumerable: true,
10
- get: function () { return serverCookies[k]; }
6
+ get: function () { return m[k]; }
11
7
  });
12
- });
8
+ });
@@ -1,56 +1,61 @@
1
- import * as _alepha_core from '@alepha/core';
2
- import { TSchema, KIND, OPTIONS, Static } from '@alepha/core';
3
- import { DurationLike } from '@alepha/datetime';
1
+ import * as _alepha_core1 from "@alepha/core";
2
+ import { KIND, OPTIONS, Static, TSchema } from "@alepha/core";
3
+ import { DurationLike } from "@alepha/datetime";
4
+ import "@alepha/server";
4
5
 
6
+ //#region src/descriptors/$cookie.d.ts
5
7
  interface CookieDescriptorOptions<T extends TSchema> {
6
- schema: T;
7
- name: string;
8
- path?: string;
9
- ttl?: DurationLike;
10
- secure?: boolean;
11
- httpOnly?: boolean;
12
- sameSite?: "strict" | "lax" | "none";
13
- domain?: string;
14
- compress?: boolean;
15
- encrypt?: boolean;
16
- sign?: boolean;
8
+ schema: T;
9
+ name: string;
10
+ path?: string;
11
+ ttl?: DurationLike;
12
+ secure?: boolean;
13
+ httpOnly?: boolean;
14
+ sameSite?: "strict" | "lax" | "none";
15
+ domain?: string;
16
+ compress?: boolean;
17
+ encrypt?: boolean;
18
+ sign?: boolean;
17
19
  }
18
20
  interface CookieDescriptor<T extends TSchema> {
19
- [KIND]: "COOKIE";
20
- [OPTIONS]: CookieDescriptorOptions<T>;
21
- set: (cookies: Cookies, value: Static<T>) => void;
22
- get: (cookies: Cookies) => Static<T> | undefined;
23
- del: (cookies: Cookies) => void;
21
+ [KIND]: "COOKIE";
22
+ [OPTIONS]: CookieDescriptorOptions<T>;
23
+ set: (cookies: Cookies, value: Static<T>) => void;
24
+ get: (cookies: Cookies) => Static<T> | undefined;
25
+ del: (cookies: Cookies) => void;
24
26
  }
25
27
  declare const $cookie: {
26
- <T extends TSchema>(options: CookieDescriptorOptions<T>): CookieDescriptor<T>;
27
- [KIND]: string;
28
+ <T extends TSchema>(options: CookieDescriptorOptions<T>): CookieDescriptor<T>;
29
+ [KIND]: string;
28
30
  };
29
31
  interface Cookies {
30
- req: Record<string, string>;
31
- res: Record<string, Cookie | null>;
32
+ req: Record<string, string>;
33
+ res: Record<string, Cookie | null>;
32
34
  }
33
35
  interface Cookie {
34
- value: string;
35
- path?: string;
36
- maxAge?: number;
37
- secure?: boolean;
38
- httpOnly?: boolean;
39
- sameSite?: "strict" | "lax" | "none";
40
- domain?: string;
36
+ value: string;
37
+ path?: string;
38
+ maxAge?: number;
39
+ secure?: boolean;
40
+ httpOnly?: boolean;
41
+ sameSite?: "strict" | "lax" | "none";
42
+ domain?: string;
41
43
  }
42
-
44
+ //#endregion
45
+ //#region src/providers/ServerCookiesProvider.d.ts
43
46
  declare class ServerCookiesProvider {
44
- readonly onRequest: _alepha_core.HookDescriptor<"server:onRequest">;
45
- readonly onSend: _alepha_core.HookDescriptor<"server:onSend">;
46
- fromHeader(header: string): Record<string, string>;
47
- toHeader(cookies: Record<string, Cookie | null>, isHttps?: boolean): string[];
47
+ readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
48
+ readonly onSend: _alepha_core1.HookDescriptor<"server:onSend">;
49
+ fromHeader(header: string): Record<string, string>;
50
+ toHeader(cookies: Record<string, Cookie | null>, isHttps?: boolean): string[];
48
51
  }
49
-
52
+ //#endregion
53
+ //#region src/index.d.ts
50
54
  declare module "alepha/server" {
51
- interface ServerRequest {
52
- cookies: Cookies;
53
- }
55
+ interface ServerRequest {
56
+ cookies: Cookies;
57
+ }
54
58
  }
55
-
56
- export { $cookie, type Cookie, type CookieDescriptor, type CookieDescriptorOptions, type Cookies, ServerCookiesProvider };
59
+ //#endregion
60
+ export { $cookie, Cookie, CookieDescriptor, CookieDescriptorOptions, Cookies, ServerCookiesProvider };
61
+ //# sourceMappingURL=index.d.ts.map
package/server/cookies.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/server-cookies';
1
+ export * from '@alepha/server-cookies'
package/server/static.cjs CHANGED
@@ -1,12 +1,8 @@
1
1
  'use strict';
2
-
3
- var serverStatic = require('@alepha/server-static');
4
-
5
-
6
-
7
- Object.keys(serverStatic).forEach(function (k) {
2
+ var m = require('@alepha/server-static');
3
+ Object.keys(m).forEach(function (k) {
8
4
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
5
  enumerable: true,
10
- get: function () { return serverStatic[k]; }
6
+ get: function () { return m[k]; }
11
7
  });
12
- });
8
+ });
@@ -1,109 +1,112 @@
1
- import * as _alepha_core from '@alepha/core';
2
- import { KIND, OPTIONS, Alepha } from '@alepha/core';
3
- import { DurationLike, DateTimeProvider } from '@alepha/datetime';
4
- import { ServerRouterProvider, ServerHandler } from '@alepha/server';
1
+ import * as _alepha_core0 from "@alepha/core";
2
+ import { Alepha, KIND, OPTIONS } from "@alepha/core";
3
+ import { DateTimeProvider, DurationLike } from "@alepha/datetime";
4
+ import { ServerHandler, ServerRouterProvider } from "@alepha/server";
5
5
 
6
+ //#region src/descriptors/$serve.d.ts
6
7
  declare const KEY = "SERVE";
7
8
  interface ServeDescriptorOptions {
8
- /**
9
- * Prefix for the served path.
10
- *
11
- * @default "/"
12
- */
13
- path?: string;
14
- /**
15
- * Path to the directory to serve.
16
- *
17
- * @default process.cwd()
18
- */
19
- root?: string;
20
- /**
21
- * If true, descriptor will be ignored.
22
- *
23
- * @default false
24
- */
25
- disabled?: boolean;
26
- /**
27
- * Whether to keep dot files (e.g. `.gitignore`, `.env`) in the served directory.
28
- *
29
- * @default true
30
- */
31
- ignoreDotEnvFiles?: boolean;
32
- /**
33
- * Whether to use the index.html file when the path is a directory.
34
- *
35
- * @default true
36
- */
37
- indexFallback?: boolean;
38
- /**
39
- * Force all requests "not found" to be served with the index.html file.
40
- * This is useful for single-page applications (SPAs) that use client-side only routing.
41
- */
42
- historyApiFallback?: boolean;
43
- /**
44
- * Optional name of the descriptor.
45
- * This is used for logging and debugging purposes.
46
- *
47
- * @default Key name.
48
- */
49
- name?: string;
50
- /**
51
- * Whether to use cache control headers.
52
- *
53
- * @default {}
54
- */
55
- cacheControl?: Partial<CacheControlOptions> | false;
9
+ /**
10
+ * Prefix for the served path.
11
+ *
12
+ * @default "/"
13
+ */
14
+ path?: string;
15
+ /**
16
+ * Path to the directory to serve.
17
+ *
18
+ * @default process.cwd()
19
+ */
20
+ root?: string;
21
+ /**
22
+ * If true, descriptor will be ignored.
23
+ *
24
+ * @default false
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * Whether to keep dot files (e.g. `.gitignore`, `.env`) in the served directory.
29
+ *
30
+ * @default true
31
+ */
32
+ ignoreDotEnvFiles?: boolean;
33
+ /**
34
+ * Whether to use the index.html file when the path is a directory.
35
+ *
36
+ * @default true
37
+ */
38
+ indexFallback?: boolean;
39
+ /**
40
+ * Force all requests "not found" to be served with the index.html file.
41
+ * This is useful for single-page applications (SPAs) that use client-side only routing.
42
+ */
43
+ historyApiFallback?: boolean;
44
+ /**
45
+ * Optional name of the descriptor.
46
+ * This is used for logging and debugging purposes.
47
+ *
48
+ * @default Key name.
49
+ */
50
+ name?: string;
51
+ /**
52
+ * Whether to use cache control headers.
53
+ *
54
+ * @default {}
55
+ */
56
+ cacheControl?: Partial<CacheControlOptions> | false;
56
57
  }
57
58
  interface CacheControlOptions {
58
- /**
59
- * Whether to use cache control headers.
60
- *
61
- * @default [.js, .css]
62
- */
63
- fileTypes: string[];
64
- /**
65
- * The maximum age of the cache in seconds.
66
- *
67
- * @default 60 * 60 * 24 * 2 // 2 days
68
- */
69
- maxAge: DurationLike;
70
- /**
71
- * Whether to use immutable cache control headers.
72
- *
73
- * @default true
74
- */
75
- immutable: boolean;
59
+ /**
60
+ * Whether to use cache control headers.
61
+ *
62
+ * @default [.js, .css]
63
+ */
64
+ fileTypes: string[];
65
+ /**
66
+ * The maximum age of the cache in seconds.
67
+ *
68
+ * @default 60 * 60 * 24 * 2 // 2 days
69
+ */
70
+ maxAge: DurationLike;
71
+ /**
72
+ * Whether to use immutable cache control headers.
73
+ *
74
+ * @default true
75
+ */
76
+ immutable: boolean;
76
77
  }
77
78
  interface ServeDescriptor {
78
- [KIND]: typeof KEY;
79
- [OPTIONS]: ServeDescriptorOptions;
80
- list(): string[];
79
+ [KIND]: typeof KEY;
80
+ [OPTIONS]: ServeDescriptorOptions;
81
+ list(): string[];
81
82
  }
82
83
  declare const $serve: {
83
- (options?: ServeDescriptorOptions): ServeDescriptor;
84
- [KIND]: string;
84
+ (options?: ServeDescriptorOptions): ServeDescriptor;
85
+ [KIND]: string;
85
86
  };
86
-
87
+ //#endregion
88
+ //#region src/providers/ServerStaticProvider.d.ts
87
89
  declare class ServerStaticProvider {
88
- protected readonly alepha: Alepha;
89
- protected readonly routerProvider: ServerRouterProvider;
90
- protected readonly dateTimeProvider: DateTimeProvider;
91
- protected readonly log: _alepha_core.Logger;
92
- protected readonly directories: ServeDirectory[];
93
- protected readonly configure: _alepha_core.HookDescriptor<"configure">;
94
- list(name: string): string[];
95
- serve(options: ServeDescriptorOptions): Promise<void>;
96
- createFileHandler(filepath: string, options: ServeDescriptorOptions): Promise<ServerHandler>;
97
- protected getCacheFileTypes(): string[];
98
- protected getCacheControl(filename: string, options: ServeDescriptorOptions): {
99
- maxAge: number;
100
- immutable: boolean;
101
- } | undefined;
102
- getAllFiles(dir: string, ignoreDotEnvFiles?: boolean): Promise<string[]>;
90
+ protected readonly alepha: Alepha;
91
+ protected readonly routerProvider: ServerRouterProvider;
92
+ protected readonly dateTimeProvider: DateTimeProvider;
93
+ protected readonly log: _alepha_core0.Logger;
94
+ protected readonly directories: ServeDirectory[];
95
+ protected readonly configure: _alepha_core0.HookDescriptor<"configure">;
96
+ list(name: string): string[];
97
+ serve(options: ServeDescriptorOptions): Promise<void>;
98
+ createFileHandler(filepath: string, options: ServeDescriptorOptions): Promise<ServerHandler>;
99
+ protected getCacheFileTypes(): string[];
100
+ protected getCacheControl(filename: string, options: ServeDescriptorOptions): {
101
+ maxAge: number;
102
+ immutable: boolean;
103
+ } | undefined;
104
+ getAllFiles(dir: string, ignoreDotEnvFiles?: boolean): Promise<string[]>;
103
105
  }
104
106
  interface ServeDirectory {
105
- options: ServeDescriptorOptions;
106
- files: string[];
107
+ options: ServeDescriptorOptions;
108
+ files: string[];
107
109
  }
108
-
109
- export { $serve, type CacheControlOptions, type ServeDescriptor, type ServeDescriptorOptions, type ServeDirectory, ServerStaticProvider };
110
+ //#endregion
111
+ export { $serve, CacheControlOptions, ServeDescriptor, ServeDescriptorOptions, ServeDirectory, ServerStaticProvider };
112
+ //# sourceMappingURL=index.d.ts.map
package/server/static.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/server-static';
1
+ export * from '@alepha/server-static'
@@ -1,12 +1,8 @@
1
1
  'use strict';
2
-
3
- var serverSwagger = require('@alepha/server-swagger');
4
-
5
-
6
-
7
- Object.keys(serverSwagger).forEach(function (k) {
2
+ var m = require('@alepha/server-swagger');
3
+ Object.keys(m).forEach(function (k) {
8
4
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
5
  enumerable: true,
10
- get: function () { return serverSwagger[k]; }
6
+ get: function () { return m[k]; }
11
7
  });
12
- });
8
+ });