@withwiz/toolkit 0.3.0 → 0.3.1
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 +3 -0
- package/dist/auth/config.js +1 -1
- package/dist/auth/index.js +3 -3
- package/dist/cache/cache-config.js +5 -5
- package/dist/cache/cache-env.js +4 -4
- package/dist/cache/cache-factory.js +14 -14
- package/dist/cache/cache-invalidation.js +14 -14
- package/dist/cache/cache-redis.js +7 -7
- package/dist/cache/cache-wrapper.js +14 -14
- package/dist/cache/cache.js +25 -25
- package/dist/cache/config.d.ts +3 -0
- package/dist/cache/config.js +2 -2
- package/dist/cache/hybrid-cache-manager.js +9 -9
- package/dist/cache/index.js +25 -25
- package/dist/cache/inmemory-cache-manager.js +4 -4
- package/dist/cache/noop-cache-manager.js +6 -6
- package/dist/cache/redis-cache-manager.js +8 -8
- package/dist/{chunk-HKJCBV3H.js → chunk-2KDLKHTO.js} +6 -6
- package/dist/{chunk-V33BEN6H.js → chunk-3CBGGMIY.js} +15 -7
- package/dist/{chunk-ZFFWKCHN.js → chunk-4HBAPPB2.js} +2 -2
- package/dist/{chunk-M776IH4D.js → chunk-6MI4XLWC.js} +3 -3
- package/dist/{chunk-BY653UR3.js → chunk-6SOQUYOU.js} +2 -2
- package/dist/{chunk-3GKJ763I.js → chunk-7IN4WRSO.js} +12 -12
- package/dist/{chunk-PU2LFTI5.js → chunk-AXCB7SKY.js} +2 -2
- package/dist/{chunk-YCIYDWJU.js → chunk-AYZJN32D.js} +15 -7
- package/dist/{chunk-5P4E6SGV.js → chunk-BDY3AOX5.js} +5 -5
- package/dist/{chunk-KAIGEZAL.js → chunk-BYCFXGQL.js} +3 -3
- package/dist/{chunk-AWFY2HWG.js → chunk-CUZPD3BF.js} +2 -2
- package/dist/{chunk-CZHFHEBG.js → chunk-E54MAI4I.js} +5 -5
- package/dist/{chunk-GRGOD3W5.js → chunk-FD2TXDTO.js} +2 -2
- package/dist/{chunk-FGA7VLYK.js → chunk-FDRIFPG6.js} +2 -2
- package/dist/{chunk-L6M4DZV2.js → chunk-FPESPW6P.js} +1 -1
- package/dist/{chunk-Q7NIAITA.js → chunk-G5OMETUS.js} +1 -1
- package/dist/{chunk-JNB7MWG4.js → chunk-GFWGLWTS.js} +15 -7
- package/dist/{chunk-SNNXLA5F.js → chunk-GQVBWZLH.js} +2 -2
- package/dist/{chunk-MVH5ZPFD.js → chunk-HHCDMWEF.js} +1 -1
- package/dist/{chunk-XZ4HMXSK.js → chunk-J4TTSXDN.js} +3 -3
- package/dist/{chunk-576PAKLR.js → chunk-JOM3N4EJ.js} +1 -1
- package/dist/{chunk-DC2OFQ43.js → chunk-JR7GVCQX.js} +11 -11
- package/dist/{chunk-FIRLRKET.js → chunk-K3HAYBWX.js} +1 -1
- package/dist/{chunk-NE33JZW3.js → chunk-KGHWGLED.js} +4 -4
- package/dist/{chunk-4CSSGCW5.js → chunk-KZUBO2IL.js} +3 -3
- package/dist/{chunk-NWAN2VRP.js → chunk-LD7POV6B.js} +9 -9
- package/dist/{chunk-ZBU2DYLD.js → chunk-LFQ3IQQB.js} +2 -2
- package/dist/{chunk-C3WPAWID.js → chunk-O7CK3CKJ.js} +1 -1
- package/dist/{chunk-RLXRDUBX.js → chunk-OHBAELPZ.js} +15 -7
- package/dist/{chunk-STNIT65W.js → chunk-OIRAH57Y.js} +1 -1
- package/dist/{chunk-ITSXXSFN.js → chunk-OZE5KUS3.js} +15 -7
- package/dist/{chunk-UD7YHLHI.js → chunk-QVWDWROP.js} +1 -1
- package/dist/{chunk-BJWG3LH5.js → chunk-RWVGJUON.js} +6 -6
- package/dist/{chunk-JGGGHEBC.js → chunk-S5UCZ2T3.js} +1 -1
- package/dist/{chunk-5MBKG2ZD.js → chunk-SFPMFVSD.js} +14 -6
- package/dist/{chunk-6VNEAK73.js → chunk-SV7X6HEN.js} +4 -4
- package/dist/{chunk-JTPLPUI7.js → chunk-TFD3DSM2.js} +18 -10
- package/dist/{chunk-USL5SQLZ.js → chunk-TO5CMMQC.js} +2 -2
- package/dist/{chunk-FO77EZCU.js → chunk-VF4EVAMV.js} +1 -1
- package/dist/{chunk-2LCLLZME.js → chunk-WNF2RKFA.js} +7 -7
- package/dist/{chunk-X2QSMX3B.js → chunk-XI4MRH5P.js} +4 -4
- package/dist/config/common.d.ts +3 -0
- package/dist/config/common.js +1 -1
- package/dist/constants/index.js +24 -24
- package/dist/error/error-display.js +2 -2
- package/dist/error/error-handler.js +6 -6
- package/dist/error/index.js +17 -17
- package/dist/geolocation/batch-processor.js +4 -4
- package/dist/geolocation/config.d.ts +3 -0
- package/dist/geolocation/config.js +1 -1
- package/dist/geolocation/index.js +8 -8
- package/dist/geolocation/providers/index.js +4 -4
- package/dist/geolocation/providers/ipgeolocation-provider.js +2 -2
- package/dist/geolocation/providers/maxmind-provider.js +2 -2
- package/dist/initialize.js +11 -11
- package/dist/logger/config.d.ts +3 -0
- package/dist/logger/config.js +1 -1
- package/dist/logger/logger.js +3 -3
- package/dist/middleware/auth.js +8 -8
- package/dist/middleware/cors-config.d.ts +3 -0
- package/dist/middleware/cors-config.js +1 -1
- package/dist/middleware/cors.js +5 -5
- package/dist/middleware/error-handler.js +8 -8
- package/dist/middleware/index.js +20 -20
- package/dist/middleware/middleware-chain.js +4 -4
- package/dist/middleware/rate-limit.js +5 -5
- package/dist/middleware/response-logger.js +4 -4
- package/dist/middleware/security.js +4 -4
- package/dist/middleware/wrappers.js +18 -18
- package/dist/storage/config.d.ts +3 -0
- package/dist/storage/config.js +1 -1
- package/dist/storage/r2-storage.js +2 -2
- package/dist/system/cpu.js +5 -5
- package/dist/system/disk.js +5 -5
- package/dist/system/environment.js +9 -9
- package/dist/system/health-check.js +7 -7
- package/dist/system/index.js +14 -14
- package/dist/system/memory.js +5 -5
- package/dist/system/network.js +5 -5
- package/dist/system/utils.js +4 -4
- package/dist/utils/cors.js +3 -3
- package/dist/utils/csv-export.js +4 -4
- package/dist/utils/error-processor.js +5 -5
- package/dist/utils/index.js +16 -16
- package/package.json +1 -1
- package/dist/{chunk-TQJDNWBL.js → chunk-IJCVFLEY.js} +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J4TTSXDN.js";
|
|
4
4
|
import {
|
|
5
5
|
isRedisGloballyDisabled,
|
|
6
6
|
notifyRedisError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AXCB7SKY.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GQVBWZLH.js";
|
|
11
11
|
import {
|
|
12
12
|
getCacheFallbackConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XI4MRH5P.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-ORMEWXMH.js";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigurationError
|
|
3
|
+
} from "./chunk-2QH66EVQ.js";
|
|
1
4
|
import {
|
|
2
5
|
CACHE_DURATION_DEFAULTS,
|
|
3
6
|
CACHE_FALLBACK_DEFAULTS,
|
|
@@ -5,18 +8,22 @@ import {
|
|
|
5
8
|
CACHE_TTL_DEFAULTS,
|
|
6
9
|
INMEMORY_CACHE_DEFAULTS
|
|
7
10
|
} from "./chunk-IQQKKUAV.js";
|
|
8
|
-
import {
|
|
9
|
-
ConfigurationError
|
|
10
|
-
} from "./chunk-2QH66EVQ.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadValues
|
|
13
13
|
} from "./chunk-ORMEWXMH.js";
|
|
14
14
|
|
|
15
15
|
// src/cache/config.ts
|
|
16
|
-
var
|
|
16
|
+
var GLOBAL_KEY = "__withwiz_cache_config";
|
|
17
|
+
function getConfig() {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = globalThis[GLOBAL_KEY]) != null ? _a : null;
|
|
20
|
+
}
|
|
21
|
+
function setConfig(config) {
|
|
22
|
+
globalThis[GLOBAL_KEY] = config;
|
|
23
|
+
}
|
|
17
24
|
function initializeCache(input) {
|
|
18
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa;
|
|
19
|
-
if (
|
|
26
|
+
if (getConfig()) return;
|
|
20
27
|
if (input.redis !== void 0) {
|
|
21
28
|
if (!input.redis.url) {
|
|
22
29
|
throw new ConfigurationError("cache", "redis.url is required");
|
|
@@ -40,7 +47,7 @@ function initializeCache(input) {
|
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
}
|
|
43
|
-
|
|
50
|
+
setConfig({
|
|
44
51
|
enabled: (_e = input.enabled) != null ? _e : true,
|
|
45
52
|
redis: input.redis ? {
|
|
46
53
|
url: input.redis.url,
|
|
@@ -83,16 +90,17 @@ function initializeCache(input) {
|
|
|
83
90
|
reportInvalidationThreshold: (_da = (_ca = input.health) == null ? void 0 : _ca.reportInvalidationThreshold) != null ? _da : CACHE_HEALTH_DEFAULTS.REPORT_INVALIDATION_THRESHOLD,
|
|
84
91
|
reportMinRequests: (_fa = (_ea = input.health) == null ? void 0 : _ea.reportMinRequests) != null ? _fa : CACHE_HEALTH_DEFAULTS.REPORT_MIN_REQUESTS
|
|
85
92
|
}
|
|
86
|
-
};
|
|
93
|
+
});
|
|
87
94
|
}
|
|
88
95
|
function getResolvedCacheConfig() {
|
|
89
|
-
|
|
96
|
+
const config = getConfig();
|
|
97
|
+
if (!config) {
|
|
90
98
|
throw new ConfigurationError("cache", "Cache config not initialized. Call initializeCache() first.");
|
|
91
99
|
}
|
|
92
|
-
return
|
|
100
|
+
return config;
|
|
93
101
|
}
|
|
94
102
|
function resetCache() {
|
|
95
|
-
|
|
103
|
+
globalThis[GLOBAL_KEY] = void 0;
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S5UCZ2T3.js";
|
|
4
4
|
import {
|
|
5
5
|
getGeolocationConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3CBGGMIY.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
getAuthConfig
|
|
9
|
+
} from "./chunk-OZE5KUS3.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommonConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SFPMFVSD.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
getResolvedCacheConfig
|
|
15
|
+
} from "./chunk-TFD3DSM2.js";
|
|
16
16
|
|
|
17
17
|
// src/system/environment.ts
|
|
18
18
|
import os from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getResolvedCacheConfig
|
|
3
|
-
} from "./chunk-JTPLPUI7.js";
|
|
4
1
|
import {
|
|
5
2
|
getCommonConfig
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SFPMFVSD.js";
|
|
4
|
+
import {
|
|
5
|
+
getResolvedCacheConfig
|
|
6
|
+
} from "./chunk-TFD3DSM2.js";
|
|
7
7
|
|
|
8
8
|
// src/cache/cache-env.ts
|
|
9
9
|
function _getNodeEnv() {
|
package/dist/config/common.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export interface CommonConfig {
|
|
|
4
4
|
export interface ResolvedCommonConfig {
|
|
5
5
|
nodeEnv: 'development' | 'production' | 'test';
|
|
6
6
|
}
|
|
7
|
+
declare global {
|
|
8
|
+
var __withwiz_common_config: ResolvedCommonConfig | undefined;
|
|
9
|
+
}
|
|
7
10
|
export declare function initializeCommon(config: CommonConfig): void;
|
|
8
11
|
export declare function getCommonConfig(): ResolvedCommonConfig;
|
|
9
12
|
export declare function resetCommon(): void;
|
package/dist/config/common.js
CHANGED
package/dist/constants/index.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
API_KEY,
|
|
3
|
+
CSRF,
|
|
4
|
+
EMAIL_VERIFICATION,
|
|
5
|
+
JWT_DEFAULTS,
|
|
6
|
+
MAGIC_LINK,
|
|
7
|
+
OAUTH,
|
|
8
|
+
PASSWORD_RESET,
|
|
9
|
+
SECURITY_HEADERS,
|
|
10
|
+
SESSION
|
|
11
|
+
} from "../chunk-JLLMTTQ4.js";
|
|
1
12
|
import {
|
|
2
13
|
DATE,
|
|
3
14
|
FILE_UPLOAD,
|
|
@@ -7,20 +18,6 @@ import {
|
|
|
7
18
|
URL,
|
|
8
19
|
USER_INPUT
|
|
9
20
|
} from "../chunk-LNV2E4I6.js";
|
|
10
|
-
import {
|
|
11
|
-
ERROR_CODES,
|
|
12
|
-
HTTP_STATUS,
|
|
13
|
-
classifyError,
|
|
14
|
-
formatErrorMessage,
|
|
15
|
-
getAllErrorCodes,
|
|
16
|
-
getDefaultErrorMessage,
|
|
17
|
-
getErrorByCode,
|
|
18
|
-
getErrorCategory,
|
|
19
|
-
getErrorCodesByCategory,
|
|
20
|
-
getErrorInfo,
|
|
21
|
-
getHttpStatus,
|
|
22
|
-
getLogLevel
|
|
23
|
-
} from "../chunk-SNVGJPPX.js";
|
|
24
21
|
import {
|
|
25
22
|
GENERIC_CONFIRM_MESSAGES,
|
|
26
23
|
GENERIC_ERROR_MESSAGES,
|
|
@@ -35,16 +32,19 @@ import {
|
|
|
35
32
|
SORT_OPTIONS
|
|
36
33
|
} from "../chunk-VDXB5DCY.js";
|
|
37
34
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
ERROR_CODES,
|
|
36
|
+
HTTP_STATUS,
|
|
37
|
+
classifyError,
|
|
38
|
+
formatErrorMessage,
|
|
39
|
+
getAllErrorCodes,
|
|
40
|
+
getDefaultErrorMessage,
|
|
41
|
+
getErrorByCode,
|
|
42
|
+
getErrorCategory,
|
|
43
|
+
getErrorCodesByCategory,
|
|
44
|
+
getErrorInfo,
|
|
45
|
+
getHttpStatus,
|
|
46
|
+
getLogLevel
|
|
47
|
+
} from "../chunk-SNVGJPPX.js";
|
|
48
48
|
import "../chunk-ORMEWXMH.js";
|
|
49
49
|
export {
|
|
50
50
|
API_KEY,
|
|
@@ -5,8 +5,7 @@ import {
|
|
|
5
5
|
getErrorIcon,
|
|
6
6
|
handleApiResponse,
|
|
7
7
|
showFriendlyError
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-KXXROUA5.js";
|
|
8
|
+
} from "../chunk-IJCVFLEY.js";
|
|
10
9
|
import {
|
|
11
10
|
getErrorDisplayInfo,
|
|
12
11
|
getFriendlyMessage
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
import "../chunk-Y2JYA2AR.js";
|
|
15
14
|
import "../chunk-HCF3C3AQ.js";
|
|
16
15
|
import "../chunk-IYXMGIEP.js";
|
|
16
|
+
import "../chunk-KXXROUA5.js";
|
|
17
17
|
import "../chunk-SNVGJPPX.js";
|
|
18
18
|
import "../chunk-ORMEWXMH.js";
|
|
19
19
|
export {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
error_handler_default,
|
|
6
6
|
processError,
|
|
7
7
|
withErrorHandler
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-2KDLKHTO.js";
|
|
9
9
|
import "../chunk-KXXROUA5.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-SNVGJPPX.js";
|
|
11
|
+
import "../chunk-AIH3F7JV.js";
|
|
12
|
+
import "../chunk-GQVBWZLH.js";
|
|
13
|
+
import "../chunk-OHBAELPZ.js";
|
|
14
|
+
import "../chunk-SFPMFVSD.js";
|
|
13
15
|
import "../chunk-K25ICPU4.js";
|
|
14
16
|
import "../chunk-2QH66EVQ.js";
|
|
15
|
-
import "../chunk-AIH3F7JV.js";
|
|
16
|
-
import "../chunk-SNVGJPPX.js";
|
|
17
17
|
import "../chunk-ORMEWXMH.js";
|
|
18
18
|
export {
|
|
19
19
|
AUTH_ERROR_CODE_MAP,
|
package/dist/error/index.js
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocaleDetector
|
|
3
3
|
} from "../chunk-XHZ5L4FO.js";
|
|
4
|
-
import {
|
|
5
|
-
extractErrorInfo,
|
|
6
|
-
formatInlineError,
|
|
7
|
-
getDefaultErrorCode,
|
|
8
|
-
getErrorIcon,
|
|
9
|
-
handleApiResponse,
|
|
10
|
-
showFriendlyError
|
|
11
|
-
} from "../chunk-TQJDNWBL.js";
|
|
12
4
|
import {
|
|
13
5
|
AUTH_ERROR_CODE_MAP,
|
|
14
6
|
ErrorResponse,
|
|
15
7
|
errorToResponse,
|
|
16
8
|
processError,
|
|
17
9
|
withErrorHandler
|
|
18
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-2KDLKHTO.js";
|
|
19
11
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
extractErrorInfo,
|
|
13
|
+
formatInlineError,
|
|
14
|
+
getDefaultErrorCode,
|
|
15
|
+
getErrorIcon,
|
|
16
|
+
handleApiResponse,
|
|
17
|
+
showFriendlyError
|
|
18
|
+
} from "../chunk-IJCVFLEY.js";
|
|
22
19
|
import {
|
|
23
20
|
formatFriendlyError,
|
|
24
21
|
getErrorDisplayInfo,
|
|
@@ -33,12 +30,9 @@ import {
|
|
|
33
30
|
} from "../chunk-Y2JYA2AR.js";
|
|
34
31
|
import "../chunk-HCF3C3AQ.js";
|
|
35
32
|
import "../chunk-IYXMGIEP.js";
|
|
36
|
-
import
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
import "../chunk-K25ICPU4.js";
|
|
40
|
-
import "../chunk-2QH66EVQ.js";
|
|
41
|
-
import "../chunk-AIH3F7JV.js";
|
|
33
|
+
import {
|
|
34
|
+
AppError
|
|
35
|
+
} from "../chunk-KXXROUA5.js";
|
|
42
36
|
import {
|
|
43
37
|
ERROR_CODES,
|
|
44
38
|
HTTP_STATUS,
|
|
@@ -53,6 +47,12 @@ import {
|
|
|
53
47
|
getHttpStatus,
|
|
54
48
|
getLogLevel
|
|
55
49
|
} from "../chunk-SNVGJPPX.js";
|
|
50
|
+
import "../chunk-AIH3F7JV.js";
|
|
51
|
+
import "../chunk-GQVBWZLH.js";
|
|
52
|
+
import "../chunk-OHBAELPZ.js";
|
|
53
|
+
import "../chunk-SFPMFVSD.js";
|
|
54
|
+
import "../chunk-K25ICPU4.js";
|
|
55
|
+
import "../chunk-2QH66EVQ.js";
|
|
56
56
|
import "../chunk-ORMEWXMH.js";
|
|
57
57
|
|
|
58
58
|
// src/error/ErrorBoundary.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BatchProcessor,
|
|
3
3
|
createBatchProcessor
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-JOM3N4EJ.js";
|
|
5
|
+
import "../chunk-GQVBWZLH.js";
|
|
6
|
+
import "../chunk-OHBAELPZ.js";
|
|
7
|
+
import "../chunk-SFPMFVSD.js";
|
|
8
8
|
import "../chunk-K25ICPU4.js";
|
|
9
9
|
import "../chunk-2QH66EVQ.js";
|
|
10
10
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -6,6 +6,9 @@ export interface ResolvedGeolocationConfig {
|
|
|
6
6
|
ipgeolocationApiKey?: string;
|
|
7
7
|
maxmindLicenseKey?: string;
|
|
8
8
|
}
|
|
9
|
+
declare global {
|
|
10
|
+
var __withwiz_geolocation_config: ResolvedGeolocationConfig | undefined;
|
|
11
|
+
}
|
|
9
12
|
export declare function initializeGeolocation(config: GeolocationConfig): void;
|
|
10
13
|
export declare function getGeolocationConfig(): ResolvedGeolocationConfig;
|
|
11
14
|
export declare function resetGeolocation(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CUZPD3BF.js";
|
|
4
4
|
import {
|
|
5
5
|
IPApiProvider
|
|
6
6
|
} from "../chunk-DEEJBDJE.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "../chunk-VSGKVZB4.js";
|
|
10
10
|
import {
|
|
11
11
|
IPGeolocationProvider
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-HHCDMWEF.js";
|
|
13
13
|
import {
|
|
14
14
|
MaxMindProvider
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-G5OMETUS.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
BatchProcessor,
|
|
22
22
|
createBatchProcessor
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-JOM3N4EJ.js";
|
|
24
|
+
import "../chunk-3CBGGMIY.js";
|
|
25
|
+
import "../chunk-GQVBWZLH.js";
|
|
26
|
+
import "../chunk-OHBAELPZ.js";
|
|
27
|
+
import "../chunk-SFPMFVSD.js";
|
|
28
28
|
import "../chunk-K25ICPU4.js";
|
|
29
29
|
import "../chunk-2QH66EVQ.js";
|
|
30
30
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-CUZPD3BF.js";
|
|
4
4
|
import {
|
|
5
5
|
IPApiProvider
|
|
6
6
|
} from "../../chunk-DEEJBDJE.js";
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
} from "../../chunk-VSGKVZB4.js";
|
|
10
10
|
import {
|
|
11
11
|
IPGeolocationProvider
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-HHCDMWEF.js";
|
|
13
13
|
import {
|
|
14
14
|
MaxMindProvider
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-G5OMETUS.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
|
19
19
|
} from "../../chunk-AHDPGRXS.js";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-3CBGGMIY.js";
|
|
21
21
|
import "../../chunk-K25ICPU4.js";
|
|
22
22
|
import "../../chunk-2QH66EVQ.js";
|
|
23
23
|
import "../../chunk-ORMEWXMH.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IPGeolocationProvider
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-HHCDMWEF.js";
|
|
4
4
|
import "../../chunk-AHDPGRXS.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3CBGGMIY.js";
|
|
6
6
|
import "../../chunk-K25ICPU4.js";
|
|
7
7
|
import "../../chunk-2QH66EVQ.js";
|
|
8
8
|
import "../../chunk-ORMEWXMH.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MaxMindProvider
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-G5OMETUS.js";
|
|
4
4
|
import "../../chunk-AHDPGRXS.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3CBGGMIY.js";
|
|
6
6
|
import "../../chunk-K25ICPU4.js";
|
|
7
7
|
import "../../chunk-2QH66EVQ.js";
|
|
8
8
|
import "../../chunk-ORMEWXMH.js";
|
package/dist/initialize.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
initializeStorage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AYZJN32D.js";
|
|
4
4
|
import {
|
|
5
5
|
initializeCors
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GFWGLWTS.js";
|
|
7
7
|
import {
|
|
8
8
|
initializeGeolocation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3CBGGMIY.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
initializeAuth
|
|
12
|
+
} from "./chunk-OZE5KUS3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
initializeLogger
|
|
15
|
+
} from "./chunk-OHBAELPZ.js";
|
|
16
16
|
import {
|
|
17
17
|
initializeCommon
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-IQQKKUAV.js";
|
|
18
|
+
} from "./chunk-SFPMFVSD.js";
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
20
|
+
initializeCache
|
|
21
|
+
} from "./chunk-TFD3DSM2.js";
|
|
23
22
|
import "./chunk-K25ICPU4.js";
|
|
24
23
|
import "./chunk-2QH66EVQ.js";
|
|
24
|
+
import "./chunk-IQQKKUAV.js";
|
|
25
25
|
import "./chunk-ORMEWXMH.js";
|
|
26
26
|
|
|
27
27
|
// src/initialize.ts
|
package/dist/logger/config.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export interface ResolvedLoggerConfig {
|
|
|
12
12
|
fileEnabled: boolean;
|
|
13
13
|
consoleEnabled: boolean;
|
|
14
14
|
}
|
|
15
|
+
declare global {
|
|
16
|
+
var __withwiz_logger_config: ResolvedLoggerConfig | undefined;
|
|
17
|
+
}
|
|
15
18
|
export declare function initializeLogger(config: LoggerConfig): void;
|
|
16
19
|
export declare function getLoggerConfig(): ResolvedLoggerConfig;
|
|
17
20
|
export declare function resetLogger(): void;
|
package/dist/logger/config.js
CHANGED
package/dist/logger/logger.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
logError,
|
|
6
6
|
logInfo,
|
|
7
7
|
logger
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-GQVBWZLH.js";
|
|
9
|
+
import "../chunk-OHBAELPZ.js";
|
|
10
|
+
import "../chunk-SFPMFVSD.js";
|
|
11
11
|
import "../chunk-K25ICPU4.js";
|
|
12
12
|
import "../chunk-2QH66EVQ.js";
|
|
13
13
|
import "../chunk-ORMEWXMH.js";
|
package/dist/middleware/auth.js
CHANGED
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
initializeAuthMiddleware,
|
|
5
5
|
optionalAuthMiddleware,
|
|
6
6
|
setAccessTokenBlacklistChecker
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-BDY3AOX5.js";
|
|
8
8
|
import "../chunk-KXXROUA5.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-5MBKG2ZD.js";
|
|
12
|
-
import "../chunk-ITSXXSFN.js";
|
|
13
|
-
import "../chunk-K25ICPU4.js";
|
|
14
|
-
import "../chunk-2QH66EVQ.js";
|
|
9
|
+
import "../chunk-SNVGJPPX.js";
|
|
10
|
+
import "../chunk-OZE5KUS3.js";
|
|
15
11
|
import "../chunk-2ATBAIRL.js";
|
|
16
12
|
import "../chunk-AIH3F7JV.js";
|
|
17
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-GQVBWZLH.js";
|
|
14
|
+
import "../chunk-OHBAELPZ.js";
|
|
15
|
+
import "../chunk-SFPMFVSD.js";
|
|
16
|
+
import "../chunk-K25ICPU4.js";
|
|
17
|
+
import "../chunk-2QH66EVQ.js";
|
|
18
18
|
import "../chunk-ORMEWXMH.js";
|
|
19
19
|
export {
|
|
20
20
|
adminMiddleware,
|
|
@@ -6,6 +6,9 @@ export interface ResolvedCorsConfig {
|
|
|
6
6
|
allowedOrigins: string[];
|
|
7
7
|
baseUrl?: string;
|
|
8
8
|
}
|
|
9
|
+
declare global {
|
|
10
|
+
var __withwiz_cors_config: ResolvedCorsConfig | undefined;
|
|
11
|
+
}
|
|
9
12
|
export declare function initializeCors(config: CorsConfig): void;
|
|
10
13
|
export declare function getCorsConfig(): ResolvedCorsConfig;
|
|
11
14
|
export declare function resetCors(): void;
|
package/dist/middleware/cors.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
corsMiddleware,
|
|
3
3
|
createCorsMiddleware,
|
|
4
4
|
validateCorsConfiguration
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-KGHWGLED.js";
|
|
6
|
+
import "../chunk-GFWGLWTS.js";
|
|
7
|
+
import "../chunk-GQVBWZLH.js";
|
|
8
|
+
import "../chunk-OHBAELPZ.js";
|
|
9
|
+
import "../chunk-SFPMFVSD.js";
|
|
10
10
|
import "../chunk-K25ICPU4.js";
|
|
11
11
|
import "../chunk-2QH66EVQ.js";
|
|
12
12
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandlerMiddleware
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-KXXROUA5.js";
|
|
3
|
+
} from "../chunk-JR7GVCQX.js";
|
|
4
|
+
import "../chunk-2KDLKHTO.js";
|
|
6
5
|
import "../chunk-Y2JYA2AR.js";
|
|
7
6
|
import "../chunk-HCF3C3AQ.js";
|
|
8
7
|
import "../chunk-IYXMGIEP.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-KXXROUA5.js";
|
|
9
|
+
import "../chunk-SNVGJPPX.js";
|
|
10
|
+
import "../chunk-AIH3F7JV.js";
|
|
11
|
+
import "../chunk-GQVBWZLH.js";
|
|
12
|
+
import "../chunk-OHBAELPZ.js";
|
|
13
|
+
import "../chunk-SFPMFVSD.js";
|
|
12
14
|
import "../chunk-K25ICPU4.js";
|
|
13
15
|
import "../chunk-2QH66EVQ.js";
|
|
14
|
-
import "../chunk-AIH3F7JV.js";
|
|
15
|
-
import "../chunk-SNVGJPPX.js";
|
|
16
16
|
import "../chunk-ORMEWXMH.js";
|
|
17
17
|
export {
|
|
18
18
|
errorHandlerMiddleware
|