alepha 0.13.3 → 0.13.5
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/README.md +7 -7
- package/dist/api-files/index.browser.js +5 -5
- package/dist/api-files/index.d.ts +16 -16
- package/dist/api-files/index.js +9 -9
- package/dist/api-jobs/index.browser.js +5 -5
- package/dist/api-jobs/index.d.ts +17 -17
- package/dist/api-jobs/index.js +9 -9
- package/dist/api-notifications/index.browser.js +11 -11
- package/dist/api-notifications/index.d.ts +158 -158
- package/dist/api-notifications/index.js +11 -11
- package/dist/api-parameters/index.browser.js +2 -2
- package/dist/api-parameters/index.d.ts +3 -3
- package/dist/api-parameters/index.js +3 -3
- package/dist/api-users/index.browser.js +6 -6
- package/dist/api-users/index.d.ts +55 -55
- package/dist/api-users/index.js +36 -36
- package/dist/api-verifications/index.browser.js +5 -5
- package/dist/api-verifications/index.d.ts +9 -9
- package/dist/api-verifications/index.js +10 -10
- package/dist/batch/index.d.ts +3 -3
- package/dist/batch/index.js +3 -3
- package/dist/bin/index.js +1 -1
- package/dist/bucket/index.d.ts +6 -6
- package/dist/bucket/index.js +7 -7
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/index.js +5 -5
- package/dist/cache-redis/index.d.ts +2 -2
- package/dist/cache-redis/index.js +2 -2
- package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
- package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
- package/dist/cli/index.d.ts +31 -75
- package/dist/cli/index.js +94 -171
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -8
- package/dist/command/index.js +11 -10
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +40 -36
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +255 -253
- package/dist/core/index.js +40 -36
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +40 -36
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -3
- package/dist/datetime/index.js +3 -3
- package/dist/email/index.d.ts +7 -7
- package/dist/email/index.js +42 -42
- package/dist/fake/index.d.ts +2 -2
- package/dist/fake/index.js +5 -5
- package/dist/file/index.d.ts +4 -4
- package/dist/file/index.js +4 -4
- package/dist/lock/index.d.ts +5 -5
- package/dist/lock/index.js +5 -5
- package/dist/lock-redis/index.d.ts +2 -2
- package/dist/lock-redis/index.js +2 -2
- package/dist/logger/index.d.ts +11 -11
- package/dist/logger/index.js +12 -12
- package/dist/orm/index.browser.js +12 -12
- package/dist/orm/index.d.ts +33 -33
- package/dist/orm/index.js +32 -32
- package/dist/queue/index.d.ts +7 -7
- package/dist/queue/index.js +6 -6
- package/dist/queue-redis/index.d.ts +2 -2
- package/dist/queue-redis/index.js +2 -2
- package/dist/redis/index.d.ts +13 -13
- package/dist/redis/index.js +3 -3
- package/dist/retry/index.d.ts +5 -5
- package/dist/retry/index.js +5 -5
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/scheduler/index.d.ts +4 -4
- package/dist/scheduler/index.js +7 -7
- package/dist/security/index.browser.js +7 -7
- package/dist/security/index.d.ts +15 -15
- package/dist/security/index.js +46 -46
- package/dist/server/index.browser.js +14 -14
- package/dist/server/index.d.ts +26 -26
- package/dist/server/index.js +26 -26
- package/dist/server-auth/index.browser.js +6 -6
- package/dist/server-auth/index.d.ts +11 -11
- package/dist/server-auth/index.js +13 -13
- package/dist/server-cache/index.d.ts +2 -2
- package/dist/server-cache/index.js +2 -2
- package/dist/server-compress/index.d.ts +2 -2
- package/dist/server-compress/index.js +2 -2
- package/dist/server-cookies/index.browser.js +3 -3
- package/dist/server-cookies/index.d.ts +4 -4
- package/dist/server-cookies/index.js +4 -4
- package/dist/server-cors/index.d.ts +3 -3
- package/dist/server-cors/index.js +3 -3
- package/dist/server-health/index.d.ts +3 -3
- package/dist/server-health/index.js +3 -3
- package/dist/server-helmet/index.d.ts +2 -2
- package/dist/server-helmet/index.js +2 -2
- package/dist/server-links/index.browser.js +5 -5
- package/dist/server-links/index.d.ts +40 -40
- package/dist/server-links/index.js +7 -7
- package/dist/server-metrics/index.d.ts +2 -2
- package/dist/server-metrics/index.js +86 -86
- package/dist/server-multipart/index.d.ts +2 -2
- package/dist/server-multipart/index.js +2 -2
- package/dist/server-proxy/index.d.ts +3 -3
- package/dist/server-proxy/index.js +3 -3
- package/dist/server-rate-limit/index.d.ts +3 -3
- package/dist/server-rate-limit/index.js +3 -3
- package/dist/server-security/index.browser.js +1 -1
- package/dist/server-security/index.d.ts +4 -4
- package/dist/server-security/index.js +4 -4
- package/dist/server-static/index.d.ts +3 -3
- package/dist/server-static/index.js +3 -3
- package/dist/server-swagger/index.d.ts +3 -3
- package/dist/server-swagger/index.js +3 -3
- package/dist/sms/index.d.ts +6 -6
- package/dist/sms/index.js +6 -6
- package/dist/thread/index.d.ts +3 -3
- package/dist/thread/index.js +3 -3
- package/dist/topic/index.d.ts +6 -6
- package/dist/topic/index.js +6 -6
- package/dist/topic-redis/index.d.ts +2 -2
- package/dist/topic-redis/index.js +2 -2
- package/dist/vite/index.d.ts +17 -17
- package/dist/vite/index.js +20 -20
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.d.ts +17 -17
- package/dist/websocket/index.js +10 -10
- package/package.json +5 -4
- package/src/cli/apps/AlephaCli.ts +1 -2
- package/src/cli/commands/BiomeCommands.ts +4 -6
- package/src/cli/commands/CoreCommands.ts +2 -2
- package/src/cli/commands/DrizzleCommands.ts +76 -78
- package/src/cli/commands/VerifyCommands.ts +3 -5
- package/src/cli/commands/ViteCommands.ts +6 -8
- package/src/cli/index.ts +1 -1
- package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
- package/src/command/providers/CliProvider.ts +12 -4
- package/src/core/Alepha.ts +14 -0
- package/src/core/primitives/$module.ts +1 -1
- package/src/cli/services/ProcessRunner.ts +0 -89
package/dist/cache/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InstantiableClass, KIND, Primitive } from "alepha";
|
|
|
3
3
|
import { DateTimeProvider, DurationLike, Timeout } from "alepha/datetime";
|
|
4
4
|
import * as alepha_logger0 from "alepha/logger";
|
|
5
5
|
|
|
6
|
-
//#region src/cache/providers/CacheProvider.d.ts
|
|
6
|
+
//#region ../../src/cache/providers/CacheProvider.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Cache provider interface.
|
|
9
9
|
*
|
|
@@ -46,7 +46,7 @@ declare abstract class CacheProvider {
|
|
|
46
46
|
abstract clear(): Promise<void>;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region src/cache/primitives/$cache.d.ts
|
|
49
|
+
//#region ../../src/cache/primitives/$cache.d.ts
|
|
50
50
|
/**
|
|
51
51
|
* Creates a cache primitive for high-performance data caching with automatic management.
|
|
52
52
|
*
|
|
@@ -165,7 +165,7 @@ interface CachePrimitiveFn<TReturn = any, TParameter extends any[] = any[]> exte
|
|
|
165
165
|
(...args: TParameter): Promise<TReturn>;
|
|
166
166
|
}
|
|
167
167
|
//#endregion
|
|
168
|
-
//#region src/cache/providers/MemoryCacheProvider.d.ts
|
|
168
|
+
//#region ../../src/cache/providers/MemoryCacheProvider.d.ts
|
|
169
169
|
type CacheName = string;
|
|
170
170
|
type CacheKey = string;
|
|
171
171
|
type CacheValue = {
|
|
@@ -184,7 +184,7 @@ declare class MemoryCacheProvider implements CacheProvider {
|
|
|
184
184
|
clear(): Promise<void>;
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region src/cache/index.d.ts
|
|
187
|
+
//#region ../../src/cache/index.d.ts
|
|
188
188
|
/**
|
|
189
189
|
* Provides high-performance caching capabilities for Alepha applications with configurable TTL and multiple storage backends.
|
|
190
190
|
*
|
package/dist/cache/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { $env, $inject, $module, AlephaError, KIND, Primitive, createPrimitive,
|
|
|
2
2
|
import { DateTimeProvider } from "alepha/datetime";
|
|
3
3
|
import { $logger } from "alepha/logger";
|
|
4
4
|
|
|
5
|
-
//#region src/cache/errors/CacheError.ts
|
|
5
|
+
//#region ../../src/cache/errors/CacheError.ts
|
|
6
6
|
var CacheError = class extends AlephaError {};
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region src/cache/providers/CacheProvider.ts
|
|
9
|
+
//#region ../../src/cache/providers/CacheProvider.ts
|
|
10
10
|
/**
|
|
11
11
|
* Cache provider interface.
|
|
12
12
|
*
|
|
@@ -16,7 +16,7 @@ var CacheError = class extends AlephaError {};
|
|
|
16
16
|
var CacheProvider = class {};
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/cache/providers/MemoryCacheProvider.ts
|
|
19
|
+
//#region ../../src/cache/providers/MemoryCacheProvider.ts
|
|
20
20
|
var MemoryCacheProvider = class {
|
|
21
21
|
dateTimeProvider = $inject(DateTimeProvider);
|
|
22
22
|
log = $logger();
|
|
@@ -82,7 +82,7 @@ var MemoryCacheProvider = class {
|
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region src/cache/primitives/$cache.ts
|
|
85
|
+
//#region ../../src/cache/primitives/$cache.ts
|
|
86
86
|
/**
|
|
87
87
|
* Creates a cache primitive for high-performance data caching with automatic management.
|
|
88
88
|
*
|
|
@@ -209,7 +209,7 @@ var CachePrimitive = class extends Primitive {
|
|
|
209
209
|
$cache[KIND] = CachePrimitive;
|
|
210
210
|
|
|
211
211
|
//#endregion
|
|
212
|
-
//#region src/cache/index.ts
|
|
212
|
+
//#region ../../src/cache/index.ts
|
|
213
213
|
/**
|
|
214
214
|
* Provides high-performance caching capabilities for Alepha applications with configurable TTL and multiple storage backends.
|
|
215
215
|
*
|
|
@@ -4,7 +4,7 @@ import { CacheProvider } from "alepha/cache";
|
|
|
4
4
|
import * as alepha_logger0 from "alepha/logger";
|
|
5
5
|
import { RedisProvider } from "alepha/redis";
|
|
6
6
|
|
|
7
|
-
//#region src/cache-redis/providers/RedisCacheProvider.d.ts
|
|
7
|
+
//#region ../../src/cache-redis/providers/RedisCacheProvider.d.ts
|
|
8
8
|
declare const envSchema: alepha1.TObject<{
|
|
9
9
|
REDIS_CACHE_PREFIX: alepha1.TOptional<alepha1.TString>;
|
|
10
10
|
}>;
|
|
@@ -27,7 +27,7 @@ declare class RedisCacheProvider implements CacheProvider {
|
|
|
27
27
|
protected prefix(...path: string[]): string;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region src/cache-redis/index.d.ts
|
|
30
|
+
//#region ../../src/cache-redis/index.d.ts
|
|
31
31
|
/**
|
|
32
32
|
* Plugin for Alepha Cache that provides Redis caching capabilities.
|
|
33
33
|
*
|
|
@@ -3,7 +3,7 @@ import { AlephaCache, CacheProvider } from "alepha/cache";
|
|
|
3
3
|
import { $logger } from "alepha/logger";
|
|
4
4
|
import { RedisProvider } from "alepha/redis";
|
|
5
5
|
|
|
6
|
-
//#region src/cache-redis/providers/RedisCacheProvider.ts
|
|
6
|
+
//#region ../../src/cache-redis/providers/RedisCacheProvider.ts
|
|
7
7
|
const envSchema = t.object({ REDIS_CACHE_PREFIX: t.optional(t.text({ description: "Force a prefix for all cache keys in Redis. Useful for testing or multi-tenant applications." })) });
|
|
8
8
|
var RedisCacheProvider = class {
|
|
9
9
|
log = $logger();
|
|
@@ -61,7 +61,7 @@ var RedisCacheProvider = class {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region src/cache-redis/index.ts
|
|
64
|
+
//#region ../../src/cache-redis/index.ts
|
|
65
65
|
/**
|
|
66
66
|
* Plugin for Alepha Cache that provides Redis caching capabilities.
|
|
67
67
|
*
|
|
@@ -4,7 +4,7 @@ import "vite/module-runner";
|
|
|
4
4
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../../../../node_modules/tinyrainbow/dist/index.js
|
|
8
8
|
var d = {
|
|
9
9
|
reset: [0, 0],
|
|
10
10
|
bold: [
|
|
@@ -88,7 +88,7 @@ function f() {
|
|
|
88
88
|
var C = f();
|
|
89
89
|
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region
|
|
91
|
+
//#region ../../../../node_modules/@vitest/pretty-format/dist/index.js
|
|
92
92
|
function _mergeNamespaces(n, m) {
|
|
93
93
|
m.forEach(function(e) {
|
|
94
94
|
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -755,7 +755,7 @@ const plugins = {
|
|
|
755
755
|
};
|
|
756
756
|
|
|
757
757
|
//#endregion
|
|
758
|
-
//#region
|
|
758
|
+
//#region ../../../../node_modules/@vitest/utils/dist/display.js
|
|
759
759
|
const ansiColors = {
|
|
760
760
|
bold: ["1", "22"],
|
|
761
761
|
dim: ["2", "22"],
|
|
@@ -1244,7 +1244,7 @@ function objDisplay(obj, options = {}) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
//#endregion
|
|
1247
|
-
//#region
|
|
1247
|
+
//#region ../../../../node_modules/@vitest/utils/dist/helpers.js
|
|
1248
1248
|
function assertTypes(value, name, types) {
|
|
1249
1249
|
const receivedType = typeof value;
|
|
1250
1250
|
if (!types.includes(receivedType)) throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`);
|
|
@@ -1285,7 +1285,7 @@ function isNegativeNaN(val) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
|
|
1287
1287
|
//#endregion
|
|
1288
|
-
//#region
|
|
1288
|
+
//#region ../../../../node_modules/@vitest/utils/dist/timers.js
|
|
1289
1289
|
const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
1290
1290
|
function getSafeTimers() {
|
|
1291
1291
|
const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
@@ -1303,7 +1303,7 @@ function getSafeTimers() {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
//#endregion
|
|
1306
|
-
//#region
|
|
1306
|
+
//#region ../../../../node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
|
|
1307
1307
|
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
1308
1308
|
function normalizeWindowsPath(input = "") {
|
|
1309
1309
|
if (!input) return input;
|
|
@@ -1383,7 +1383,7 @@ const isAbsolute = function(p) {
|
|
|
1383
1383
|
};
|
|
1384
1384
|
|
|
1385
1385
|
//#endregion
|
|
1386
|
-
//#region
|
|
1386
|
+
//#region ../../../../node_modules/@vitest/utils/dist/source-map.js
|
|
1387
1387
|
var comma = ",".charCodeAt(0);
|
|
1388
1388
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1389
1389
|
var intToChar = new Uint8Array(64);
|
|
@@ -1473,7 +1473,7 @@ function parseSingleV8Stack(raw) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
//#endregion
|
|
1476
|
-
//#region
|
|
1476
|
+
//#region ../../../../node_modules/@vitest/runner/dist/chunk-tasks.js
|
|
1477
1477
|
function createChainable(keys, fn$1) {
|
|
1478
1478
|
function create(context) {
|
|
1479
1479
|
const chain$1 = function(...args) {
|
|
@@ -1511,7 +1511,7 @@ function createTaskName(names, separator = " > ") {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
1513
1513
|
//#endregion
|
|
1514
|
-
//#region
|
|
1514
|
+
//#region ../../../../node_modules/@vitest/runner/dist/index.js
|
|
1515
1515
|
var PendingError = class extends Error {
|
|
1516
1516
|
code = "VITEST_PENDING";
|
|
1517
1517
|
taskId;
|
|
@@ -2637,31 +2637,31 @@ function manageArtifactAttachment(attachment) {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
|
|
2639
2639
|
//#endregion
|
|
2640
|
-
//#region
|
|
2640
|
+
//#region ../../../../node_modules/expect-type/dist/branding.js
|
|
2641
2641
|
var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2642
2642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2643
2643
|
}));
|
|
2644
2644
|
|
|
2645
2645
|
//#endregion
|
|
2646
|
-
//#region
|
|
2646
|
+
//#region ../../../../node_modules/expect-type/dist/messages.js
|
|
2647
2647
|
var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2648
2648
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2649
2649
|
}));
|
|
2650
2650
|
|
|
2651
2651
|
//#endregion
|
|
2652
|
-
//#region
|
|
2652
|
+
//#region ../../../../node_modules/expect-type/dist/overloads.js
|
|
2653
2653
|
var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2654
2654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2655
2655
|
}));
|
|
2656
2656
|
|
|
2657
2657
|
//#endregion
|
|
2658
|
-
//#region
|
|
2658
|
+
//#region ../../../../node_modules/expect-type/dist/utils.js
|
|
2659
2659
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2660
2660
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2661
2661
|
}));
|
|
2662
2662
|
|
|
2663
2663
|
//#endregion
|
|
2664
|
-
//#region
|
|
2664
|
+
//#region ../../../../node_modules/expect-type/dist/index.js
|
|
2665
2665
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2666
2666
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
2667
2667
|
if (k2 === void 0) k2 = k;
|
|
@@ -2762,9 +2762,9 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2762
2762
|
}));
|
|
2763
2763
|
|
|
2764
2764
|
//#endregion
|
|
2765
|
-
//#region
|
|
2765
|
+
//#region ../../../../node_modules/vitest/dist/index.js
|
|
2766
2766
|
var import_dist = require_dist();
|
|
2767
2767
|
|
|
2768
2768
|
//#endregion
|
|
2769
2769
|
export { };
|
|
2770
|
-
//# sourceMappingURL=dist-
|
|
2770
|
+
//# sourceMappingURL=dist-BlfFtOk2.js.map
|