@navios/core 0.2.0 → 0.2.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/docs/README.md +6 -0
- package/docs/recipes/prisma.md +60 -0
- package/examples/simple-test/api/index.mts +64 -0
- package/examples/simple-test/config/config.service.mts +14 -0
- package/examples/simple-test/config/configuration.mts +7 -0
- package/examples/simple-test/index.mts +16 -0
- package/examples/simple-test/src/acl/acl-modern.guard.mts +15 -0
- package/examples/simple-test/src/acl/acl.guard.mts +14 -0
- package/examples/simple-test/src/acl/app.guard.mts +27 -0
- package/examples/simple-test/src/acl/one-more.guard.mts +15 -0
- package/examples/simple-test/src/acl/public.attribute.mts +21 -0
- package/examples/simple-test/src/app.module.mts +9 -0
- package/examples/simple-test/src/user/user.controller.mts +72 -0
- package/examples/simple-test/src/user/user.module.mts +14 -0
- package/examples/simple-test/src/user/user.service.mts +14 -0
- package/{dist → lib}/_tsup-dts-rollup.d.mts +75 -59
- package/{dist → lib}/_tsup-dts-rollup.d.ts +75 -59
- package/{dist → lib}/index.d.mts +13 -4
- package/{dist → lib}/index.d.ts +13 -4
- package/{dist → lib}/index.js +270 -490
- package/lib/index.js.map +1 -0
- package/{dist → lib}/index.mjs +140 -353
- package/lib/index.mjs.map +1 -0
- package/package.json +12 -13
- package/project.json +53 -0
- package/src/__tests__/config.service.spec.mts +41 -0
- package/src/config/config-service.interface.mts +1 -1
- package/src/config/config.provider.mts +23 -47
- package/src/config/config.service.mts +25 -8
- package/src/decorators/endpoint.decorator.mts +17 -15
- package/src/decorators/multipart.decorator.mts +17 -10
- package/src/decorators/stream.decorator.mts +17 -10
- package/tsconfig.json +16 -0
- package/tsup.config.mts +12 -0
- package/vitest.config.mts +9 -0
package/{dist → lib}/index.d.mts
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Injectable } from './_tsup-dts-rollup.mjs';
|
|
2
2
|
export { InjectableOptions } from './_tsup-dts-rollup.mjs';
|
|
3
|
-
export { InjectableTokenMeta } from './_tsup-dts-rollup.mjs';
|
|
4
3
|
export { InjectableScope } from './_tsup-dts-rollup.mjs';
|
|
5
4
|
export { InjectableType } from './_tsup-dts-rollup.mjs';
|
|
6
5
|
export { ErrorsEnum } from './_tsup-dts-rollup.mjs';
|
|
@@ -25,7 +24,14 @@ export { EventEmitterInterface } from './_tsup-dts-rollup.mjs';
|
|
|
25
24
|
export { EventEmitter } from './_tsup-dts-rollup.mjs';
|
|
26
25
|
export { FactoryContext } from './_tsup-dts-rollup.mjs';
|
|
27
26
|
export { ClassType } from './_tsup-dts-rollup.mjs';
|
|
27
|
+
export { ClassTypeWithArgument } from './_tsup-dts-rollup.mjs';
|
|
28
|
+
export { ClassTypeWithOptionalArgument } from './_tsup-dts-rollup.mjs';
|
|
28
29
|
export { ClassTypeWithInstance } from './_tsup-dts-rollup.mjs';
|
|
30
|
+
export { ClassTypeWithInstanceAndArgument } from './_tsup-dts-rollup.mjs';
|
|
31
|
+
export { ClassTypeWithInstanceAndOptionalArgument } from './_tsup-dts-rollup.mjs';
|
|
32
|
+
export { BaseInjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
33
|
+
export { OptionalInjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
34
|
+
export { InjectionTokenSchemaType } from './_tsup-dts-rollup.mjs';
|
|
29
35
|
export { InjectionToken } from './_tsup-dts-rollup.mjs';
|
|
30
36
|
export { BoundInjectionToken } from './_tsup-dts-rollup.mjs';
|
|
31
37
|
export { FactoryInjectionToken } from './_tsup-dts-rollup.mjs';
|
|
@@ -52,6 +58,7 @@ export { ServiceLocatorInstanceHolderCreated } from './_tsup-dts-rollup.mjs';
|
|
|
52
58
|
export { ServiceLocatorInstanceHolderDestroying } from './_tsup-dts-rollup.mjs';
|
|
53
59
|
export { ServiceLocatorInstanceHolder } from './_tsup-dts-rollup.mjs';
|
|
54
60
|
export { ServiceLocatorManager } from './_tsup-dts-rollup.mjs';
|
|
61
|
+
export { InjectableTokenMeta } from './_tsup-dts-rollup.mjs';
|
|
55
62
|
export { EndpointAdapterToken } from './_tsup-dts-rollup.mjs';
|
|
56
63
|
export { EndpointAdapterService } from './_tsup-dts-rollup.mjs';
|
|
57
64
|
export { HandlerAdapterInterface } from './_tsup-dts-rollup.mjs';
|
|
@@ -63,10 +70,12 @@ export { envInt } from './_tsup-dts-rollup.mjs';
|
|
|
63
70
|
export { envString } from './_tsup-dts-rollup.mjs';
|
|
64
71
|
export { provideConfig } from './_tsup-dts-rollup.mjs';
|
|
65
72
|
export { ConfigProviderOptions } from './_tsup-dts-rollup.mjs';
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
73
|
+
export { EnvConfigProvider } from './_tsup-dts-rollup.mjs';
|
|
74
|
+
export { ConfigServiceOptionsSchema } from './_tsup-dts-rollup.mjs';
|
|
75
|
+
export { ConfigServiceOptions } from './_tsup-dts-rollup.mjs';
|
|
76
|
+
export { ConfigServiceToken } from './_tsup-dts-rollup.mjs';
|
|
69
77
|
export { ConfigService } from './_tsup-dts-rollup.mjs';
|
|
78
|
+
export { ConfigServiceInterface } from './_tsup-dts-rollup.mjs';
|
|
70
79
|
export { PathImpl } from './_tsup-dts-rollup.mjs';
|
|
71
80
|
export { PathImpl2 } from './_tsup-dts-rollup.mjs';
|
|
72
81
|
export { Path } from './_tsup-dts-rollup.mjs';
|
package/{dist → lib}/index.d.ts
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Injectable } from './_tsup-dts-rollup.js';
|
|
2
2
|
export { InjectableOptions } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { InjectableTokenMeta } from './_tsup-dts-rollup.js';
|
|
4
3
|
export { InjectableScope } from './_tsup-dts-rollup.js';
|
|
5
4
|
export { InjectableType } from './_tsup-dts-rollup.js';
|
|
6
5
|
export { ErrorsEnum } from './_tsup-dts-rollup.js';
|
|
@@ -25,7 +24,14 @@ export { EventEmitterInterface } from './_tsup-dts-rollup.js';
|
|
|
25
24
|
export { EventEmitter } from './_tsup-dts-rollup.js';
|
|
26
25
|
export { FactoryContext } from './_tsup-dts-rollup.js';
|
|
27
26
|
export { ClassType } from './_tsup-dts-rollup.js';
|
|
27
|
+
export { ClassTypeWithArgument } from './_tsup-dts-rollup.js';
|
|
28
|
+
export { ClassTypeWithOptionalArgument } from './_tsup-dts-rollup.js';
|
|
28
29
|
export { ClassTypeWithInstance } from './_tsup-dts-rollup.js';
|
|
30
|
+
export { ClassTypeWithInstanceAndArgument } from './_tsup-dts-rollup.js';
|
|
31
|
+
export { ClassTypeWithInstanceAndOptionalArgument } from './_tsup-dts-rollup.js';
|
|
32
|
+
export { BaseInjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
33
|
+
export { OptionalInjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
34
|
+
export { InjectionTokenSchemaType } from './_tsup-dts-rollup.js';
|
|
29
35
|
export { InjectionToken } from './_tsup-dts-rollup.js';
|
|
30
36
|
export { BoundInjectionToken } from './_tsup-dts-rollup.js';
|
|
31
37
|
export { FactoryInjectionToken } from './_tsup-dts-rollup.js';
|
|
@@ -52,6 +58,7 @@ export { ServiceLocatorInstanceHolderCreated } from './_tsup-dts-rollup.js';
|
|
|
52
58
|
export { ServiceLocatorInstanceHolderDestroying } from './_tsup-dts-rollup.js';
|
|
53
59
|
export { ServiceLocatorInstanceHolder } from './_tsup-dts-rollup.js';
|
|
54
60
|
export { ServiceLocatorManager } from './_tsup-dts-rollup.js';
|
|
61
|
+
export { InjectableTokenMeta } from './_tsup-dts-rollup.js';
|
|
55
62
|
export { EndpointAdapterToken } from './_tsup-dts-rollup.js';
|
|
56
63
|
export { EndpointAdapterService } from './_tsup-dts-rollup.js';
|
|
57
64
|
export { HandlerAdapterInterface } from './_tsup-dts-rollup.js';
|
|
@@ -63,10 +70,12 @@ export { envInt } from './_tsup-dts-rollup.js';
|
|
|
63
70
|
export { envString } from './_tsup-dts-rollup.js';
|
|
64
71
|
export { provideConfig } from './_tsup-dts-rollup.js';
|
|
65
72
|
export { ConfigProviderOptions } from './_tsup-dts-rollup.js';
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
73
|
+
export { EnvConfigProvider } from './_tsup-dts-rollup.js';
|
|
74
|
+
export { ConfigServiceOptionsSchema } from './_tsup-dts-rollup.js';
|
|
75
|
+
export { ConfigServiceOptions } from './_tsup-dts-rollup.js';
|
|
76
|
+
export { ConfigServiceToken } from './_tsup-dts-rollup.js';
|
|
69
77
|
export { ConfigService } from './_tsup-dts-rollup.js';
|
|
78
|
+
export { ConfigServiceInterface } from './_tsup-dts-rollup.js';
|
|
70
79
|
export { PathImpl } from './_tsup-dts-rollup.js';
|
|
71
80
|
export { PathImpl2 } from './_tsup-dts-rollup.js';
|
|
72
81
|
export { Path } from './_tsup-dts-rollup.js';
|