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/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,45 +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
54
|
"**/*.js",
|
|
51
55
|
"**/*.cjs",
|
|
52
|
-
"**/*.d.ts"
|
|
53
|
-
"**/*.map"
|
|
56
|
+
"**/*.d.ts"
|
|
54
57
|
],
|
|
55
58
|
"exports": {
|
|
56
59
|
".": {
|
|
@@ -93,6 +96,16 @@
|
|
|
93
96
|
"require": "./postgres.cjs",
|
|
94
97
|
"types": "./postgres.d.ts"
|
|
95
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
|
+
},
|
|
96
109
|
"./react": {
|
|
97
110
|
"import": "./react.js",
|
|
98
111
|
"require": "./react.cjs",
|
|
@@ -113,11 +126,6 @@
|
|
|
113
126
|
"require": "./retry.cjs",
|
|
114
127
|
"types": "./retry.d.ts"
|
|
115
128
|
},
|
|
116
|
-
"./queue": {
|
|
117
|
-
"import": "./queue.js",
|
|
118
|
-
"require": "./queue.cjs",
|
|
119
|
-
"types": "./queue.d.ts"
|
|
120
|
-
},
|
|
121
129
|
"./scheduler": {
|
|
122
130
|
"import": "./scheduler.js",
|
|
123
131
|
"require": "./scheduler.cjs",
|
|
@@ -133,6 +141,11 @@
|
|
|
133
141
|
"require": "./server.cjs",
|
|
134
142
|
"types": "./server.d.ts"
|
|
135
143
|
},
|
|
144
|
+
"./server/cache": {
|
|
145
|
+
"import": "./server/cache.js",
|
|
146
|
+
"require": "./server/cache.cjs",
|
|
147
|
+
"types": "./server/cache.d.ts"
|
|
148
|
+
},
|
|
136
149
|
"./server/cookies": {
|
|
137
150
|
"import": "./server/cookies.js",
|
|
138
151
|
"require": "./server/cookies.cjs",
|
|
@@ -148,16 +161,21 @@
|
|
|
148
161
|
"require": "./server/swagger.cjs",
|
|
149
162
|
"types": "./server/swagger.d.ts"
|
|
150
163
|
},
|
|
151
|
-
"./
|
|
152
|
-
"import": "./
|
|
153
|
-
"require": "./
|
|
154
|
-
"types": "./
|
|
164
|
+
"./testing": {
|
|
165
|
+
"import": "./testing.js",
|
|
166
|
+
"require": "./testing.cjs",
|
|
167
|
+
"types": "./testing.d.ts"
|
|
155
168
|
},
|
|
156
169
|
"./topic": {
|
|
157
170
|
"import": "./topic.js",
|
|
158
171
|
"require": "./topic.cjs",
|
|
159
172
|
"types": "./topic.d.ts"
|
|
160
173
|
},
|
|
174
|
+
"./topic/redis": {
|
|
175
|
+
"import": "./topic/redis.js",
|
|
176
|
+
"require": "./topic/redis.cjs",
|
|
177
|
+
"types": "./topic/redis.d.ts"
|
|
178
|
+
},
|
|
161
179
|
"./vite": {
|
|
162
180
|
"import": "./vite.js",
|
|
163
181
|
"require": "./vite.cjs",
|
|
@@ -167,15 +185,28 @@
|
|
|
167
185
|
"keywords": [
|
|
168
186
|
"alepha",
|
|
169
187
|
"cache",
|
|
188
|
+
"cache-redis",
|
|
189
|
+
"core",
|
|
170
190
|
"datetime",
|
|
171
191
|
"lock",
|
|
192
|
+
"lock-redis",
|
|
172
193
|
"postgres",
|
|
173
194
|
"queue",
|
|
195
|
+
"queue-redis",
|
|
174
196
|
"react",
|
|
197
|
+
"react-auth",
|
|
175
198
|
"redis",
|
|
199
|
+
"retry",
|
|
176
200
|
"scheduler",
|
|
177
201
|
"security",
|
|
178
202
|
"server",
|
|
179
|
-
"
|
|
203
|
+
"server-cache",
|
|
204
|
+
"server-cookies",
|
|
205
|
+
"server-static",
|
|
206
|
+
"server-swagger",
|
|
207
|
+
"testing",
|
|
208
|
+
"topic",
|
|
209
|
+
"topic-redis",
|
|
210
|
+
"vite"
|
|
180
211
|
]
|
|
181
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
|
+
});
|