alepha 0.7.5 → 0.7.7
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/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 +951 -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 +105 -39
- package/postgres.cjs +4 -8
- package/postgres.d.ts +1410 -4433
- 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 +161 -282
- package/react/auth.js +1 -1
- package/react/head.cjs +8 -0
- package/react/head.d.ts +86 -0
- package/react/head.js +1 -0
- package/react.cjs +4 -8
- package/react.d.ts +468 -559
- 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 +124 -182
- package/scheduler.js +1 -1
- package/security.cjs +4 -8
- package/security.d.ts +459 -595
- package/security.js +1 -1
- package/server/cache.cjs +4 -8
- package/server/cache.d.ts +43 -40
- package/server/cache.js +1 -1
- package/server/cookies.cjs +4 -8
- package/server/cookies.d.ts +49 -41
- package/server/cookies.js +1 -1
- package/server/cors.cjs +8 -0
- package/server/cors.d.ts +25 -0
- package/server/cors.js +1 -0
- package/server/health.cjs +8 -0
- package/server/health.d.ts +42 -0
- package/server/health.js +1 -0
- package/server/links.cjs +8 -0
- package/server/links.d.ts +188 -0
- package/server/links.js +1 -0
- package/server/proxy.cjs +8 -0
- package/server/proxy.d.ts +41 -0
- package/server/proxy.js +1 -0
- 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 +602 -1087
- 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 +161 -169
- 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.7",
|
|
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,50 @@
|
|
|
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/
|
|
31
|
-
"@alepha/server
|
|
32
|
-
"@alepha/server-
|
|
33
|
-
"@alepha/
|
|
34
|
-
"@alepha/
|
|
35
|
-
"@alepha/
|
|
36
|
-
"@alepha/
|
|
18
|
+
"@alepha/cache": "0.7.7",
|
|
19
|
+
"@alepha/cache-redis": "0.7.7",
|
|
20
|
+
"@alepha/core": "0.7.7",
|
|
21
|
+
"@alepha/datetime": "0.7.7",
|
|
22
|
+
"@alepha/lock": "0.7.7",
|
|
23
|
+
"@alepha/lock-redis": "0.7.7",
|
|
24
|
+
"@alepha/postgres": "0.7.7",
|
|
25
|
+
"@alepha/queue": "0.7.7",
|
|
26
|
+
"@alepha/queue-redis": "0.7.7",
|
|
27
|
+
"@alepha/react": "0.7.7",
|
|
28
|
+
"@alepha/react-auth": "0.7.7",
|
|
29
|
+
"@alepha/react-head": "0.7.7",
|
|
30
|
+
"@alepha/redis": "0.7.7",
|
|
31
|
+
"@alepha/retry": "0.7.7",
|
|
32
|
+
"@alepha/scheduler": "0.7.7",
|
|
33
|
+
"@alepha/security": "0.7.7",
|
|
34
|
+
"@alepha/server": "0.7.7",
|
|
35
|
+
"@alepha/server-cache": "0.7.7",
|
|
36
|
+
"@alepha/server-cookies": "0.7.7",
|
|
37
|
+
"@alepha/server-cors": "0.7.7",
|
|
38
|
+
"@alepha/server-health": "0.7.7",
|
|
39
|
+
"@alepha/server-links": "0.7.7",
|
|
40
|
+
"@alepha/server-proxy": "0.7.7",
|
|
41
|
+
"@alepha/server-static": "0.7.7",
|
|
42
|
+
"@alepha/server-swagger": "0.7.7",
|
|
43
|
+
"@alepha/testing": "0.7.7",
|
|
44
|
+
"@alepha/topic": "0.7.7",
|
|
45
|
+
"@alepha/topic-redis": "0.7.7",
|
|
46
|
+
"@alepha/vite": "0.7.7",
|
|
37
47
|
"@types/react": "^19.1.8",
|
|
38
48
|
"react": "^19.1.0"
|
|
39
49
|
},
|
|
40
50
|
"devDependencies": {
|
|
41
51
|
"@types/react": "^19.1.8",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
52
|
+
"react": "^19.1.0",
|
|
53
|
+
"tsdown": "^0.12.9"
|
|
44
54
|
},
|
|
45
55
|
"scripts": {
|
|
46
|
-
"build": "
|
|
56
|
+
"build": "node build.ts"
|
|
47
57
|
},
|
|
48
58
|
"files": [
|
|
49
|
-
"src",
|
|
50
59
|
"**/*.js",
|
|
51
60
|
"**/*.cjs",
|
|
52
|
-
"**/*.d.ts"
|
|
53
|
-
"**/*.map"
|
|
61
|
+
"**/*.d.ts"
|
|
54
62
|
],
|
|
55
63
|
"exports": {
|
|
56
64
|
".": {
|
|
@@ -93,6 +101,16 @@
|
|
|
93
101
|
"require": "./postgres.cjs",
|
|
94
102
|
"types": "./postgres.d.ts"
|
|
95
103
|
},
|
|
104
|
+
"./queue": {
|
|
105
|
+
"import": "./queue.js",
|
|
106
|
+
"require": "./queue.cjs",
|
|
107
|
+
"types": "./queue.d.ts"
|
|
108
|
+
},
|
|
109
|
+
"./queue/redis": {
|
|
110
|
+
"import": "./queue/redis.js",
|
|
111
|
+
"require": "./queue/redis.cjs",
|
|
112
|
+
"types": "./queue/redis.d.ts"
|
|
113
|
+
},
|
|
96
114
|
"./react": {
|
|
97
115
|
"import": "./react.js",
|
|
98
116
|
"require": "./react.cjs",
|
|
@@ -103,6 +121,11 @@
|
|
|
103
121
|
"require": "./react/auth.cjs",
|
|
104
122
|
"types": "./react/auth.d.ts"
|
|
105
123
|
},
|
|
124
|
+
"./react/head": {
|
|
125
|
+
"import": "./react/head.js",
|
|
126
|
+
"require": "./react/head.cjs",
|
|
127
|
+
"types": "./react/head.d.ts"
|
|
128
|
+
},
|
|
106
129
|
"./redis": {
|
|
107
130
|
"import": "./redis.js",
|
|
108
131
|
"require": "./redis.cjs",
|
|
@@ -113,11 +136,6 @@
|
|
|
113
136
|
"require": "./retry.cjs",
|
|
114
137
|
"types": "./retry.d.ts"
|
|
115
138
|
},
|
|
116
|
-
"./queue": {
|
|
117
|
-
"import": "./queue.js",
|
|
118
|
-
"require": "./queue.cjs",
|
|
119
|
-
"types": "./queue.d.ts"
|
|
120
|
-
},
|
|
121
139
|
"./scheduler": {
|
|
122
140
|
"import": "./scheduler.js",
|
|
123
141
|
"require": "./scheduler.cjs",
|
|
@@ -133,11 +151,36 @@
|
|
|
133
151
|
"require": "./server.cjs",
|
|
134
152
|
"types": "./server.d.ts"
|
|
135
153
|
},
|
|
154
|
+
"./server/cache": {
|
|
155
|
+
"import": "./server/cache.js",
|
|
156
|
+
"require": "./server/cache.cjs",
|
|
157
|
+
"types": "./server/cache.d.ts"
|
|
158
|
+
},
|
|
136
159
|
"./server/cookies": {
|
|
137
160
|
"import": "./server/cookies.js",
|
|
138
161
|
"require": "./server/cookies.cjs",
|
|
139
162
|
"types": "./server/cookies.d.ts"
|
|
140
163
|
},
|
|
164
|
+
"./server/cors": {
|
|
165
|
+
"import": "./server/cors.js",
|
|
166
|
+
"require": "./server/cors.cjs",
|
|
167
|
+
"types": "./server/cors.d.ts"
|
|
168
|
+
},
|
|
169
|
+
"./server/health": {
|
|
170
|
+
"import": "./server/health.js",
|
|
171
|
+
"require": "./server/health.cjs",
|
|
172
|
+
"types": "./server/health.d.ts"
|
|
173
|
+
},
|
|
174
|
+
"./server/links": {
|
|
175
|
+
"import": "./server/links.js",
|
|
176
|
+
"require": "./server/links.cjs",
|
|
177
|
+
"types": "./server/links.d.ts"
|
|
178
|
+
},
|
|
179
|
+
"./server/proxy": {
|
|
180
|
+
"import": "./server/proxy.js",
|
|
181
|
+
"require": "./server/proxy.cjs",
|
|
182
|
+
"types": "./server/proxy.d.ts"
|
|
183
|
+
},
|
|
141
184
|
"./server/static": {
|
|
142
185
|
"import": "./server/static.js",
|
|
143
186
|
"require": "./server/static.cjs",
|
|
@@ -148,16 +191,21 @@
|
|
|
148
191
|
"require": "./server/swagger.cjs",
|
|
149
192
|
"types": "./server/swagger.d.ts"
|
|
150
193
|
},
|
|
151
|
-
"./
|
|
152
|
-
"import": "./
|
|
153
|
-
"require": "./
|
|
154
|
-
"types": "./
|
|
194
|
+
"./testing": {
|
|
195
|
+
"import": "./testing.js",
|
|
196
|
+
"require": "./testing.cjs",
|
|
197
|
+
"types": "./testing.d.ts"
|
|
155
198
|
},
|
|
156
199
|
"./topic": {
|
|
157
200
|
"import": "./topic.js",
|
|
158
201
|
"require": "./topic.cjs",
|
|
159
202
|
"types": "./topic.d.ts"
|
|
160
203
|
},
|
|
204
|
+
"./topic/redis": {
|
|
205
|
+
"import": "./topic/redis.js",
|
|
206
|
+
"require": "./topic/redis.cjs",
|
|
207
|
+
"types": "./topic/redis.d.ts"
|
|
208
|
+
},
|
|
161
209
|
"./vite": {
|
|
162
210
|
"import": "./vite.js",
|
|
163
211
|
"require": "./vite.cjs",
|
|
@@ -167,15 +215,33 @@
|
|
|
167
215
|
"keywords": [
|
|
168
216
|
"alepha",
|
|
169
217
|
"cache",
|
|
218
|
+
"cache-redis",
|
|
219
|
+
"core",
|
|
170
220
|
"datetime",
|
|
171
221
|
"lock",
|
|
222
|
+
"lock-redis",
|
|
172
223
|
"postgres",
|
|
173
224
|
"queue",
|
|
225
|
+
"queue-redis",
|
|
174
226
|
"react",
|
|
227
|
+
"react-auth",
|
|
228
|
+
"react-head",
|
|
175
229
|
"redis",
|
|
230
|
+
"retry",
|
|
176
231
|
"scheduler",
|
|
177
232
|
"security",
|
|
178
233
|
"server",
|
|
179
|
-
"
|
|
234
|
+
"server-cache",
|
|
235
|
+
"server-cookies",
|
|
236
|
+
"server-cors",
|
|
237
|
+
"server-health",
|
|
238
|
+
"server-links",
|
|
239
|
+
"server-proxy",
|
|
240
|
+
"server-static",
|
|
241
|
+
"server-swagger",
|
|
242
|
+
"testing",
|
|
243
|
+
"topic",
|
|
244
|
+
"topic-redis",
|
|
245
|
+
"vite"
|
|
180
246
|
]
|
|
181
247
|
}
|
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
|
+
});
|