@forklaunch/core 1.3.16 → 1.4.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/lib/cache/index.d.mts +2 -1
- package/lib/cache/index.d.ts +2 -1
- package/lib/http/index.d.mts +2 -1
- package/lib/http/index.d.ts +2 -1
- package/lib/http/index.js +12 -0
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +12 -0
- package/lib/http/index.mjs.map +1 -1
- package/lib/objectstore/index.d.mts +18 -44
- package/lib/objectstore/index.d.ts +18 -44
- package/lib/persistence/index.js +29 -11
- package/lib/persistence/index.js.map +1 -1
- package/lib/persistence/index.mjs +29 -11
- package/lib/persistence/index.mjs.map +1 -1
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/index.mjs +6 -0
- package/lib/services/index.mjs.map +1 -1
- package/lib/ttlCache.interface-B3xaLT00.d.ts +77 -0
- package/lib/ttlCache.interface-CEOkrt8d.d.mts +77 -0
- package/lib/ttlCacheRecord.types-oX0ti5SP.d.mts +25 -0
- package/lib/ttlCacheRecord.types-oX0ti5SP.d.ts +25 -0
- package/package.json +3 -3
- package/lib/ttlCache.interface-DClm-lSa.d.mts +0 -133
- package/lib/ttlCache.interface-DClm-lSa.d.ts +0 -133
package/lib/cache/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { T as TtlCache
|
|
1
|
+
export { T as TtlCache } from '../ttlCache.interface-CEOkrt8d.mjs';
|
|
2
|
+
export { C as ComplianceContext, T as TtlCacheRecord } from '../ttlCacheRecord.types-oX0ti5SP.mjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Creates a function that generates cache keys with a given prefix.
|
package/lib/cache/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { T as TtlCache
|
|
1
|
+
export { T as TtlCache } from '../ttlCache.interface-B3xaLT00.js';
|
|
2
|
+
export { C as ComplianceContext, T as TtlCacheRecord } from '../ttlCacheRecord.types-oX0ti5SP.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Creates a function that generates cache keys with a given prefix.
|
package/lib/http/index.d.mts
CHANGED
|
@@ -14,13 +14,14 @@ import http from 'http';
|
|
|
14
14
|
import { OpenAPIObject } from 'openapi3-ts/oas31';
|
|
15
15
|
import { LevelWithSilentOrString } from 'pino';
|
|
16
16
|
export { LevelWithSilent, LevelWithSilentOrString, Logger } from 'pino';
|
|
17
|
-
import { T as TtlCache } from '../ttlCache.interface-
|
|
17
|
+
import { T as TtlCache } from '../ttlCache.interface-CEOkrt8d.mjs';
|
|
18
18
|
export { ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_HTTP_ROUTE, ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
|
|
19
19
|
import '@opentelemetry/api';
|
|
20
20
|
import '@opentelemetry/api-logs';
|
|
21
21
|
import 'stream';
|
|
22
22
|
import 'cors';
|
|
23
23
|
import '@scalar/express-api-reference';
|
|
24
|
+
import '../ttlCacheRecord.types-oX0ti5SP.mjs';
|
|
24
25
|
|
|
25
26
|
interface PathBasedHandler<RouterHandler> {
|
|
26
27
|
(path: string, ...handlers: RouterHandler[]): unknown;
|
package/lib/http/index.d.ts
CHANGED
|
@@ -14,13 +14,14 @@ import http from 'http';
|
|
|
14
14
|
import { OpenAPIObject } from 'openapi3-ts/oas31';
|
|
15
15
|
import { LevelWithSilentOrString } from 'pino';
|
|
16
16
|
export { LevelWithSilent, LevelWithSilentOrString, Logger } from 'pino';
|
|
17
|
-
import { T as TtlCache } from '../ttlCache.interface-
|
|
17
|
+
import { T as TtlCache } from '../ttlCache.interface-B3xaLT00.js';
|
|
18
18
|
export { ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_HTTP_ROUTE, ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
|
|
19
19
|
import '@opentelemetry/api';
|
|
20
20
|
import '@opentelemetry/api-logs';
|
|
21
21
|
import 'stream';
|
|
22
22
|
import 'cors';
|
|
23
23
|
import '@scalar/express-api-reference';
|
|
24
|
+
import '../ttlCacheRecord.types-oX0ti5SP.js';
|
|
24
25
|
|
|
25
26
|
interface PathBasedHandler<RouterHandler> {
|
|
26
27
|
(path: string, ...handlers: RouterHandler[]): unknown;
|
package/lib/http/index.js
CHANGED
|
@@ -1571,6 +1571,12 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
this.internal.use(createContext(this.schemaValidator));
|
|
1573
1573
|
}
|
|
1574
|
+
basePath;
|
|
1575
|
+
schemaValidator;
|
|
1576
|
+
internal;
|
|
1577
|
+
postEnrichMiddleware;
|
|
1578
|
+
openTelemetryCollector;
|
|
1579
|
+
routerOptions;
|
|
1574
1580
|
requestHandler;
|
|
1575
1581
|
routers = [];
|
|
1576
1582
|
routes = [];
|
|
@@ -2316,6 +2322,11 @@ var ForklaunchExpressLikeApplication = class extends ForklaunchExpressLikeRouter
|
|
|
2316
2322
|
this.appOptions = appOptions;
|
|
2317
2323
|
this.internal.use(cors(this.appOptions?.cors ?? {}));
|
|
2318
2324
|
}
|
|
2325
|
+
schemaValidator;
|
|
2326
|
+
internal;
|
|
2327
|
+
postEnrichMiddleware;
|
|
2328
|
+
openTelemetryCollector;
|
|
2329
|
+
appOptions;
|
|
2319
2330
|
/**
|
|
2320
2331
|
* Validates all registered routes across the app and all mounted routers.
|
|
2321
2332
|
* Call this at the start of listen() to fail fast at startup.
|
|
@@ -4390,6 +4401,7 @@ var RateLimiter = class {
|
|
|
4390
4401
|
constructor(cache) {
|
|
4391
4402
|
this.cache = cache;
|
|
4392
4403
|
}
|
|
4404
|
+
cache;
|
|
4393
4405
|
/**
|
|
4394
4406
|
* Check whether the given key is within its rate limit.
|
|
4395
4407
|
*
|