alepha 0.7.5 → 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 (98) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -44
  3. package/cache/redis.cjs +4 -8
  4. package/cache/redis.d.ts +28 -89
  5. package/cache/redis.js +1 -1
  6. package/cache.cjs +4 -8
  7. package/cache.d.ts +189 -265
  8. package/cache.js +1 -1
  9. package/core.cjs +4 -8
  10. package/core.d.ts +950 -929
  11. package/core.js +1 -1
  12. package/datetime.cjs +4 -8
  13. package/datetime.d.ts +151 -146
  14. package/datetime.js +1 -1
  15. package/lock/redis.cjs +7 -49
  16. package/lock/redis.d.ts +15 -12
  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 -39
  22. package/postgres.cjs +4 -8
  23. package/postgres.d.ts +1314 -4398
  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 +166 -282
  33. package/react/auth.js +1 -1
  34. package/react.cjs +4 -8
  35. package/react.d.ts +509 -551
  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 +125 -182
  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 +41 -38
  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 +96 -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 +89 -82
  75. package/vite.js +1 -1
  76. package/src/cache/redis.ts +0 -1
  77. package/src/cache.ts +0 -1
  78. package/src/core.ts +0 -1
  79. package/src/datetime.ts +0 -1
  80. package/src/lock/redis.ts +0 -1
  81. package/src/lock.ts +0 -1
  82. package/src/postgres.ts +0 -1
  83. package/src/queue/redis.ts +0 -1
  84. package/src/queue.ts +0 -1
  85. package/src/react/auth.ts +0 -1
  86. package/src/react.ts +0 -1
  87. package/src/redis.ts +0 -1
  88. package/src/retry.ts +0 -1
  89. package/src/scheduler.ts +0 -1
  90. package/src/security.ts +0 -1
  91. package/src/server/cache.ts +0 -1
  92. package/src/server/cookies.ts +0 -1
  93. package/src/server/static.ts +0 -1
  94. package/src/server/swagger.ts +0 -1
  95. package/src/server.ts +0 -1
  96. package/src/topic/redis.ts +0 -1
  97. package/src/topic.ts +0 -1
  98. package/src/vite.ts +0 -1
package/cache.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- import * as _alepha_core from '@alepha/core';
2
- import { KIND, OPTIONS, Static, Alepha, Module } from '@alepha/core';
3
- import { DurationLike, DateTimeProvider, Timeout } from '@alepha/datetime';
1
+ import * as _alepha_core0 from "@alepha/core";
2
+ import * as _alepha_core5 from "@alepha/core";
3
+ import { Alepha, KIND, Module, OPTIONS, Static } from "@alepha/core";
4
+ import { DateTimeProvider, DurationLike, Timeout } from "@alepha/datetime";
5
+ import * as _sinclair_typebox1 from "@sinclair/typebox";
4
6
 
7
+ //#region src/providers/CacheProvider.d.ts
5
8
  /**
6
9
  * Cache provider interface.
7
10
  *
@@ -9,285 +12,205 @@ import { DurationLike, DateTimeProvider, Timeout } from '@alepha/datetime';
9
12
  * Values are stored as Uint8Array.
10
13
  */
11
14
  declare abstract class CacheProvider {
12
- /**
13
- * Get the value of a key.
14
- *
15
- * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
16
- * @param key The key of the value to get.
17
- *
18
- * @return The value of the key, or undefined if the key does not exist.
19
- */
20
- abstract get(name: string, key: string): Promise<Uint8Array | undefined>;
21
- /**
22
- * Set the string value of a key.
23
- *
24
- * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
25
- * @param key The key of the value to set.
26
- * @param value The value to set.
27
- * @param ttl The time-to-live of the key, in milliseconds.
28
- *
29
- * @return The value of the key.
30
- */
31
- abstract set(name: string, key: string, value: Uint8Array, ttl?: number): Promise<Uint8Array>;
32
- /**
33
- * Remove the specified keys.
34
- *
35
- * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
36
- * @param keys The keys to delete.
37
- */
38
- abstract del(name: string, ...keys: string[]): Promise<void>;
39
- abstract has(name: string, key: string): Promise<boolean>;
40
- abstract keys(name: string): Promise<string[]>;
41
- }
42
-
15
+ /**
16
+ * Get the value of a key.
17
+ *
18
+ * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
19
+ * @param key The key of the value to get.
20
+ *
21
+ * @return The value of the key, or undefined if the key does not exist.
22
+ */
23
+ abstract get(name: string, key: string): Promise<Uint8Array | undefined>;
24
+ /**
25
+ * Set the string value of a key.
26
+ *
27
+ * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
28
+ * @param key The key of the value to set.
29
+ * @param value The value to set.
30
+ * @param ttl The time-to-live of the key, in milliseconds.
31
+ *
32
+ * @return The value of the key.
33
+ */
34
+ abstract set(name: string, key: string, value: Uint8Array, ttl?: number): Promise<Uint8Array>;
35
+ /**
36
+ * Remove the specified keys.
37
+ *
38
+ * @param name Cache name, used to group keys. Should be Redis-like "some:group:name" format.
39
+ * @param keys The keys to delete.
40
+ */
41
+ abstract del(name: string, ...keys: string[]): Promise<void>;
42
+ abstract has(name: string, key: string): Promise<boolean>;
43
+ abstract keys(name: string): Promise<string[]>;
44
+ }
45
+ //#endregion
46
+ //#region src/descriptors/$cache.d.ts
43
47
  declare const KEY = "CACHE";
44
48
  /**
45
49
  * Cache Descriptor
46
50
  */
47
51
  declare const $cache: {
48
- <TReturn = string, TParameter extends any[] = any[]>(options?: CacheDescriptorOptions<TReturn, TParameter>): CacheDescriptor<TReturn, TParameter>;
49
- [KIND]: string;
52
+ <TReturn = string, TParameter extends any[] = any[]>(options?: CacheDescriptorOptions<TReturn, TParameter>): CacheDescriptor<TReturn, TParameter>;
53
+ [KIND]: string;
50
54
  };
51
55
  interface CacheDescriptorOptions<TReturn, TParameter extends any[] = any[]> {
52
- /**
53
- * The cache name. This is useful for invalidating multiple caches at once.
54
- *
55
- * Store key as `cache:$name:$key`.
56
- *
57
- * @default ClassName:methodName
58
- */
59
- name?: string;
60
- /**
61
- * Function which returns cached data.
62
- * @param args Arguments for handler.
63
- */
64
- handler?: (...args: TParameter) => TReturn;
65
- /**
66
- * The key generator for the cache.
67
- * If not provided, the arguments will be json.stringify().
68
- */
69
- key?: (...args: TParameter) => string;
70
- /**
71
- * The store provider for the cache.
72
- * If not provided, the default store provider will be used.
73
- */
74
- provider?: CacheProvider | (() => CacheProvider) | "memory";
75
- /**
76
- * The time-to-live for the cache in seconds.
77
- * Set 0 to skip expiration.
78
- *
79
- * @default 300 (5 minutes).
80
- */
81
- ttl?: DurationLike;
82
- /**
83
- * If the cache is disabled.
84
- */
85
- disabled?: boolean;
56
+ /**
57
+ * The cache name. This is useful for invalidating multiple caches at once.
58
+ *
59
+ * Store key as `cache:$name:$key`.
60
+ *
61
+ * @default ClassName:methodName
62
+ */
63
+ name?: string;
64
+ /**
65
+ * Function which returns cached data.
66
+ * @param args Arguments for handler.
67
+ */
68
+ handler?: (...args: TParameter) => TReturn;
69
+ /**
70
+ * The key generator for the cache.
71
+ * If not provided, the arguments will be json.stringify().
72
+ */
73
+ key?: (...args: TParameter) => string;
74
+ /**
75
+ * The store provider for the cache.
76
+ * If not provided, the default store provider will be used.
77
+ */
78
+ provider?: CacheProvider | (() => CacheProvider) | "memory";
79
+ /**
80
+ * The time-to-live for the cache in seconds.
81
+ * Set 0 to skip expiration.
82
+ *
83
+ * @default 300 (5 minutes).
84
+ */
85
+ ttl?: DurationLike;
86
+ /**
87
+ * If the cache is disabled.
88
+ */
89
+ disabled?: boolean;
86
90
  }
87
91
  interface CacheDescriptor<TReturn = any, TParameter extends any[] = any[]> {
88
- [KIND]: typeof KEY;
89
- [OPTIONS]: CacheDescriptorOptions<TReturn, TParameter>;
90
- /**
91
- * Cache handler.
92
- */
93
- (...args: TParameter): Promise<TReturn>;
94
- /**
95
- * Cache key generator.
96
- */
97
- key: (...args: TParameter) => string;
98
- /**
99
- * Invalidate cache by keys.
100
- */
101
- invalidate: (...keys: string[]) => Promise<void>;
102
- /**
103
- * Set cache with key, value and ttl.
104
- *
105
- * @param key
106
- * @param value
107
- * @param ttl
108
- */
109
- set: (key: string, value: TReturn, ttl?: DurationLike) => Promise<void>;
110
- /**
111
- * Get cache by key.
112
- *
113
- * @param key
114
- */
115
- get: (key: string) => Promise<TReturn | undefined>;
116
- }
117
-
118
- /** Symbol key applied to readonly types */
119
- declare const ReadonlyKind: unique symbol;
120
- /** Symbol key applied to optional types */
121
- declare const OptionalKind: unique symbol;
122
- /** Symbol key applied to types */
123
- declare const Hint: unique symbol;
124
- /** Symbol key applied to types */
125
- declare const Kind: unique symbol;
126
-
127
- type StringFormatOption = 'date-time' | 'time' | 'date' | 'email' | 'idn-email' | 'hostname' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'iri' | 'uuid' | 'iri-reference' | 'uri-template' | 'json-pointer' | 'relative-json-pointer' | 'regex' | ({} & string);
128
- type StringContentEncodingOption = '7bit' | '8bit' | 'binary' | 'quoted-printable' | 'base64' | ({} & string);
129
- interface StringOptions extends SchemaOptions {
130
- /** The maximum string length */
131
- maxLength?: number;
132
- /** The minimum string length */
133
- minLength?: number;
134
- /** A regular expression pattern this string should match */
135
- pattern?: string;
136
- /** A format this string should match */
137
- format?: StringFormatOption;
138
- /** The content encoding for this string */
139
- contentEncoding?: StringContentEncodingOption;
140
- /** The content media type for this string */
141
- contentMediaType?: string;
142
- }
143
- interface TString extends TSchema, StringOptions {
144
- [Kind]: 'String';
145
- static: string;
146
- type: 'string';
147
- }
148
-
149
- interface TBoolean extends TSchema {
150
- [Kind]: 'Boolean';
151
- static: boolean;
152
- type: 'boolean';
153
- }
154
-
155
- interface NumberOptions extends SchemaOptions {
156
- exclusiveMaximum?: number;
157
- exclusiveMinimum?: number;
158
- maximum?: number;
159
- minimum?: number;
160
- multipleOf?: number;
161
- }
162
- interface TNumber extends TSchema, NumberOptions {
163
- [Kind]: 'Number';
164
- static: number;
165
- type: 'number';
166
- }
167
-
168
- type TOptional<T extends TSchema> = T & {
169
- [OptionalKind]: 'Optional';
170
- };
171
-
172
- interface SchemaOptions {
173
- $schema?: string;
174
- /** Id for this schema */
175
- $id?: string;
176
- /** Title of this schema */
177
- title?: string;
178
- /** Description of this schema */
179
- description?: string;
180
- /** Default value for this schema */
181
- default?: any;
182
- /** Example values matching this schema */
183
- examples?: any;
184
- /** Optional annotation for readOnly */
185
- readOnly?: boolean;
186
- /** Optional annotation for writeOnly */
187
- writeOnly?: boolean;
188
- [prop: string]: any;
189
- }
190
- interface TKind {
191
- [Kind]: string;
192
- }
193
- interface TSchema extends TKind, SchemaOptions {
194
- [ReadonlyKind]?: string;
195
- [OptionalKind]?: string;
196
- [Hint]?: string;
197
- params: unknown[];
198
- static: unknown;
199
- }
200
-
92
+ [KIND]: typeof KEY;
93
+ [OPTIONS]: CacheDescriptorOptions<TReturn, TParameter>;
94
+ /**
95
+ * Cache handler.
96
+ */
97
+ (...args: TParameter): Promise<TReturn>;
98
+ /**
99
+ * Cache key generator.
100
+ */
101
+ key: (...args: TParameter) => string;
102
+ /**
103
+ * Invalidate cache by keys.
104
+ */
105
+ invalidate: (...keys: string[]) => Promise<void>;
106
+ /**
107
+ * Set cache with key, value and ttl.
108
+ *
109
+ * @param key
110
+ * @param value
111
+ * @param ttl
112
+ */
113
+ set: (key: string, value: TReturn, ttl?: DurationLike) => Promise<void>;
114
+ /**
115
+ * Get cache by key.
116
+ *
117
+ * @param key
118
+ */
119
+ get: (key: string) => Promise<TReturn | undefined>;
120
+ }
121
+ //#endregion
122
+ //#region src/providers/MemoryCacheProvider.d.ts
201
123
  type CacheName = string;
202
124
  type CacheKey = string;
203
125
  type CacheValue = {
204
- data?: Uint8Array;
205
- timeout?: Timeout;
126
+ data?: Uint8Array;
127
+ timeout?: Timeout;
206
128
  };
207
129
  declare class MemoryCacheProvider implements CacheProvider {
208
- protected readonly dateTimeProvider: DateTimeProvider;
209
- protected readonly log: _alepha_core.Logger;
210
- protected store: Record<CacheName, Record<CacheKey, CacheValue>>;
211
- get(name: string, key: string): Promise<Uint8Array | undefined>;
212
- set(name: string, key: string, value: Uint8Array, ttl?: number): Promise<Uint8Array>;
213
- del(name: string, ...keys: string[]): Promise<void>;
214
- has(name: string, key: string): Promise<boolean>;
215
- keys(name: string): Promise<string[]>;
216
- }
217
-
218
- declare const envSchema: _alepha_core.TObject<{
219
- CACHE_DEFAULT_TTL: TNumber;
220
- CACHE_PREFIX: TOptional<TString>;
221
- CACHE_ENABLED: TBoolean;
130
+ protected readonly dateTimeProvider: DateTimeProvider;
131
+ protected readonly log: _alepha_core0.Logger;
132
+ protected store: Record<CacheName, Record<CacheKey, CacheValue>>;
133
+ get(name: string, key: string): Promise<Uint8Array | undefined>;
134
+ set(name: string, key: string, value: Uint8Array, ttl?: number): Promise<Uint8Array>;
135
+ del(name: string, ...keys: string[]): Promise<void>;
136
+ has(name: string, key: string): Promise<boolean>;
137
+ keys(name: string): Promise<string[]>;
138
+ }
139
+ //#endregion
140
+ //#region src/providers/CacheDescriptorProvider.d.ts
141
+ declare const envSchema: _alepha_core5.TObject<{
142
+ CACHE_DEFAULT_TTL: _sinclair_typebox1.TNumber;
143
+ CACHE_PREFIX: _sinclair_typebox1.TOptional<_sinclair_typebox1.TString>;
144
+ CACHE_ENABLED: _sinclair_typebox1.TBoolean;
222
145
  }>;
223
146
  declare module "alepha" {
224
- interface Env extends Partial<Static<typeof envSchema>> {
225
- }
147
+ interface Env extends Partial<Static<typeof envSchema>> {}
226
148
  }
227
149
  declare class CacheDescriptorProvider {
228
- protected readonly alepha: Alepha;
229
- protected readonly cacheProvider: CacheProvider;
230
- protected readonly memoryCacheProvider: MemoryCacheProvider;
231
- protected readonly dateTimeProvider: DateTimeProvider;
232
- protected readonly env: {
233
- CACHE_PREFIX?: string | undefined;
234
- CACHE_DEFAULT_TTL: number;
235
- CACHE_ENABLED: boolean;
236
- };
237
- protected readonly caches: Cache[];
238
- protected readonly configure: _alepha_core.HookDescriptor<"configure">;
239
- register(cache: Cache): Cache<any, any[]>;
240
- processDescriptors(): void;
241
- getCaches(): Cache[];
242
- /**
243
- * Clear all cache entries.
244
- */
245
- clear(): Promise<void>;
246
- /**
247
- * Get the store provider for the given cache options.
248
- *
249
- * @param options
250
- */
251
- provider(options: Pick<CacheDescriptorOptions<any[], any>, "provider">): CacheProvider;
252
- /**
253
- * Get the cache key for the given state and arguments.
254
- */
255
- key(cache: Cache, ...args: any[]): string;
256
- /**
257
- * Invalidate the cache for the given state and arguments.
258
- */
259
- invalidate(cache: Cache, ...keys: string[]): Promise<void>;
260
- /**
261
- * Run the cache handler with the given state and arguments.
262
- * You must run on a $cache with a handler defined.
263
- */
264
- run<TReturn, TParameter extends any[]>(cache: Cache<TReturn, TParameter>, ...args: TParameter): Promise<TReturn>;
265
- get<TReturn>(cache: Cache<TReturn>, key: string): Promise<TReturn | undefined>;
266
- /**
267
- * Manually set a value in the cache.
268
- * It's used by .run() method, but you will need it when you don't have cache handler defined.
269
- *
270
- * @param cache Cache object with all configuration and options (even TTL).
271
- * @param key Cache key, build with .key() method or manually.
272
- * @param value Value to store in cache.
273
- * @param ttl Override cache.ttl option.
274
- */
275
- set<TReturn>(cache: Cache<TReturn>, key: string, value: TReturn, ttl?: DurationLike): Promise<void>;
276
- protected encoder: TextEncoder;
277
- protected decoder: TextDecoder;
278
- protected codes: {
279
- BINARY: number;
280
- JSON: number;
281
- STRING: number;
282
- };
283
- protected serialize<TReturn>(value: TReturn): Uint8Array;
284
- protected deserialize<TReturn>(uint8Array: Uint8Array): Promise<TReturn>;
150
+ protected readonly alepha: Alepha;
151
+ protected readonly cacheProvider: CacheProvider;
152
+ protected readonly memoryCacheProvider: MemoryCacheProvider;
153
+ protected readonly dateTimeProvider: DateTimeProvider;
154
+ protected readonly env: {
155
+ CACHE_PREFIX?: string | undefined;
156
+ CACHE_DEFAULT_TTL: number;
157
+ CACHE_ENABLED: boolean;
158
+ };
159
+ protected readonly caches: Cache[];
160
+ protected readonly configure: _alepha_core5.HookDescriptor<"configure">;
161
+ register(cache: Cache): Cache<any, any[]>;
162
+ processDescriptors(): void;
163
+ getCaches(): Cache[];
164
+ /**
165
+ * Clear all cache entries.
166
+ */
167
+ clear(): Promise<void>;
168
+ /**
169
+ * Get the store provider for the given cache options.
170
+ *
171
+ * @param options
172
+ */
173
+ provider(options: Pick<CacheDescriptorOptions<any[], any>, "provider">): CacheProvider;
174
+ /**
175
+ * Get the cache key for the given state and arguments.
176
+ */
177
+ key(cache: Cache, ...args: any[]): string;
178
+ /**
179
+ * Invalidate the cache for the given state and arguments.
180
+ */
181
+ invalidate(cache: Cache, ...keys: string[]): Promise<void>;
182
+ /**
183
+ * Run the cache handler with the given state and arguments.
184
+ * You must run on a $cache with a handler defined.
185
+ */
186
+ run<TReturn, TParameter extends any[]>(cache: Cache<TReturn, TParameter>, ...args: TParameter): Promise<TReturn>;
187
+ get<TReturn>(cache: Cache<TReturn>, key: string): Promise<TReturn | undefined>;
188
+ /**
189
+ * Manually set a value in the cache.
190
+ * It's used by .run() method, but you will need it when you don't have cache handler defined.
191
+ *
192
+ * @param cache Cache object with all configuration and options (even TTL).
193
+ * @param key Cache key, build with .key() method or manually.
194
+ * @param value Value to store in cache.
195
+ * @param ttl Override cache.ttl option.
196
+ */
197
+ set<TReturn>(cache: Cache<TReturn>, key: string, value: TReturn, ttl?: DurationLike): Promise<void>;
198
+ protected encoder: TextEncoder;
199
+ protected decoder: TextDecoder;
200
+ protected codes: {
201
+ BINARY: number;
202
+ JSON: number;
203
+ STRING: number;
204
+ };
205
+ protected serialize<TReturn>(value: TReturn): Uint8Array;
206
+ protected deserialize<TReturn>(uint8Array: Uint8Array): Promise<TReturn>;
285
207
  }
286
208
  interface Cache<TReturn = any, TParameter extends any[] = any[]> {
287
- name: string;
288
- options: CacheDescriptorOptions<TReturn, TParameter>;
209
+ name: string;
210
+ options: CacheDescriptorOptions<TReturn, TParameter>;
289
211
  }
290
-
212
+ //#endregion
213
+ //#region src/index.d.ts
291
214
  /**
292
215
  * Alepha Cache Module
293
216
  *
@@ -298,8 +221,9 @@ interface Cache<TReturn = any, TParameter extends any[] = any[]> {
298
221
  * @module alepha.cache
299
222
  */
300
223
  declare class AlephaCache implements Module {
301
- readonly name = "alepha.cache";
302
- readonly $services: (alepha: Alepha) => Alepha;
224
+ readonly name = "alepha.cache";
225
+ readonly $services: (alepha: Alepha) => Alepha;
303
226
  }
304
-
305
- export { $cache, AlephaCache, type Cache, type CacheDescriptor, type CacheDescriptorOptions, CacheDescriptorProvider, CacheProvider, MemoryCacheProvider };
227
+ //#endregion
228
+ export { $cache, AlephaCache, Cache, CacheDescriptor, CacheDescriptorOptions, CacheDescriptorProvider, CacheProvider, MemoryCacheProvider };
229
+ //# sourceMappingURL=index.d.ts.map
package/cache.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/cache';
1
+ export * from '@alepha/cache'
package/core.cjs CHANGED
@@ -1,12 +1,8 @@
1
1
  'use strict';
2
-
3
- var core = require('@alepha/core');
4
-
5
-
6
-
7
- Object.keys(core).forEach(function (k) {
2
+ var m = require('@alepha/core');
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 core[k]; }
6
+ get: function () { return m[k]; }
11
7
  });
12
- });
8
+ });