@openapi-typescript-infra/service 6.6.2 → 6.7.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/build/bootstrap.d.ts +4 -4
- package/build/express-app/app.d.ts +1 -2
- package/build/telemetry/index.d.ts +1 -1
- package/package.json +16 -16
package/build/bootstrap.d.ts
CHANGED
|
@@ -13,18 +13,18 @@ interface BootstrapArguments {
|
|
|
13
13
|
export declare function bootstrap<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>, RLocals extends RequestLocals = RequestLocals>(argv?: BootstrapArguments): Promise<{
|
|
14
14
|
app: import("./types.js").ServiceExpress<SLocals>;
|
|
15
15
|
codepath: "build" | "src" | "dist" | undefined;
|
|
16
|
-
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse
|
|
16
|
+
server: import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
17
17
|
} | {
|
|
18
|
-
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse> |
|
|
18
|
+
server: import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse> | undefined;
|
|
19
19
|
app: import("./types.js").ServiceExpress<SLocals>;
|
|
20
20
|
codepath: "build" | "src" | "dist";
|
|
21
21
|
}>;
|
|
22
22
|
export declare function bootstrapCli<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>, RLocals extends RequestLocals = RequestLocals>(argv?: BootstrapArguments): Promise<{
|
|
23
23
|
app: import("./types.js").ServiceExpress<SLocals>;
|
|
24
24
|
codepath: "build" | "src" | "dist" | undefined;
|
|
25
|
-
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse
|
|
25
|
+
server: import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
26
26
|
} | {
|
|
27
|
-
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse> |
|
|
27
|
+
server: import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse> | undefined;
|
|
28
28
|
app: import("./types.js").ServiceExpress<SLocals>;
|
|
29
29
|
codepath: "build" | "src" | "dist";
|
|
30
30
|
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import http from 'http';
|
|
2
|
-
import https from 'https';
|
|
3
2
|
import type { AnyServiceLocals, RequestLocals, ServiceExpress, ServiceLocals, ServiceStartOptions } from '../types.js';
|
|
4
3
|
import type { ConfigurationSchema } from '../config/schema.js';
|
|
5
4
|
export declare function startApp<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>, RLocals extends RequestLocals = RequestLocals>(startOptions: ServiceStartOptions<SLocals, RLocals>): Promise<ServiceExpress<SLocals>>;
|
|
6
5
|
export type StartAppFn<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>, RLocals extends RequestLocals = RequestLocals> = typeof startApp<SLocals, RLocals>;
|
|
7
6
|
export declare function shutdownApp<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>): Promise<void>;
|
|
8
|
-
export declare function listen<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>, shutdownHandler?: () => Promise<void>): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse
|
|
7
|
+
export declare function listen<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>, shutdownHandler?: () => Promise<void>): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
|
|
9
8
|
export type ListenFn<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>> = typeof listen<SLocals>;
|
|
@@ -17,6 +17,6 @@ export declare function shutdownGlobalTelemetry(): Promise<void>;
|
|
|
17
17
|
export declare function startWithTelemetry<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>, RLocals extends RequestLocals = RequestLocals>(options: DelayLoadServiceStartOptions): Promise<{
|
|
18
18
|
app: import("../types.js").ServiceExpress<SLocals>;
|
|
19
19
|
codepath: "build" | "src" | "dist" | undefined;
|
|
20
|
-
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse
|
|
20
|
+
server: import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
21
21
|
}>;
|
|
22
22
|
export { setTelemetryHooks } from './instrumentations.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-typescript-infra/service",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "An opinionated framework for building configuration driven services - web, api, or ob. Uses OpenAPI, pino logging, express, confit, Typescript and vitest.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -71,31 +71,31 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@godaddy/terminus": "^4.12.1",
|
|
73
73
|
"@opentelemetry/api": "^1.9.0",
|
|
74
|
-
"@opentelemetry/auto-instrumentations-node": "^0.
|
|
74
|
+
"@opentelemetry/auto-instrumentations-node": "^0.70.0",
|
|
75
75
|
"@opentelemetry/exporter-prometheus": "^0.212.0",
|
|
76
|
-
"@opentelemetry/instrumentation-dns": "^0.
|
|
77
|
-
"@opentelemetry/instrumentation-express": "^0.
|
|
78
|
-
"@opentelemetry/instrumentation-generic-pool": "^0.
|
|
79
|
-
"@opentelemetry/instrumentation-graphql": "^0.
|
|
76
|
+
"@opentelemetry/instrumentation-dns": "^0.55.0",
|
|
77
|
+
"@opentelemetry/instrumentation-express": "^0.60.0",
|
|
78
|
+
"@opentelemetry/instrumentation-generic-pool": "^0.55.0",
|
|
79
|
+
"@opentelemetry/instrumentation-graphql": "^0.59.0",
|
|
80
80
|
"@opentelemetry/instrumentation-http": "^0.212.0",
|
|
81
|
-
"@opentelemetry/instrumentation-net": "^0.
|
|
82
|
-
"@opentelemetry/instrumentation-pg": "^0.
|
|
83
|
-
"@opentelemetry/instrumentation-pino": "^0.
|
|
84
|
-
"@opentelemetry/instrumentation-redis": "^0.
|
|
85
|
-
"@opentelemetry/instrumentation-undici": "^0.
|
|
86
|
-
"@opentelemetry/resource-detector-container": "^0.8.
|
|
87
|
-
"@opentelemetry/resource-detector-gcp": "^0.
|
|
81
|
+
"@opentelemetry/instrumentation-net": "^0.56.0",
|
|
82
|
+
"@opentelemetry/instrumentation-pg": "^0.64.0",
|
|
83
|
+
"@opentelemetry/instrumentation-pino": "^0.58.0",
|
|
84
|
+
"@opentelemetry/instrumentation-redis": "^0.60.0",
|
|
85
|
+
"@opentelemetry/instrumentation-undici": "^0.22.0",
|
|
86
|
+
"@opentelemetry/resource-detector-container": "^0.8.3",
|
|
87
|
+
"@opentelemetry/resource-detector-gcp": "^0.47.0",
|
|
88
88
|
"@opentelemetry/sdk-node": "^0.212.0",
|
|
89
89
|
"@opentelemetry/semantic-conventions": "^1.39.0",
|
|
90
90
|
"@sesamecare-oss/confit": "^2.2.1",
|
|
91
|
-
"@sesamecare-oss/opentelemetry-node-metrics": "^
|
|
91
|
+
"@sesamecare-oss/opentelemetry-node-metrics": "^3.0.0",
|
|
92
92
|
"ajv": "^8.18.0",
|
|
93
93
|
"clean-stack": "^6.0.0",
|
|
94
94
|
"cookie-parser": "^1.4.7",
|
|
95
95
|
"dotenv": "^17.3.1",
|
|
96
96
|
"express": "^5.2.1",
|
|
97
97
|
"express-openapi-validator": "^5.6.2",
|
|
98
|
-
"glob": "^13.0.
|
|
98
|
+
"glob": "^13.0.5",
|
|
99
99
|
"import-in-the-middle": "^2.0.6",
|
|
100
100
|
"minimist": "^1.2.8",
|
|
101
101
|
"moderndash": "^4.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@types/cookie-parser": "^1.4.10",
|
|
116
116
|
"@types/express": "^5.0.6",
|
|
117
117
|
"@types/minimist": "^1.2.5",
|
|
118
|
-
"@types/node": "^
|
|
118
|
+
"@types/node": "^25.2.3",
|
|
119
119
|
"@types/request-ip": "^0.0.41",
|
|
120
120
|
"@types/supertest": "^6.0.3",
|
|
121
121
|
"@typescript-eslint/eslint-plugin": "^8.56.0",
|