@navios/core 1.0.0 → 2.0.0-alpha.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/CHANGELOG.md +97 -11
- package/README.md +67 -220
- package/lib/async-context-6pdlnNLA.d.mts +237 -0
- package/lib/async-context-6pdlnNLA.d.mts.map +1 -0
- package/lib/async-context-Dqk7pE-D.d.cts +237 -0
- package/lib/async-context-Dqk7pE-D.d.cts.map +1 -0
- package/lib/attribute-factory-B3VuYnp7.d.cts +70 -0
- package/lib/attribute-factory-B3VuYnp7.d.cts.map +1 -0
- package/lib/attribute-factory-mKOXoVnV.d.mts +70 -0
- package/lib/attribute-factory-mKOXoVnV.d.mts.map +1 -0
- package/lib/attribute-value-CjX9ZkLq.cjs +172 -0
- package/lib/attribute-value-CjX9ZkLq.cjs.map +1 -0
- package/lib/attribute-value-DMEA255r.mjs +119 -0
- package/lib/attribute-value-DMEA255r.mjs.map +1 -0
- package/lib/basic-execution-context-CeGuhMOz.mjs +246 -0
- package/lib/basic-execution-context-CeGuhMOz.mjs.map +1 -0
- package/lib/basic-execution-context-DSk5MNtc.cjs +281 -0
- package/lib/basic-execution-context-DSk5MNtc.cjs.map +1 -0
- package/lib/execution-context-BPD3FeFb.d.mts +71 -0
- package/lib/execution-context-BPD3FeFb.d.mts.map +1 -0
- package/lib/execution-context-BTJdHhbf.d.cts +71 -0
- package/lib/execution-context-BTJdHhbf.d.cts.map +1 -0
- package/lib/execution-context-token-BXUKB2hf.cjs +112 -0
- package/lib/execution-context-token-BXUKB2hf.cjs.map +1 -0
- package/lib/execution-context-token-CrXmTvk2.mjs +77 -0
- package/lib/execution-context-token-CrXmTvk2.mjs.map +1 -0
- package/lib/index.cjs +1687 -4409
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +838 -3
- package/lib/index.d.cts.map +1 -0
- package/lib/index.d.mts +838 -3
- package/lib/index.d.mts.map +1 -0
- package/lib/index.mjs +1573 -4219
- package/lib/index.mjs.map +1 -1
- package/lib/legacy-compat/index.cjs +72 -371
- package/lib/legacy-compat/index.cjs.map +1 -1
- package/lib/legacy-compat/index.d.cts +42 -382
- package/lib/legacy-compat/index.d.cts.map +1 -1
- package/lib/legacy-compat/index.d.mts +41 -382
- package/lib/legacy-compat/index.d.mts.map +1 -1
- package/lib/legacy-compat/index.mjs +51 -345
- package/lib/legacy-compat/index.mjs.map +1 -1
- package/lib/module-Bha7GER_.mjs +135 -0
- package/lib/module-Bha7GER_.mjs.map +1 -0
- package/lib/module-DZewk_2r.cjs +164 -0
- package/lib/module-DZewk_2r.cjs.map +1 -0
- package/lib/module-graph-DCP9MHG0.cjs +147 -0
- package/lib/module-graph-DCP9MHG0.cjs.map +1 -0
- package/lib/module-graph-xvVEykFM.mjs +142 -0
- package/lib/module-graph-xvVEykFM.mjs.map +1 -0
- package/lib/module-metadata-C8S92seK.cjs +95 -0
- package/lib/module-metadata-C8S92seK.cjs.map +1 -0
- package/lib/module-metadata-k3RTt20x.mjs +66 -0
- package/lib/module-metadata-k3RTt20x.mjs.map +1 -0
- package/lib/module-options-Dmse0gii.d.mts +51 -0
- package/lib/module-options-Dmse0gii.d.mts.map +1 -0
- package/lib/module-options-IuDO-p8u.d.cts +51 -0
- package/lib/module-options-IuDO-p8u.d.cts.map +1 -0
- package/lib/testing/index.cjs +96 -414
- package/lib/testing/index.cjs.map +1 -1
- package/lib/testing/index.d.cts +25 -385
- package/lib/testing/index.d.cts.map +1 -1
- package/lib/testing/index.d.mts +24 -385
- package/lib/testing/index.d.mts.map +1 -1
- package/lib/testing/index.mjs +94 -408
- package/lib/testing/index.mjs.map +1 -1
- package/lib/transport.cjs +25 -0
- package/lib/transport.d.cts +190 -0
- package/lib/transport.d.cts.map +1 -0
- package/lib/transport.d.mts +190 -0
- package/lib/transport.d.mts.map +1 -0
- package/lib/transport.mjs +7 -0
- package/package.json +37 -17
- package/docs/README.md +0 -316
- package/docs/adapters.md +0 -308
- package/docs/application-setup.md +0 -524
- package/docs/attributes.md +0 -689
- package/docs/controllers.md +0 -373
- package/docs/endpoints.md +0 -444
- package/docs/exceptions.md +0 -352
- package/docs/guards.md +0 -550
- package/docs/legacy-compat.md +0 -356
- package/docs/modules.md +0 -377
- package/docs/quick-start.md +0 -290
- package/docs/services.md +0 -427
- package/docs/testing.md +0 -827
- package/lib/index-C0Sg16Eb.d.cts +0 -3365
- package/lib/index-C0Sg16Eb.d.cts.map +0 -1
- package/lib/index-DySQ6Dpd.d.mts +0 -3365
- package/lib/index-DySQ6Dpd.d.mts.map +0 -1
- package/lib/navios.factory-CO5MB_OK.cjs +0 -4125
- package/lib/navios.factory-CO5MB_OK.cjs.map +0 -1
- package/lib/navios.factory-D6Y94P9B.mjs +0 -3828
- package/lib/navios.factory-D6Y94P9B.mjs.map +0 -1
- package/lib/tokens-4J9sredA.mjs +0 -100
- package/lib/tokens-4J9sredA.mjs.map +0 -1
- package/lib/tokens-CWw9kyeD.cjs +0 -196
- package/lib/tokens-CWw9kyeD.cjs.map +0 -1
- package/lib/use-guards.decorator-BecoQSmE.mjs +0 -339
- package/lib/use-guards.decorator-BecoQSmE.mjs.map +0 -1
- package/lib/use-guards.decorator-C4ml9XaT.cjs +0 -447
- package/lib/use-guards.decorator-C4ml9XaT.cjs.map +0 -1
- package/project.json +0 -66
- package/src/__tests__/attribute.factory.spec.mts +0 -300
- package/src/__tests__/config.service.spec.mts +0 -43
- package/src/__tests__/console-logger.service.spec.mts +0 -312
- package/src/__tests__/controller-resolver.spec.mts +0 -229
- package/src/__tests__/controller.spec.mts +0 -58
- package/src/__tests__/guard-runner.service.spec.mts +0 -399
- package/src/__tests__/logger.service.spec.mts +0 -147
- package/src/__tests__/responders.spec.mts +0 -340
- package/src/__tests__/testing-module.spec.mts +0 -459
- package/src/__tests__/unit-testing-module.spec.mts +0 -424
- package/src/attribute.factory.mts +0 -325
- package/src/config/config-service.interface.mts +0 -47
- package/src/config/config.provider.mts +0 -69
- package/src/config/config.service.mts +0 -176
- package/src/config/index.mts +0 -5
- package/src/config/types.mts +0 -58
- package/src/config/utils/helpers.mts +0 -23
- package/src/config/utils/index.mts +0 -1
- package/src/decorators/controller.decorator.mts +0 -81
- package/src/decorators/endpoint.decorator.mts +0 -181
- package/src/decorators/header.decorator.mts +0 -38
- package/src/decorators/http-code.decorator.mts +0 -38
- package/src/decorators/index.mts +0 -8
- package/src/decorators/module.decorator.mts +0 -106
- package/src/decorators/multipart.decorator.mts +0 -169
- package/src/decorators/stream.decorator.mts +0 -155
- package/src/decorators/use-guards.decorator.mts +0 -73
- package/src/exceptions/bad-request.exception.mts +0 -28
- package/src/exceptions/conflict.exception.mts +0 -31
- package/src/exceptions/forbidden.exception.mts +0 -30
- package/src/exceptions/http.exception.mts +0 -33
- package/src/exceptions/index.mts +0 -7
- package/src/exceptions/internal-server-error.exception.mts +0 -33
- package/src/exceptions/not-found.exception.mts +0 -33
- package/src/exceptions/unauthorized.exception.mts +0 -30
- package/src/factories/adapter.factory.mts +0 -20
- package/src/factories/endpoint-adapter.factory.mts +0 -21
- package/src/factories/http-adapter.factory.mts +0 -20
- package/src/factories/index.mts +0 -8
- package/src/factories/multipart-adapter.factory.mts +0 -21
- package/src/factories/reply.factory.mts +0 -21
- package/src/factories/request.factory.mts +0 -21
- package/src/factories/stream-adapter.factory.mts +0 -20
- package/src/factories/xml-stream-adapter.factory.mts +0 -20
- package/src/index.mts +0 -16
- package/src/interfaces/abstract-adapter.interface.mts +0 -32
- package/src/interfaces/abstract-execution-context.inteface.mts +0 -48
- package/src/interfaces/abstract-http-adapter.interface.mts +0 -79
- package/src/interfaces/abstract-http-cors-options.interface.mts +0 -59
- package/src/interfaces/abstract-http-handler-adapter.interface.mts +0 -127
- package/src/interfaces/abstract-http-listen-options.interface.mts +0 -4
- package/src/interfaces/adapter-environment.interface.mts +0 -74
- package/src/interfaces/can-activate.mts +0 -38
- package/src/interfaces/http-header.mts +0 -18
- package/src/interfaces/index.mts +0 -11
- package/src/interfaces/navios-module.mts +0 -28
- package/src/interfaces/plugin.interface.mts +0 -139
- package/src/legacy-compat/__type-tests__/legacy-decorators.spec-d.mts +0 -521
- package/src/legacy-compat/__type-tests__/tsconfig.json +0 -15
- package/src/legacy-compat/attribute.factory.mts +0 -351
- package/src/legacy-compat/decorators/controller.decorator.mts +0 -31
- package/src/legacy-compat/decorators/endpoint.decorator.mts +0 -73
- package/src/legacy-compat/decorators/header.decorator.mts +0 -43
- package/src/legacy-compat/decorators/http-code.decorator.mts +0 -39
- package/src/legacy-compat/decorators/index.mts +0 -11
- package/src/legacy-compat/decorators/module.decorator.mts +0 -37
- package/src/legacy-compat/decorators/multipart.decorator.mts +0 -72
- package/src/legacy-compat/decorators/stream.decorator.mts +0 -89
- package/src/legacy-compat/decorators/use-guards.decorator.mts +0 -80
- package/src/legacy-compat/index.mts +0 -57
- package/src/logger/README.md +0 -3
- package/src/logger/console-logger.service.mts +0 -714
- package/src/logger/index.mts +0 -6
- package/src/logger/log-levels.mts +0 -21
- package/src/logger/logger-service.interface.mts +0 -42
- package/src/logger/logger.service.mts +0 -113
- package/src/logger/logger.tokens.mts +0 -44
- package/src/logger/utils/cli-colors.util.mts +0 -17
- package/src/logger/utils/filter-log-levelts.util.mts +0 -29
- package/src/logger/utils/index.mts +0 -5
- package/src/logger/utils/is-log-level-enabled.mts +0 -33
- package/src/logger/utils/is-log-level.util.mts +0 -10
- package/src/logger/utils/shared.utils.mts +0 -51
- package/src/metadata/controller.metadata.mts +0 -72
- package/src/metadata/handler.metadata.mts +0 -80
- package/src/metadata/index.mts +0 -4
- package/src/metadata/module.metadata.mts +0 -108
- package/src/metadata/navios-managed.metadata.mts +0 -42
- package/src/navios.application.mts +0 -484
- package/src/navios.environment.mts +0 -42
- package/src/navios.factory.mts +0 -158
- package/src/responders/enums/framework-error.enum.mts +0 -38
- package/src/responders/enums/index.mts +0 -1
- package/src/responders/index.mts +0 -4
- package/src/responders/interfaces/error-responder.interface.mts +0 -42
- package/src/responders/interfaces/error-response.interface.mts +0 -22
- package/src/responders/interfaces/index.mts +0 -3
- package/src/responders/interfaces/problem-details.interface.mts +0 -34
- package/src/responders/services/error-response-producer.service.mts +0 -143
- package/src/responders/services/forbidden-responder.service.mts +0 -77
- package/src/responders/services/index.mts +0 -5
- package/src/responders/services/internal-server-error-responder.service.mts +0 -57
- package/src/responders/services/not-found-responder.service.mts +0 -76
- package/src/responders/services/validation-error-responder.service.mts +0 -78
- package/src/responders/tokens/index.mts +0 -1
- package/src/responders/tokens/responder.tokens.mts +0 -84
- package/src/services/abstract-handler-adapter.service.mts +0 -366
- package/src/services/guard-runner.service.mts +0 -152
- package/src/services/index.mts +0 -4
- package/src/services/instance-resolver.service.mts +0 -177
- package/src/services/module-loader.service.mts +0 -252
- package/src/stores/index.mts +0 -1
- package/src/stores/request-id.store.mts +0 -85
- package/src/testing/index.mts +0 -3
- package/src/testing/testing-module.mts +0 -393
- package/src/testing/unit-testing-module.mts +0 -298
- package/src/tokens/adapter.token.mts +0 -6
- package/src/tokens/endpoint-adapter.token.mts +0 -8
- package/src/tokens/execution-context.token.mts +0 -9
- package/src/tokens/http-adapter.token.mts +0 -8
- package/src/tokens/index.mts +0 -10
- package/src/tokens/multipart-adapter.token.mts +0 -8
- package/src/tokens/navios-options.token.mts +0 -6
- package/src/tokens/reply.token.mts +0 -3
- package/src/tokens/request.token.mts +0 -3
- package/src/tokens/stream-adapter.token.mts +0 -8
- package/src/tokens/xml-stream-adapter.token.mts +0 -8
- package/src/utils/adapter-supports.util.mts +0 -47
- package/src/utils/index.mts +0 -1
- package/tsconfig.json +0 -21
- package/tsconfig.lib.json +0 -8
- package/tsconfig.spec.json +0 -15
- package/tsdown.config.mts +0 -35
- package/vitest.config.mts +0 -15
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
BaseEndpointOptions,
|
|
3
|
-
RequestArgs,
|
|
4
|
-
StreamHandler,
|
|
5
|
-
} from '@navios/builder'
|
|
6
|
-
import { createMethodContext } from '@navios/di/legacy-compat'
|
|
7
|
-
|
|
8
|
-
import { Stream as OriginalStream } from '../../decorators/stream.decorator.mjs'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Type helper to constrain a PropertyDescriptor's value to match a stream endpoint signature.
|
|
12
|
-
* Supports both with and without reply parameter (Bun doesn't use reply parameter).
|
|
13
|
-
* Note: In legacy decorators, type constraints are checked when the decorator is applied,
|
|
14
|
-
* but may not be preserved perfectly when decorators are stacked.
|
|
15
|
-
*/
|
|
16
|
-
type StreamMethodDescriptor<Config extends BaseEndpointOptions> =
|
|
17
|
-
| TypedPropertyDescriptor<
|
|
18
|
-
(
|
|
19
|
-
params: RequestArgs<
|
|
20
|
-
Config['url'],
|
|
21
|
-
Config['querySchema'],
|
|
22
|
-
Config['requestSchema'],
|
|
23
|
-
Config['urlParamsSchema'],
|
|
24
|
-
true
|
|
25
|
-
>,
|
|
26
|
-
reply: any,
|
|
27
|
-
) => any
|
|
28
|
-
>
|
|
29
|
-
| TypedPropertyDescriptor<
|
|
30
|
-
(
|
|
31
|
-
params: RequestArgs<
|
|
32
|
-
Config['url'],
|
|
33
|
-
Config['querySchema'],
|
|
34
|
-
Config['requestSchema'],
|
|
35
|
-
Config['urlParamsSchema'],
|
|
36
|
-
true
|
|
37
|
-
>,
|
|
38
|
-
) => any
|
|
39
|
-
>
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Legacy-compatible Stream decorator.
|
|
43
|
-
*
|
|
44
|
-
* Works with TypeScript experimental decorators (legacy API).
|
|
45
|
-
* Provides type safety by ensuring method signatures match the endpoint configuration.
|
|
46
|
-
*
|
|
47
|
-
* @param endpoint - The stream endpoint declaration from @navios/builder
|
|
48
|
-
* @returns A method decorator compatible with legacy decorator API
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* @Controller()
|
|
53
|
-
* export class FileController {
|
|
54
|
-
* @Stream(downloadFileEndpoint)
|
|
55
|
-
* async downloadFile(request: StreamParams<typeof downloadFileEndpoint>, reply: any) {
|
|
56
|
-
* const { fileId } = request.urlParams
|
|
57
|
-
* // Stream file data to reply
|
|
58
|
-
* }
|
|
59
|
-
* }
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
export function Stream<const Config extends BaseEndpointOptions>(
|
|
63
|
-
endpoint: StreamHandler<Config, false>,
|
|
64
|
-
) {
|
|
65
|
-
return function (
|
|
66
|
-
target: any,
|
|
67
|
-
propertyKey: string | symbol,
|
|
68
|
-
descriptor: StreamMethodDescriptor<Config>,
|
|
69
|
-
): PropertyDescriptor | void {
|
|
70
|
-
if (!descriptor || !descriptor.value) {
|
|
71
|
-
throw new Error(
|
|
72
|
-
'[Navios] @Stream decorator requires a method descriptor. Make sure experimentalDecorators is enabled.',
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
// Type check the descriptor value matches expected signature
|
|
76
|
-
const typedDescriptor = descriptor as StreamMethodDescriptor<Config>
|
|
77
|
-
const context = createMethodContext(target, propertyKey, typedDescriptor)
|
|
78
|
-
const originalDecorator = OriginalStream(endpoint)
|
|
79
|
-
// Stage3 decorator returns void in type signature but actually returns the function
|
|
80
|
-
// We know value is defined because we checked above
|
|
81
|
-
const result = originalDecorator(typedDescriptor.value!, context) as
|
|
82
|
-
| typeof typedDescriptor.value
|
|
83
|
-
| void
|
|
84
|
-
if (result && result !== typedDescriptor.value) {
|
|
85
|
-
typedDescriptor.value = result as any
|
|
86
|
-
}
|
|
87
|
-
return typedDescriptor
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ClassType,
|
|
3
|
-
ClassTypeWithInstance,
|
|
4
|
-
InjectionToken,
|
|
5
|
-
} from '@navios/di'
|
|
6
|
-
import { createClassContext, createMethodContext } from '@navios/di/legacy-compat'
|
|
7
|
-
|
|
8
|
-
import type { CanActivate } from '../../interfaces/index.mjs'
|
|
9
|
-
|
|
10
|
-
import { UseGuards as OriginalUseGuards } from '../../decorators/use-guards.decorator.mjs'
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Legacy-compatible UseGuards decorator.
|
|
14
|
-
*
|
|
15
|
-
* Works with TypeScript experimental decorators (legacy API).
|
|
16
|
-
* Can be applied to classes or methods.
|
|
17
|
-
*
|
|
18
|
-
* @param guards - Guard classes or injection tokens to apply
|
|
19
|
-
* @returns A class or method decorator compatible with legacy decorator API
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* // Apply to a controller
|
|
24
|
-
* @Controller()
|
|
25
|
-
* @UseGuards(AuthGuard, RoleGuard)
|
|
26
|
-
* export class UserController { }
|
|
27
|
-
*
|
|
28
|
-
* // Apply to a specific endpoint
|
|
29
|
-
* @Controller()
|
|
30
|
-
* export class UserController {
|
|
31
|
-
* @Endpoint(getUserEndpoint)
|
|
32
|
-
* @UseGuards(AuthGuard)
|
|
33
|
-
* async getUser() { }
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export function UseGuards(
|
|
38
|
-
...guards: (
|
|
39
|
-
| ClassTypeWithInstance<CanActivate>
|
|
40
|
-
| InjectionToken<CanActivate, undefined>
|
|
41
|
-
)[]
|
|
42
|
-
) {
|
|
43
|
-
// Create the decorator function
|
|
44
|
-
// Note: TypeScript's legacy decorator system has strict type checking for decorators
|
|
45
|
-
// We use a flexible implementation that works for both class and method decorators
|
|
46
|
-
function decoratorImpl(
|
|
47
|
-
target: ClassType | Function,
|
|
48
|
-
propertyKey?: string | symbol,
|
|
49
|
-
descriptor?: PropertyDescriptor,
|
|
50
|
-
): any {
|
|
51
|
-
// Determine if this is a class or method decorator
|
|
52
|
-
if (propertyKey !== undefined && descriptor !== undefined) {
|
|
53
|
-
// Method decorator
|
|
54
|
-
const context = createMethodContext(
|
|
55
|
-
target as Function,
|
|
56
|
-
propertyKey,
|
|
57
|
-
descriptor,
|
|
58
|
-
)
|
|
59
|
-
const originalDecorator = OriginalUseGuards(...guards)
|
|
60
|
-
const result = originalDecorator(descriptor.value, context)
|
|
61
|
-
if (result !== descriptor.value) {
|
|
62
|
-
descriptor.value = result
|
|
63
|
-
}
|
|
64
|
-
return descriptor
|
|
65
|
-
} else {
|
|
66
|
-
// Class decorator
|
|
67
|
-
const context = createClassContext(target as ClassType)
|
|
68
|
-
const originalDecorator = OriginalUseGuards(...guards)
|
|
69
|
-
return originalDecorator(target as ClassType, context)
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Return with 'any' type to work around TypeScript's strict decorator checking
|
|
74
|
-
// TypeScript's legacy decorator system cannot properly type-check decorators
|
|
75
|
-
// that work as both class and method decorators. The runtime behavior is correct.
|
|
76
|
-
// When used as a class decorator, it returns the class (preserving type at runtime)
|
|
77
|
-
// When used as a method decorator, it returns the PropertyDescriptor
|
|
78
|
-
// @ts-ignore - TypeScript limitation with dual-purpose legacy decorators
|
|
79
|
-
return decoratorImpl as any
|
|
80
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legacy-compatible decorators for projects that cannot use Stage 3 decorators.
|
|
3
|
-
*
|
|
4
|
-
* These decorators use the TypeScript experimental decorator API and convert
|
|
5
|
-
* the arguments to Stage 3 format internally.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import { Module, Controller, Endpoint } from '@navios/core/legacy-compat'
|
|
10
|
-
*
|
|
11
|
-
* @Module({
|
|
12
|
-
* controllers: [UserController],
|
|
13
|
-
* })
|
|
14
|
-
* export class AppModule {}
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
// Re-export types
|
|
19
|
-
export type {
|
|
20
|
-
ModuleOptions,
|
|
21
|
-
ControllerOptions,
|
|
22
|
-
EndpointParams,
|
|
23
|
-
EndpointResult,
|
|
24
|
-
MultipartParams,
|
|
25
|
-
MultipartResult,
|
|
26
|
-
StreamParams,
|
|
27
|
-
} from '../decorators/index.mjs'
|
|
28
|
-
|
|
29
|
-
// Export legacy-compatible decorators (core-specific)
|
|
30
|
-
export {
|
|
31
|
-
Module,
|
|
32
|
-
Controller,
|
|
33
|
-
Endpoint,
|
|
34
|
-
UseGuards,
|
|
35
|
-
Header,
|
|
36
|
-
HttpCode,
|
|
37
|
-
Multipart,
|
|
38
|
-
Stream,
|
|
39
|
-
} from './decorators/index.mjs'
|
|
40
|
-
|
|
41
|
-
// Re-export DI decorators and context utilities from @navios/di/legacy-compat
|
|
42
|
-
export {
|
|
43
|
-
Injectable,
|
|
44
|
-
Factory,
|
|
45
|
-
createClassContext,
|
|
46
|
-
createMethodContext,
|
|
47
|
-
type InjectableOptions,
|
|
48
|
-
type FactoryOptions,
|
|
49
|
-
} from '@navios/di/legacy-compat'
|
|
50
|
-
|
|
51
|
-
// Export legacy-compatible AttributeFactory
|
|
52
|
-
export {
|
|
53
|
-
AttributeFactory,
|
|
54
|
-
LegacyAttributeFactory,
|
|
55
|
-
type LegacyClassAttribute,
|
|
56
|
-
type LegacyClassSchemaAttribute,
|
|
57
|
-
} from './attribute.factory.mjs'
|
package/src/logger/README.md
DELETED