@withwiz/toolkit 0.9.0 → 0.9.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/{chunk-XXPB4C37.js → chunk-2GK4LDPV.js} +6 -2
- package/dist/{chunk-NTZBMWB6.js → chunk-3P4TZM3O.js} +1 -1
- package/dist/{chunk-VWAB4PM7.js → chunk-5S7M2AJL.js} +1 -1
- package/dist/{chunk-SCAFDDJP.js → chunk-BICSVLN7.js} +2 -2
- package/dist/{chunk-BRBOGLFT.js → chunk-KHXS4DGA.js} +3 -3
- package/dist/{chunk-V3WZFUY3.js → chunk-QMBNFCCK.js} +1 -1
- package/dist/{chunk-VH57Y5Z4.js → chunk-XDB3K74B.js} +1 -1
- package/dist/{chunk-JHUWZ6YW.js → chunk-YYTA6ERS.js} +6 -36
- package/dist/core/auth/adapters/sql/email-token-repository.js +2 -2
- package/dist/core/auth/adapters/sql/index.js +8 -8
- package/dist/core/auth/adapters/sql/oauth-account-repository.js +2 -2
- package/dist/core/auth/adapters/sql/user-repository.js +2 -2
- package/dist/core/cache/cache-factory.js +3 -3
- package/dist/core/cache/cache-invalidation.js +4 -4
- package/dist/core/cache/cache-wrapper.js +4 -4
- package/dist/core/cache/cache.js +5 -5
- package/dist/core/cache/hybrid-cache-manager.js +2 -2
- package/dist/core/cache/index.js +5 -5
- package/dist/core/cache/inmemory-cache-manager.d.ts +0 -9
- package/dist/core/cache/inmemory-cache-manager.js +1 -1
- package/dist/core/constants/index.js +6 -6
- package/dist/core/error/friendly-messages-v2.js +3 -3
- package/dist/core/error/index.js +6 -6
- package/dist/core/error/messages/index.js +2 -2
- package/dist/core/geolocation/index.js +4 -4
- package/dist/core/geolocation/providers/index.js +4 -4
- package/dist/core/system/health-check.js +1 -1
- package/dist/core/system/index.js +1 -1
- package/dist/core/utils/index.js +8 -8
- package/dist/initialize.js +4 -4
- package/dist/next/auth-handlers/index.js +3 -3
- package/dist/next/error/index.js +4 -4
- package/dist/next/middleware/error-handler.js +4 -4
- package/dist/next/middleware/index.js +5 -5
- package/dist/next/middleware/wrappers.js +5 -5
- package/dist/next/utils/index.js +14 -14
- package/package.json +1 -1
- package/dist/{chunk-BTYH4MHU.js → chunk-43XXILCX.js} +3 -3
- package/dist/{chunk-VQJY52YF.js → chunk-5VDT3ZB4.js} +3 -3
- package/dist/{chunk-KKZCNF6U.js → chunk-7WG7XPXC.js} +3 -3
- package/dist/{chunk-6A5JHOBB.js → chunk-GSRAIDD7.js} +3 -3
- package/dist/{chunk-4EXZ2SDV.js → chunk-JOYW3OZB.js} +0 -0
- package/dist/{chunk-E2HYIONP.js → chunk-Q5RPNLET.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryCacheManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YYTA6ERS.js";
|
|
4
4
|
import {
|
|
5
5
|
isRedisGloballyDisabled,
|
|
6
6
|
notifyRedisError
|
|
@@ -122,7 +122,11 @@ var HybridCacheManager = class _HybridCacheManager {
|
|
|
122
122
|
if (effectiveBackend !== "redis") {
|
|
123
123
|
promises.push(this.memoryCache.delete(key));
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
if (promises.length === 1) {
|
|
126
|
+
await promises[0];
|
|
127
|
+
} else if (promises.length > 1) {
|
|
128
|
+
await Promise.allSettled(promises);
|
|
129
|
+
}
|
|
126
130
|
}
|
|
127
131
|
/**
|
|
128
132
|
* 패턴 매칭으로 캐시 삭제
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-4TGPAUJV.js";
|
|
7
7
|
import {
|
|
8
8
|
HybridCacheManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2GK4LDPV.js";
|
|
10
10
|
import {
|
|
11
11
|
InMemoryCacheManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YYTA6ERS.js";
|
|
13
13
|
import {
|
|
14
14
|
isRedisAvailableNow,
|
|
15
15
|
isRedisGloballyDisabled
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AUTH_ERROR_CODE_MAP
|
|
3
3
|
} from "./chunk-R7EFDSPZ.js";
|
|
4
|
-
import {
|
|
5
|
-
getErrorMessage
|
|
6
|
-
} from "./chunk-KKZCNF6U.js";
|
|
7
4
|
import {
|
|
8
5
|
AppError
|
|
9
6
|
} from "./chunk-ATAQRXTH.js";
|
|
7
|
+
import {
|
|
8
|
+
getErrorMessage
|
|
9
|
+
} from "./chunk-7WG7XPXC.js";
|
|
10
10
|
import {
|
|
11
11
|
ERROR_CODES,
|
|
12
12
|
classifyError
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
// src/core/cache/inmemory-cache-manager.ts
|
|
13
13
|
var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
14
14
|
constructor(prefix, config) {
|
|
15
|
-
this.accessOrder = [];
|
|
16
15
|
this.currentMemoryBytes = 0;
|
|
17
16
|
this.cleanupTimer = null;
|
|
18
17
|
this.prefix = prefix;
|
|
@@ -47,7 +46,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
47
46
|
if (!entry) {
|
|
48
47
|
this.metrics.misses++;
|
|
49
48
|
this.updateHitRate();
|
|
50
|
-
logger.debug(`[Cache:M] miss: ${fullKey}`);
|
|
51
49
|
return null;
|
|
52
50
|
}
|
|
53
51
|
if (this.isExpired(entry)) {
|
|
@@ -55,17 +53,15 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
55
53
|
this.metrics.misses++;
|
|
56
54
|
this.metrics.expirations++;
|
|
57
55
|
this.updateHitRate();
|
|
58
|
-
logger.debug(`[Cache:M] miss (expired): ${fullKey}`);
|
|
59
56
|
return null;
|
|
60
57
|
}
|
|
61
58
|
entry.accessedAt = Date.now();
|
|
62
|
-
this.
|
|
59
|
+
if (this.config.evictionPolicy === "lru") {
|
|
60
|
+
this.cache.delete(fullKey);
|
|
61
|
+
this.cache.set(fullKey, entry);
|
|
62
|
+
}
|
|
63
63
|
this.metrics.hits++;
|
|
64
64
|
this.updateHitRate();
|
|
65
|
-
logger.debug(`[Cache:M] hit: ${fullKey}`, {
|
|
66
|
-
key: fullKey,
|
|
67
|
-
prefix: this.prefix
|
|
68
|
-
});
|
|
69
65
|
return entry.value;
|
|
70
66
|
}
|
|
71
67
|
/**
|
|
@@ -81,7 +77,7 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
81
77
|
const existingEntry = this.cache.get(fullKey);
|
|
82
78
|
if (existingEntry) {
|
|
83
79
|
this.currentMemoryBytes -= existingEntry.size;
|
|
84
|
-
this.
|
|
80
|
+
this.cache.delete(fullKey);
|
|
85
81
|
}
|
|
86
82
|
const now = Date.now();
|
|
87
83
|
const entry = {
|
|
@@ -92,7 +88,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
92
88
|
createdAt: now
|
|
93
89
|
};
|
|
94
90
|
this.cache.set(fullKey, entry);
|
|
95
|
-
this.accessOrder.push(fullKey);
|
|
96
91
|
this.currentMemoryBytes += size;
|
|
97
92
|
}
|
|
98
93
|
/**
|
|
@@ -101,10 +96,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
101
96
|
async delete(key) {
|
|
102
97
|
const fullKey = this.getFullKey(key);
|
|
103
98
|
this.deleteEntry(fullKey);
|
|
104
|
-
logger.debug("[InMemoryCache] Cache deleted", {
|
|
105
|
-
key: fullKey,
|
|
106
|
-
prefix: this.prefix
|
|
107
|
-
});
|
|
108
99
|
}
|
|
109
100
|
/**
|
|
110
101
|
* 패턴 매칭으로 캐시 삭제
|
|
@@ -172,7 +163,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
172
163
|
*/
|
|
173
164
|
clear() {
|
|
174
165
|
this.cache.clear();
|
|
175
|
-
this.accessOrder = [];
|
|
176
166
|
this.currentMemoryBytes = 0;
|
|
177
167
|
logger.info("[InMemoryCache] Cache cleared", { prefix: this.prefix });
|
|
178
168
|
}
|
|
@@ -258,7 +248,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
258
248
|
if (entry) {
|
|
259
249
|
this.currentMemoryBytes -= entry.size;
|
|
260
250
|
this.cache.delete(fullKey);
|
|
261
|
-
this.removeFromAccessOrder(fullKey);
|
|
262
251
|
}
|
|
263
252
|
}
|
|
264
253
|
/**
|
|
@@ -314,7 +303,7 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
314
303
|
* LRU 교체: 가장 오래 접근되지 않은 항목 제거
|
|
315
304
|
*/
|
|
316
305
|
evictLRU() {
|
|
317
|
-
const lruKey = this.
|
|
306
|
+
const lruKey = this.cache.keys().next().value;
|
|
318
307
|
if (lruKey) {
|
|
319
308
|
this.deleteEntry(lruKey);
|
|
320
309
|
logger.debug("[InMemoryCache] LRU eviction", {
|
|
@@ -363,25 +352,6 @@ var InMemoryCacheManager = class _InMemoryCacheManager {
|
|
|
363
352
|
});
|
|
364
353
|
}
|
|
365
354
|
}
|
|
366
|
-
/**
|
|
367
|
-
* 접근 순서 업데이트 (LRU용)
|
|
368
|
-
*/
|
|
369
|
-
updateAccessOrder(key) {
|
|
370
|
-
const index = this.accessOrder.indexOf(key);
|
|
371
|
-
if (index !== -1) {
|
|
372
|
-
this.accessOrder.splice(index, 1);
|
|
373
|
-
}
|
|
374
|
-
this.accessOrder.push(key);
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* 접근 순서에서 제거
|
|
378
|
-
*/
|
|
379
|
-
removeFromAccessOrder(key) {
|
|
380
|
-
const index = this.accessOrder.indexOf(key);
|
|
381
|
-
if (index !== -1) {
|
|
382
|
-
this.accessOrder.splice(index, 1);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
355
|
/**
|
|
386
356
|
* 히트율 업데이트
|
|
387
357
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlEmailTokenRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-2JUFL4KX.js";
|
|
3
|
+
} from "../../../../chunk-43XXILCX.js";
|
|
5
4
|
import "../../../../chunk-E4TKORMQ.js";
|
|
5
|
+
import "../../../../chunk-2JUFL4KX.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlEmailTokenRepository
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SqlEmailTokenRepository
|
|
3
|
-
} from "../../../../chunk-BTYH4MHU.js";
|
|
4
1
|
import {
|
|
5
2
|
SqlOAuthAccountRepository
|
|
6
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-5VDT3ZB4.js";
|
|
7
4
|
import {
|
|
8
5
|
SqlUserRepository
|
|
9
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-GSRAIDD7.js";
|
|
7
|
+
import {
|
|
8
|
+
SqlEmailTokenRepository
|
|
9
|
+
} from "../../../../chunk-43XXILCX.js";
|
|
10
|
+
import {
|
|
11
|
+
resolveConfig
|
|
12
|
+
} from "../../../../chunk-E4TKORMQ.js";
|
|
10
13
|
import {
|
|
11
14
|
ParamBuilder,
|
|
12
15
|
columnList,
|
|
13
16
|
getDialect
|
|
14
17
|
} from "../../../../chunk-2JUFL4KX.js";
|
|
15
|
-
import {
|
|
16
|
-
resolveConfig
|
|
17
|
-
} from "../../../../chunk-E4TKORMQ.js";
|
|
18
18
|
import "../../../../chunk-N3ETBM74.js";
|
|
19
19
|
export {
|
|
20
20
|
ParamBuilder,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlOAuthAccountRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-2JUFL4KX.js";
|
|
3
|
+
} from "../../../../chunk-5VDT3ZB4.js";
|
|
5
4
|
import "../../../../chunk-E4TKORMQ.js";
|
|
5
|
+
import "../../../../chunk-2JUFL4KX.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlOAuthAccountRepository
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlUserRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-2JUFL4KX.js";
|
|
3
|
+
} from "../../../../chunk-GSRAIDD7.js";
|
|
5
4
|
import "../../../../chunk-E4TKORMQ.js";
|
|
5
|
+
import "../../../../chunk-2JUFL4KX.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlUserRepository
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
geoCache,
|
|
4
4
|
getCacheManager,
|
|
5
5
|
getEffectiveCacheBackend
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-BICSVLN7.js";
|
|
7
7
|
import "../../chunk-XF3WUF3F.js";
|
|
8
8
|
import "../../chunk-4TGPAUJV.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-2GK4LDPV.js";
|
|
10
|
+
import "../../chunk-YYTA6ERS.js";
|
|
11
11
|
import {
|
|
12
12
|
getRedisGlobalStatus,
|
|
13
13
|
isRedisGloballyDisabled
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
deletePatternFromCache,
|
|
4
4
|
deletePatternFromMultipleCaches,
|
|
5
5
|
invalidateCache
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-XDB3K74B.js";
|
|
7
|
+
import "../../chunk-BICSVLN7.js";
|
|
8
8
|
import "../../chunk-XF3WUF3F.js";
|
|
9
9
|
import "../../chunk-4TGPAUJV.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-2GK4LDPV.js";
|
|
11
|
+
import "../../chunk-YYTA6ERS.js";
|
|
12
12
|
import "../../chunk-ZEHNCHIV.js";
|
|
13
13
|
import "../../chunk-QAIN3WNN.js";
|
|
14
14
|
import "../../chunk-O4L6RI5S.js";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
cacheMetrics,
|
|
3
3
|
getCacheBackendLabel,
|
|
4
4
|
withCache
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-3P4TZM3O.js";
|
|
6
|
+
import "../../chunk-BICSVLN7.js";
|
|
7
7
|
import "../../chunk-XF3WUF3F.js";
|
|
8
8
|
import "../../chunk-4TGPAUJV.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-2GK4LDPV.js";
|
|
10
|
+
import "../../chunk-YYTA6ERS.js";
|
|
11
11
|
import "../../chunk-ZEHNCHIV.js";
|
|
12
12
|
import "../../chunk-QAIN3WNN.js";
|
|
13
13
|
import "../../chunk-O4L6RI5S.js";
|
package/dist/core/cache/cache.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../chunk-HH4ZKZHD.js";
|
|
2
2
|
import {
|
|
3
3
|
invalidateCache
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-XDB3K74B.js";
|
|
5
5
|
import {
|
|
6
6
|
cacheMetrics,
|
|
7
7
|
withCache
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-3P4TZM3O.js";
|
|
9
9
|
import {
|
|
10
10
|
cache,
|
|
11
11
|
geoCache,
|
|
12
12
|
getCacheManager,
|
|
13
13
|
getEffectiveCacheBackend
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-BICSVLN7.js";
|
|
15
15
|
import {
|
|
16
16
|
NoopCacheManager
|
|
17
17
|
} from "../../chunk-XF3WUF3F.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
} from "../../chunk-4TGPAUJV.js";
|
|
21
21
|
import {
|
|
22
22
|
HybridCacheManager
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-2GK4LDPV.js";
|
|
24
24
|
import {
|
|
25
25
|
InMemoryCacheManager
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-YYTA6ERS.js";
|
|
27
27
|
import {
|
|
28
28
|
checkRedisConnection,
|
|
29
29
|
getRedisClient,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HybridCacheManager
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-2GK4LDPV.js";
|
|
4
|
+
import "../../chunk-YYTA6ERS.js";
|
|
5
5
|
import "../../chunk-ZEHNCHIV.js";
|
|
6
6
|
import "../../chunk-QAIN3WNN.js";
|
|
7
7
|
import "../../chunk-O4L6RI5S.js";
|
package/dist/core/cache/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../chunk-HH4ZKZHD.js";
|
|
2
2
|
import {
|
|
3
3
|
invalidateCache
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-XDB3K74B.js";
|
|
5
5
|
import {
|
|
6
6
|
cacheMetrics,
|
|
7
7
|
withCache
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-3P4TZM3O.js";
|
|
9
9
|
import {
|
|
10
10
|
cache,
|
|
11
11
|
geoCache,
|
|
12
12
|
getCacheManager,
|
|
13
13
|
getEffectiveCacheBackend
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-BICSVLN7.js";
|
|
15
15
|
import {
|
|
16
16
|
NoopCacheManager
|
|
17
17
|
} from "../../chunk-XF3WUF3F.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
} from "../../chunk-4TGPAUJV.js";
|
|
21
21
|
import {
|
|
22
22
|
HybridCacheManager
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-2GK4LDPV.js";
|
|
24
24
|
import {
|
|
25
25
|
InMemoryCacheManager
|
|
26
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-YYTA6ERS.js";
|
|
27
27
|
import {
|
|
28
28
|
checkRedisConnection,
|
|
29
29
|
getRedisClient,
|
|
@@ -13,7 +13,6 @@ import type { InMemoryCacheConfig, InMemoryCacheMetrics, InMemoryCacheStats, IUn
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class InMemoryCacheManager implements IUnifiedCacheManager {
|
|
15
15
|
private cache;
|
|
16
|
-
private accessOrder;
|
|
17
16
|
private config;
|
|
18
17
|
private currentMemoryBytes;
|
|
19
18
|
private cleanupTimer;
|
|
@@ -116,14 +115,6 @@ export declare class InMemoryCacheManager implements IUnifiedCacheManager {
|
|
|
116
115
|
* TTL 교체: 가장 빨리 만료될 항목 제거
|
|
117
116
|
*/
|
|
118
117
|
private evictTTL;
|
|
119
|
-
/**
|
|
120
|
-
* 접근 순서 업데이트 (LRU용)
|
|
121
|
-
*/
|
|
122
|
-
private updateAccessOrder;
|
|
123
|
-
/**
|
|
124
|
-
* 접근 순서에서 제거
|
|
125
|
-
*/
|
|
126
|
-
private removeFromAccessOrder;
|
|
127
118
|
/**
|
|
128
119
|
* 히트율 업데이트
|
|
129
120
|
*/
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GENERIC_CONFIRM_MESSAGES,
|
|
3
|
+
GENERIC_ERROR_MESSAGES,
|
|
4
|
+
GENERIC_INFO_MESSAGES,
|
|
5
|
+
GENERIC_SUCCESS_MESSAGES
|
|
6
|
+
} from "../../chunk-THUQVCTI.js";
|
|
1
7
|
import {
|
|
2
8
|
DATE_RANGE,
|
|
3
9
|
FILTER_OPTIONS,
|
|
@@ -14,12 +20,6 @@ import {
|
|
|
14
20
|
URL,
|
|
15
21
|
USER_INPUT
|
|
16
22
|
} from "../../chunk-GTCCVI45.js";
|
|
17
|
-
import {
|
|
18
|
-
GENERIC_CONFIRM_MESSAGES,
|
|
19
|
-
GENERIC_ERROR_MESSAGES,
|
|
20
|
-
GENERIC_INFO_MESSAGES,
|
|
21
|
-
GENERIC_SUCCESS_MESSAGES
|
|
22
|
-
} from "../../chunk-THUQVCTI.js";
|
|
23
23
|
import {
|
|
24
24
|
ERROR_CODES,
|
|
25
25
|
HTTP_STATUS,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
formatFriendlyError,
|
|
3
3
|
getErrorDisplayInfo,
|
|
4
4
|
getFriendlyMessage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-VUYS3SU7.js";
|
|
5
|
+
} from "../../chunk-5S7M2AJL.js";
|
|
6
|
+
import "../../chunk-7WG7XPXC.js";
|
|
8
7
|
import "../../chunk-AMZWDLJ4.js";
|
|
8
|
+
import "../../chunk-VUYS3SU7.js";
|
|
9
9
|
import "../../chunk-XQIAXMRY.js";
|
|
10
10
|
import "../../chunk-N3ETBM74.js";
|
|
11
11
|
export {
|
package/dist/core/error/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AppError
|
|
3
|
+
} from "../../chunk-ATAQRXTH.js";
|
|
1
4
|
import {
|
|
2
5
|
extractErrorInfo
|
|
3
6
|
} from "../../chunk-6HQ5JHL4.js";
|
|
@@ -5,19 +8,16 @@ import {
|
|
|
5
8
|
formatFriendlyError,
|
|
6
9
|
getErrorDisplayInfo,
|
|
7
10
|
getFriendlyMessage
|
|
8
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-5S7M2AJL.js";
|
|
9
12
|
import {
|
|
10
13
|
getAllMessages,
|
|
11
14
|
getErrorMessage,
|
|
12
15
|
hasMessage,
|
|
13
16
|
isLocaleSupported,
|
|
14
17
|
supportedLocales
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-VUYS3SU7.js";
|
|
18
|
+
} from "../../chunk-7WG7XPXC.js";
|
|
17
19
|
import "../../chunk-AMZWDLJ4.js";
|
|
18
|
-
import
|
|
19
|
-
AppError
|
|
20
|
-
} from "../../chunk-ATAQRXTH.js";
|
|
20
|
+
import "../../chunk-VUYS3SU7.js";
|
|
21
21
|
import {
|
|
22
22
|
ERROR_CODES,
|
|
23
23
|
HTTP_STATUS,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
hasMessage,
|
|
5
5
|
isLocaleSupported,
|
|
6
6
|
supportedLocales
|
|
7
|
-
} from "../../../chunk-
|
|
8
|
-
import "../../../chunk-VUYS3SU7.js";
|
|
7
|
+
} from "../../../chunk-7WG7XPXC.js";
|
|
9
8
|
import "../../../chunk-AMZWDLJ4.js";
|
|
9
|
+
import "../../../chunk-VUYS3SU7.js";
|
|
10
10
|
import "../../../chunk-N3ETBM74.js";
|
|
11
11
|
export {
|
|
12
12
|
getAllMessages,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-Q5RPNLET.js";
|
|
4
|
+
import {
|
|
5
|
+
IPGeolocationProvider
|
|
6
|
+
} from "../../chunk-GJYHMHTU.js";
|
|
4
7
|
import {
|
|
5
8
|
MaxMindProvider
|
|
6
9
|
} from "../../chunk-R463CTX4.js";
|
|
@@ -10,9 +13,6 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
IPApiCoProvider
|
|
12
15
|
} from "../../chunk-MRNRC45L.js";
|
|
13
|
-
import {
|
|
14
|
-
IPGeolocationProvider
|
|
15
|
-
} from "../../chunk-GJYHMHTU.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoIPProviderFactory
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-Q5RPNLET.js";
|
|
4
|
+
import {
|
|
5
|
+
IPGeolocationProvider
|
|
6
|
+
} from "../../../chunk-GJYHMHTU.js";
|
|
4
7
|
import {
|
|
5
8
|
MaxMindProvider
|
|
6
9
|
} from "../../../chunk-R463CTX4.js";
|
|
@@ -10,9 +13,6 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
IPApiCoProvider
|
|
12
15
|
} from "../../../chunk-MRNRC45L.js";
|
|
13
|
-
import {
|
|
14
|
-
IPGeolocationProvider
|
|
15
|
-
} from "../../../chunk-GJYHMHTU.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseGeoIPProvider,
|
|
18
18
|
truncateString
|
package/dist/core/utils/index.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
removeEventHandlers,
|
|
3
|
+
sanitizeArray,
|
|
4
|
+
sanitizeHtml,
|
|
5
|
+
sanitizeInput,
|
|
6
|
+
sanitizeObjectFields,
|
|
7
|
+
sanitizeUrl
|
|
8
|
+
} from "../../chunk-3RK3MKAR.js";
|
|
1
9
|
import {
|
|
2
10
|
isApiErrorResponse,
|
|
3
11
|
isApiSuccessResponse,
|
|
@@ -26,14 +34,6 @@ import {
|
|
|
26
34
|
isValidJSON,
|
|
27
35
|
isValidUrl
|
|
28
36
|
} from "../../chunk-4ETAGZIT.js";
|
|
29
|
-
import {
|
|
30
|
-
removeEventHandlers,
|
|
31
|
-
sanitizeArray,
|
|
32
|
-
sanitizeHtml,
|
|
33
|
-
sanitizeInput,
|
|
34
|
-
sanitizeObjectFields,
|
|
35
|
-
sanitizeUrl
|
|
36
|
-
} from "../../chunk-3RK3MKAR.js";
|
|
37
37
|
import "../../chunk-N3ETBM74.js";
|
|
38
38
|
export {
|
|
39
39
|
isApiErrorResponse,
|
package/dist/initialize.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
config,
|
|
3
|
+
resetConfig
|
|
4
|
+
} from "./chunk-2D3YM34R.js";
|
|
1
5
|
import {
|
|
2
6
|
initializeStorage
|
|
3
7
|
} from "./chunk-C5CBJC6V.js";
|
|
@@ -7,10 +11,6 @@ import {
|
|
|
7
11
|
import {
|
|
8
12
|
initializeCors
|
|
9
13
|
} from "./chunk-7ZO5UNTJ.js";
|
|
10
|
-
import {
|
|
11
|
-
config,
|
|
12
|
-
resetConfig
|
|
13
|
-
} from "./chunk-2D3YM34R.js";
|
|
14
14
|
import {
|
|
15
15
|
initializeAuth
|
|
16
16
|
} from "./chunk-N3TCQ5BF.js";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLogoutHandler
|
|
3
|
+
} from "../../chunk-LL3VWKY4.js";
|
|
1
4
|
import {
|
|
2
5
|
createMeHandler
|
|
3
6
|
} from "../../chunk-XTGS6JJB.js";
|
|
@@ -30,9 +33,6 @@ import "../../chunk-75UDFONR.js";
|
|
|
30
33
|
import {
|
|
31
34
|
createLoginHandler
|
|
32
35
|
} from "../../chunk-4XPXZNBX.js";
|
|
33
|
-
import {
|
|
34
|
-
createLogoutHandler
|
|
35
|
-
} from "../../chunk-LL3VWKY4.js";
|
|
36
36
|
import "../../chunk-P7WHMKN5.js";
|
|
37
37
|
import "../../chunk-CDALZTPN.js";
|
|
38
38
|
import "../../chunk-GF3DKZIW.js";
|
package/dist/next/error/index.js
CHANGED
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
processError,
|
|
9
9
|
withErrorHandler
|
|
10
10
|
} from "../../chunk-R7EFDSPZ.js";
|
|
11
|
+
import "../../chunk-ATAQRXTH.js";
|
|
11
12
|
import {
|
|
12
13
|
extractErrorInfo
|
|
13
14
|
} from "../../chunk-6HQ5JHL4.js";
|
|
14
15
|
import {
|
|
15
16
|
getErrorDisplayInfo
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-VUYS3SU7.js";
|
|
17
|
+
} from "../../chunk-5S7M2AJL.js";
|
|
18
|
+
import "../../chunk-7WG7XPXC.js";
|
|
19
19
|
import "../../chunk-AMZWDLJ4.js";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-VUYS3SU7.js";
|
|
21
21
|
import "../../chunk-XQIAXMRY.js";
|
|
22
22
|
import "../../chunk-5GWGARXI.js";
|
|
23
23
|
import "../../chunk-QAIN3WNN.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandlerMiddleware
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-KHXS4DGA.js";
|
|
4
4
|
import "../../chunk-R7EFDSPZ.js";
|
|
5
|
-
import "../../chunk-KKZCNF6U.js";
|
|
6
|
-
import "../../chunk-VUYS3SU7.js";
|
|
7
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
8
5
|
import "../../chunk-ATAQRXTH.js";
|
|
6
|
+
import "../../chunk-7WG7XPXC.js";
|
|
7
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
8
|
+
import "../../chunk-VUYS3SU7.js";
|
|
9
9
|
import "../../chunk-XQIAXMRY.js";
|
|
10
10
|
import "../../chunk-5GWGARXI.js";
|
|
11
11
|
import "../../chunk-QAIN3WNN.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
withCustomApi,
|
|
5
5
|
withOptionalAuthApi,
|
|
6
6
|
withPublicApi
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-QMBNFCCK.js";
|
|
8
8
|
import {
|
|
9
9
|
initRequestMiddleware
|
|
10
10
|
} from "../../chunk-VC2E6KYQ.js";
|
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
} from "../../chunk-UWOWKOOQ.js";
|
|
40
40
|
import {
|
|
41
41
|
errorHandlerMiddleware
|
|
42
|
-
} from "../../chunk-
|
|
42
|
+
} from "../../chunk-KHXS4DGA.js";
|
|
43
43
|
import "../../chunk-R7EFDSPZ.js";
|
|
44
|
-
import "../../chunk-KKZCNF6U.js";
|
|
45
|
-
import "../../chunk-VUYS3SU7.js";
|
|
46
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
47
44
|
import "../../chunk-ATAQRXTH.js";
|
|
45
|
+
import "../../chunk-7WG7XPXC.js";
|
|
46
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
47
|
+
import "../../chunk-VUYS3SU7.js";
|
|
48
48
|
import "../../chunk-XQIAXMRY.js";
|
|
49
49
|
import "../../chunk-7ZO5UNTJ.js";
|
|
50
50
|
import "../../chunk-LWHLB2Y6.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
withCustomApi,
|
|
5
5
|
withOptionalAuthApi,
|
|
6
6
|
withPublicApi
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-QMBNFCCK.js";
|
|
8
8
|
import "../../chunk-VC2E6KYQ.js";
|
|
9
9
|
import "../../chunk-WXOWI7BJ.js";
|
|
10
10
|
import "../../chunk-TRGFXIEF.js";
|
|
@@ -13,12 +13,12 @@ import "../../chunk-Y4WPEIKW.js";
|
|
|
13
13
|
import "../../chunk-K2PNAQI4.js";
|
|
14
14
|
import "../../chunk-XKIBJJA3.js";
|
|
15
15
|
import "../../chunk-UWOWKOOQ.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-KHXS4DGA.js";
|
|
17
17
|
import "../../chunk-R7EFDSPZ.js";
|
|
18
|
-
import "../../chunk-KKZCNF6U.js";
|
|
19
|
-
import "../../chunk-VUYS3SU7.js";
|
|
20
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
21
18
|
import "../../chunk-ATAQRXTH.js";
|
|
19
|
+
import "../../chunk-7WG7XPXC.js";
|
|
20
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
21
|
+
import "../../chunk-VUYS3SU7.js";
|
|
22
22
|
import "../../chunk-XQIAXMRY.js";
|
|
23
23
|
import "../../chunk-7ZO5UNTJ.js";
|
|
24
24
|
import "../../chunk-LWHLB2Y6.js";
|
package/dist/next/utils/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ErrorProcessor,
|
|
3
|
+
errorToResponse,
|
|
4
|
+
handlePrismaError,
|
|
5
|
+
processError,
|
|
6
|
+
throwBadRequestError,
|
|
7
|
+
throwBusinessRuleError,
|
|
8
|
+
throwConflictError,
|
|
9
|
+
throwForbiddenError,
|
|
10
|
+
throwNotFoundError,
|
|
11
|
+
throwUnauthorizedError,
|
|
12
|
+
throwValidationError,
|
|
13
|
+
withErrorHandling
|
|
14
|
+
} from "../../chunk-BRFW2LL2.js";
|
|
1
15
|
import {
|
|
2
16
|
createPaginatedResponse,
|
|
3
17
|
getReferer,
|
|
@@ -31,20 +45,6 @@ import {
|
|
|
31
45
|
escapeCsvField,
|
|
32
46
|
rowToCsv
|
|
33
47
|
} from "../../chunk-DVCGAI5N.js";
|
|
34
|
-
import {
|
|
35
|
-
ErrorProcessor,
|
|
36
|
-
errorToResponse,
|
|
37
|
-
handlePrismaError,
|
|
38
|
-
processError,
|
|
39
|
-
throwBadRequestError,
|
|
40
|
-
throwBusinessRuleError,
|
|
41
|
-
throwConflictError,
|
|
42
|
-
throwForbiddenError,
|
|
43
|
-
throwNotFoundError,
|
|
44
|
-
throwUnauthorizedError,
|
|
45
|
-
throwValidationError,
|
|
46
|
-
withErrorHandling
|
|
47
|
-
} from "../../chunk-BRFW2LL2.js";
|
|
48
48
|
import "../../chunk-ATAQRXTH.js";
|
|
49
49
|
import "../../chunk-XQIAXMRY.js";
|
|
50
50
|
import "../../chunk-7ZO5UNTJ.js";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveConfig
|
|
3
|
+
} from "./chunk-E4TKORMQ.js";
|
|
1
4
|
import {
|
|
2
5
|
ParamBuilder,
|
|
3
6
|
columnList,
|
|
4
7
|
getDialect
|
|
5
8
|
} from "./chunk-2JUFL4KX.js";
|
|
6
|
-
import {
|
|
7
|
-
resolveConfig
|
|
8
|
-
} from "./chunk-E4TKORMQ.js";
|
|
9
9
|
|
|
10
10
|
// src/core/auth/adapters/sql/email-token-repository.ts
|
|
11
11
|
import { randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveConfig
|
|
3
|
+
} from "./chunk-E4TKORMQ.js";
|
|
1
4
|
import {
|
|
2
5
|
ParamBuilder,
|
|
3
6
|
columnList,
|
|
4
7
|
getDialect
|
|
5
8
|
} from "./chunk-2JUFL4KX.js";
|
|
6
|
-
import {
|
|
7
|
-
resolveConfig
|
|
8
|
-
} from "./chunk-E4TKORMQ.js";
|
|
9
9
|
|
|
10
10
|
// src/core/auth/adapters/sql/oauth-account-repository.ts
|
|
11
11
|
import { randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveConfig
|
|
3
|
+
} from "./chunk-E4TKORMQ.js";
|
|
1
4
|
import {
|
|
2
5
|
ParamBuilder,
|
|
3
6
|
columnList,
|
|
4
7
|
getDialect
|
|
5
8
|
} from "./chunk-2JUFL4KX.js";
|
|
6
|
-
import {
|
|
7
|
-
resolveConfig
|
|
8
|
-
} from "./chunk-E4TKORMQ.js";
|
|
9
9
|
|
|
10
10
|
// src/core/auth/adapters/sql/user-repository.ts
|
|
11
11
|
import { randomUUID } from "crypto";
|
|
File without changes
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPGeolocationProvider
|
|
3
|
+
} from "./chunk-GJYHMHTU.js";
|
|
1
4
|
import {
|
|
2
5
|
MaxMindProvider
|
|
3
6
|
} from "./chunk-R463CTX4.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
import {
|
|
8
11
|
IPApiCoProvider
|
|
9
12
|
} from "./chunk-MRNRC45L.js";
|
|
10
|
-
import {
|
|
11
|
-
IPGeolocationProvider
|
|
12
|
-
} from "./chunk-GJYHMHTU.js";
|
|
13
13
|
|
|
14
14
|
// src/core/geolocation/providers/index.ts
|
|
15
15
|
var GeoIPProviderFactory = class {
|