@withwiz/toolkit 0.5.0 → 0.5.2
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/dist/auth/config.d.ts +2 -0
- package/dist/auth/config.js +1 -1
- package/dist/auth/core/jwt/cookie.js +2 -2
- package/dist/auth/core/jwt/index.js +2 -2
- package/dist/auth/index.js +31 -31
- package/dist/cache/cache-config.js +4 -4
- package/dist/cache/cache-env.js +3 -3
- package/dist/cache/cache-factory.js +11 -11
- package/dist/cache/cache-invalidation.js +12 -12
- package/dist/cache/cache-redis.js +5 -5
- package/dist/cache/cache-wrapper.js +12 -12
- package/dist/cache/cache.js +15 -15
- package/dist/cache/config.js +2 -2
- package/dist/cache/hybrid-cache-manager.js +7 -7
- package/dist/cache/index.js +15 -15
- package/dist/cache/inmemory-cache-manager.js +2 -3
- package/dist/cache/noop-cache-manager.js +5 -5
- package/dist/cache/redis-cache-manager.js +6 -6
- package/dist/{chunk-HGLQXH4D.js → chunk-2B4EKCV6.js} +2 -2
- package/dist/{chunk-DANUXNQU.js → chunk-33BG6FPO.js} +1 -1
- package/dist/{chunk-W3IVVPS5.js → chunk-3TD5OAQS.js} +1 -1
- package/dist/{chunk-G5WP3MJG.js → chunk-4J4D27BV.js} +1 -1
- package/dist/{chunk-XA32Z2OV.js → chunk-5E66FUBP.js} +1 -1
- package/dist/{chunk-ET6RH4LB.js → chunk-5FSPXXNB.js} +1 -1
- package/dist/chunk-6PGZTY4N.js +30 -0
- package/dist/{chunk-4OCGUJL5.js → chunk-6YQU2AIK.js} +3 -3
- package/dist/{chunk-6XDE62WQ.js → chunk-7GKSYCKZ.js} +1 -1
- package/dist/{chunk-6OYE5XKI.js → chunk-BYHP4EH3.js} +3 -3
- package/dist/{chunk-NGV527RO.js → chunk-D7OUX5VJ.js} +1 -1
- package/dist/{chunk-TOVBPLHD.js → chunk-DCUQNXVP.js} +1 -1
- package/dist/{chunk-IEFYARHC.js → chunk-ENIKCCAV.js} +2 -2
- package/dist/{chunk-D46PE6MU.js → chunk-HHJZTDXL.js} +4 -4
- package/dist/{chunk-SNKCKED5.js → chunk-HW732FCA.js} +1 -1
- package/dist/{chunk-Y22GDIM6.js → chunk-L6OEQBOM.js} +2 -13
- package/dist/{chunk-MF4CWGMB.js → chunk-LTEXLSIE.js} +8 -8
- package/dist/{chunk-I7NVWJ72.js → chunk-LX2EYD74.js} +2 -2
- package/dist/{chunk-3OZH2AMD.js → chunk-OBNS4ADX.js} +10 -10
- package/dist/{chunk-DSRRNRZW.js → chunk-ORYZZD5P.js} +2 -2
- package/dist/{chunk-52BIDTZH.js → chunk-OSNQ3TUX.js} +3 -2
- package/dist/{chunk-3WS5MO6P.js → chunk-PEFRPADW.js} +1 -1
- package/dist/{chunk-VIWM2ZZH.js → chunk-QHDOMDC6.js} +1 -1
- package/dist/{chunk-PYTRCD33.js → chunk-QWAMNYUT.js} +2 -2
- package/dist/{chunk-WBU53USI.js → chunk-S2O22ULX.js} +3 -3
- package/dist/{chunk-JY62DSMP.js → chunk-TCQ2DA6Y.js} +6 -16
- package/dist/{chunk-6WI4HNAF.js → chunk-UWD5AHWI.js} +2 -2
- package/dist/{chunk-S5KJZZKU.js → chunk-XIDMCDD3.js} +1 -1
- package/dist/{chunk-5HSGNXQ3.js → chunk-XKWT6W4K.js} +1 -1
- package/dist/{chunk-NDET73GO.js → chunk-YGJJIC6S.js} +4 -4
- package/dist/{chunk-OSDAP24S.js → chunk-YIB6H6P7.js} +4 -4
- package/dist/{chunk-SUA4WQRN.js → chunk-ZEIFD4OQ.js} +5 -5
- package/dist/{chunk-FNKFQFZJ.js → chunk-ZRXE4WSP.js} +1 -1
- package/dist/{chunk-QO27AXIH.js → chunk-ZX7PHFX3.js} +2 -2
- package/dist/components/ui/DataTable.js +5 -5
- package/dist/components/ui/data-table/DataTable.js +5 -5
- package/dist/components/ui/data-table/DataTableFilters.js +2 -2
- package/dist/components/ui/data-table/DataTableSearch.js +2 -2
- package/dist/config/registry.d.ts +42 -0
- package/dist/config/registry.js +12 -0
- package/dist/constants/index.js +9 -9
- package/dist/error/error-display.js +2 -2
- package/dist/error/error-handler.js +2 -3
- package/dist/error/index.js +12 -13
- package/dist/geolocation/batch-processor.js +2 -3
- package/dist/geolocation/index.js +2 -3
- package/dist/initialize.d.ts +2 -0
- package/dist/initialize.js +21 -13
- package/dist/logger/logger.js +1 -2
- package/dist/middleware/auth.js +4 -5
- package/dist/middleware/cors.js +2 -3
- package/dist/middleware/error-handler.js +4 -5
- package/dist/middleware/index.js +16 -17
- package/dist/middleware/middleware-chain.js +2 -3
- package/dist/middleware/rate-limit.js +2 -3
- package/dist/middleware/response-logger.js +2 -3
- package/dist/middleware/security.js +2 -3
- package/dist/middleware/wrappers.js +13 -14
- package/dist/system/cpu.js +3 -4
- package/dist/system/disk.js +3 -4
- package/dist/system/environment.js +6 -6
- package/dist/system/health-check.js +5 -6
- package/dist/system/index.js +11 -11
- package/dist/system/memory.js +3 -4
- package/dist/system/network.js +3 -4
- package/dist/system/utils.js +2 -3
- package/dist/utils/csv-export.js +2 -3
- package/dist/utils/error-processor.js +2 -3
- package/dist/utils/index.js +3 -3
- package/package.json +2 -1
- package/dist/{chunk-UCIUAZQT.js → chunk-AN7GU7PF.js} +3 -3
- package/dist/{chunk-I4UEUKSB.js → chunk-BJSEYZBH.js} +3 -3
- package/dist/{chunk-TH45RVP7.js → chunk-KHYY4KCV.js} +3 -3
- package/dist/{chunk-LJEGM4OO.js → chunk-SEZJN4TC.js} +3 -3
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-YUBXS7YI.js";
|
|
5
5
|
import {
|
|
6
6
|
getPlatform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4J4D27BV.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L6OEQBOM.js";
|
|
11
11
|
import {
|
|
12
12
|
getResolvedCacheConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AN7GU7PF.js";
|
|
14
14
|
|
|
15
15
|
// src/system/health-check.ts
|
|
16
16
|
async function checkServiceHealth(prismaClient) {
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
isRedisGloballyDisabled,
|
|
4
4
|
notifyRedisError,
|
|
5
5
|
resetRedisGlobalState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ENIKCCAV.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L6OEQBOM.js";
|
|
10
10
|
import {
|
|
11
11
|
getENV,
|
|
12
12
|
isCacheEnabled
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5FSPXXNB.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-ORMEWXMH.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L6OEQBOM.js";
|
|
4
4
|
import {
|
|
5
5
|
getCacheFallbackConfig,
|
|
6
6
|
getConfig,
|
|
7
7
|
getEnv,
|
|
8
8
|
isCacheEnabled,
|
|
9
9
|
validateRedisEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5FSPXXNB.js";
|
|
11
11
|
|
|
12
12
|
// src/cache/cache-redis.ts
|
|
13
13
|
import { Redis } from "@upstash/redis";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7GKSYCKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
isRedisGloballyDisabled,
|
|
6
6
|
notifyRedisError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ENIKCCAV.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L6OEQBOM.js";
|
|
11
11
|
import {
|
|
12
12
|
getCacheFallbackConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5FSPXXNB.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-ORMEWXMH.js";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLoggerConfig
|
|
3
3
|
} from "./chunk-6O3I4ORK.js";
|
|
4
|
-
import {
|
|
5
|
-
getCommonConfig
|
|
6
|
-
} from "./chunk-XICTHSUH.js";
|
|
7
4
|
import {
|
|
8
5
|
__spreadProps,
|
|
9
6
|
__spreadValues
|
|
@@ -41,18 +38,10 @@ var colors = {
|
|
|
41
38
|
debug: "blue"
|
|
42
39
|
};
|
|
43
40
|
winston.addColors(colors);
|
|
44
|
-
var isTestEnv = (() => {
|
|
45
|
-
try {
|
|
46
|
-
return getCommonConfig().nodeEnv === "test";
|
|
47
|
-
} catch (e) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
})() || process.env.VITEST !== void 0 || process.env.JEST_WORKER_ID !== void 0;
|
|
51
|
-
var isBuildTime = process.env.NEXT_PHASE === "phase-production-build" || process.argv.some((arg) => arg.includes("build"));
|
|
52
41
|
var canWriteToLogDir = (() => {
|
|
53
|
-
if (isTestEnv || isBuildTime) return false;
|
|
54
42
|
try {
|
|
55
43
|
const cfg = getLogConfig();
|
|
44
|
+
if (!cfg.fileEnabled) return false;
|
|
56
45
|
const logDir = cfg.dir;
|
|
57
46
|
if (fs.existsSync(logDir)) {
|
|
58
47
|
fs.accessSync(logDir, fs.constants.W_OK);
|
|
@@ -64,7 +53,7 @@ var canWriteToLogDir = (() => {
|
|
|
64
53
|
return false;
|
|
65
54
|
}
|
|
66
55
|
})();
|
|
67
|
-
var fileLoggingEnabled =
|
|
56
|
+
var fileLoggingEnabled = canWriteToLogDir && getLogConfig().fileEnabled;
|
|
68
57
|
var consoleLoggingEnabled = getLogConfig().consoleEnabled;
|
|
69
58
|
var datePatternString = "YYYY-MM-DD";
|
|
70
59
|
var logLevel = getLogConfig().level;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HybridCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HHJZTDXL.js";
|
|
4
4
|
import {
|
|
5
5
|
InMemoryCacheManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7GKSYCKZ.js";
|
|
7
7
|
import {
|
|
8
8
|
NoopCacheManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ORYZZD5P.js";
|
|
10
10
|
import {
|
|
11
11
|
RedisCacheManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BYHP4EH3.js";
|
|
13
13
|
import {
|
|
14
14
|
isRedisAvailableNow,
|
|
15
15
|
isRedisGloballyDisabled
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ENIKCCAV.js";
|
|
17
17
|
import {
|
|
18
18
|
logger
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L6OEQBOM.js";
|
|
20
20
|
import {
|
|
21
21
|
getCacheConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QHDOMDC6.js";
|
|
23
23
|
import {
|
|
24
24
|
getENV,
|
|
25
25
|
isCacheEnabled
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5FSPXXNB.js";
|
|
27
27
|
|
|
28
28
|
// src/cache/cache-factory.ts
|
|
29
29
|
function getInMemoryConfig() {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-MAATEX2R.js";
|
|
7
7
|
import {
|
|
8
8
|
DataTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SEZJN4TC.js";
|
|
10
10
|
import {
|
|
11
11
|
DataTablePagination
|
|
12
12
|
} from "./chunk-IPXPCBDO.js";
|
|
13
13
|
import {
|
|
14
14
|
DataTableSearch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KHYY4KCV.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_LABELS
|
|
18
18
|
} from "./chunk-NY5QXT33.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
initRequestMiddleware
|
|
3
|
+
} from "./chunk-62Q7DN5G.js";
|
|
1
4
|
import {
|
|
2
5
|
MiddlewareChain
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5E66FUBP.js";
|
|
4
7
|
import {
|
|
5
8
|
rateLimitMiddleware
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XIDMCDD3.js";
|
|
7
10
|
import {
|
|
8
11
|
responseLoggerMiddleware
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZRXE4WSP.js";
|
|
10
13
|
import {
|
|
11
14
|
securityMiddleware
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PEFRPADW.js";
|
|
13
16
|
import {
|
|
14
17
|
adminMiddleware,
|
|
15
18
|
authMiddleware,
|
|
16
19
|
optionalAuthMiddleware
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YGJJIC6S.js";
|
|
18
21
|
import {
|
|
19
22
|
corsMiddleware
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3TD5OAQS.js";
|
|
21
24
|
import {
|
|
22
25
|
errorHandlerMiddleware
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
initRequestMiddleware
|
|
26
|
-
} from "./chunk-62Q7DN5G.js";
|
|
26
|
+
} from "./chunk-TCQ2DA6Y.js";
|
|
27
27
|
|
|
28
28
|
// src/middleware/wrappers.ts
|
|
29
29
|
function withPublicApi(handler) {
|
|
@@ -15,7 +15,7 @@ function setConfig(config) {
|
|
|
15
15
|
globalThis[GLOBAL_KEY] = config;
|
|
16
16
|
}
|
|
17
17
|
function initializeAuth(config) {
|
|
18
|
-
var _a, _b;
|
|
18
|
+
var _a, _b, _c;
|
|
19
19
|
if (getConfig()) return;
|
|
20
20
|
if (!config.jwtSecret) {
|
|
21
21
|
throw new ConfigurationError("Auth", "jwtSecret is required");
|
|
@@ -29,7 +29,8 @@ function initializeAuth(config) {
|
|
|
29
29
|
setConfig({
|
|
30
30
|
jwtSecret: config.jwtSecret,
|
|
31
31
|
accessTokenExpiry: (_a = config.accessTokenExpiry) != null ? _a : "7d",
|
|
32
|
-
refreshTokenExpiry: (_b = config.refreshTokenExpiry) != null ? _b : "30d"
|
|
32
|
+
refreshTokenExpiry: (_b = config.refreshTokenExpiry) != null ? _b : "30d",
|
|
33
|
+
cookieSecure: (_c = config.cookieSecure) != null ? _c : false
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
function getAuthConfig() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4J4D27BV.js";
|
|
4
4
|
import {
|
|
5
5
|
getGeolocationConfig
|
|
6
6
|
} from "./chunk-2VNDWG6P.js";
|
|
7
7
|
import {
|
|
8
8
|
getAuthConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OSNQ3TUX.js";
|
|
10
10
|
import {
|
|
11
11
|
getResolvedCacheConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AN7GU7PF.js";
|
|
13
13
|
import {
|
|
14
14
|
getCommonConfig
|
|
15
15
|
} from "./chunk-XICTHSUH.js";
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getErrorMessage
|
|
3
|
-
} from "./chunk-JNJALNRR.js";
|
|
4
1
|
import {
|
|
5
2
|
AUTH_ERROR_CODE_MAP
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DCUQNXVP.js";
|
|
7
4
|
import {
|
|
8
5
|
AppError
|
|
9
6
|
} from "./chunk-EOEMOXNT.js";
|
|
7
|
+
import {
|
|
8
|
+
getErrorMessage
|
|
9
|
+
} from "./chunk-JNJALNRR.js";
|
|
10
10
|
import {
|
|
11
11
|
ERROR_CODES,
|
|
12
12
|
classifyError
|
|
13
13
|
} from "./chunk-SNTLJ646.js";
|
|
14
14
|
import {
|
|
15
15
|
logger
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L6OEQBOM.js";
|
|
17
17
|
import {
|
|
18
18
|
AuthError
|
|
19
19
|
} from "./chunk-AIH3F7JV.js";
|
|
20
|
-
import {
|
|
21
|
-
getCommonConfig
|
|
22
|
-
} from "./chunk-XICTHSUH.js";
|
|
23
20
|
import {
|
|
24
21
|
__spreadValues
|
|
25
22
|
} from "./chunk-ORMEWXMH.js";
|
|
@@ -80,16 +77,9 @@ var errorHandlerMiddleware = async (context, next) => {
|
|
|
80
77
|
requestId: context.requestId,
|
|
81
78
|
stack: error instanceof Error ? error.stack : void 0
|
|
82
79
|
});
|
|
83
|
-
let isProduction = false;
|
|
84
|
-
try {
|
|
85
|
-
isProduction = getCommonConfig().nodeEnv === "production";
|
|
86
|
-
} catch (e) {
|
|
87
|
-
isProduction = false;
|
|
88
|
-
}
|
|
89
|
-
const safeMessage = isProduction ? classified.message : error instanceof Error ? error.message : "Unknown error";
|
|
90
80
|
return createErrorResponse(
|
|
91
81
|
classified.code,
|
|
92
|
-
|
|
82
|
+
classified.message,
|
|
93
83
|
context.locale,
|
|
94
84
|
context.requestId
|
|
95
85
|
);
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-SNTLJ646.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getAuthConfig
|
|
12
|
-
} from "./chunk-52BIDTZH.js";
|
|
9
|
+
} from "./chunk-L6OEQBOM.js";
|
|
13
10
|
import {
|
|
14
11
|
JWTManager
|
|
15
12
|
} from "./chunk-3GAY2T2A.js";
|
|
13
|
+
import {
|
|
14
|
+
getAuthConfig
|
|
15
|
+
} from "./chunk-OSNQ3TUX.js";
|
|
16
16
|
|
|
17
17
|
// src/middleware/auth.ts
|
|
18
18
|
function setAccessTokenBlacklistChecker(checker) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCacheManager,
|
|
3
3
|
getEffectiveCacheBackend
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LTEXLSIE.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L6OEQBOM.js";
|
|
8
8
|
import {
|
|
9
9
|
getCacheConfig,
|
|
10
10
|
getCacheTTL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QHDOMDC6.js";
|
|
12
12
|
import {
|
|
13
13
|
isCacheEnabled
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5FSPXXNB.js";
|
|
15
15
|
|
|
16
16
|
// src/cache/cache-wrapper.ts
|
|
17
17
|
function getCacheBackendLabel() {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
getAuthConfig
|
|
3
|
+
} from "./chunk-OSNQ3TUX.js";
|
|
4
4
|
import {
|
|
5
5
|
__spreadValues
|
|
6
6
|
} from "./chunk-ORMEWXMH.js";
|
|
7
7
|
|
|
8
8
|
// src/auth/core/jwt/cookie.ts
|
|
9
9
|
function getDefaultOptions() {
|
|
10
|
-
let
|
|
10
|
+
let secure = false;
|
|
11
11
|
try {
|
|
12
|
-
|
|
12
|
+
secure = getAuthConfig().cookieSecure;
|
|
13
13
|
} catch (e) {
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
secure
|
|
16
|
+
secure,
|
|
17
17
|
sameSite: "lax"
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataTable
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LX2EYD74.js";
|
|
4
4
|
import "../../chunk-7IY3RQQL.js";
|
|
5
5
|
import "../../chunk-MAATEX2R.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-SEZJN4TC.js";
|
|
7
7
|
import "../../chunk-IPXPCBDO.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-KHYY4KCV.js";
|
|
9
9
|
import "../../chunk-NY5QXT33.js";
|
|
10
|
+
import "../../chunk-34WAGUT5.js";
|
|
11
|
+
import "../../chunk-RJUVBBZG.js";
|
|
10
12
|
import "../../chunk-IJEZ7G7S.js";
|
|
11
13
|
import "../../chunk-YJWLWUFK.js";
|
|
12
14
|
import "../../chunk-WDUFQFDP.js";
|
|
13
|
-
import "../../chunk-34WAGUT5.js";
|
|
14
15
|
import "../../chunk-F6LCSFSU.js";
|
|
15
16
|
import "../../chunk-L25BNU3E.js";
|
|
16
|
-
import "../../chunk-RJUVBBZG.js";
|
|
17
17
|
import "../../chunk-62FLBG6B.js";
|
|
18
18
|
import "../../chunk-ORMEWXMH.js";
|
|
19
19
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DataTable
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-LX2EYD74.js";
|
|
5
5
|
import "../../../chunk-7IY3RQQL.js";
|
|
6
6
|
import "../../../chunk-MAATEX2R.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-SEZJN4TC.js";
|
|
8
8
|
import "../../../chunk-IPXPCBDO.js";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-KHYY4KCV.js";
|
|
10
10
|
import "../../../chunk-NY5QXT33.js";
|
|
11
|
+
import "../../../chunk-34WAGUT5.js";
|
|
12
|
+
import "../../../chunk-RJUVBBZG.js";
|
|
11
13
|
import "../../../chunk-IJEZ7G7S.js";
|
|
12
14
|
import "../../../chunk-YJWLWUFK.js";
|
|
13
15
|
import "../../../chunk-WDUFQFDP.js";
|
|
14
|
-
import "../../../chunk-34WAGUT5.js";
|
|
15
16
|
import "../../../chunk-F6LCSFSU.js";
|
|
16
17
|
import "../../../chunk-L25BNU3E.js";
|
|
17
|
-
import "../../../chunk-RJUVBBZG.js";
|
|
18
18
|
import "../../../chunk-62FLBG6B.js";
|
|
19
19
|
import "../../../chunk-ORMEWXMH.js";
|
|
20
20
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DataTableFilters
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-SEZJN4TC.js";
|
|
5
|
+
import "../../../chunk-RJUVBBZG.js";
|
|
5
6
|
import "../../../chunk-IJEZ7G7S.js";
|
|
6
7
|
import "../../../chunk-WDUFQFDP.js";
|
|
7
8
|
import "../../../chunk-L25BNU3E.js";
|
|
8
|
-
import "../../../chunk-RJUVBBZG.js";
|
|
9
9
|
import "../../../chunk-62FLBG6B.js";
|
|
10
10
|
import "../../../chunk-ORMEWXMH.js";
|
|
11
11
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DataTableSearch
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-KHYY4KCV.js";
|
|
5
5
|
import "../../../chunk-NY5QXT33.js";
|
|
6
|
-
import "../../../chunk-L25BNU3E.js";
|
|
7
6
|
import "../../../chunk-RJUVBBZG.js";
|
|
7
|
+
import "../../../chunk-L25BNU3E.js";
|
|
8
8
|
import "../../../chunk-62FLBG6B.js";
|
|
9
9
|
import "../../../chunk-ORMEWXMH.js";
|
|
10
10
|
export {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified Config Registry
|
|
3
|
+
*
|
|
4
|
+
* Single entry point for all withwiz configuration.
|
|
5
|
+
* Stores resolved configs in globalThis.__withwiz_config and exposes
|
|
6
|
+
* them via a read-only Proxy (`config`).
|
|
7
|
+
*/
|
|
8
|
+
import type { ResolvedCommonConfig } from './common';
|
|
9
|
+
import type { ResolvedAuthConfig } from '../auth/config';
|
|
10
|
+
import type { ResolvedLoggerConfig } from '../logger/config';
|
|
11
|
+
import type { ResolvedCacheConfig } from '../cache/config';
|
|
12
|
+
import type { ResolvedStorageConfig } from '../storage/config';
|
|
13
|
+
import type { ResolvedGeolocationConfig } from '../geolocation/config';
|
|
14
|
+
import type { ResolvedCorsConfig } from '../middleware/cors-config';
|
|
15
|
+
export interface ConfigRegistry {
|
|
16
|
+
common: ResolvedCommonConfig;
|
|
17
|
+
auth: ResolvedAuthConfig;
|
|
18
|
+
logger: ResolvedLoggerConfig;
|
|
19
|
+
cache?: ResolvedCacheConfig;
|
|
20
|
+
storage?: ResolvedStorageConfig;
|
|
21
|
+
geolocation?: ResolvedGeolocationConfig;
|
|
22
|
+
cors?: ResolvedCorsConfig;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
var __withwiz_config: ConfigRegistry | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Initialise the unified config registry.
|
|
29
|
+
* Idempotent — a second call is silently ignored.
|
|
30
|
+
* The stored object is frozen to prevent mutation.
|
|
31
|
+
*/
|
|
32
|
+
export declare function initConfig(entries: ConfigRegistry): void;
|
|
33
|
+
/**
|
|
34
|
+
* Read-only Proxy that delegates to `globalThis.__withwiz_config`.
|
|
35
|
+
* Throws `ConfigurationError` if accessed before `initConfig()`.
|
|
36
|
+
* Throws `TypeError` on any setter attempt.
|
|
37
|
+
*/
|
|
38
|
+
export declare const config: ConfigRegistry;
|
|
39
|
+
/**
|
|
40
|
+
* Reset the registry to uninitialised state. For test cleanup only.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resetConfig(): void;
|