@navios/core 2.0.0-alpha.0 → 2.0.0-alpha.1
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 +33 -3
- package/README.md +8 -6
- package/lib/{async-context-6pdlnNLA.d.mts → async-context-BAdt7bno.d.mts} +11 -9
- package/lib/async-context-BAdt7bno.d.mts.map +1 -0
- package/lib/{async-context-Dqk7pE-D.d.cts → async-context-RsWmy2Hi.d.cts} +11 -9
- package/lib/async-context-RsWmy2Hi.d.cts.map +1 -0
- package/lib/{attribute-factory-B3VuYnp7.d.cts → attribute-factory-BW1kgBqf.d.mts} +2 -2
- package/lib/{attribute-factory-B3VuYnp7.d.cts.map → attribute-factory-BW1kgBqf.d.mts.map} +1 -1
- package/lib/{attribute-factory-mKOXoVnV.d.mts → attribute-factory-DqN4x5XM.d.cts} +2 -2
- package/lib/{attribute-factory-mKOXoVnV.d.mts.map → attribute-factory-DqN4x5XM.d.cts.map} +1 -1
- package/lib/attribute-value-BNiJjxl1.mjs +225 -0
- package/lib/attribute-value-BNiJjxl1.mjs.map +1 -0
- package/lib/attribute-value-Cux5HhOL.cjs +314 -0
- package/lib/attribute-value-Cux5HhOL.cjs.map +1 -0
- package/lib/{basic-execution-context-DSk5MNtc.cjs → basic-execution-context-5uq2DvEA.cjs} +66 -29
- package/lib/basic-execution-context-5uq2DvEA.cjs.map +1 -0
- package/lib/{basic-execution-context-CeGuhMOz.mjs → basic-execution-context-u1VktGoM.mjs} +61 -30
- package/lib/basic-execution-context-u1VktGoM.mjs.map +1 -0
- package/lib/{execution-context-BPD3FeFb.d.mts → execution-context-BVSmLkYp.d.cts} +2 -2
- package/lib/{execution-context-BPD3FeFb.d.mts.map → execution-context-BVSmLkYp.d.cts.map} +1 -1
- package/lib/{execution-context-BTJdHhbf.d.cts → execution-context-C5F9rojO.d.mts} +2 -2
- package/lib/{execution-context-BTJdHhbf.d.cts.map → execution-context-C5F9rojO.d.mts.map} +1 -1
- package/lib/{module-graph-DCP9MHG0.cjs → execution-context-token--cKS4cJv.cjs} +135 -12
- package/lib/execution-context-token--cKS4cJv.cjs.map +1 -0
- package/lib/{module-graph-xvVEykFM.mjs → execution-context-token-Cb3M3Ao0.mjs} +93 -12
- package/lib/execution-context-token-Cb3M3Ao0.mjs.map +1 -0
- package/lib/index.cjs +84 -101
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +14 -10
- package/lib/index.d.cts.map +1 -1
- package/lib/index.d.mts +14 -10
- package/lib/index.d.mts.map +1 -1
- package/lib/index.mjs +76 -92
- package/lib/index.mjs.map +1 -1
- package/lib/legacy-compat/index.cjs +2 -2
- package/lib/legacy-compat/index.d.cts +3 -3
- package/lib/legacy-compat/index.d.mts +2 -2
- package/lib/legacy-compat/index.mjs +2 -2
- package/lib/{module-DZewk_2r.cjs → module-Bz83ZnJ5.cjs} +43 -34
- package/lib/module-Bz83ZnJ5.cjs.map +1 -0
- package/lib/{module-options-Dmse0gii.d.mts → module-options-CSqQUSTm.d.mts} +2 -2
- package/lib/{module-options-Dmse0gii.d.mts.map → module-options-CSqQUSTm.d.mts.map} +1 -1
- package/lib/{module-options-IuDO-p8u.d.cts → module-options-DSRBri4J.d.cts} +2 -2
- package/lib/{module-options-IuDO-p8u.d.cts.map → module-options-DSRBri4J.d.cts.map} +1 -1
- package/lib/{module-Bha7GER_.mjs → module-zPXwR2qp.mjs} +38 -35
- package/lib/module-zPXwR2qp.mjs.map +1 -0
- package/lib/settled-within-B6gpu2XW.cjs +32 -0
- package/lib/settled-within-B6gpu2XW.cjs.map +1 -0
- package/lib/settled-within-Bc2pj8WB.mjs +21 -0
- package/lib/settled-within-Bc2pj8WB.mjs.map +1 -0
- package/lib/testing/index.cjs +12 -34
- package/lib/testing/index.cjs.map +1 -1
- package/lib/testing/index.d.cts +2 -2
- package/lib/testing/index.d.cts.map +1 -1
- package/lib/testing/index.d.mts +1 -1
- package/lib/testing/index.d.mts.map +1 -1
- package/lib/testing/index.mjs +12 -34
- package/lib/testing/index.mjs.map +1 -1
- package/lib/transport.cjs +19 -8
- package/lib/transport.d.cts +102 -38
- package/lib/transport.d.cts.map +1 -1
- package/lib/transport.d.mts +102 -38
- package/lib/transport.d.mts.map +1 -1
- package/lib/transport.mjs +6 -7
- package/package.json +2 -2
- package/lib/async-context-6pdlnNLA.d.mts.map +0 -1
- package/lib/async-context-Dqk7pE-D.d.cts.map +0 -1
- package/lib/attribute-value-CjX9ZkLq.cjs +0 -172
- package/lib/attribute-value-CjX9ZkLq.cjs.map +0 -1
- package/lib/attribute-value-DMEA255r.mjs +0 -119
- package/lib/attribute-value-DMEA255r.mjs.map +0 -1
- package/lib/basic-execution-context-CeGuhMOz.mjs.map +0 -1
- package/lib/basic-execution-context-DSk5MNtc.cjs.map +0 -1
- package/lib/execution-context-token-BXUKB2hf.cjs +0 -112
- package/lib/execution-context-token-BXUKB2hf.cjs.map +0 -1
- package/lib/execution-context-token-CrXmTvk2.mjs +0 -77
- package/lib/execution-context-token-CrXmTvk2.mjs.map +0 -1
- package/lib/module-Bha7GER_.mjs.map +0 -1
- package/lib/module-DZewk_2r.cjs.map +0 -1
- package/lib/module-graph-DCP9MHG0.cjs.map +0 -1
- package/lib/module-graph-xvVEykFM.mjs.map +0 -1
- package/lib/module-metadata-C8S92seK.cjs +0 -95
- package/lib/module-metadata-C8S92seK.cjs.map +0 -1
- package/lib/module-metadata-k3RTt20x.mjs +0 -66
- package/lib/module-metadata-k3RTt20x.mjs.map +0 -1
package/lib/index.d.cts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* transport builds on. Nothing here knows about HTTP; that is
|
|
5
5
|
* `@navios/server`.
|
|
6
6
|
*/
|
|
7
|
-
import { a as ContextValue, i as ContextKey, n as ExecutionContext, o as PlainContextKey, r as HandlerInfo, s as createContextKey, t as AttributeMap } from "./execution-context-
|
|
8
|
-
import { AnyInjectableType, AsyncResolve, BoundInjectionToken, ClassType, ClassType as ClassType$1, ClassTypeWithInstance, Container, Container as Container$1, ContainerOptions, DIError, DIErrorCode, Factorable, FactorableWithArgs, Factory, FactoryContext, FactoryInjectionToken, FactoryOptions, IContainer, InferInput, InferOutput, InferOutput as InferOutput$1, Injectable, InjectableOptions, InjectableScope, InjectionToken, InjectionToken as InjectionToken$1, InjectionTokenOptions, InjectionTokenType, OnServiceDestroy, OnServiceInit, OptionalResolve, Provider, Provider as Provider$1, ProviderInfo, ProviderInput, RegisterFactoryOptions, RegisterInjectableOptions,
|
|
9
|
-
import { a as Interceptor, i as AttributeValue, n as Guard, o as InterceptorClass, r as GuardClass, t as ModuleOptions } from "./module-options-
|
|
10
|
-
import { _ as
|
|
11
|
-
import { i as ClassSchemaAttribute, n as AttributeFactory, r as ClassAttribute, t as AttributeApplication } from "./attribute-factory-
|
|
12
|
-
import { InspectOptions } from "util";
|
|
7
|
+
import { a as ContextValue, i as ContextKey, n as ExecutionContext, o as PlainContextKey, r as HandlerInfo, s as createContextKey, t as AttributeMap } from "./execution-context-BVSmLkYp.cjs";
|
|
8
|
+
import { AnyInjectableType, AsyncResolve, BoundInjectionToken, ClassType, ClassType as ClassType$1, ClassTypeWithInstance, Container, Container as Container$1, ContainerOptions, DIError, DIErrorCode, Factorable, FactorableWithArgs, Factory, FactoryContext, FactoryInjectionToken, FactoryOptions, IContainer, InferInput, InferOutput, InferOutput as InferOutput$1, Injectable, InjectableOptions, InjectableScope, InjectionToken, InjectionToken as InjectionToken$1, InjectionTokenOptions, InjectionTokenType, OnServiceDestroy, OnServiceInit, OptionalResolve, Provider, Provider as Provider$1, ProviderInfo, ProviderInput, RegisterFactoryOptions, RegisterInjectableOptions, ResolvedInstance, ScopedContainer, StandardSchemaIssue, StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1, SyncResolve, asyncInject, getInjectableToken, inject, optional, provide, registerFactory, registerInjectable, registerProvider } from "@navios/di";
|
|
9
|
+
import { a as Interceptor, i as AttributeValue, n as Guard, o as InterceptorClass, r as GuardClass, t as ModuleOptions } from "./module-options-DSRBri4J.cjs";
|
|
10
|
+
import { _ as LoggerOutput, b as LogLevel, c as TransportInstance, g as OptionsArgument, i as Transport, o as TransportFactory, t as currentContext, v as LoggerService, x as filterLogLevels, y as LOG_LEVELS } from "./async-context-RsWmy2Hi.cjs";
|
|
11
|
+
import { i as ClassSchemaAttribute, n as AttributeFactory, r as ClassAttribute, t as AttributeApplication } from "./attribute-factory-DqN4x5XM.cjs";
|
|
12
|
+
import { InspectOptions } from "node:util";
|
|
13
13
|
/**
|
|
14
14
|
* Schema for logger options.
|
|
15
15
|
*/
|
|
@@ -81,6 +81,8 @@ export declare class LoggerInstance implements LoggerService {
|
|
|
81
81
|
*/
|
|
82
82
|
fatal(message: any, context?: string): void;
|
|
83
83
|
fatal(message: any, ...optionalParams: [...any, string?]): void;
|
|
84
|
+
/** Writes to the output, the context last. `params` is the caller's own array. */
|
|
85
|
+
private forward;
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
88
|
* What a plugin can do. Everything but `transport()` and `container` belongs
|
|
@@ -177,7 +179,8 @@ interface ApplicationOptions {
|
|
|
177
179
|
/**
|
|
178
180
|
* What happens when a handler uses a service that is not a singleton through
|
|
179
181
|
* `ctx.use()` / `ctx.resolve()`, which needs a DI scope for the execution:
|
|
180
|
-
* nothing, a warning the first time, or an error.
|
|
182
|
+
* nothing, a warning the first time, or an error. A context key is the
|
|
183
|
+
* cheaper home for data of one execution.
|
|
181
184
|
* @default 'warn' outside production, 'allow' in production
|
|
182
185
|
*/
|
|
183
186
|
requestScopedServices?: 'allow' | 'warn' | 'forbid';
|
|
@@ -231,7 +234,6 @@ export declare class Application {
|
|
|
231
234
|
private initialised;
|
|
232
235
|
private initialisation;
|
|
233
236
|
private startup;
|
|
234
|
-
private closed;
|
|
235
237
|
private closing;
|
|
236
238
|
private tearingDown;
|
|
237
239
|
private signal;
|
|
@@ -263,6 +265,8 @@ export declare class Application {
|
|
|
263
265
|
* stays failed, because it is only partly built.
|
|
264
266
|
*/
|
|
265
267
|
init(): Promise<this>;
|
|
268
|
+
/** Whether `close()` was called, or a failed start-up took the application down. */
|
|
269
|
+
private get closed();
|
|
266
270
|
private assertOpen;
|
|
267
271
|
/**
|
|
268
272
|
* Rejects when the application has been closed, after that shutdown has
|
|
@@ -793,7 +797,7 @@ export declare class ConsoleLogger implements LoggerService {
|
|
|
793
797
|
*/
|
|
794
798
|
protected getCurrentRequestId(): string | undefined;
|
|
795
799
|
protected getTimestamp(): string;
|
|
796
|
-
protected printMessages(messages: unknown[], context?: string, logLevel?: LogLevel,
|
|
800
|
+
protected printMessages(messages: unknown[], context?: string, logLevel?: LogLevel, writeStreamType?: 'stdout' | 'stderr', errorStack?: unknown): void;
|
|
797
801
|
/** A message and the error logged with it share a line. */
|
|
798
802
|
private toJsonLines;
|
|
799
803
|
/** Logging must not fail the code that logs. */
|
|
@@ -834,5 +838,5 @@ export declare function Module(options?: ModuleOptions): <T extends ClassType$1>
|
|
|
834
838
|
* Registers a class as a module without decorator syntax.
|
|
835
839
|
*/
|
|
836
840
|
export declare function registerModule<T extends ClassType$1>(target: T, options?: ModuleOptions): T;
|
|
837
|
-
export { type AnyInjectableType, type ApplicationOptions, type AsyncResolve, type AttributeApplication, AttributeFactory, type AttributeMap, type AttributeValue, BoundInjectionToken, type ClassAttribute, type ClassSchemaAttribute, type ClassType, type ClassTypeWithInstance, type ConfigProviderOptions, type ConfigServiceInterface, type ConsoleLoggerOptions, Container, type ContainerOptions, type ContextKey, type ContextValue, DIError, DIErrorCode, type ExecutionContext, type Factorable, type FactorableWithArgs, Factory, type FactoryContext, FactoryInjectionToken, type FactoryOptions, type Guard, type GuardClass, type HandlerInfo, type IContainer, type InferInput, type InferOutput, Injectable, type InjectableOptions, InjectableScope, InjectionToken, type InjectionTokenOptions, type InjectionTokenType, type Interceptor, type InterceptorClass, LOG_LEVELS, type LogLevel, type LoggerOptions, LoggerOutput, type LoggerService, type ModuleOptions, type OnApplicationBootstrap, type OnApplicationShutdown, type OnModuleInit, type OnServiceDestroy, type OnServiceInit, type OptionalResolve, type Path, type PathValue, PlainContextKey, type PluginApi, type PluginDefinition, type PluginInstance, type Provider, type ProviderInfo, type ProviderInput, type RegisterFactoryOptions, type RegisterInjectableOptions, type
|
|
841
|
+
export { type AnyInjectableType, type ApplicationOptions, type AsyncResolve, type AttributeApplication, AttributeFactory, type AttributeMap, type AttributeValue, BoundInjectionToken, type ClassAttribute, type ClassSchemaAttribute, type ClassType, type ClassTypeWithInstance, type ConfigProviderOptions, type ConfigServiceInterface, type ConsoleLoggerOptions, Container, type ContainerOptions, type ContextKey, type ContextValue, DIError, DIErrorCode, type ExecutionContext, type Factorable, type FactorableWithArgs, Factory, type FactoryContext, FactoryInjectionToken, type FactoryOptions, type Guard, type GuardClass, type HandlerInfo, type IContainer, type InferInput, type InferOutput, Injectable, type InjectableOptions, InjectableScope, InjectionToken, type InjectionTokenOptions, type InjectionTokenType, type Interceptor, type InterceptorClass, LOG_LEVELS, type LogLevel, type LoggerOptions, LoggerOutput, type LoggerService, type ModuleOptions, type OnApplicationBootstrap, type OnApplicationShutdown, type OnModuleInit, type OnServiceDestroy, type OnServiceInit, type OptionalResolve, type Path, type PathValue, PlainContextKey, type PluginApi, type PluginDefinition, type PluginInstance, type Provider, type ProviderInfo, type ProviderInput, type RegisterFactoryOptions, type RegisterInjectableOptions, type ResolvedInstance, ScopedContainer, type ShutdownHooksOptions, type StandardSchemaIssue, type StandardSchemaV1, type SyncResolve, type Transport, type TransportFactory, type TransportInstance, type ValidatedConfigProviderOptions, asyncInject, createContextKey, currentContext, filterLogLevels, getInjectableToken, inject, optional, provide, registerFactory, registerInjectable, registerProvider };
|
|
838
842
|
//# sourceMappingURL=index.d.cts.map
|
package/lib/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["InjectionToken","Container","ClassType","Provider","Container","Container","ClassType","InjectionToken","StandardSchemaV1","InferOutput","InjectionToken","InjectionToken","ClassType"],"sources":["../src/logger/logger.mts","../src/plugins/plugin.mts","../src/application/application-options.mts","../src/application/shutdown-signals.mts","../src/application/application.mts","../src/application/lifecycle-hooks.mts","../src/config/config-path.mts","../src/config/config-service.mts","../src/config/env.mts","../src/config/env-config-provider.mts","../src/config/provide-config.mts","../src/execution/execution-context-token.mts","../src/guards/use-guards.mts","../src/interceptors/use-interceptors.mts","../src/logger/console-logger-options.mts","../src/logger/console-logger.mts","../src/modules/module.mts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["InjectionToken","Container","ClassType","Provider","Container","Container","ClassType","InjectionToken","StandardSchemaV1","InferOutput","InjectionToken","InjectionToken","ClassType"],"sources":["../src/logger/logger.mts","../src/plugins/plugin.mts","../src/application/application-options.mts","../src/application/shutdown-signals.mts","../src/application/application.mts","../src/application/lifecycle-hooks.mts","../src/config/config-path.mts","../src/config/config-service.mts","../src/config/env.mts","../src/config/env-config-provider.mts","../src/config/provide-config.mts","../src/execution/execution-context-token.mts","../src/guards/use-guards.mts","../src/interceptors/use-interceptors.mts","../src/logger/console-logger-options.mts","../src/logger/console-logger.mts","../src/modules/module.mts"],"mappings":";;;;;;;;;;;;;;;KAaY;EAAkB;;;;;;;;;;;;;qBAuBjB,QAAMA,iBAAA,qCAAA,iBAAA,eAAA;;;;;;;;;;;;;;;;;;;;qBAwBN,0BAA0B;YAC3B,eAAe;YAEf;EAEV,YAAY,SAAQ;;;;EAOpB,MAAM,cAAc,gBAAgB;EACpC,MAAM,iBAAiB;;;;EAYvB,IAAI,cAAc;EAClB,IAAI,iBAAiB;;;;EAQrB,KAAK,cAAc;EACnB,KAAK,iBAAiB;;;;EAQtB,MAAM,cAAc;EACpB,MAAM,iBAAiB;;;;EAQvB,QAAQ,cAAc;EACtB,QAAQ,iBAAiB;;;;EAQzB,MAAM,cAAc;EACpB,MAAM,iBAAiB;;UAMf;;;;;;;UCnHO;WACN,WAAWC;;;;;;WAMX,SAASA;;WAET,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ACA,YAAY;EACZ,YAAY,SAAS;EACrB,YAAY,iBAAiB,SAAS;;;;EAQtC;EACA,MAAM;EACN,MAAM,SAAS;EACf,MAAM,iBAAiB,SAAS;UAwBxB;;;;;EAeR,IAAI,cAAc;EAClB,IAAI,iBAAiB;;;;;EAarB,MAAM,cAAc;EACpB,MAAM,cAAc,gBAAgB;EACpC,MAAM,iBAAiB;;;;;EAkBvB,KAAK,cAAc;EACnB,KAAK,iBAAiB;;;;;EAatB,MAAM,cAAc;EACpB,MAAM,iBAAiB;;;;;EAavB,QAAQ,cAAc;EACtB,QAAQ,iBAAiB;;;;;EAazB,MAAM,cAAc;EACpB,MAAM,iBAAiB;;;;;EAavB,aAAa,QAAQ;;;;;EAQrB,WAAW;;;;EAOX;EAIA,eAAe,OAAO;;;;;YASZ;YAOA;YAIA,cACR,qBACA,kBACA,WAAU,UACV,uCACA;;UAwCM;;UAgBA;YAaE,YACR,kBACA;IACE;IACA,UAAU;IACV;IACA;IACA;IACA,QAAQ;;UA0CJ;;UAgBA;YAYE,UAAU;YAgBV,cAAc;YAUd,cACR,UAAU,UACV,kBACA,oBACA,2BACA,wBACA,uBACA;YA0BQ,aAAa;YAOb,iBAAiB,kBAAkB,UAAU;YA0B7C,SAAS,iBAAiB,UAAU;YAQpC,gBAAgB;YAOhB;YAUA,oBAAoB;YAKpB,qBAAiB;YA+BjB,kBAAkB,aAAa;UAejC;UAeA;UA+BA;UAIA;;;;;;wBCrpBM,OAAO,UAAS,iBACtB,UAAUC,aAAS,QAAU,GAAC,SAAW,0BAAwB;;;;wBAW3D,eAAe,UAAUA,aAAW,QAAQ,GAAG,UAAS,gBAAqB"}
|
package/lib/index.d.mts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* transport builds on. Nothing here knows about HTTP; that is
|
|
5
5
|
* `@navios/server`.
|
|
6
6
|
*/
|
|
7
|
-
import { AnyInjectableType, AsyncResolve, BoundInjectionToken, ClassType, ClassType as ClassType$1, ClassTypeWithInstance, Container, Container as Container$1, ContainerOptions, DIError, DIErrorCode, Factorable, FactorableWithArgs, Factory, FactoryContext, FactoryInjectionToken, FactoryOptions, IContainer, InferInput, InferOutput, InferOutput as InferOutput$1, Injectable, InjectableOptions, InjectableScope, InjectionToken, InjectionToken as InjectionToken$1, InjectionTokenOptions, InjectionTokenType, OnServiceDestroy, OnServiceInit, OptionalResolve, Provider, Provider as Provider$1, ProviderInfo, ProviderInput, RegisterFactoryOptions, RegisterInjectableOptions,
|
|
8
|
-
import { a as Interceptor, i as AttributeValue, n as Guard, o as InterceptorClass, r as GuardClass, t as ModuleOptions } from "./module-options-
|
|
9
|
-
import { _ as
|
|
10
|
-
import { i as ClassSchemaAttribute, n as AttributeFactory, r as ClassAttribute, t as AttributeApplication } from "./attribute-factory-
|
|
11
|
-
import { a as ContextValue, i as ContextKey, n as ExecutionContext, o as PlainContextKey, r as HandlerInfo, s as createContextKey, t as AttributeMap } from "./execution-context-
|
|
12
|
-
import { InspectOptions } from "util";
|
|
7
|
+
import { AnyInjectableType, AsyncResolve, BoundInjectionToken, ClassType, ClassType as ClassType$1, ClassTypeWithInstance, Container, Container as Container$1, ContainerOptions, DIError, DIErrorCode, Factorable, FactorableWithArgs, Factory, FactoryContext, FactoryInjectionToken, FactoryOptions, IContainer, InferInput, InferOutput, InferOutput as InferOutput$1, Injectable, InjectableOptions, InjectableScope, InjectionToken, InjectionToken as InjectionToken$1, InjectionTokenOptions, InjectionTokenType, OnServiceDestroy, OnServiceInit, OptionalResolve, Provider, Provider as Provider$1, ProviderInfo, ProviderInput, RegisterFactoryOptions, RegisterInjectableOptions, ResolvedInstance, ScopedContainer, StandardSchemaIssue, StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1, SyncResolve, asyncInject, getInjectableToken, inject, optional, provide, registerFactory, registerInjectable, registerProvider } from "@navios/di";
|
|
8
|
+
import { a as Interceptor, i as AttributeValue, n as Guard, o as InterceptorClass, r as GuardClass, t as ModuleOptions } from "./module-options-CSqQUSTm.mjs";
|
|
9
|
+
import { _ as LoggerOutput, b as LogLevel, c as TransportInstance, g as OptionsArgument, i as Transport, o as TransportFactory, t as currentContext, v as LoggerService, x as filterLogLevels, y as LOG_LEVELS } from "./async-context-BAdt7bno.mjs";
|
|
10
|
+
import { i as ClassSchemaAttribute, n as AttributeFactory, r as ClassAttribute, t as AttributeApplication } from "./attribute-factory-BW1kgBqf.mjs";
|
|
11
|
+
import { a as ContextValue, i as ContextKey, n as ExecutionContext, o as PlainContextKey, r as HandlerInfo, s as createContextKey, t as AttributeMap } from "./execution-context-C5F9rojO.mjs";
|
|
12
|
+
import { InspectOptions } from "node:util";
|
|
13
13
|
/**
|
|
14
14
|
* Schema for logger options.
|
|
15
15
|
*/
|
|
@@ -81,6 +81,8 @@ export declare class LoggerInstance implements LoggerService {
|
|
|
81
81
|
*/
|
|
82
82
|
fatal(message: any, context?: string): void;
|
|
83
83
|
fatal(message: any, ...optionalParams: [...any, string?]): void;
|
|
84
|
+
/** Writes to the output, the context last. `params` is the caller's own array. */
|
|
85
|
+
private forward;
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
88
|
* What a plugin can do. Everything but `transport()` and `container` belongs
|
|
@@ -177,7 +179,8 @@ interface ApplicationOptions {
|
|
|
177
179
|
/**
|
|
178
180
|
* What happens when a handler uses a service that is not a singleton through
|
|
179
181
|
* `ctx.use()` / `ctx.resolve()`, which needs a DI scope for the execution:
|
|
180
|
-
* nothing, a warning the first time, or an error.
|
|
182
|
+
* nothing, a warning the first time, or an error. A context key is the
|
|
183
|
+
* cheaper home for data of one execution.
|
|
181
184
|
* @default 'warn' outside production, 'allow' in production
|
|
182
185
|
*/
|
|
183
186
|
requestScopedServices?: 'allow' | 'warn' | 'forbid';
|
|
@@ -231,7 +234,6 @@ export declare class Application {
|
|
|
231
234
|
private initialised;
|
|
232
235
|
private initialisation;
|
|
233
236
|
private startup;
|
|
234
|
-
private closed;
|
|
235
237
|
private closing;
|
|
236
238
|
private tearingDown;
|
|
237
239
|
private signal;
|
|
@@ -263,6 +265,8 @@ export declare class Application {
|
|
|
263
265
|
* stays failed, because it is only partly built.
|
|
264
266
|
*/
|
|
265
267
|
init(): Promise<this>;
|
|
268
|
+
/** Whether `close()` was called, or a failed start-up took the application down. */
|
|
269
|
+
private get closed();
|
|
266
270
|
private assertOpen;
|
|
267
271
|
/**
|
|
268
272
|
* Rejects when the application has been closed, after that shutdown has
|
|
@@ -793,7 +797,7 @@ export declare class ConsoleLogger implements LoggerService {
|
|
|
793
797
|
*/
|
|
794
798
|
protected getCurrentRequestId(): string | undefined;
|
|
795
799
|
protected getTimestamp(): string;
|
|
796
|
-
protected printMessages(messages: unknown[], context?: string, logLevel?: LogLevel,
|
|
800
|
+
protected printMessages(messages: unknown[], context?: string, logLevel?: LogLevel, writeStreamType?: 'stdout' | 'stderr', errorStack?: unknown): void;
|
|
797
801
|
/** A message and the error logged with it share a line. */
|
|
798
802
|
private toJsonLines;
|
|
799
803
|
/** Logging must not fail the code that logs. */
|
|
@@ -834,5 +838,5 @@ export declare function Module(options?: ModuleOptions): <T extends ClassType$1>
|
|
|
834
838
|
* Registers a class as a module without decorator syntax.
|
|
835
839
|
*/
|
|
836
840
|
export declare function registerModule<T extends ClassType$1>(target: T, options?: ModuleOptions): T;
|
|
837
|
-
export { type AnyInjectableType, type ApplicationOptions, type AsyncResolve, type AttributeApplication, AttributeFactory, type AttributeMap, type AttributeValue, BoundInjectionToken, type ClassAttribute, type ClassSchemaAttribute, type ClassType, type ClassTypeWithInstance, type ConfigProviderOptions, type ConfigServiceInterface, type ConsoleLoggerOptions, Container, type ContainerOptions, type ContextKey, type ContextValue, DIError, DIErrorCode, type ExecutionContext, type Factorable, type FactorableWithArgs, Factory, type FactoryContext, FactoryInjectionToken, type FactoryOptions, type Guard, type GuardClass, type HandlerInfo, type IContainer, type InferInput, type InferOutput, Injectable, type InjectableOptions, InjectableScope, InjectionToken, type InjectionTokenOptions, type InjectionTokenType, type Interceptor, type InterceptorClass, LOG_LEVELS, type LogLevel, type LoggerOptions, LoggerOutput, type LoggerService, type ModuleOptions, type OnApplicationBootstrap, type OnApplicationShutdown, type OnModuleInit, type OnServiceDestroy, type OnServiceInit, type OptionalResolve, type Path, type PathValue, PlainContextKey, type PluginApi, type PluginDefinition, type PluginInstance, type Provider, type ProviderInfo, type ProviderInput, type RegisterFactoryOptions, type RegisterInjectableOptions, type
|
|
841
|
+
export { type AnyInjectableType, type ApplicationOptions, type AsyncResolve, type AttributeApplication, AttributeFactory, type AttributeMap, type AttributeValue, BoundInjectionToken, type ClassAttribute, type ClassSchemaAttribute, type ClassType, type ClassTypeWithInstance, type ConfigProviderOptions, type ConfigServiceInterface, type ConsoleLoggerOptions, Container, type ContainerOptions, type ContextKey, type ContextValue, DIError, DIErrorCode, type ExecutionContext, type Factorable, type FactorableWithArgs, Factory, type FactoryContext, FactoryInjectionToken, type FactoryOptions, type Guard, type GuardClass, type HandlerInfo, type IContainer, type InferInput, type InferOutput, Injectable, type InjectableOptions, InjectableScope, InjectionToken, type InjectionTokenOptions, type InjectionTokenType, type Interceptor, type InterceptorClass, LOG_LEVELS, type LogLevel, type LoggerOptions, LoggerOutput, type LoggerService, type ModuleOptions, type OnApplicationBootstrap, type OnApplicationShutdown, type OnModuleInit, type OnServiceDestroy, type OnServiceInit, type OptionalResolve, type Path, type PathValue, PlainContextKey, type PluginApi, type PluginDefinition, type PluginInstance, type Provider, type ProviderInfo, type ProviderInput, type RegisterFactoryOptions, type RegisterInjectableOptions, type ResolvedInstance, ScopedContainer, type ShutdownHooksOptions, type StandardSchemaIssue, type StandardSchemaV1, type SyncResolve, type Transport, type TransportFactory, type TransportInstance, type ValidatedConfigProviderOptions, asyncInject, createContextKey, currentContext, filterLogLevels, getInjectableToken, inject, optional, provide, registerFactory, registerInjectable, registerProvider };
|
|
838
842
|
//# sourceMappingURL=index.d.mts.map
|
package/lib/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["InjectionToken","Container","ClassType","Provider","Container","Container","ClassType","InjectionToken","StandardSchemaV1","InferOutput","InjectionToken","InjectionToken","ClassType"],"sources":["../src/logger/logger.mts","../src/plugins/plugin.mts","../src/application/application-options.mts","../src/application/shutdown-signals.mts","../src/application/application.mts","../src/application/lifecycle-hooks.mts","../src/config/config-path.mts","../src/config/config-service.mts","../src/config/env.mts","../src/config/env-config-provider.mts","../src/config/provide-config.mts","../src/execution/execution-context-token.mts","../src/guards/use-guards.mts","../src/interceptors/use-interceptors.mts","../src/logger/console-logger-options.mts","../src/logger/console-logger.mts","../src/modules/module.mts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["InjectionToken","Container","ClassType","Provider","Container","Container","ClassType","InjectionToken","StandardSchemaV1","InferOutput","InjectionToken","InjectionToken","ClassType"],"sources":["../src/logger/logger.mts","../src/plugins/plugin.mts","../src/application/application-options.mts","../src/application/shutdown-signals.mts","../src/application/application.mts","../src/application/lifecycle-hooks.mts","../src/config/config-path.mts","../src/config/config-service.mts","../src/config/env.mts","../src/config/env-config-provider.mts","../src/config/provide-config.mts","../src/execution/execution-context-token.mts","../src/guards/use-guards.mts","../src/interceptors/use-interceptors.mts","../src/logger/console-logger-options.mts","../src/logger/console-logger.mts","../src/modules/module.mts"],"mappings":";;;;;;;;;;;;;;;KAaY;EAAkB;;;;;;;;;;;;;qBAuBjB,QAAMA,iBAAA,qCAAA,iBAAA,eAAA;;;;;;;;;;;;;;;;;;;;qBAwBN,0BAA0B;YAC3B,eAAe;YAEf;EAEV,YAAY,SAAQ;;;;EAOpB,MAAM,cAAc,gBAAgB;EACpC,MAAM,iBAAiB;;;;EAYvB,IAAI,cAAc;EAClB,IAAI,iBAAiB;;;;EAQrB,KAAK,cAAc;EACnB,KAAK,iBAAiB;;;;EAQtB,MAAM,cAAc;EACpB,MAAM,iBAAiB;;;;EAQvB,QAAQ,cAAc;EACtB,QAAQ,iBAAiB;;;;EAQzB,M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s";
|
|
2
2
|
import { BoundInjectionToken, Container, Container as Container$1, DIError, DIErrorCode, Factory, FactoryInjectionToken, Injectable, InjectableScope, InjectableScope as InjectableScope$1, InjectionToken, InjectionToken as InjectionToken$1, ScopedContainer, asyncInject, getInjectableToken, inject, inject as inject$1, optional, provide, provide as provide$1, registerFactory, registerInjectable, registerInjectable as registerInjectable$1, registerProvider, registerProvider as registerProvider$1 } from "@navios/di";
|
|
3
|
-
import { constructedInstances, hasOwnProvider, setErrorReporter, setProvider } from "@navios/di/internal";
|
|
4
|
-
import {
|
|
5
|
-
import { inspect } from "util";
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as assertProviders } from "./module-metadata-k3RTt20x.mjs";
|
|
8
|
-
import { isDeepStrictEqual } from "node:util";
|
|
3
|
+
import { constructedInstances, hasOwnProvider, isSameProvider, setErrorReporter, setProvider } from "@navios/di/internal";
|
|
4
|
+
import { i as createContextHost, n as buildModuleGraph, o as currentContext, s as enableAsyncContext, t as ExecutionContextToken } from "./execution-context-token-Cb3M3Ao0.mjs";
|
|
5
|
+
import { inspect, isDeepStrictEqual } from "node:util";
|
|
6
|
+
import { n as settledWithin, t as MAX_DELAY_MS } from "./settled-within-Bc2pj8WB.mjs";
|
|
9
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
10
|
-
import {
|
|
8
|
+
import { a as AttributeFactory, i as UseGuards, n as registerModule, o as validateNow, r as UseInterceptors, t as Module } from "./module-zPXwR2qp.mjs";
|
|
11
9
|
import { env } from "node:process";
|
|
12
|
-
import { a as AttributeFactory, i as UseGuards, n as registerModule, r as UseInterceptors, t as Module } from "./module-Bha7GER_.mjs";
|
|
13
10
|
// src/logger/cli-colors.mts
|
|
14
11
|
const isColorAllowed = () => !process.env.NO_COLOR;
|
|
15
12
|
const colorIfAllowed = (colorFn) => (text) => isColorAllowed() ? colorFn(text) : text;
|
|
@@ -34,9 +31,6 @@ const LOG_LEVELS = [
|
|
|
34
31
|
"error",
|
|
35
32
|
"fatal"
|
|
36
33
|
];
|
|
37
|
-
/**
|
|
38
|
-
* @publicApi
|
|
39
|
-
*/
|
|
40
34
|
function isLogLevel(maybeLogLevel) {
|
|
41
35
|
return LOG_LEVELS.includes(maybeLogLevel);
|
|
42
36
|
}
|
|
@@ -224,7 +218,7 @@ var ConsoleLogger = class {
|
|
|
224
218
|
error(message, ...optionalParams) {
|
|
225
219
|
if (!this.isLevelEnabled("error")) return;
|
|
226
220
|
const { messages, context, stack } = this.getContextAndStackAndMessagesToPrint([message, ...optionalParams]);
|
|
227
|
-
this.printMessages(messages, context, "error",
|
|
221
|
+
this.printMessages(messages, context, "error", "stderr", stack);
|
|
228
222
|
this.printStackTrace(stack);
|
|
229
223
|
}
|
|
230
224
|
warn(message, ...optionalParams) {
|
|
@@ -281,15 +275,15 @@ var ConsoleLogger = class {
|
|
|
281
275
|
getTimestamp() {
|
|
282
276
|
return dateTimeFormatter.format(Date.now());
|
|
283
277
|
}
|
|
284
|
-
printMessages(messages, context = "", logLevel = "log",
|
|
285
|
-
const
|
|
278
|
+
printMessages(messages, context = "", logLevel = "log", writeStreamType, errorStack) {
|
|
279
|
+
const requestId = this.getCurrentRequestId();
|
|
286
280
|
if (this.options.json) {
|
|
287
281
|
for (const line of this.toJsonLines(messages)) this.guarded(() => this.printAsJson(line.message, {
|
|
288
282
|
context,
|
|
289
283
|
logLevel,
|
|
290
284
|
writeStreamType,
|
|
291
285
|
errorStack,
|
|
292
|
-
requestId
|
|
286
|
+
requestId,
|
|
293
287
|
error: line.error
|
|
294
288
|
}));
|
|
295
289
|
return;
|
|
@@ -299,7 +293,7 @@ var ConsoleLogger = class {
|
|
|
299
293
|
const contextMessage = this.formatContext(context);
|
|
300
294
|
const timestampDiff = this.updateAndGetTimestampDiff();
|
|
301
295
|
const formattedLogLevel = logLevel.toUpperCase().padStart(7, " ");
|
|
302
|
-
const formattedMessage = this.formatMessage(logLevel, message, pidMessage, formattedLogLevel, contextMessage, timestampDiff,
|
|
296
|
+
const formattedMessage = this.formatMessage(logLevel, message, pidMessage, formattedLogLevel, contextMessage, timestampDiff, requestId);
|
|
303
297
|
process[writeStreamType ?? "stdout"].write(formattedMessage);
|
|
304
298
|
});
|
|
305
299
|
}
|
|
@@ -337,7 +331,7 @@ var ConsoleLogger = class {
|
|
|
337
331
|
};
|
|
338
332
|
if (options.context) logObject.context = options.context;
|
|
339
333
|
if (options.errorStack) logObject.stack = options.errorStack;
|
|
340
|
-
if (
|
|
334
|
+
if (options.requestId) logObject.requestId = options.requestId;
|
|
341
335
|
if (options.error) logObject.error = toJsonError(options.error, (value) => this.encodable(value));
|
|
342
336
|
const formattedMessage = !this.options.colors && this.inspectOptions.compact === true ? this.stringify(logObject) : inspect(logObject, this.inspectOptions);
|
|
343
337
|
process[options.writeStreamType ?? "stdout"].write(`${formattedMessage}\n`);
|
|
@@ -399,7 +393,7 @@ var ConsoleLogger = class {
|
|
|
399
393
|
return `${parts.length > 0 ? parts.join(" ") + " " : ""}${output}${timestampDiff}\n`;
|
|
400
394
|
}
|
|
401
395
|
getRequestId(requestId) {
|
|
402
|
-
if (
|
|
396
|
+
if (requestId) return `(${this.colorize(requestId, "log")}) `;
|
|
403
397
|
return "";
|
|
404
398
|
}
|
|
405
399
|
stringifyMessage(message, logLevel) {
|
|
@@ -544,7 +538,7 @@ var PendingOutput = class {
|
|
|
544
538
|
/** `settleNow` settles for the output that can be had at once. */
|
|
545
539
|
constructor(settleNow) {
|
|
546
540
|
this.settleNow = settleNow;
|
|
547
|
-
if (unsettled.size === 0) process.on("exit", settleAll);
|
|
541
|
+
if (unsettled.size === 0 && hasExitEvent) process.on("exit", settleAll);
|
|
548
542
|
unsettled.add(this);
|
|
549
543
|
}
|
|
550
544
|
log(...args) {
|
|
@@ -571,7 +565,7 @@ var PendingOutput = class {
|
|
|
571
565
|
/** Writes what is held, and everything from here on, to `output`. */
|
|
572
566
|
settle(output) {
|
|
573
567
|
this.output = output;
|
|
574
|
-
if (unsettled.delete(this) && unsettled.size === 0) process.off("exit", settleAll);
|
|
568
|
+
if (unsettled.delete(this) && unsettled.size === 0 && hasExitEvent) process.off("exit", settleAll);
|
|
575
569
|
for (const [level, args] of this.held.splice(0)) try {
|
|
576
570
|
this.write(level, args);
|
|
577
571
|
} catch {
|
|
@@ -587,6 +581,12 @@ var PendingOutput = class {
|
|
|
587
581
|
this.output[level]?.(message, ...rest);
|
|
588
582
|
}
|
|
589
583
|
};
|
|
584
|
+
/**
|
|
585
|
+
* Whether the runtime tells when the process ends. A Worker with a
|
|
586
|
+
* compatibility date before 2025-09-15 has a `process` without `on()`, and no
|
|
587
|
+
* exit to wait for.
|
|
588
|
+
*/
|
|
589
|
+
const hasExitEvent = typeof process.on === "function";
|
|
590
590
|
/** Those whose messages would be lost if the process ended now. */
|
|
591
591
|
const unsettled = /* @__PURE__ */ new Set();
|
|
592
592
|
function settleAll() {
|
|
@@ -646,28 +646,28 @@ var LoggerInstance = class {
|
|
|
646
646
|
this.context = config?.context;
|
|
647
647
|
}
|
|
648
648
|
error(message, ...optionalParams) {
|
|
649
|
-
|
|
650
|
-
this.
|
|
649
|
+
if (this.context && optionalParams.length === 0) optionalParams.push(void 0);
|
|
650
|
+
this.forward("error", message, optionalParams);
|
|
651
651
|
}
|
|
652
652
|
log(message, ...optionalParams) {
|
|
653
|
-
|
|
654
|
-
this.localInstance?.log(message, ...optionalParams);
|
|
653
|
+
this.forward("log", message, optionalParams);
|
|
655
654
|
}
|
|
656
655
|
warn(message, ...optionalParams) {
|
|
657
|
-
|
|
658
|
-
this.localInstance?.warn(message, ...optionalParams);
|
|
656
|
+
this.forward("warn", message, optionalParams);
|
|
659
657
|
}
|
|
660
658
|
debug(message, ...optionalParams) {
|
|
661
|
-
|
|
662
|
-
this.localInstance?.debug?.(message, ...optionalParams);
|
|
659
|
+
this.forward("debug", message, optionalParams);
|
|
663
660
|
}
|
|
664
661
|
verbose(message, ...optionalParams) {
|
|
665
|
-
|
|
666
|
-
this.localInstance?.verbose?.(message, ...optionalParams);
|
|
662
|
+
this.forward("verbose", message, optionalParams);
|
|
667
663
|
}
|
|
668
664
|
fatal(message, ...optionalParams) {
|
|
669
|
-
|
|
670
|
-
|
|
665
|
+
this.forward("fatal", message, optionalParams);
|
|
666
|
+
}
|
|
667
|
+
/** Writes to the output, the context last. `params` is the caller's own array. */
|
|
668
|
+
forward(level, message, params) {
|
|
669
|
+
if (this.context) params.push(this.context);
|
|
670
|
+
this.localInstance[level]?.(message, ...params);
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
673
|
registerInjectable$1(LoggerInstance, {
|
|
@@ -738,7 +738,9 @@ function runStep(owner, phase, fn) {
|
|
|
738
738
|
return await fn();
|
|
739
739
|
} finally {
|
|
740
740
|
step.running = false;
|
|
741
|
-
if (--running === 0)
|
|
741
|
+
if (--running === 0) try {
|
|
742
|
+
storage.disable();
|
|
743
|
+
} catch {}
|
|
742
744
|
}
|
|
743
745
|
});
|
|
744
746
|
}
|
|
@@ -752,22 +754,6 @@ function outsideSteps(fn) {
|
|
|
752
754
|
return storage.exit(fn);
|
|
753
755
|
}
|
|
754
756
|
// src/application/module-providers.mts
|
|
755
|
-
/** What a provider consists of. Its type does not show it. */
|
|
756
|
-
function parts(provider) {
|
|
757
|
-
const { record } = provider;
|
|
758
|
-
return [
|
|
759
|
-
record.kind,
|
|
760
|
-
record.scope,
|
|
761
|
-
record.target,
|
|
762
|
-
record.fn,
|
|
763
|
-
record.value
|
|
764
|
-
];
|
|
765
|
-
}
|
|
766
|
-
/** Whether two providers of one token come to the same. */
|
|
767
|
-
function isSame(left, right) {
|
|
768
|
-
const other = parts(right);
|
|
769
|
-
return parts(left).every((part, index) => Object.is(part, other[index]));
|
|
770
|
-
}
|
|
771
757
|
function importsIndirectly(importer, imported) {
|
|
772
758
|
const seen = /* @__PURE__ */ new Set();
|
|
773
759
|
const pending = [imported];
|
|
@@ -782,12 +768,12 @@ function importsIndirectly(importer, imported) {
|
|
|
782
768
|
}
|
|
783
769
|
function choose(candidates) {
|
|
784
770
|
const [first] = candidates;
|
|
785
|
-
if (candidates.filter(({ provider }) => !
|
|
771
|
+
if (candidates.filter(({ provider }) => !isSameProvider(provider, first.provider)).length === 0) return {
|
|
786
772
|
module: first.node.module,
|
|
787
773
|
provider: first.provider
|
|
788
774
|
};
|
|
789
775
|
const [top, ...rest] = candidates.filter(({ node }) => !candidates.some((other) => other.node !== node && importsIndirectly(other.node, node)));
|
|
790
|
-
const rival = rest.find(({ provider }) => !
|
|
776
|
+
const rival = rest.find(({ provider }) => !isSameProvider(provider, top.provider));
|
|
791
777
|
return {
|
|
792
778
|
module: top.node.module,
|
|
793
779
|
provider: top.provider,
|
|
@@ -824,28 +810,6 @@ function moduleProviders(graph, isOfApplication) {
|
|
|
824
810
|
}
|
|
825
811
|
return chosen;
|
|
826
812
|
}
|
|
827
|
-
// src/application/settled-within.mts
|
|
828
|
-
/** The longest delay a timer takes. */
|
|
829
|
-
const MAX_DELAY_MS = 2 ** 31 - 1;
|
|
830
|
-
/**
|
|
831
|
-
* Whether `work` settles within `ms`. Rejects when it rejects in time; a later
|
|
832
|
-
* rejection is dropped.
|
|
833
|
-
*/
|
|
834
|
-
async function settledWithin(work, ms) {
|
|
835
|
-
if (ms > MAX_DELAY_MS) {
|
|
836
|
-
await work;
|
|
837
|
-
return true;
|
|
838
|
-
}
|
|
839
|
-
let timer;
|
|
840
|
-
const timeout = new Promise((resolve) => {
|
|
841
|
-
timer = setTimeout(resolve, ms, false);
|
|
842
|
-
});
|
|
843
|
-
try {
|
|
844
|
-
return await Promise.race([work.then(() => true), timeout]);
|
|
845
|
-
} finally {
|
|
846
|
-
clearTimeout(timer);
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
813
|
// src/application/shutdown-signals.mts
|
|
850
814
|
const registries = /* @__PURE__ */ new Map();
|
|
851
815
|
/** Closes `application` when the process receives one of the signals. */
|
|
@@ -895,9 +859,36 @@ async function receive(signal, registry) {
|
|
|
895
859
|
}));
|
|
896
860
|
if (applications.every(([, registration]) => registration.exit) && process.listenerCount(signal) === 0) endProcess(signal);
|
|
897
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* The numbers that are the same on every platform, for a runtime that has no
|
|
864
|
+
* `node:os` to ask.
|
|
865
|
+
*/
|
|
866
|
+
const SIGNAL_NUMBERS = {
|
|
867
|
+
SIGHUP: 1,
|
|
868
|
+
SIGINT: 2,
|
|
869
|
+
SIGQUIT: 3,
|
|
870
|
+
SIGABRT: 6,
|
|
871
|
+
SIGKILL: 9,
|
|
872
|
+
SIGALRM: 14,
|
|
873
|
+
SIGTERM: 15
|
|
874
|
+
};
|
|
875
|
+
/**
|
|
876
|
+
* The number of a signal. `node:os` is asked for when a signal has arrived
|
|
877
|
+
* and not imported: workerd has no such module before the compatibility date
|
|
878
|
+
* 2025-09-15, and a Worker that never gets a signal must still load.
|
|
879
|
+
*/
|
|
880
|
+
function signalNumber(signal) {
|
|
881
|
+
let numbers;
|
|
882
|
+
try {
|
|
883
|
+
numbers = process.getBuiltinModule?.("node:os")?.constants.signals;
|
|
884
|
+
} catch {}
|
|
885
|
+
return numbers?.[signal] ?? SIGNAL_NUMBERS[signal];
|
|
886
|
+
}
|
|
898
887
|
function endProcess(signal) {
|
|
899
|
-
if (process.pid === 1)
|
|
900
|
-
|
|
888
|
+
if (process.pid === 1) {
|
|
889
|
+
const number = signalNumber(signal);
|
|
890
|
+
process.exit(number === void 0 ? 1 : 128 + number);
|
|
891
|
+
} else process.kill(process.pid, signal);
|
|
901
892
|
}
|
|
902
893
|
// src/application/application.mts
|
|
903
894
|
const noopLogger = {
|
|
@@ -965,7 +956,6 @@ var Application = class {
|
|
|
965
956
|
initialised = false;
|
|
966
957
|
initialisation = null;
|
|
967
958
|
startup = null;
|
|
968
|
-
closed = false;
|
|
969
959
|
closing = null;
|
|
970
960
|
tearingDown = null;
|
|
971
961
|
signal;
|
|
@@ -991,7 +981,6 @@ var Application = class {
|
|
|
991
981
|
this.slots.push({
|
|
992
982
|
instance,
|
|
993
983
|
transport: null,
|
|
994
|
-
started: false,
|
|
995
984
|
stopped: false
|
|
996
985
|
});
|
|
997
986
|
}
|
|
@@ -1063,6 +1052,10 @@ var Application = class {
|
|
|
1063
1052
|
this.initialisation ??= this.initialise();
|
|
1064
1053
|
return this.initialisation.then(() => this);
|
|
1065
1054
|
}
|
|
1055
|
+
/** Whether `close()` was called, or a failed start-up took the application down. */
|
|
1056
|
+
get closed() {
|
|
1057
|
+
return this.closing !== null || this.tearingDown !== null;
|
|
1058
|
+
}
|
|
1066
1059
|
assertOpen() {
|
|
1067
1060
|
if (this.closed) throw closedError();
|
|
1068
1061
|
}
|
|
@@ -1279,10 +1272,7 @@ var Application = class {
|
|
|
1279
1272
|
}
|
|
1280
1273
|
async startTransports() {
|
|
1281
1274
|
try {
|
|
1282
|
-
for (const slot of this.slots)
|
|
1283
|
-
slot.started = true;
|
|
1284
|
-
await this.startTransport(slot);
|
|
1285
|
-
}
|
|
1275
|
+
for (const slot of this.slots) await this.startTransport(slot);
|
|
1286
1276
|
this.assertNotTornDown();
|
|
1287
1277
|
} catch (error) {
|
|
1288
1278
|
await this.tearDownFailed();
|
|
@@ -1335,7 +1325,6 @@ var Application = class {
|
|
|
1335
1325
|
if (this.closing === null) {
|
|
1336
1326
|
this.signal ??= signal;
|
|
1337
1327
|
this.closing = this.shutdown();
|
|
1338
|
-
stopListening(this, this.closing);
|
|
1339
1328
|
}
|
|
1340
1329
|
if (phase !== null) {
|
|
1341
1330
|
this.closing.catch((error) => this.report("Error closing the application", error));
|
|
@@ -1349,14 +1338,12 @@ var Application = class {
|
|
|
1349
1338
|
return Math.min(shutdownTimeout, MAX_DELAY_MS - 6e4);
|
|
1350
1339
|
}
|
|
1351
1340
|
async shutdown() {
|
|
1352
|
-
this.closed = true;
|
|
1353
1341
|
for (const [call, pending] of [["init()", this.initialisation], ["start()", this.startup]]) if (pending !== null) await this.shutdownStep(call, this.shutdownTimeout, () => pending.catch(ignore));
|
|
1354
1342
|
await this.teardown(this.shutdownTimeout);
|
|
1355
1343
|
}
|
|
1356
1344
|
/** Takes down whatever was built so far, once. */
|
|
1357
1345
|
teardown(transportTimeout) {
|
|
1358
1346
|
if (this.tearingDown === null) {
|
|
1359
|
-
this.closed = true;
|
|
1360
1347
|
this.tearingDown = this.takeDown(transportTimeout);
|
|
1361
1348
|
stopListening(this, this.tearingDown);
|
|
1362
1349
|
}
|
|
@@ -1372,7 +1359,8 @@ var Application = class {
|
|
|
1372
1359
|
await this.shutdownStep(label, shutdownTimeout, () => instance.onApplicationShutdown(this.signal));
|
|
1373
1360
|
}
|
|
1374
1361
|
for (const { plugin, run } of this.shutdownHooks.reverse()) await this.shutdownStep(`onShutdown of plugin ${plugin}`, shutdownTimeout, () => run(this.signal));
|
|
1375
|
-
|
|
1362
|
+
const disposal = runStep(this, "shutdown", () => container.dispose());
|
|
1363
|
+
if (!await settledWithin(disposal, shutdownTimeout)) this.reportTimeout("disposal of the container", shutdownTimeout);
|
|
1376
1364
|
} finally {
|
|
1377
1365
|
backing.delete(container);
|
|
1378
1366
|
}
|
|
@@ -1607,11 +1595,7 @@ function describeIssue({ path = [], message }, loaded) {
|
|
|
1607
1595
|
function checked(name, schema, loaded) {
|
|
1608
1596
|
let config = loaded;
|
|
1609
1597
|
if (schema) {
|
|
1610
|
-
const result = schema[
|
|
1611
|
-
if (result instanceof Promise) {
|
|
1612
|
-
result.catch(() => {});
|
|
1613
|
-
throw new Error(`[Navios] The schema of the configuration ${name} must validate synchronously.`);
|
|
1614
|
-
}
|
|
1598
|
+
const result = validateNow(schema, loaded, `[Navios] The schema of the configuration ${name} must validate synchronously.`);
|
|
1615
1599
|
if (result.issues) throw new Error(`[Navios] Invalid configuration ${name}: ` + result.issues.map((issue) => describeIssue(issue, loaded)).join("; "));
|
|
1616
1600
|
config = result.value;
|
|
1617
1601
|
}
|
|
@@ -1680,6 +1664,6 @@ function definePlugin(definition) {
|
|
|
1680
1664
|
options: options ?? {}
|
|
1681
1665
|
});
|
|
1682
1666
|
}
|
|
1683
|
-
export { Application, AttributeFactory, BoundInjectionToken, ConfigService, ConsoleLogger, Container, DIError, DIErrorCode, EnvConfigProvider, ExecutionContextToken, Factory, FactoryInjectionToken, Injectable, InjectableScope, InjectionToken, LOG_LEVELS, Logger, LoggerInstance, LoggerOutput, Module, PlainContextKey, ScopedContainer, UseGuards, UseInterceptors, asyncInject, createApplication, createContextKey, currentContext, definePlugin, envInt, envString, filterLogLevels, getInjectableToken, inject,
|
|
1667
|
+
export { Application, AttributeFactory, BoundInjectionToken, ConfigService, ConsoleLogger, Container, DIError, DIErrorCode, EnvConfigProvider, ExecutionContextToken, Factory, FactoryInjectionToken, Injectable, InjectableScope, InjectionToken, LOG_LEVELS, Logger, LoggerInstance, LoggerOutput, Module, PlainContextKey, ScopedContainer, UseGuards, UseInterceptors, asyncInject, createApplication, createContextKey, currentContext, definePlugin, envInt, envString, filterLogLevels, getInjectableToken, inject, optional, provide, provideConfig, registerFactory, registerInjectable, registerModule, registerProvider };
|
|
1684
1668
|
|
|
1685
1669
|
//# sourceMappingURL=index.mjs.map
|