@withwiz/toolkit 0.13.0 → 0.14.0
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/{chunk-YOIZUVRD.js → chunk-2HFLXCXJ.js} +7 -7
- package/dist/{chunk-QVU4BHMC.js → chunk-5EUK6YWS.js} +1 -1
- package/dist/{chunk-LYO2HV5F.js → chunk-DTADWVLS.js} +3 -3
- package/dist/{chunk-K7OZWWIS.js → chunk-F2FTS6H4.js} +2 -2
- package/dist/{chunk-G4IGD3AZ.js → chunk-GPBNH2EZ.js} +11 -3
- package/dist/{chunk-YYTA6ERS.js → chunk-JL7CSV6G.js} +12 -1
- package/dist/{chunk-TDRB5BIM.js → chunk-LJI4HDD6.js} +7 -7
- package/dist/{chunk-NKZPMRVF.js → chunk-MTRPUJ4B.js} +1 -1
- package/dist/{chunk-QVPGBTCL.js → chunk-OEZPVNSA.js} +1 -1
- package/dist/{chunk-L4WQRYMR.js → chunk-UTZ2XXGE.js} +5 -9
- package/dist/{chunk-Z3OLZKTN.js → chunk-VVCT2A7O.js} +3 -3
- package/dist/chunk-WNOTRPZP.js +44 -0
- package/dist/{chunk-RWN47K7J.js → chunk-XIAZAHIL.js} +7 -3
- package/dist/{chunk-ROJJJXRL.js → chunk-ZFBY2FNS.js} +2 -2
- package/dist/core/api-key/api-key.service.d.ts +6 -1
- package/dist/core/api-key/api-key.service.js +1 -1
- package/dist/core/api-key/index.js +1 -1
- package/dist/core/auth/index.js +3 -3
- package/dist/core/auth/services/index.js +6 -6
- package/dist/core/cache/cache-config.js +3 -3
- package/dist/core/cache/cache-env.js +2 -2
- package/dist/core/cache/cache-factory.js +9 -9
- package/dist/core/cache/cache-invalidation.js +10 -10
- package/dist/core/cache/cache-redis.js +3 -3
- package/dist/core/cache/cache-wrapper.js +10 -10
- package/dist/core/cache/cache.js +11 -11
- package/dist/core/cache/hybrid-cache-manager.js +5 -5
- package/dist/core/cache/index.js +11 -11
- package/dist/core/cache/inmemory-cache-manager.js +1 -1
- package/dist/core/cache/noop-cache-manager.js +4 -4
- package/dist/core/cache/redis-cache-manager.js +4 -4
- package/dist/core/constants/index.js +6 -6
- package/dist/core/error/index.js +3 -3
- package/dist/core/system/environment.js +2 -2
- package/dist/core/system/health-check.js +1 -1
- package/dist/core/system/index.js +6 -6
- package/dist/core/utils/index.js +8 -8
- package/dist/core/utils/input-validation.js +23 -2
- package/dist/initialize.js +3 -3
- package/dist/next/auth-handlers/index.js +18 -18
- package/dist/next/auth-handlers/logout.handler.d.ts +1 -1
- package/dist/next/auth-handlers/logout.handler.js +5 -1
- package/dist/next/auth-handlers/refresh.handler.js +1 -1
- package/dist/next/auth-types/handler-types.d.ts +9 -0
- package/dist/next/error/index.js +1 -1
- package/dist/next/middleware/error-handler.js +2 -2
- package/dist/next/middleware/index.js +12 -12
- package/dist/next/middleware/wrappers.js +6 -6
- package/dist/next/oapi/api-key-auth.js +1 -1
- package/dist/next/oapi/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-6E2Q27EN.js +0 -17
- package/dist/{chunk-UGLEAXTY.js → chunk-BPDYEB37.js} +3 -3
- package/dist/{chunk-TGEKWTFZ.js → chunk-IE52LXR7.js} +0 -0
- package/dist/{chunk-A6NIKJX5.js → chunk-LFJ24NDO.js} +3 -3
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MiddlewareChain
|
|
3
|
+
} from "./chunk-WXOWI7BJ.js";
|
|
4
|
+
import {
|
|
5
|
+
rateLimitMiddleware
|
|
6
|
+
} from "./chunk-M4ZVQFOH.js";
|
|
1
7
|
import {
|
|
2
8
|
responseLoggerMiddleware
|
|
3
9
|
} from "./chunk-LCYDMYZS.js";
|
|
@@ -14,16 +20,10 @@ import {
|
|
|
14
20
|
} from "./chunk-37VGD4VX.js";
|
|
15
21
|
import {
|
|
16
22
|
errorHandlerMiddleware
|
|
17
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LFJ24NDO.js";
|
|
18
24
|
import {
|
|
19
25
|
initRequestMiddleware
|
|
20
26
|
} from "./chunk-VC2E6KYQ.js";
|
|
21
|
-
import {
|
|
22
|
-
MiddlewareChain
|
|
23
|
-
} from "./chunk-WXOWI7BJ.js";
|
|
24
|
-
import {
|
|
25
|
-
rateLimitMiddleware
|
|
26
|
-
} from "./chunk-M4ZVQFOH.js";
|
|
27
27
|
|
|
28
28
|
// src/next/middleware/wrappers.ts
|
|
29
29
|
function withPublicApi(handler) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCacheManager,
|
|
3
3
|
getEffectiveCacheBackend
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LJI4HDD6.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-QAIN3WNN.js";
|
|
8
8
|
import {
|
|
9
9
|
getCacheConfig,
|
|
10
10
|
getCacheTTL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OEZPVNSA.js";
|
|
12
12
|
import {
|
|
13
13
|
isCacheEnabled
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BPDYEB37.js";
|
|
15
15
|
|
|
16
16
|
// src/core/cache/cache-wrapper.ts
|
|
17
17
|
function getCacheBackendLabel() {
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
isRedisGloballyDisabled,
|
|
4
4
|
notifyRedisError,
|
|
5
5
|
resetRedisGlobalState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTRPUJ4B.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
9
|
} from "./chunk-QAIN3WNN.js";
|
|
10
10
|
import {
|
|
11
11
|
getENV,
|
|
12
12
|
isCacheEnabled
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BPDYEB37.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-N3ETBM74.js";
|
|
@@ -125,16 +125,24 @@ var ApiKeyService = class {
|
|
|
125
125
|
const { items, total } = await this.deps.repo.findMany(__spreadProps(__spreadValues({}, scoped), { page, pageSize }));
|
|
126
126
|
return { keys: items.map((r) => this.toInfo(r)), total, page, pageSize, hasMore: total > page * pageSize };
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
|
+
* rate limit 상한 — generate 와 동일하게 플랜 한도로 클램프한다.
|
|
130
|
+
* `plan` 미전달 시 현재 저장된 rateLimit(생성 시 이미 플랜 한도로 클램프됨)을
|
|
131
|
+
* 상한으로 사용해, 수정 경로로 한도를 상향하는 것을 막는다.
|
|
132
|
+
*/
|
|
133
|
+
async updateApiKey(id, userId, data, isAdmin = false, plan) {
|
|
129
134
|
const rec = await this.requireOwned(id, userId, isAdmin);
|
|
135
|
+
const cap = plan !== void 0 ? await this.deps.planConfig.getRateLimit(plan) : rec.rateLimit;
|
|
136
|
+
const rateLimit = data.customRateLimit !== void 0 ? Math.min(data.customRateLimit, cap) : void 0;
|
|
137
|
+
const endpointLimits = data.endpointLimits !== void 0 ? Object.fromEntries(Object.entries(data.endpointLimits).map(([k, v]) => [k, Math.min(v, cap)])) : void 0;
|
|
130
138
|
const updated = await this.deps.repo.update(id, {
|
|
131
139
|
name: data.name,
|
|
132
140
|
description: data.description,
|
|
133
141
|
isActive: data.isActive,
|
|
134
142
|
permissions: data.permissions,
|
|
135
143
|
ipWhitelist: data.ipWhitelist,
|
|
136
|
-
rateLimit
|
|
137
|
-
endpointLimits
|
|
144
|
+
rateLimit,
|
|
145
|
+
endpointLimits
|
|
138
146
|
});
|
|
139
147
|
await this.deps.cache.invalidate(rec.key);
|
|
140
148
|
return this.toInfo(updated);
|
|
@@ -71,7 +71,18 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
71
71
|
const fullKey = this.getFullKey(key);
|
|
72
72
|
const actualTTL = ttl != null ? ttl : this.config.defaultTTL;
|
|
73
73
|
const size = this.estimateSize(value);
|
|
74
|
-
|
|
74
|
+
const maxMemoryBytes = this.config.maxMemoryMB * 1024 * 1024;
|
|
75
|
+
if (this.config.maxSize <= 0 || size > maxMemoryBytes) {
|
|
76
|
+
logger.warn("[InMemoryCache] Item skipped: exceeds cache capacity", {
|
|
77
|
+
prefix: this.prefix,
|
|
78
|
+
key,
|
|
79
|
+
size,
|
|
80
|
+
maxMemoryBytes,
|
|
81
|
+
maxSize: this.config.maxSize
|
|
82
|
+
});
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
while (this.cache.size > 0 && this.needsEviction(size)) {
|
|
75
86
|
this.evict();
|
|
76
87
|
}
|
|
77
88
|
const existingEntry = this.cache.get(fullKey);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HybridCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VVCT2A7O.js";
|
|
4
4
|
import {
|
|
5
5
|
InMemoryCacheManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JL7CSV6G.js";
|
|
7
7
|
import {
|
|
8
8
|
NoopCacheManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZFBY2FNS.js";
|
|
10
10
|
import {
|
|
11
11
|
RedisCacheManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F2FTS6H4.js";
|
|
13
13
|
import {
|
|
14
14
|
isRedisAvailableNow,
|
|
15
15
|
isRedisGloballyDisabled
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MTRPUJ4B.js";
|
|
17
17
|
import {
|
|
18
18
|
logger
|
|
19
19
|
} from "./chunk-QAIN3WNN.js";
|
|
20
20
|
import {
|
|
21
21
|
getCacheConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OEZPVNSA.js";
|
|
23
23
|
import {
|
|
24
24
|
getENV,
|
|
25
25
|
isCacheEnabled
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BPDYEB37.js";
|
|
27
27
|
import {
|
|
28
28
|
isCacheConfigInitialized
|
|
29
29
|
} from "./chunk-RHYETIUR.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getAuthConfig
|
|
9
9
|
} from "./chunk-TQMQ5XXG.js";
|
|
10
|
-
import {
|
|
11
|
-
getResolvedCacheConfig
|
|
12
|
-
} from "./chunk-RHYETIUR.js";
|
|
13
10
|
import {
|
|
14
11
|
getCommonConfig
|
|
15
12
|
} from "./chunk-PX535BHW.js";
|
|
13
|
+
import {
|
|
14
|
+
getResolvedCacheConfig
|
|
15
|
+
} from "./chunk-RHYETIUR.js";
|
|
16
16
|
|
|
17
17
|
// src/core/system/environment.ts
|
|
18
18
|
import os from "os";
|
|
@@ -20,12 +20,8 @@ function checkEnvironmentVariables() {
|
|
|
20
20
|
const platform = getPlatform();
|
|
21
21
|
const results = [];
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
results.push({
|
|
25
|
-
key: "JWT_SECRET",
|
|
26
|
-
ok: true,
|
|
27
|
-
value: auth.jwtSecret.length > 20 ? auth.jwtSecret.substring(0, 20) + "..." : auth.jwtSecret
|
|
28
|
-
});
|
|
23
|
+
getAuthConfig();
|
|
24
|
+
results.push({ key: "JWT_SECRET", ok: true, value: "***" });
|
|
29
25
|
} catch (e) {
|
|
30
26
|
results.push({ key: "JWT_SECRET", ok: false });
|
|
31
27
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JL7CSV6G.js";
|
|
4
4
|
import {
|
|
5
5
|
isRedisGloballyDisabled,
|
|
6
6
|
notifyRedisError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MTRPUJ4B.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
10
|
} from "./chunk-QAIN3WNN.js";
|
|
11
11
|
import {
|
|
12
12
|
getCacheFallbackConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BPDYEB37.js";
|
|
14
14
|
import {
|
|
15
15
|
__spreadValues
|
|
16
16
|
} from "./chunk-N3ETBM74.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TokenRefreshService
|
|
3
|
+
} from "./chunk-XAGPZLRK.js";
|
|
4
|
+
import {
|
|
5
|
+
getTokenDeliveryStrategy
|
|
6
|
+
} from "./chunk-HNFYO5XV.js";
|
|
7
|
+
import {
|
|
8
|
+
clearTokenCookies
|
|
9
|
+
} from "./chunk-DTRXWS7G.js";
|
|
10
|
+
|
|
11
|
+
// src/next/auth-handlers/logout.handler.ts
|
|
12
|
+
import { NextResponse } from "next/server";
|
|
13
|
+
function createLogoutHandler(options) {
|
|
14
|
+
const { dependencies, jwt, hooks, tokenDelivery, refreshTokenStore } = options;
|
|
15
|
+
const refreshService = refreshTokenStore ? new TokenRefreshService({
|
|
16
|
+
userRepository: dependencies.userRepository,
|
|
17
|
+
jwtSecret: jwt.secret,
|
|
18
|
+
accessTokenExpiry: jwt.accessTokenExpiry,
|
|
19
|
+
refreshTokenExpiry: jwt.refreshTokenExpiry,
|
|
20
|
+
isTokenBlacklisted: hooks == null ? void 0 : hooks.isTokenBlacklisted,
|
|
21
|
+
refreshTokenStore,
|
|
22
|
+
logger: dependencies.logger
|
|
23
|
+
}) : void 0;
|
|
24
|
+
return async (request) => {
|
|
25
|
+
var _a;
|
|
26
|
+
if (refreshService) {
|
|
27
|
+
try {
|
|
28
|
+
const refreshToken = await getTokenDeliveryStrategy(tokenDelivery).extractRefreshToken(request);
|
|
29
|
+
if (refreshToken) await refreshService.revokeByToken(refreshToken);
|
|
30
|
+
} catch (error) {
|
|
31
|
+
(_a = dependencies.logger) == null ? void 0 : _a.debug("Logout: refresh token revoke skipped", {
|
|
32
|
+
reason: error instanceof Error ? error.message : String(error)
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const response = NextResponse.json({ success: true });
|
|
37
|
+
clearTokenCookies(response);
|
|
38
|
+
return response;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
createLogoutHandler
|
|
44
|
+
};
|
|
@@ -11,16 +11,18 @@ import {
|
|
|
11
11
|
// src/next/auth-handlers/refresh.handler.ts
|
|
12
12
|
import { NextResponse } from "next/server";
|
|
13
13
|
function createRefreshHandler(options) {
|
|
14
|
-
const { dependencies, jwt, hooks, cookie, tokenDelivery } = options;
|
|
14
|
+
const { dependencies, jwt, hooks, cookie, tokenDelivery, refreshTokenStore } = options;
|
|
15
15
|
const refreshService = new TokenRefreshService({
|
|
16
16
|
userRepository: dependencies.userRepository,
|
|
17
17
|
jwtSecret: jwt.secret,
|
|
18
18
|
accessTokenExpiry: jwt.accessTokenExpiry,
|
|
19
19
|
refreshTokenExpiry: jwt.refreshTokenExpiry,
|
|
20
20
|
isTokenBlacklisted: hooks == null ? void 0 : hooks.isTokenBlacklisted,
|
|
21
|
+
refreshTokenStore,
|
|
21
22
|
logger: dependencies.logger
|
|
22
23
|
});
|
|
23
24
|
return async (request) => {
|
|
25
|
+
var _a;
|
|
24
26
|
try {
|
|
25
27
|
const strategy = getTokenDeliveryStrategy(tokenDelivery);
|
|
26
28
|
const refreshToken = await strategy.extractRefreshToken(request);
|
|
@@ -32,15 +34,17 @@ function createRefreshHandler(options) {
|
|
|
32
34
|
if (hookResult instanceof Response) return hookResult;
|
|
33
35
|
}
|
|
34
36
|
const result = await refreshService.refresh(refreshToken);
|
|
37
|
+
const rotated = result.refreshToken !== void 0;
|
|
38
|
+
const nextRefreshToken = (_a = result.refreshToken) != null ? _a : refreshToken;
|
|
35
39
|
const response = NextResponse.json(
|
|
36
40
|
strategy.buildTokenResponse(
|
|
37
41
|
{ success: true, user: result.user },
|
|
38
|
-
{ accessToken: result.accessToken }
|
|
42
|
+
rotated ? { accessToken: result.accessToken, refreshToken: nextRefreshToken } : { accessToken: result.accessToken }
|
|
39
43
|
)
|
|
40
44
|
);
|
|
41
45
|
strategy.attachCookies(
|
|
42
46
|
response,
|
|
43
|
-
{ accessToken: result.accessToken, refreshToken },
|
|
47
|
+
{ accessToken: result.accessToken, refreshToken: nextRefreshToken },
|
|
44
48
|
{ secure: cookie == null ? void 0 : cookie.secure }
|
|
45
49
|
);
|
|
46
50
|
return response;
|
|
@@ -18,7 +18,12 @@ export declare class ApiKeyService {
|
|
|
18
18
|
validateApiKey(rawKey: string): Promise<ApiKeyValidationResult>;
|
|
19
19
|
getApiKey(id: string, userId: string, isAdmin?: boolean): Promise<ApiKeyInfo>;
|
|
20
20
|
getApiKeys(filters: ApiKeyFilters, requesterId: string, isAdmin?: boolean): Promise<ApiKeyListResponse>;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* rate limit 상한 — generate 와 동일하게 플랜 한도로 클램프한다.
|
|
23
|
+
* `plan` 미전달 시 현재 저장된 rateLimit(생성 시 이미 플랜 한도로 클램프됨)을
|
|
24
|
+
* 상한으로 사용해, 수정 경로로 한도를 상향하는 것을 막는다.
|
|
25
|
+
*/
|
|
26
|
+
updateApiKey(id: string, userId: string, data: UpdateApiKeyData, isAdmin?: boolean, plan?: string): Promise<ApiKeyInfo>;
|
|
22
27
|
deleteApiKey(id: string, userId: string, isAdmin?: boolean): Promise<void>;
|
|
23
28
|
trackUsage(apiKeyId: string, ip?: string): Promise<void>;
|
|
24
29
|
regenerateApiKey(userId: string, apiKeyId: string, plan: string, options?: {
|
package/dist/core/auth/index.js
CHANGED
|
@@ -34,9 +34,6 @@ import {
|
|
|
34
34
|
isTokenExpiringSoon,
|
|
35
35
|
storeTokens
|
|
36
36
|
} from "../../chunk-5I3EQHR4.js";
|
|
37
|
-
import {
|
|
38
|
-
TokenGenerator
|
|
39
|
-
} from "../../chunk-ZZABL54F.js";
|
|
40
37
|
import {
|
|
41
38
|
OAuthManager
|
|
42
39
|
} from "../../chunk-V3GEYUBG.js";
|
|
@@ -53,6 +50,9 @@ import {
|
|
|
53
50
|
import "../../chunk-33RIHX7O.js";
|
|
54
51
|
import "../../chunk-GSSHHVHF.js";
|
|
55
52
|
import "../../chunk-JLRMET4V.js";
|
|
53
|
+
import {
|
|
54
|
+
TokenGenerator
|
|
55
|
+
} from "../../chunk-ZZABL54F.js";
|
|
56
56
|
import {
|
|
57
57
|
OAUTH_PROVIDERS,
|
|
58
58
|
PasswordStrength,
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoginService
|
|
3
3
|
} from "../../../chunk-TNDEYJEL.js";
|
|
4
|
+
import {
|
|
5
|
+
OAuthCallbackService
|
|
6
|
+
} from "../../../chunk-MTZXWVW3.js";
|
|
7
|
+
import {
|
|
8
|
+
TokenRefreshService
|
|
9
|
+
} from "../../../chunk-XAGPZLRK.js";
|
|
4
10
|
import {
|
|
5
11
|
RegisterService
|
|
6
12
|
} from "../../../chunk-Y4ME3Q5K.js";
|
|
@@ -10,12 +16,6 @@ import {
|
|
|
10
16
|
import {
|
|
11
17
|
PasswordResetService
|
|
12
18
|
} from "../../../chunk-75UDFONR.js";
|
|
13
|
-
import {
|
|
14
|
-
OAuthCallbackService
|
|
15
|
-
} from "../../../chunk-MTZXWVW3.js";
|
|
16
|
-
import {
|
|
17
|
-
TokenRefreshService
|
|
18
|
-
} from "../../../chunk-XAGPZLRK.js";
|
|
19
19
|
import "../../../chunk-ZZABL54F.js";
|
|
20
20
|
import "../../../chunk-GH3U4WRE.js";
|
|
21
21
|
import "../../../chunk-LWHLB2Y6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCacheConfig,
|
|
3
3
|
getCacheTTL
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-RHYETIUR.js";
|
|
4
|
+
} from "../../chunk-OEZPVNSA.js";
|
|
5
|
+
import "../../chunk-BPDYEB37.js";
|
|
7
6
|
import "../../chunk-PX535BHW.js";
|
|
7
|
+
import "../../chunk-RHYETIUR.js";
|
|
8
8
|
import "../../chunk-ERFD6YAW.js";
|
|
9
9
|
import "../../chunk-6J2EJVND.js";
|
|
10
10
|
import "../../chunk-F3R3UYBF.js";
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
getEnv,
|
|
7
7
|
isCacheEnabled,
|
|
8
8
|
validateRedisEnvironment
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-RHYETIUR.js";
|
|
9
|
+
} from "../../chunk-BPDYEB37.js";
|
|
11
10
|
import "../../chunk-PX535BHW.js";
|
|
11
|
+
import "../../chunk-RHYETIUR.js";
|
|
12
12
|
import "../../chunk-ERFD6YAW.js";
|
|
13
13
|
import "../../chunk-6J2EJVND.js";
|
|
14
14
|
import "../../chunk-F3R3UYBF.js";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
geoCache,
|
|
4
4
|
getCacheManager,
|
|
5
5
|
getEffectiveCacheBackend
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-LJI4HDD6.js";
|
|
7
|
+
import "../../chunk-VVCT2A7O.js";
|
|
8
|
+
import "../../chunk-JL7CSV6G.js";
|
|
9
|
+
import "../../chunk-ZFBY2FNS.js";
|
|
10
|
+
import "../../chunk-F2FTS6H4.js";
|
|
11
11
|
import {
|
|
12
12
|
getRedisGlobalStatus,
|
|
13
13
|
isRedisGloballyDisabled
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-MTRPUJ4B.js";
|
|
15
15
|
import "../../chunk-QAIN3WNN.js";
|
|
16
16
|
import "../../chunk-O4L6RI5S.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-OEZPVNSA.js";
|
|
18
|
+
import "../../chunk-BPDYEB37.js";
|
|
19
19
|
import "../../chunk-IKZB26SK.js";
|
|
20
|
-
import "../../chunk-RHYETIUR.js";
|
|
21
20
|
import "../../chunk-PX535BHW.js";
|
|
21
|
+
import "../../chunk-RHYETIUR.js";
|
|
22
22
|
import "../../chunk-ERFD6YAW.js";
|
|
23
23
|
import "../../chunk-6J2EJVND.js";
|
|
24
24
|
import "../../chunk-F3R3UYBF.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
deletePatternFromCache,
|
|
4
4
|
deletePatternFromMultipleCaches,
|
|
5
5
|
invalidateCache
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-5EUK6YWS.js";
|
|
7
|
+
import "../../chunk-LJI4HDD6.js";
|
|
8
|
+
import "../../chunk-VVCT2A7O.js";
|
|
9
|
+
import "../../chunk-JL7CSV6G.js";
|
|
10
|
+
import "../../chunk-ZFBY2FNS.js";
|
|
11
|
+
import "../../chunk-F2FTS6H4.js";
|
|
12
|
+
import "../../chunk-MTRPUJ4B.js";
|
|
13
13
|
import "../../chunk-QAIN3WNN.js";
|
|
14
14
|
import "../../chunk-O4L6RI5S.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-OEZPVNSA.js";
|
|
16
|
+
import "../../chunk-BPDYEB37.js";
|
|
17
17
|
import "../../chunk-IKZB26SK.js";
|
|
18
|
-
import "../../chunk-RHYETIUR.js";
|
|
19
18
|
import "../../chunk-PX535BHW.js";
|
|
19
|
+
import "../../chunk-RHYETIUR.js";
|
|
20
20
|
import "../../chunk-ERFD6YAW.js";
|
|
21
21
|
import "../../chunk-6J2EJVND.js";
|
|
22
22
|
import "../../chunk-F3R3UYBF.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
logRedisInitialization,
|
|
8
8
|
notifyRedisError,
|
|
9
9
|
resetRedisGlobalState
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-MTRPUJ4B.js";
|
|
11
11
|
import "../../chunk-QAIN3WNN.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-BPDYEB37.js";
|
|
13
13
|
import "../../chunk-IKZB26SK.js";
|
|
14
|
-
import "../../chunk-RHYETIUR.js";
|
|
15
14
|
import "../../chunk-PX535BHW.js";
|
|
15
|
+
import "../../chunk-RHYETIUR.js";
|
|
16
16
|
import "../../chunk-ERFD6YAW.js";
|
|
17
17
|
import "../../chunk-6J2EJVND.js";
|
|
18
18
|
import "../../chunk-F3R3UYBF.js";
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
cacheMetrics,
|
|
3
3
|
getCacheBackendLabel,
|
|
4
4
|
withCache
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-DTADWVLS.js";
|
|
6
|
+
import "../../chunk-LJI4HDD6.js";
|
|
7
|
+
import "../../chunk-VVCT2A7O.js";
|
|
8
|
+
import "../../chunk-JL7CSV6G.js";
|
|
9
|
+
import "../../chunk-ZFBY2FNS.js";
|
|
10
|
+
import "../../chunk-F2FTS6H4.js";
|
|
11
|
+
import "../../chunk-MTRPUJ4B.js";
|
|
12
12
|
import "../../chunk-QAIN3WNN.js";
|
|
13
13
|
import "../../chunk-O4L6RI5S.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-OEZPVNSA.js";
|
|
15
|
+
import "../../chunk-BPDYEB37.js";
|
|
16
16
|
import "../../chunk-IKZB26SK.js";
|
|
17
|
-
import "../../chunk-RHYETIUR.js";
|
|
18
17
|
import "../../chunk-PX535BHW.js";
|
|
18
|
+
import "../../chunk-RHYETIUR.js";
|
|
19
19
|
import "../../chunk-ERFD6YAW.js";
|
|
20
20
|
import "../../chunk-6J2EJVND.js";
|
|
21
21
|
import "../../chunk-F3R3UYBF.js";
|
package/dist/core/cache/cache.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../../chunk-HH4ZKZHD.js";
|
|
2
2
|
import {
|
|
3
3
|
invalidateCache
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-5EUK6YWS.js";
|
|
5
5
|
import {
|
|
6
6
|
cacheMetrics,
|
|
7
7
|
withCache
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-DTADWVLS.js";
|
|
9
9
|
import {
|
|
10
10
|
cache,
|
|
11
11
|
geoCache,
|
|
12
12
|
getCacheManager,
|
|
13
13
|
getEffectiveCacheBackend
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-LJI4HDD6.js";
|
|
15
15
|
import {
|
|
16
16
|
HybridCacheManager
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-VVCT2A7O.js";
|
|
18
18
|
import {
|
|
19
19
|
InMemoryCacheManager
|
|
20
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-JL7CSV6G.js";
|
|
21
21
|
import {
|
|
22
22
|
NoopCacheManager
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-ZFBY2FNS.js";
|
|
24
24
|
import {
|
|
25
25
|
RedisCacheManager
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-F2FTS6H4.js";
|
|
27
27
|
import {
|
|
28
28
|
checkRedisConnection,
|
|
29
29
|
getRedisClient,
|
|
@@ -33,27 +33,27 @@ import {
|
|
|
33
33
|
logRedisInitialization,
|
|
34
34
|
notifyRedisError,
|
|
35
35
|
resetRedisGlobalState
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-MTRPUJ4B.js";
|
|
37
37
|
import "../../chunk-QAIN3WNN.js";
|
|
38
38
|
import "../../chunk-O4L6RI5S.js";
|
|
39
39
|
import {
|
|
40
40
|
getCacheConfig,
|
|
41
41
|
getCacheTTL
|
|
42
|
-
} from "../../chunk-
|
|
42
|
+
} from "../../chunk-OEZPVNSA.js";
|
|
43
43
|
import {
|
|
44
44
|
getConfig,
|
|
45
45
|
getENV,
|
|
46
46
|
getEnv,
|
|
47
47
|
isCacheEnabled,
|
|
48
48
|
validateRedisEnvironment
|
|
49
|
-
} from "../../chunk-
|
|
49
|
+
} from "../../chunk-BPDYEB37.js";
|
|
50
50
|
import "../../chunk-IKZB26SK.js";
|
|
51
|
+
import "../../chunk-PX535BHW.js";
|
|
51
52
|
import {
|
|
52
53
|
getResolvedCacheConfig,
|
|
53
54
|
initializeCache,
|
|
54
55
|
resetCache
|
|
55
56
|
} from "../../chunk-RHYETIUR.js";
|
|
56
|
-
import "../../chunk-PX535BHW.js";
|
|
57
57
|
import {
|
|
58
58
|
CACHE_DURATION_DEFAULTS,
|
|
59
59
|
CACHE_ENV_VARS,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HybridCacheManager
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-VVCT2A7O.js";
|
|
4
|
+
import "../../chunk-JL7CSV6G.js";
|
|
5
|
+
import "../../chunk-MTRPUJ4B.js";
|
|
6
6
|
import "../../chunk-QAIN3WNN.js";
|
|
7
7
|
import "../../chunk-O4L6RI5S.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-BPDYEB37.js";
|
|
9
9
|
import "../../chunk-IKZB26SK.js";
|
|
10
|
-
import "../../chunk-RHYETIUR.js";
|
|
11
10
|
import "../../chunk-PX535BHW.js";
|
|
11
|
+
import "../../chunk-RHYETIUR.js";
|
|
12
12
|
import "../../chunk-ERFD6YAW.js";
|
|
13
13
|
import "../../chunk-6J2EJVND.js";
|
|
14
14
|
import "../../chunk-F3R3UYBF.js";
|