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.
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/cache/redis.cjs +4 -8
- package/cache/redis.d.ts +28 -89
- package/cache/redis.js +1 -1
- package/cache.cjs +4 -8
- package/cache.d.ts +189 -265
- package/cache.js +1 -1
- package/core.cjs +4 -8
- package/core.d.ts +950 -929
- package/core.js +1 -1
- package/datetime.cjs +4 -8
- package/datetime.d.ts +151 -146
- package/datetime.js +1 -1
- package/lock/redis.cjs +7 -49
- package/lock/redis.d.ts +15 -12
- package/lock/redis.js +1 -47
- package/lock.cjs +4 -8
- package/lock.d.ts +117 -170
- package/lock.js +1 -1
- package/package.json +70 -39
- package/postgres.cjs +4 -8
- package/postgres.d.ts +1314 -4398
- package/postgres.js +1 -1
- package/queue/redis.cjs +8 -0
- package/queue/redis.d.ts +31 -0
- package/queue/redis.js +1 -0
- package/queue.cjs +4 -8
- package/queue.d.ts +162 -205
- package/queue.js +1 -1
- package/react/auth.cjs +4 -8
- package/react/auth.d.ts +166 -282
- package/react/auth.js +1 -1
- package/react.cjs +4 -8
- package/react.d.ts +509 -551
- package/react.js +1 -1
- package/redis.cjs +4 -8
- package/redis.d.ts +59 -132
- package/redis.js +1 -1
- package/retry.cjs +4 -8
- package/retry.d.ts +34 -31
- package/retry.js +1 -1
- package/scheduler.cjs +4 -8
- package/scheduler.d.ts +125 -182
- package/scheduler.js +1 -1
- package/security.cjs +4 -8
- package/security.d.ts +472 -595
- package/security.js +1 -1
- package/server/cache.cjs +4 -8
- package/server/cache.d.ts +41 -38
- package/server/cache.js +1 -1
- package/server/cookies.cjs +4 -8
- package/server/cookies.d.ts +46 -41
- package/server/cookies.js +1 -1
- package/server/static.cjs +4 -8
- package/server/static.d.ts +98 -95
- package/server/static.js +1 -1
- package/server/swagger.cjs +4 -8
- package/server/swagger.d.ts +96 -92
- package/server/swagger.js +1 -1
- package/server.cjs +4 -8
- package/server.d.ts +754 -1025
- package/server.js +1 -1
- package/testing.cjs +8 -0
- package/testing.d.ts +1 -0
- package/testing.js +1 -0
- package/topic/redis.cjs +8 -0
- package/topic/redis.d.ts +45 -0
- package/topic/redis.js +1 -0
- package/topic.cjs +4 -8
- package/topic.d.ts +171 -163
- package/topic.js +1 -1
- package/vite.cjs +4 -8
- package/vite.d.ts +89 -82
- package/vite.js +1 -1
- package/src/cache/redis.ts +0 -1
- package/src/cache.ts +0 -1
- package/src/core.ts +0 -1
- package/src/datetime.ts +0 -1
- package/src/lock/redis.ts +0 -1
- package/src/lock.ts +0 -1
- package/src/postgres.ts +0 -1
- package/src/queue/redis.ts +0 -1
- package/src/queue.ts +0 -1
- package/src/react/auth.ts +0 -1
- package/src/react.ts +0 -1
- package/src/redis.ts +0 -1
- package/src/retry.ts +0 -1
- package/src/scheduler.ts +0 -1
- package/src/security.ts +0 -1
- package/src/server/cache.ts +0 -1
- package/src/server/cookies.ts +0 -1
- package/src/server/static.ts +0 -1
- package/src/server/swagger.ts +0 -1
- package/src/server.ts +0 -1
- package/src/topic/redis.ts +0 -1
- package/src/topic.ts +0 -1
- package/src/vite.ts +0 -1
package/postgres.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@alepha/postgres'
|
|
1
|
+
export * from '@alepha/postgres'
|
package/queue/redis.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var m = require('@alepha/queue-redis');
|
|
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
|
+
});
|
package/queue/redis.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { QueueProvider } from "@alepha/queue";
|
|
2
|
+
import { Alepha, Module } from "@alepha/core";
|
|
3
|
+
import { RedisProvider } from "@alepha/redis";
|
|
4
|
+
|
|
5
|
+
//#region src/providers/RedisQueueProvider.d.ts
|
|
6
|
+
declare class RedisQueueProvider implements QueueProvider {
|
|
7
|
+
protected readonly env: {
|
|
8
|
+
REDIS_QUEUE_PREFIX: string;
|
|
9
|
+
};
|
|
10
|
+
protected readonly redisProvider: RedisProvider;
|
|
11
|
+
prefix(queue: string): string;
|
|
12
|
+
push(queue: string, message: string): Promise<void>;
|
|
13
|
+
pop(queue: string): Promise<string | undefined>;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/index.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Alepha Queue Redis Module
|
|
19
|
+
*
|
|
20
|
+
* Plugin for Alepha Queue that provides Redis queue capabilities.
|
|
21
|
+
*
|
|
22
|
+
* @see {@link RedisQueueProvider}
|
|
23
|
+
* @module alepha.queue.redis
|
|
24
|
+
*/
|
|
25
|
+
declare class AlephaQueueRedis implements Module {
|
|
26
|
+
readonly name = "alepha.queue.redis";
|
|
27
|
+
readonly $services: (alepha: Alepha) => Alepha;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AlephaQueueRedis, RedisQueueProvider };
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
package/queue/redis.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@alepha/queue-redis'
|
package/queue.cjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.keys(queue).forEach(function (k) {
|
|
2
|
+
var m = require('@alepha/queue');
|
|
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
|
|
6
|
+
get: function () { return m[k]; }
|
|
11
7
|
});
|
|
12
|
-
});
|
|
8
|
+
});
|
package/queue.d.ts
CHANGED
|
@@ -1,239 +1,195 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import * as _alepha_core0 from "@alepha/core";
|
|
2
|
+
import * as _alepha_core4 from "@alepha/core";
|
|
3
|
+
import { Alepha, KIND, Module, OPTIONS, Static, TSchema } from "@alepha/core";
|
|
4
|
+
import { DateTimeProvider } from "@alepha/datetime";
|
|
5
|
+
import * as _sinclair_typebox1 from "@sinclair/typebox";
|
|
4
6
|
|
|
7
|
+
//#region src/providers/QueueProvider.d.ts
|
|
5
8
|
/**
|
|
6
9
|
* Minimalist Queue interface.
|
|
7
10
|
*
|
|
8
11
|
* Will be probably enhanced in the future to support more advanced features. But for now, it's enough!
|
|
9
12
|
*/
|
|
10
13
|
declare abstract class QueueProvider {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Push a message to the queue.
|
|
16
|
+
*
|
|
17
|
+
* @param queue Name of the queue to push the message to.
|
|
18
|
+
* @param message String message to be pushed to the queue. Buffer messages are not supported for now.
|
|
19
|
+
*/
|
|
20
|
+
abstract push(queue: string, message: string): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Pop a message from the queue.
|
|
23
|
+
*
|
|
24
|
+
* @param queue Name of the queue to pop the message from.
|
|
25
|
+
*
|
|
26
|
+
* @returns The message popped or `undefined` if the queue is empty.
|
|
27
|
+
*/
|
|
28
|
+
abstract pop(queue: string): Promise<string | undefined>;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/descriptors/$queue.d.ts
|
|
28
32
|
declare const KEY$1 = "QUEUE";
|
|
29
33
|
/**
|
|
30
34
|
* Queue descriptor.
|
|
31
35
|
*/
|
|
32
36
|
declare const $queue: {
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
<T extends QueueMessageSchema>(options: QueueDescriptorOptions<T>): QueueDescriptor<T>;
|
|
38
|
+
[KIND]: string;
|
|
35
39
|
};
|
|
36
40
|
interface QueueMessageSchema {
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
headers?: TSchema;
|
|
42
|
+
payload: TSchema;
|
|
39
43
|
}
|
|
40
44
|
interface QueueDescriptorOptions<T extends QueueMessageSchema> {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
name?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
provider?: "memory" | (() => QueueProvider);
|
|
48
|
+
schema: T;
|
|
49
|
+
handler?: (message: {
|
|
50
|
+
payload: Static<T["payload"]>;
|
|
51
|
+
}) => Promise<void>;
|
|
48
52
|
}
|
|
49
53
|
interface QueueDescriptor<T extends QueueMessageSchema = QueueMessageSchema> {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
54
|
+
[KIND]: typeof KEY$1;
|
|
55
|
+
[OPTIONS]: QueueDescriptorOptions<T>;
|
|
56
|
+
name(): string;
|
|
57
|
+
provider(): QueueProvider;
|
|
58
|
+
push(...payload: Array<Static<T["payload"]>>): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/descriptors/$consumer.d.ts
|
|
57
62
|
declare const KEY = "CONSUMER";
|
|
58
63
|
/**
|
|
59
64
|
* Consumer descriptor.
|
|
60
65
|
*/
|
|
61
66
|
declare const $consumer: {
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
<T extends QueueMessageSchema>(options: ConsumerDescriptorOptions<T>): ConsumerDescriptor<T>;
|
|
68
|
+
[KIND]: string;
|
|
64
69
|
};
|
|
65
70
|
interface ConsumerDescriptorOptions<T extends QueueMessageSchema = QueueMessageSchema> {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
queue: QueueDescriptor<T>;
|
|
72
|
+
handler: (message: {
|
|
73
|
+
payload: Static<T["payload"]>;
|
|
74
|
+
}) => Promise<void>;
|
|
70
75
|
}
|
|
71
76
|
interface ConsumerDescriptor<T extends QueueMessageSchema = QueueMessageSchema> {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
[KIND]: typeof KEY;
|
|
78
|
+
[OPTIONS]: ConsumerDescriptorOptions<T>;
|
|
79
|
+
queue(): QueueDescriptor<T>;
|
|
80
|
+
stop(): Promise<void>;
|
|
76
81
|
}
|
|
77
|
-
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/providers/MemoryQueueProvider.d.ts
|
|
78
84
|
declare class MemoryQueueProvider implements QueueProvider {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
declare const
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
interface TNumber extends TSchema, NumberOptions {
|
|
102
|
-
[Kind]: 'Number';
|
|
103
|
-
static: number;
|
|
104
|
-
type: 'number';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface SchemaOptions {
|
|
108
|
-
$schema?: string;
|
|
109
|
-
/** Id for this schema */
|
|
110
|
-
$id?: string;
|
|
111
|
-
/** Title of this schema */
|
|
112
|
-
title?: string;
|
|
113
|
-
/** Description of this schema */
|
|
114
|
-
description?: string;
|
|
115
|
-
/** Default value for this schema */
|
|
116
|
-
default?: any;
|
|
117
|
-
/** Example values matching this schema */
|
|
118
|
-
examples?: any;
|
|
119
|
-
/** Optional annotation for readOnly */
|
|
120
|
-
readOnly?: boolean;
|
|
121
|
-
/** Optional annotation for writeOnly */
|
|
122
|
-
writeOnly?: boolean;
|
|
123
|
-
[prop: string]: any;
|
|
124
|
-
}
|
|
125
|
-
interface TKind {
|
|
126
|
-
[Kind]: string;
|
|
127
|
-
}
|
|
128
|
-
interface TSchema extends TKind, SchemaOptions {
|
|
129
|
-
[ReadonlyKind]?: string;
|
|
130
|
-
[OptionalKind]?: string;
|
|
131
|
-
[Hint]?: string;
|
|
132
|
-
params: unknown[];
|
|
133
|
-
static: unknown;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare const envSchema: _alepha_core.TObject<{
|
|
137
|
-
/**
|
|
138
|
-
* The interval in milliseconds to wait before checking for new messages.
|
|
139
|
-
*/
|
|
140
|
-
QUEUE_WORKER_INTERVAL: TNumber;
|
|
141
|
-
/**
|
|
142
|
-
* The maximum interval in milliseconds to wait before checking for new messages.
|
|
143
|
-
*/
|
|
144
|
-
QUEUE_WORKER_MAX_INTERVAL: TNumber;
|
|
145
|
-
/**
|
|
146
|
-
* The number of workers to run concurrently. Defaults to 1.
|
|
147
|
-
* Useful only if you are doing a lot of I/O.
|
|
148
|
-
*/
|
|
149
|
-
QUEUE_WORKER_CONCURRENCY: TNumber;
|
|
85
|
+
protected readonly log: _alepha_core0.Logger;
|
|
86
|
+
protected queueList: Record<string, string[]>;
|
|
87
|
+
push(queue: string, ...messages: string[]): Promise<void>;
|
|
88
|
+
pop(queue: string): Promise<string | undefined>;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/providers/QueueDescriptorProvider.d.ts
|
|
92
|
+
declare const envSchema: _alepha_core4.TObject<{
|
|
93
|
+
/**
|
|
94
|
+
* The interval in milliseconds to wait before checking for new messages.
|
|
95
|
+
*/
|
|
96
|
+
QUEUE_WORKER_INTERVAL: _sinclair_typebox1.TNumber;
|
|
97
|
+
/**
|
|
98
|
+
* The maximum interval in milliseconds to wait before checking for new messages.
|
|
99
|
+
*/
|
|
100
|
+
QUEUE_WORKER_MAX_INTERVAL: _sinclair_typebox1.TNumber;
|
|
101
|
+
/**
|
|
102
|
+
* The number of workers to run concurrently. Defaults to 1.
|
|
103
|
+
* Useful only if you are doing a lot of I/O.
|
|
104
|
+
*/
|
|
105
|
+
QUEUE_WORKER_CONCURRENCY: _sinclair_typebox1.TNumber;
|
|
150
106
|
}>;
|
|
151
107
|
declare module "alepha" {
|
|
152
|
-
|
|
153
|
-
}
|
|
108
|
+
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
154
109
|
}
|
|
155
110
|
interface QueueDescriptorProviderState {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
111
|
+
queues: Array<QueueDescriptor>;
|
|
112
|
+
consumers: Array<ConsumerDescriptorOptions>;
|
|
113
|
+
workerPromises: Array<Promise<void>>;
|
|
114
|
+
isWorkersRunning: boolean;
|
|
115
|
+
abortController: AbortController;
|
|
116
|
+
workerIntervals: Record<number, number>;
|
|
162
117
|
}
|
|
163
118
|
declare class QueueDescriptorProvider {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
|
|
119
|
+
protected readonly log: _alepha_core4.Logger;
|
|
120
|
+
protected readonly env: {
|
|
121
|
+
QUEUE_WORKER_INTERVAL: number;
|
|
122
|
+
QUEUE_WORKER_MAX_INTERVAL: number;
|
|
123
|
+
QUEUE_WORKER_CONCURRENCY: number;
|
|
124
|
+
};
|
|
125
|
+
protected readonly alepha: Alepha;
|
|
126
|
+
protected readonly queueProvider: QueueProvider;
|
|
127
|
+
protected readonly memoryQueueProvider: MemoryQueueProvider;
|
|
128
|
+
protected readonly dateTimeProvider: DateTimeProvider;
|
|
129
|
+
protected readonly state: QueueDescriptorProviderState;
|
|
130
|
+
protected readonly configure: _alepha_core4.HookDescriptor<"configure">;
|
|
131
|
+
protected readonly start: _alepha_core4.HookDescriptor<"start">;
|
|
132
|
+
protected readonly stop: _alepha_core4.HookDescriptor<"stop">;
|
|
133
|
+
getQueues(): QueueDescriptor<QueueMessageSchema>[];
|
|
134
|
+
getConsumers(): ConsumerDescriptorOptions<QueueMessageSchema>[];
|
|
135
|
+
/**
|
|
136
|
+
* Process the descriptors.
|
|
137
|
+
*
|
|
138
|
+
* @protected
|
|
139
|
+
*/
|
|
140
|
+
protected processDescriptors(): void;
|
|
141
|
+
/**
|
|
142
|
+
* Process the queue descriptors.
|
|
143
|
+
*
|
|
144
|
+
* @protected
|
|
145
|
+
*/
|
|
146
|
+
protected processQueueDescriptors(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Process the consumer descriptors.
|
|
149
|
+
*/
|
|
150
|
+
protected processConsumerDescriptors(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Get the provider for the queue.
|
|
153
|
+
*/
|
|
154
|
+
protected provider(options: QueueDescriptorOptions<any>): QueueProvider;
|
|
155
|
+
/**
|
|
156
|
+
* Push an item to the queue.
|
|
157
|
+
*/
|
|
158
|
+
protected push<T extends QueueMessageSchema>(queue: QueueDescriptor<T>, ...payloads: Array<Static<T["payload"]>>): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Start the workers.
|
|
161
|
+
* This method will create an endless loop that will check for new messages!
|
|
162
|
+
*/
|
|
163
|
+
protected startWorkers(consumers: Array<ConsumerDescriptorOptions>): void;
|
|
164
|
+
/**
|
|
165
|
+
* Wait for the next message, where `n` is the worker number.
|
|
166
|
+
*
|
|
167
|
+
* This method will wait for a certain amount of time, increasing the wait time again if no message is found.
|
|
168
|
+
*/
|
|
169
|
+
protected waitForNextMessage(n: number): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Get the next message.
|
|
172
|
+
*/
|
|
173
|
+
protected getNextMessage(consumers: Array<ConsumerDescriptorOptions>): Promise<undefined | {
|
|
174
|
+
consumer: ConsumerDescriptorOptions;
|
|
175
|
+
message: string;
|
|
176
|
+
}>;
|
|
177
|
+
/**
|
|
178
|
+
* Process a message from a queue.
|
|
179
|
+
*/
|
|
180
|
+
protected processMessage(response: {
|
|
181
|
+
message: any;
|
|
182
|
+
consumer: ConsumerDescriptorOptions;
|
|
183
|
+
}): Promise<void>;
|
|
184
|
+
/**
|
|
185
|
+
* Stop the workers.
|
|
186
|
+
*
|
|
187
|
+
* This method will stop the workers and wait for them to finish processing.
|
|
188
|
+
*/
|
|
189
|
+
protected stopWorkers(): Promise<void>;
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/index.d.ts
|
|
237
193
|
/**
|
|
238
194
|
* Alepha Queue Module
|
|
239
195
|
*
|
|
@@ -246,8 +202,9 @@ declare class QueueDescriptorProvider {
|
|
|
246
202
|
* @module alepha.queue
|
|
247
203
|
*/
|
|
248
204
|
declare class AlephaQueue implements Module {
|
|
249
|
-
|
|
250
|
-
|
|
205
|
+
readonly name = "alepha.queue";
|
|
206
|
+
readonly $services: (alepha: Alepha) => Alepha;
|
|
251
207
|
}
|
|
252
|
-
|
|
253
|
-
export { $consumer, $queue, AlephaQueue,
|
|
208
|
+
//#endregion
|
|
209
|
+
export { $consumer, $queue, AlephaQueue, ConsumerDescriptor, ConsumerDescriptorOptions, MemoryQueueProvider, QueueDescriptor, QueueDescriptorOptions, QueueDescriptorProvider, QueueDescriptorProviderState, QueueMessageSchema, QueueProvider };
|
|
210
|
+
//# sourceMappingURL=index.d.ts.map
|
package/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@alepha/queue'
|
|
1
|
+
export * from '@alepha/queue'
|
package/react/auth.cjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.keys(reactAuth).forEach(function (k) {
|
|
2
|
+
var m = require('@alepha/react-auth');
|
|
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
|
|
6
|
+
get: function () { return m[k]; }
|
|
11
7
|
});
|
|
12
|
-
});
|
|
8
|
+
});
|