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.
- package/LICENSE +21 -21
- package/README.md +44 -21
- package/cache/redis.cjs +4 -8
- package/cache/redis.d.ts +30 -91
- package/cache/redis.js +1 -1
- package/cache.cjs +4 -8
- package/cache.d.ts +190 -259
- package/cache.js +1 -1
- package/core.cjs +4 -8
- package/core.d.ts +950 -925
- package/core.js +1 -1
- package/datetime.cjs +4 -8
- package/datetime.d.ts +151 -140
- package/datetime.js +1 -1
- package/lock/redis.cjs +7 -49
- package/lock/redis.d.ts +17 -14
- 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 -40
- package/postgres.cjs +4 -8
- package/postgres.d.ts +1314 -4400
- 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 +167 -280
- package/react/auth.js +1 -1
- package/react.cjs +4 -8
- package/react.d.ts +530 -570
- 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 +128 -155
- 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 +73 -39
- 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 +106 -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 +91 -84
- package/vite.js +1 -1
- package/assets/logo.png +0 -0
- 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/lock.d.ts
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import * as
|
|
5
|
-
import { TopicProvider } from
|
|
1
|
+
import * as _alepha_core2 from "@alepha/core";
|
|
2
|
+
import * as _alepha_core0 from "@alepha/core";
|
|
3
|
+
import { Alepha, AsyncFn, KIND, OPTIONS, Static } from "@alepha/core";
|
|
4
|
+
import * as _alepha_topic8 from "@alepha/topic";
|
|
5
|
+
import { TopicProvider } from "@alepha/topic";
|
|
6
|
+
import { DateTime, DateTimeProvider, DurationLike, Timeout } from "@alepha/datetime";
|
|
7
|
+
import * as _sinclair_typebox1 from "@sinclair/typebox";
|
|
6
8
|
|
|
9
|
+
//#region src/descriptors/$lock.d.ts
|
|
7
10
|
declare const KEY = "LOCK";
|
|
8
11
|
interface LockDescriptorOptions<TFunc extends AsyncFn> {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Function executed when the lock is acquired.
|
|
14
|
+
*/
|
|
15
|
+
handler: TFunc;
|
|
16
|
+
/**
|
|
17
|
+
* If true, the handler will wait for the lock to be released.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
wait?: boolean;
|
|
22
|
+
key?: string | ((...args: Parameters<TFunc>) => string);
|
|
23
|
+
maxDuration?: DurationLike;
|
|
24
|
+
gracePeriod?: (...args: Parameters<TFunc>) => DurationLike | undefined;
|
|
22
25
|
}
|
|
23
26
|
interface LockDescriptor<TFunc extends AsyncFn> {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
[KIND]: typeof KEY;
|
|
28
|
+
[OPTIONS]: LockDescriptorOptions<TFunc>;
|
|
29
|
+
/**
|
|
30
|
+
* Apply the lock.
|
|
31
|
+
*
|
|
32
|
+
* @param args
|
|
33
|
+
*/
|
|
34
|
+
(...args: Parameters<TFunc>): Promise<void>;
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* Lock descriptor
|
|
@@ -40,167 +43,110 @@ interface LockDescriptor<TFunc extends AsyncFn> {
|
|
|
40
43
|
* @param options
|
|
41
44
|
*/
|
|
42
45
|
declare const $lock: {
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
<TFunc extends AsyncFn>(options: LockDescriptorOptions<TFunc>): LockDescriptor<TFunc>;
|
|
47
|
+
[KIND]: string;
|
|
45
48
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
declare const ReadonlyKind: unique symbol;
|
|
49
|
-
/** Symbol key applied to optional types */
|
|
50
|
-
declare const OptionalKind: unique symbol;
|
|
51
|
-
/** Symbol key applied to types */
|
|
52
|
-
declare const Hint: unique symbol;
|
|
53
|
-
/** Symbol key applied to types */
|
|
54
|
-
declare const Kind: unique symbol;
|
|
55
|
-
|
|
56
|
-
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);
|
|
57
|
-
type StringContentEncodingOption = '7bit' | '8bit' | 'binary' | 'quoted-printable' | 'base64' | ({} & string);
|
|
58
|
-
interface StringOptions extends SchemaOptions {
|
|
59
|
-
/** The maximum string length */
|
|
60
|
-
maxLength?: number;
|
|
61
|
-
/** The minimum string length */
|
|
62
|
-
minLength?: number;
|
|
63
|
-
/** A regular expression pattern this string should match */
|
|
64
|
-
pattern?: string;
|
|
65
|
-
/** A format this string should match */
|
|
66
|
-
format?: StringFormatOption;
|
|
67
|
-
/** The content encoding for this string */
|
|
68
|
-
contentEncoding?: StringContentEncodingOption;
|
|
69
|
-
/** The content media type for this string */
|
|
70
|
-
contentMediaType?: string;
|
|
71
|
-
}
|
|
72
|
-
interface TString extends TSchema, StringOptions {
|
|
73
|
-
[Kind]: 'String';
|
|
74
|
-
static: string;
|
|
75
|
-
type: 'string';
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface SchemaOptions {
|
|
79
|
-
$schema?: string;
|
|
80
|
-
/** Id for this schema */
|
|
81
|
-
$id?: string;
|
|
82
|
-
/** Title of this schema */
|
|
83
|
-
title?: string;
|
|
84
|
-
/** Description of this schema */
|
|
85
|
-
description?: string;
|
|
86
|
-
/** Default value for this schema */
|
|
87
|
-
default?: any;
|
|
88
|
-
/** Example values matching this schema */
|
|
89
|
-
examples?: any;
|
|
90
|
-
/** Optional annotation for readOnly */
|
|
91
|
-
readOnly?: boolean;
|
|
92
|
-
/** Optional annotation for writeOnly */
|
|
93
|
-
writeOnly?: boolean;
|
|
94
|
-
[prop: string]: any;
|
|
95
|
-
}
|
|
96
|
-
interface TKind {
|
|
97
|
-
[Kind]: string;
|
|
98
|
-
}
|
|
99
|
-
interface TSchema extends TKind, SchemaOptions {
|
|
100
|
-
[ReadonlyKind]?: string;
|
|
101
|
-
[OptionalKind]?: string;
|
|
102
|
-
[Hint]?: string;
|
|
103
|
-
params: unknown[];
|
|
104
|
-
static: unknown;
|
|
105
|
-
}
|
|
106
|
-
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/providers/LockProvider.d.ts
|
|
107
51
|
/**
|
|
108
52
|
* Store Provider Interface
|
|
109
53
|
*/
|
|
110
54
|
declare abstract class LockProvider {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare class LockTopicProvider extends TopicProvider {
|
|
55
|
+
/**
|
|
56
|
+
* Set the string value of a key.
|
|
57
|
+
*
|
|
58
|
+
* @param key The key of the value to set.
|
|
59
|
+
* @param value The value to set.
|
|
60
|
+
* @param nx If set to true, the key will only be set if it does not already exist.
|
|
61
|
+
* @param px Set the specified expire time, in milliseconds.
|
|
62
|
+
*/
|
|
63
|
+
abstract set(key: string, value: string, nx?: boolean, px?: number): Promise<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Remove the specified keys.
|
|
66
|
+
*
|
|
67
|
+
* @param keys The keys to delete.
|
|
68
|
+
*/
|
|
69
|
+
abstract del(...keys: string[]): Promise<void>;
|
|
129
70
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/providers/LockTopicProvider.d.ts
|
|
73
|
+
declare class LockTopicProvider extends TopicProvider {}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/providers/LockDescriptorProvider.d.ts
|
|
76
|
+
declare const envSchema: _alepha_core2.TObject<{
|
|
77
|
+
LOCK_PREFIX_KEY: _sinclair_typebox1.TString;
|
|
133
78
|
}>;
|
|
134
79
|
declare module "alepha" {
|
|
135
|
-
|
|
136
|
-
}
|
|
80
|
+
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
137
81
|
}
|
|
138
82
|
declare class LockDescriptorProvider {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}>;
|
|
83
|
+
protected readonly alepha: Alepha;
|
|
84
|
+
protected readonly dateTimeProvider: DateTimeProvider;
|
|
85
|
+
protected readonly lockProvider: LockProvider;
|
|
86
|
+
protected readonly lockTopicProvider: LockTopicProvider;
|
|
87
|
+
protected readonly log: _alepha_core2.Logger;
|
|
88
|
+
protected readonly env: {
|
|
89
|
+
LOCK_PREFIX_KEY: string;
|
|
90
|
+
};
|
|
91
|
+
protected readonly id: string;
|
|
92
|
+
protected readonly locks: Map<string, LockDescriptorValue>;
|
|
93
|
+
protected readonly configure: _alepha_core2.HookDescriptor<"configure">;
|
|
94
|
+
protected readonly topicLockEnd: _alepha_topic8.TopicDescriptor<{
|
|
95
|
+
payload: _alepha_core2.TObject<{
|
|
96
|
+
name: _sinclair_typebox1.TString;
|
|
154
97
|
}>;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
98
|
+
}>;
|
|
99
|
+
protected prefixKey(key: string): string;
|
|
100
|
+
/**
|
|
101
|
+
* Run the lock handler.
|
|
102
|
+
*
|
|
103
|
+
* @param value
|
|
104
|
+
* @param args
|
|
105
|
+
*/
|
|
106
|
+
protected run(value: LockDescriptorValue, ...args: any[]): Promise<void>;
|
|
107
|
+
protected wait(key: string, maxDuration: DurationLike): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Lock the key.
|
|
110
|
+
*
|
|
111
|
+
* @param key - The key to lock.
|
|
112
|
+
* @param item - The lock descriptor value.
|
|
113
|
+
*/
|
|
114
|
+
protected lock(key: string, item: LockDescriptorValue): Promise<LockObject>;
|
|
115
|
+
protected parse(value: string): LockObject;
|
|
172
116
|
}
|
|
173
117
|
interface LockDescriptorValue {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
118
|
+
options: LockDescriptorOptions<AsyncFn>;
|
|
119
|
+
key: (...args: any[]) => string;
|
|
120
|
+
maxDuration: DurationLike;
|
|
177
121
|
}
|
|
178
122
|
interface LockObject {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
123
|
+
id: string;
|
|
124
|
+
createdAt: DateTime;
|
|
125
|
+
endedAt?: DateTime;
|
|
126
|
+
response?: string;
|
|
183
127
|
}
|
|
184
|
-
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/providers/MemoryLockProvider.d.ts
|
|
185
130
|
/**
|
|
186
131
|
* A simple in-memory store provider.
|
|
187
132
|
*/
|
|
188
133
|
declare class MemoryLockProvider implements LockProvider {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
134
|
+
protected readonly dateTimeProvider: DateTimeProvider;
|
|
135
|
+
protected readonly log: _alepha_core0.Logger;
|
|
136
|
+
/**
|
|
137
|
+
* The in-memory store.
|
|
138
|
+
*/
|
|
139
|
+
protected store: Record<string, string>;
|
|
140
|
+
/**
|
|
141
|
+
* Timeouts used to expire keys.
|
|
142
|
+
*/
|
|
143
|
+
protected storeTimeout: Record<string, Timeout>;
|
|
144
|
+
set(key: string, value: string, nx?: boolean, px?: number): Promise<string>;
|
|
145
|
+
del(...keys: string[]): Promise<void>;
|
|
146
|
+
private ttl;
|
|
202
147
|
}
|
|
203
|
-
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/index.d.ts
|
|
204
150
|
/**
|
|
205
151
|
* Alepha Lock Module
|
|
206
152
|
*
|
|
@@ -213,8 +159,9 @@ declare class MemoryLockProvider implements LockProvider {
|
|
|
213
159
|
* @module alepha.lock
|
|
214
160
|
*/
|
|
215
161
|
declare class AlephaLock {
|
|
216
|
-
|
|
217
|
-
|
|
162
|
+
readonly name = "alepha.lock";
|
|
163
|
+
readonly $services: (alepha: Alepha) => Alepha;
|
|
218
164
|
}
|
|
219
|
-
|
|
220
|
-
export { $lock, AlephaLock,
|
|
165
|
+
//#endregion
|
|
166
|
+
export { $lock, AlephaLock, LockDescriptor, LockDescriptorOptions, LockDescriptorProvider, LockDescriptorValue, LockObject, LockProvider, LockTopicProvider, MemoryLockProvider };
|
|
167
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@alepha/lock'
|
|
1
|
+
export * from '@alepha/lock'
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alepha",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=22.0.0"
|
|
7
|
+
},
|
|
5
8
|
"license": "MIT",
|
|
6
9
|
"description": "TypeScript framework for building full-stack apps with strict conventions, and React-based SPA or SSR without filesystem-based routing.",
|
|
7
10
|
"homepage": "https://github.com/feunard/alepha",
|
|
@@ -12,46 +15,45 @@
|
|
|
12
15
|
"main": "./core.js",
|
|
13
16
|
"types": "./core.d.ts",
|
|
14
17
|
"dependencies": {
|
|
15
|
-
"@alepha/cache": "0.7.
|
|
16
|
-
"@alepha/cache-redis": "0.7.
|
|
17
|
-
"@alepha/core": "0.7.
|
|
18
|
-
"@alepha/datetime": "0.7.
|
|
19
|
-
"@alepha/lock": "0.7.
|
|
20
|
-
"@alepha/
|
|
21
|
-
"@alepha/
|
|
22
|
-
"@alepha/
|
|
23
|
-
"@alepha/
|
|
24
|
-
"@alepha/
|
|
25
|
-
"@alepha/
|
|
26
|
-
"@alepha/
|
|
27
|
-
"@alepha/
|
|
28
|
-
"@alepha/
|
|
29
|
-
"@alepha/
|
|
30
|
-
"@alepha/server
|
|
31
|
-
"@alepha/server-
|
|
32
|
-
"@alepha/server-
|
|
33
|
-
"@alepha/
|
|
34
|
-
"@alepha/
|
|
35
|
-
"@alepha/
|
|
36
|
-
"@alepha/
|
|
18
|
+
"@alepha/cache": "0.7.6",
|
|
19
|
+
"@alepha/cache-redis": "0.7.6",
|
|
20
|
+
"@alepha/core": "0.7.6",
|
|
21
|
+
"@alepha/datetime": "0.7.6",
|
|
22
|
+
"@alepha/lock": "0.7.6",
|
|
23
|
+
"@alepha/lock-redis": "0.7.6",
|
|
24
|
+
"@alepha/postgres": "0.7.6",
|
|
25
|
+
"@alepha/queue": "0.7.6",
|
|
26
|
+
"@alepha/queue-redis": "0.7.6",
|
|
27
|
+
"@alepha/react": "0.7.6",
|
|
28
|
+
"@alepha/react-auth": "0.7.6",
|
|
29
|
+
"@alepha/redis": "0.7.6",
|
|
30
|
+
"@alepha/retry": "0.7.6",
|
|
31
|
+
"@alepha/scheduler": "0.7.6",
|
|
32
|
+
"@alepha/security": "0.7.6",
|
|
33
|
+
"@alepha/server": "0.7.6",
|
|
34
|
+
"@alepha/server-cache": "0.7.6",
|
|
35
|
+
"@alepha/server-cookies": "0.7.6",
|
|
36
|
+
"@alepha/server-static": "0.7.6",
|
|
37
|
+
"@alepha/server-swagger": "0.7.6",
|
|
38
|
+
"@alepha/testing": "0.7.6",
|
|
39
|
+
"@alepha/topic": "0.7.6",
|
|
40
|
+
"@alepha/topic-redis": "0.7.6",
|
|
41
|
+
"@alepha/vite": "0.7.6",
|
|
37
42
|
"@types/react": "^19.1.8",
|
|
38
43
|
"react": "^19.1.0"
|
|
39
44
|
},
|
|
40
45
|
"devDependencies": {
|
|
41
46
|
"@types/react": "^19.1.8",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
47
|
+
"react": "^19.1.0",
|
|
48
|
+
"tsdown": "^0.12.9"
|
|
44
49
|
},
|
|
45
50
|
"scripts": {
|
|
46
|
-
"build": "
|
|
51
|
+
"build": "node build.ts"
|
|
47
52
|
},
|
|
48
53
|
"files": [
|
|
49
|
-
"src",
|
|
50
|
-
"assets",
|
|
51
54
|
"**/*.js",
|
|
52
55
|
"**/*.cjs",
|
|
53
|
-
"**/*.d.ts"
|
|
54
|
-
"**/*.map"
|
|
56
|
+
"**/*.d.ts"
|
|
55
57
|
],
|
|
56
58
|
"exports": {
|
|
57
59
|
".": {
|
|
@@ -94,6 +96,16 @@
|
|
|
94
96
|
"require": "./postgres.cjs",
|
|
95
97
|
"types": "./postgres.d.ts"
|
|
96
98
|
},
|
|
99
|
+
"./queue": {
|
|
100
|
+
"import": "./queue.js",
|
|
101
|
+
"require": "./queue.cjs",
|
|
102
|
+
"types": "./queue.d.ts"
|
|
103
|
+
},
|
|
104
|
+
"./queue/redis": {
|
|
105
|
+
"import": "./queue/redis.js",
|
|
106
|
+
"require": "./queue/redis.cjs",
|
|
107
|
+
"types": "./queue/redis.d.ts"
|
|
108
|
+
},
|
|
97
109
|
"./react": {
|
|
98
110
|
"import": "./react.js",
|
|
99
111
|
"require": "./react.cjs",
|
|
@@ -114,11 +126,6 @@
|
|
|
114
126
|
"require": "./retry.cjs",
|
|
115
127
|
"types": "./retry.d.ts"
|
|
116
128
|
},
|
|
117
|
-
"./queue": {
|
|
118
|
-
"import": "./queue.js",
|
|
119
|
-
"require": "./queue.cjs",
|
|
120
|
-
"types": "./queue.d.ts"
|
|
121
|
-
},
|
|
122
129
|
"./scheduler": {
|
|
123
130
|
"import": "./scheduler.js",
|
|
124
131
|
"require": "./scheduler.cjs",
|
|
@@ -134,6 +141,11 @@
|
|
|
134
141
|
"require": "./server.cjs",
|
|
135
142
|
"types": "./server.d.ts"
|
|
136
143
|
},
|
|
144
|
+
"./server/cache": {
|
|
145
|
+
"import": "./server/cache.js",
|
|
146
|
+
"require": "./server/cache.cjs",
|
|
147
|
+
"types": "./server/cache.d.ts"
|
|
148
|
+
},
|
|
137
149
|
"./server/cookies": {
|
|
138
150
|
"import": "./server/cookies.js",
|
|
139
151
|
"require": "./server/cookies.cjs",
|
|
@@ -149,16 +161,21 @@
|
|
|
149
161
|
"require": "./server/swagger.cjs",
|
|
150
162
|
"types": "./server/swagger.d.ts"
|
|
151
163
|
},
|
|
152
|
-
"./
|
|
153
|
-
"import": "./
|
|
154
|
-
"require": "./
|
|
155
|
-
"types": "./
|
|
164
|
+
"./testing": {
|
|
165
|
+
"import": "./testing.js",
|
|
166
|
+
"require": "./testing.cjs",
|
|
167
|
+
"types": "./testing.d.ts"
|
|
156
168
|
},
|
|
157
169
|
"./topic": {
|
|
158
170
|
"import": "./topic.js",
|
|
159
171
|
"require": "./topic.cjs",
|
|
160
172
|
"types": "./topic.d.ts"
|
|
161
173
|
},
|
|
174
|
+
"./topic/redis": {
|
|
175
|
+
"import": "./topic/redis.js",
|
|
176
|
+
"require": "./topic/redis.cjs",
|
|
177
|
+
"types": "./topic/redis.d.ts"
|
|
178
|
+
},
|
|
162
179
|
"./vite": {
|
|
163
180
|
"import": "./vite.js",
|
|
164
181
|
"require": "./vite.cjs",
|
|
@@ -168,15 +185,28 @@
|
|
|
168
185
|
"keywords": [
|
|
169
186
|
"alepha",
|
|
170
187
|
"cache",
|
|
188
|
+
"cache-redis",
|
|
189
|
+
"core",
|
|
171
190
|
"datetime",
|
|
172
191
|
"lock",
|
|
192
|
+
"lock-redis",
|
|
173
193
|
"postgres",
|
|
174
194
|
"queue",
|
|
195
|
+
"queue-redis",
|
|
175
196
|
"react",
|
|
197
|
+
"react-auth",
|
|
176
198
|
"redis",
|
|
199
|
+
"retry",
|
|
177
200
|
"scheduler",
|
|
178
201
|
"security",
|
|
179
202
|
"server",
|
|
180
|
-
"
|
|
203
|
+
"server-cache",
|
|
204
|
+
"server-cookies",
|
|
205
|
+
"server-static",
|
|
206
|
+
"server-swagger",
|
|
207
|
+
"testing",
|
|
208
|
+
"topic",
|
|
209
|
+
"topic-redis",
|
|
210
|
+
"vite"
|
|
181
211
|
]
|
|
182
212
|
}
|
package/postgres.cjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.keys(postgres).forEach(function (k) {
|
|
2
|
+
var m = require('@alepha/postgres');
|
|
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
|
+
});
|